TDME2  1.9.200
GUISliderH.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 horizontal slider element
25  * @author Andreas Drewke
26  */
28  : public GUIElement
29 {
30 
31 private:
32  STATIC_DLL_IMPEXT static string NAME;
33 
34 public:
35  // forbid class copy
37 
38  /**
39  * Public constructor
40  */
41  GUISliderH();
42 
43  // overridden methods
44  const string& getName() override;
45  const string getTemplate(const string& applicationPathName, const string& applicationSubPathName, const string& fileName = string()) override;
46  unordered_map<string, string> getAttributes(GUIScreenNode* screenNode) override;
48 
49 };
GUI element base class.
Definition: GUIElement.h:23
GUI horizontal slider element.
Definition: GUISliderH.h:29
GUINodeController * createController(GUINode *node) override
Create controller which is attached to this node.
Definition: GUISliderH.cpp:48
GUISliderH()
Public constructor.
Definition: GUISliderH.cpp:25
unordered_map< string, string > getAttributes(GUIScreenNode *screenNode) override
Get default attributes.
Definition: GUISliderH.cpp:39
const string & getName() override
Definition: GUISliderH.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: GUISliderH.cpp:34
static STATIC_DLL_IMPEXT string NAME
Definition: GUISliderH.h:32
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