TDME2  1.9.200
GUIPanelNode.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 #include <unordered_set>
5 
6 #include <tdme/tdme.h>
8 #include <tdme/gui/fwd-tdme.h>
11 
12 using std::string;
13 using std::unordered_set;
14 
30 
31 /**
32  * GUI panel node
33  * TODO: remove me!
34  * @author Andreas Drewke
35  */
37  : public GUILayoutNode
38 {
39  friend class tdme::gui::GUIParser;
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  * @param alignment alignment
66  */
70  const string& id,
77  const string& backgroundImage,
81  const GUINode_Border& border,
82  const GUINode_Padding& padding,
85  const string& tooltip,
87  );
88 
89  // overridden methods
90  const string getNodeType() override;
91 
92 public:
93  // overridden methods
94  void determineMouseEventNodes(GUIMouseEvent* event, bool floatingNode, unordered_set<string>& eventNodeIds, unordered_set<string>& eventFloatingNodeIds, int flags = DETERMINEMOUSEEVENTNODES_FLAG_NONE) override;
95 
96 };
GUI parser.
Definition: GUIParser.h:40
GUILayoutNode_Alignment * alignment
Definition: GUILayoutNode.h:29
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
static constexpr int DETERMINEMOUSEEVENTNODES_FLAG_NONE
Definition: GUINode.h:319
GUINode_Alignments alignments
Definition: GUINode.h:150
GUINodeConditions showOn
Definition: GUINode.h:161
GUINode_Flow * flow
Definition: GUINode.h:86
GUI panel node TODO: remove me!
Definition: GUIPanelNode.h:38
const string getNodeType() override
GUIPanelNode(GUIScreenNode *screenNode, GUIParentNode *parentNode, const string &id, GUINode_Flow *flow, GUIParentNode_Overflow *overflowX, GUIParentNode_Overflow *overflowY, const GUINode_Alignments &alignments, const GUINode_RequestedConstraints &requestedConstraints, const GUIColor &backgroundColor, const string &backgroundImage, const GUINode_Scale9Grid &backgroundImageScale9Grid, const GUIColor &backgroundImageEffectColorMul, const GUIColor &backgroundImageEffectColorAdd, const GUINode_Border &border, const GUINode_Padding &padding, const GUINodeConditions &showOn, const GUINodeConditions &hideOn, const string &tooltip, GUILayoutNode_Alignment *alignment)
Constructor.
void determineMouseEventNodes(GUIMouseEvent *event, bool floatingNode, unordered_set< string > &eventNodeIds, unordered_set< string > &eventFloatingNodeIds, int flags=DETERMINEMOUSEEVENTNODES_FLAG_NONE) override
Determine mouse event nodes.
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