TDME2  1.9.200
GUITableRowNode.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <tdme/tdme.h>
4 #include <tdme/gui/fwd-tdme.h>
8 
21 
22 /**
23  * GUI layout node
24  */
26 {
27  friend class tdme::gui::GUIParser;
28 private:
29  int tableRowNodeIdx { -1 };
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  * @throws tdme::gui::GUIParserException
56  */
60  const string& id,
67  const string& backgroundImage,
71  const GUINode_Border& border,
72  const GUINode_Padding& padding,
75  const string& tooltip
76  );
77 
78  // overridden methods
79  const string getNodeType() override;
80  bool isContentNode() override;
81  void layoutSubNodes() override;
82  void setTop(int top) override;
83  void setLeft(int left) override;
84 
85 public:
86  // overridden methods
87  int getContentWidth() override;
88  int getContentHeight() override;
89 
90  /**
91  * Create requested constraints
92  * @param left left
93  * @param top top
94  * @param width width
95  * @param height height
96  * @param factor factor
97  * @return requested constraints
98  */
99  static GUINode_RequestedConstraints createRequestedConstraints(const string& left, const string& top, const string& width, const string& height, int factor);
100 
101 };
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.
static GUINode_RequestedConstraints createRequestedConstraints(const string &left, const string &top, const string &width, const string &height, int factor)
Create requested constraints.
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