SCV
4.2.1
Simple Components for Visual
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
Panel.h
Go to the documentation of this file.
1
7
#ifndef __SCV_PANEL_INTERFACE_H__
8
#define __SCV_PANEL_INTERFACE_H__
9
10
#include "
ComponentTexture.h
"
11
#include "
Component.h
"
12
13
namespace
scv {
14
15
class
GroupLayout;
16
17
class
Panel
:
public
Component
{
18
public
:
19
Panel
(
const
scv::Point
&p1,
const
scv::Point
&p2);
20
21
void
processMouse
(
const
scv::MouseEvent
&evt);
22
void
processKey
(
const
scv::KeyEvent
&evt);
23
24
virtual
void
display
(
void
);
25
26
virtual
Point
getMinimumSize
(
void
)
const
;
27
virtual
Point
getPreferredSize
(
void
)
const
;
28
virtual
Point
getMaximumSize
(
void
)
const
;
29
30
virtual
inline
void
setLayout
(
GroupLayout
*layout);
31
virtual
inline
bool
isLeftToRight
(
void
);
32
33
//Memory Management
34
virtual
void
addChild
(
Component
*
object
);
35
virtual
void
removeChild
(
Component
*
object
);
36
37
protected
:
38
virtual
void
createTexture
(
void
);
39
ComponentTexture
*
_cTexture
;
40
41
GroupLayout
*
_layout
;
42
bool
_leftToRight
;
43
};
44
46
void
Panel::setLayout
(
GroupLayout
*layout) {
47
_layout
= layout;
48
}
49
50
bool
Panel::isLeftToRight
(
void
) {
51
return
_leftToRight
;
52
}
53
54
}
// namespace scv
55
56
#endif // __SCV_PANEL_INTERFACE_H__
include
SCV
Panel.h
Generated on Fri Dec 14 2012 09:44:49 for SCV by
1.8.2