TDME2 1.9.121
GUIHorizontalScrollbarInternalController.h
Go to the documentation of this file.
1#pragma once
2
3#include <tdme/tdme.h>
9
12using tdme::gui::nodes::GUIHorizontalScrollbarInternalController_State;
17
18/**
19 * GUI scroll bar controller
20 * @author Andreas Drewke
21 * @version $Id$
22 */
24 : public GUINodeController
25{
27public:
29
30private:
36
37 /**
38 * @return bar width
39 */
40 virtual float getBarWidth();
41
42 /**
43 * @return bar left
44 */
45 virtual float getBarLeft();
46
47 /**
48 * Set dragged x
49 * @param draggedX dragged x
50 */
51 virtual void setDraggedX(float draggedX);
52
53protected:
54 /**
55 * Constructor
56 * @param node node
57 */
59
60public:
61 /**
62 * @return state
63 */
64 virtual State getState();
65
66 // overridden methods
67 bool isDisabled() override;
68 void setDisabled(bool disabled) override;
69 void initialize() override;
70 void dispose() override;
71 void postLayout() override;
72 void handleMouseEvent(GUINode* node, GUIMouseEvent* event) override;
73 void handleKeyboardEvent(GUIKeyboardEvent* event) override;
74 void tick() override;
75 void onFocusGained() override;
76 void onFocusLost() override;
77 bool hasValue() override;
78 const MutableString& getValue() override;
79 void setValue(const MutableString& value) override;
80 void onSubTreeChange() override;
81
82};
void initialize() override
Initialize controller after element has been created.
void handleKeyboardEvent(GUIKeyboardEvent *event) override
Handle keyboard event.
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