TDME2 1.9.121
GUIElementIgnoreEventsController.h
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
5#include <tdme/tdme.h>
10
11using std::string;
12
18
19/**
20 * GUI element controller
21 * @author Andreas Drewke
22 * @version $Id$
23 */
25 : public GUINodeController
26{
27 friend class GUIElementNode;
28
29private:
34
35 /**
36 * Private constructor
37 * @param node node
38 */
40
41public:
42 // overridden methods
43 bool isDisabled() override;
44 void setDisabled(bool disabled) override;
45 void initialize() override;
46 void dispose() override;
47 void postLayout() override;
48 void handleMouseEvent(GUINode* node, GUIMouseEvent* event) override;
49 void handleKeyboardEvent(GUIKeyboardEvent* event) override;
50 void tick() override;
51 void onFocusGained() override;
52 void onFocusLost() override;
53 bool hasValue() override;
54 const MutableString& getValue() override;
55 void setValue(const MutableString& value) override;
56 void onSubTreeChange() override;
57
58};
void initialize() override
Initialize controller after element has been created.
void handleKeyboardEvent(GUIKeyboardEvent *event) override
Handle keyboard event.
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.
GUI node controller base class.
GUI node base class.
Definition: GUINode.h:63
Mutable string class.
Definition: MutableString.h:16
#define STATIC_DLL_IMPEXT
Definition: tdme.h:11