TDME2  1.9.200
GUIGrid.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 #include <unordered_map>
5 
6 #include <tdme/tdme.h>
12 
13 using std::string;
14 using std::unordered_map;
15 
21 
22 /**
23  * GUI grid element
24  * @author Andreas Drewke
25  */
27  : public GUIElement
28 {
29 
30 private:
31  STATIC_DLL_IMPEXT static string NAME;
32 
33 public:
34  // forbid class copy
36 
37  /**
38  * Public constructor
39  */
40  GUIGrid();
41 
42  // overridden methods
43  const string& getName() override;
44  const string getTemplate(const string& applicationPathName, const string& applicationSubPathName, const string& fileName = string()) override;
45  unordered_map<string, string> getAttributes(GUIScreenNode* screenNode) override;
47 
48 };
GUI element base class.
Definition: GUIElement.h:23
GUI grid element.
Definition: GUIGrid.h:28
GUINodeController * createController(GUINode *node) override
Create controller which is attached to this node.
Definition: GUIGrid.cpp:48
unordered_map< string, string > getAttributes(GUIScreenNode *screenNode) override
Get default attributes.
Definition: GUIGrid.cpp:39
const string & getName() override
Definition: GUIGrid.cpp:29
const string getTemplate(const string &applicationPathName, const string &applicationSubPathName, const string &fileName=string()) override
Retrieve template from given path name and optional file name.
Definition: GUIGrid.cpp:34
static STATIC_DLL_IMPEXT string NAME
Definition: GUIGrid.h:31
GUIGrid()
Public constructor.
Definition: GUIGrid.cpp:25
GUI node controller base class.
GUI node base class.
Definition: GUINode.h:64
GUI screen node that represents a screen that can be rendered via GUI system.
Definition: GUIScreenNode.h:72
#define STATIC_DLL_IMPEXT
Definition: tdme.h:15
#define FORBID_CLASS_COPY(CLASS)
Definition: tdme.h:6