TDME2 1.9.121
GUIInputController.h
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
5#include <tdme/tdme.h>
11
12using std::string;
13
20
21/**
22 * GUI input controller
23 * @author Andreas Drewke
24 * @version $Id$
25 */
28{
29 friend class GUIInput;
30
31private:
36
37 /**
38 * Private constructor
39 * @param node node
40 */
42
43public:
44
45 /**
46 * On value change
47 */
48 void onValueChange();
49
50 // overridden methods
51 bool isDisabled() override;
52 void setDisabled(bool disabled) override;
53 void initialize() override;
54 void dispose() override;
55 void postLayout() override;
56 void handleMouseEvent(GUINode* node, GUIMouseEvent* event) override;
57 void handleKeyboardEvent(GUIKeyboardEvent* event) override;
58 void tick() override;
59 void onFocusGained() override;
60 void onFocusLost() override;
61 bool hasValue() override;
62 const MutableString& getValue() override;
63 void setValue(const MutableString& value) override;
64 void onSubTreeChange() override;
65
66};
void onFocusGained() override
On focus gained.
void dispose() override
Dispose controller.
void postLayout() override
Post layout event.
void initialize() override
Initialize controller after element has been created.
void handleKeyboardEvent(GUIKeyboardEvent *event) override
Handle keyboard event.
void onFocusLost() override
On focus lost.
void setValue(const MutableString &value) override
Set value.
void handleMouseEvent(GUINode *node, GUIMouseEvent *event) override
Handle mouse event.
void tick() override
Tick method will be executed once per frame.
static STATIC_DLL_IMPEXT string CONDITION_DISABLED
static STATIC_DLL_IMPEXT string CONDITION_ENABLED
void setDisabled(bool disabled) override
Set disabled.
const MutableString & getValue() override
GUIInputController(GUINode *node)
Private constructor.
void onSubTreeChange() override
On sub tree change.
GUI input element.
Definition: GUIInput.h:28
GUI node base class.
Definition: GUINode.h:63
Mutable string class.
Definition: MutableString.h:16
#define STATIC_DLL_IMPEXT
Definition: tdme.h:11