TDME2  1.9.200
GUITableNode.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 
19 
20 /**
21  * GUI layout node
22  */
24 {
25  friend class tdme::gui::GUIParser;
26  friend class GUITableRowNode;
27 
28 protected:
29  // forbid class copy
31 
32  /**
33  * Constructor
34  * @param screenNode screen node
35  * @param parentNode parent node
36  * @param id id
37  * @param flow flow
38  * @param overflowX overflow x
39  * @param overflowY overflow y
40  * @param alignments alignments
41  * @param requestedConstraints requested constraints
42  * @param backgroundColor background color
43  * @param backgroundImage background image
44  * @param backgroundImageScale9Grid background image scale 9 grid
45  * @param backgroundImageEffectColorMul background image effect color mul
46  * @param backgroundImageEffectColorAdd background image effect color add
47  * @param border border
48  * @param padding padding
49  * @param showOn show on
50  * @param hideOn hide on
51  * @param tooltip tooltip
52  * @param alignment alignment
53  * @throws tdme::gui::GUIParserException
54  */
58  const string& id,
65  const string& backgroundImage,
69  const GUINode_Border& border,
70  const GUINode_Padding& padding,
73  const string& tooltip
74  );
75 
76  // overridden methods
77  const string getNodeType() override;
78  bool isContentNode() override;
79  void layoutSubNodes() override;
80  void setTop(int top) override;
81  void setLeft(int left) override;
82 
83  /**
84  * @return table cell max width @ x position
85  */
86  int getTableCellMaxWidth(int x);
87 
88  /**
89  * @return table cell max height @ y position
90  */
91  int getTableCellMaxHeight(int y);
92 
93 public:
94  // overridden methods
95  int getContentWidth() override;
96  int getContentHeight() override;
97 
98 };
GUI parser.
Definition: GUIParser.h:40
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
const string getNodeType() override
void setTop(int top) override
Set computed top.
void setLeft(int left) override
Set computed left.
void layoutSubNodes() override
Layout sub nodes.
GUI node border entity.
GUI node padding entity.
GUI node scale 9 grid entity.
#define FORBID_CLASS_COPY(CLASS)
Definition: tdme.h:6