TDME2  1.9.200
GUILayoutNode.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <tdme/tdme.h>
4 #include <tdme/gui/fwd-tdme.h>
7 
20 
21 /**
22  * GUI layout node
23  */
25 {
26  friend class tdme::gui::GUIParser;
27 
28 private:
30 
31 protected:
32  // forbid class copy
34 
35  /**
36  * Constructor
37  * @param screenNode screen node
38  * @param parentNode parent node
39  * @param id id
40  * @param flow flow
41  * @param overflowX overflow x
42  * @param overflowY overflow y
43  * @param alignments alignments
44  * @param requestedConstraints requested constraints
45  * @param backgroundColor background color
46  * @param backgroundImage background image
47  * @param backgroundImageScale9Grid background image scale 9 grid
48  * @param backgroundImageEffectColorMul background image effect color mul
49  * @param backgroundImageEffectColorAdd background image effect color add
50  * @param border border
51  * @param padding padding
52  * @param showOn show on
53  * @param hideOn hide on
54  * @param tooltip tooltip
55  * @param alignment alignment
56  * @throws tdme::gui::GUIParserException
57  */
61  const string& id,
68  const string& backgroundImage,
72  const GUINode_Border& border,
73  const GUINode_Padding& padding,
76  const string& tooltip,
78  );
79 
80  // overridden methods
81  const string getNodeType() override;
82  bool isContentNode() override;
83  void layoutSubNodes() override;
84  void setTop(int top) override;
85  void setLeft(int left) override;
86 
87 public:
88  // overridden methods
89  int getContentWidth() override;
90  int getContentHeight() override;
91 
92  /**
93  * Create alignment
94  * @param alignment alignment
95  * @return alignment
96  */
97  static GUILayoutNode_Alignment* createAlignment(const string& alignment);
98 
99 };
GUI parser.
Definition: GUIParser.h:40
const string getNodeType() override
void setTop(int top) override
Set computed top.
static GUILayoutNode_Alignment * createAlignment(const string &alignment)
Create alignment.
void setLeft(int left) override
Set computed left.
GUILayoutNode_Alignment * alignment
Definition: GUILayoutNode.h:29
void layoutSubNodes() override
Layout sub nodes.
GUI element node conditions.
GUINodeConditions hideOn
Definition: GUINode.h:162
GUIColor backgroundImageEffectColorMul
Definition: GUINode.h:157
GUINode_Border border
Definition: GUINode.h:160
GUINode_Scale9Grid backgroundImageScale9Grid
Definition: GUINode.h:156
GUIColor backgroundImageEffectColorAdd
Definition: GUINode.h:158
GUIParentNode * parentNode
Definition: GUINode.h:148
GUINode_Padding padding
Definition: GUINode.h:159
GUIScreenNode * screenNode
Definition: GUINode.h:147
GUINode_RequestedConstraints requestedConstraints
Definition: GUINode.h:151
GUINode_Alignments alignments
Definition: GUINode.h:150
GUINodeConditions showOn
Definition: GUINode.h:161
GUINode_Flow * flow
Definition: GUINode.h:86
GUI parent node base class thats supporting child nodes.
Definition: GUIParentNode.h:42
GUIParentNode_Overflow * overflowX
Definition: GUIParentNode.h:66
GUIParentNode_Overflow * overflowY
Definition: GUIParentNode.h:67
GUI screen node that represents a screen that can be rendered via GUI system.
Definition: GUIScreenNode.h:72
GUI node border entity.
GUI node padding entity.
GUI node scale 9 grid entity.
#define FORBID_CLASS_COPY(CLASS)
Definition: tdme.h:6