SCV  4.2.1
Simple Components for Visual
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
GroupLayout.h
Go to the documentation of this file.
1 
7 #ifndef __SCV_GROUP_LAYOUT_H__
8 #define __SCV_GROUP_LAYOUT_H__
9 
10 #include "Panel.h"
11 
12 #include "ParallelGroup.h"
13 #include "SequentialGroup.h"
14 
15 namespace scv {
16 
17 class Group;
18 
19 class GroupLayout {
20 public:
21  GroupLayout(Panel *host);
22  virtual ~GroupLayout(void) {}
23 
24  static ParallelGroup *createParallelGroup(void);
26  static ParallelGroup *createParallelGroup(Spring::Alignment alignment, bool resizable);
27 
29 
30  void removeComponent(scv::Component *object);
31 
32  void setHorizontalGroup(Group *group);
33  Group *getHorizontalGroup(void) const;
34 
35  void setVerticalGroup(Group *group);
36  Group *getVerticalGroup(void) const;
37 
38  void layoutContainer(void);
39 
40  int getMinimumSize(Spring::Axis axis);
42  int getMaximumSize(Spring::Axis axis);
43 
44 protected:
47 
48 private:
49 };
50 
51 
52 } //namespace scv
53 
54 #endif //__SCV_GROUP_LAYOUT_H__