TDME2  1.9.200
GUICheckbox.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 
12 using std::string;
13 using std::unordered_map;
14 
20 
21 /**
22  * GUI check box element
23  * @author Andreas Drewke
24  */
26  : public GUIElement
27 {
28 
29 private:
30  static string NAME;
31 
32 public:
33  // forbid class copy
35 
36  /**
37  * Public constructor
38  */
39  GUICheckbox();
40 
41  // overridden methods
42  const string& getName() override;
43  const string getTemplate(const string& applicationPathName, const string& applicationSubPathName, const string& fileName = string()) override;
44  unordered_map<string, string> getAttributes(GUIScreenNode* screenNode) override;
46 
47 };
GUI check box element.
Definition: GUICheckbox.h:27
GUINodeController * createController(GUINode *node) override
Create controller which is attached to this node.
Definition: GUICheckbox.cpp:49
unordered_map< string, string > getAttributes(GUIScreenNode *screenNode) override
Get default attributes.
Definition: GUICheckbox.cpp:39
GUICheckbox()
Public constructor.
Definition: GUICheckbox.cpp:25
const string & getName() override
Definition: GUICheckbox.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: GUICheckbox.cpp:34
GUI element base class.
Definition: GUIElement.h:23
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 FORBID_CLASS_COPY(CLASS)
Definition: tdme.h:6