SCV  4.2.1
Simple Components for Visual
 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);
40 
42  bool _leftToRight;
43 };
44 
47  _layout = layout;
48 }
49 
51  return _leftToRight;
52 }
53 
54 } // namespace scv
55 
56 #endif // __SCV_PANEL_INTERFACE_H__