TDME2  1.9.200
GUIMoveable.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>
11 
13 
14 using std::string;
15 using std::unordered_map;
16 
22 
23 /**
24  * GUI moveable element
25  * @author Andreas Drewke
26  */
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  GUIMoveable();
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 moveable element.
Definition: GUIMoveable.h:28
GUINodeController * createController(GUINode *node) override
Create controller which is attached to this node.
Definition: GUIMoveable.cpp:50
unordered_map< string, string > getAttributes(GUIScreenNode *screenNode) override
Get default attributes.
Definition: GUIMoveable.cpp:39
const string & getName() override
Definition: GUIMoveable.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: GUIMoveable.cpp:34
GUIMoveable()
Public constructor.
Definition: GUIMoveable.cpp:25
static STATIC_DLL_IMPEXT string NAME
Definition: GUIMoveable.h:31
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