TDME2 1.9.121
ColorPickerImageController.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
19
20/**
21 * Color picker image controller controller
22 * @author Andreas Drewke
23 * @version $Id$
24 */
26 : public GUINodeController
27{
28 friend class GUIElementNode;
29
30private:
33
34public:
35 /**
36 * Constructor
37 * @param node node
38 * @param colorPickerScreenController color picker screen controller
39 */
41
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};
GUI node controller base class.
GUI node base class.
Definition: GUINode.h:63
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.
ColorPickerImageController(GUINode *node, ColorPickerScreenController *colorPickerScreenController)
Constructor.
Mutable string class.
Definition: MutableString.h:16