TDME2  1.9.200
GUILayerNode.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <set>
4 #include <string>
5 
6 #include <tdme/tdme.h>
8 #include <tdme/gui/fwd-tdme.h>
15 
16 using std::set;
17 using std::string;
18 
30 
31 /**
32  * GUI layer node
33  * @author Andreas Drewke
34  */
36 {
37  friend class tdme::gui::GUIParser;
38  friend class GUINode;
39  friend class GUIScreenNode;
40 
41 protected:
42  // forbid class copy
44 
45  /**
46  * Constructor
47  * @param screenNode screen node
48  * @param parentNode parent node
49  * @param id id
50  * @param flow flow
51  * @param overflowX overflow x
52  * @param overflowY overflow y
53  * @param alignments alignments
54  * @param requestedConstraints requested constraints
55  * @param backgroundColor background color
56  * @param backgroundImage background image
57  * @param backgroundImageScale9Grid background image scale 9 grid
58  * @param backgroundImageEffectColorMul background image effect color mul
59  * @param backgroundImageEffectColorAdd background image effect color add
60  * @param border border
61  * @param padding padding
62  * @param showOn show on
63  * @param hideOn hide on
64  * @param tooltip tooltip
65  */
69  const string& id,
76  const string& backgroundImage,
80  const GUINode_Border& border,
81  const GUINode_Padding& padding,
84  const string& tooltip
85  );
86 
87  // overridden methods
88  const string getNodeType() override;
89  bool isContentNode() override;
90  void setTop(int top) override;
91  void setLeft(int left) override;
92  void layoutSubNodes() override;
93  void layout() override;
94 
95 public:
96  int getContentWidth() override;
97  int getContentHeight() override;
98 
99 };
GUI parser.
Definition: GUIParser.h:40
const string getNodeType() override
void setTop(int top) override
Set computed top.
void layout() override
Layout.
void setLeft(int left) override
Set computed left.
void layoutSubNodes() override
Layout sub nodes.
GUI element node conditions.
GUI node base class.
Definition: GUINode.h:64
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