TDME2 1.9.121
GUIVerticalScrollbarInternalController.h
Go to the documentation of this file.
1#pragma once
2
3#include <tdme/tdme.h>
8
14using tdme::gui::nodes::GUIVerticalScrollbarInternalController_State;
16
17/**
18 * GUI vertical scroll bar internal controller
19 * @author Andreas Drewke
20 * @version $Id$
21 */
23 : public GUINodeController
24{
26public:
28
29private:
35
36 /**
37 * Private constructor
38 * @param node node
39 */
41
42public:
43 // overridden methods
44 bool isDisabled() override;
45 void setDisabled(bool disabled) override;
46 void initialize() override;
47 void dispose() override;
48 void postLayout() override;
49 void handleMouseEvent(GUINode* node, GUIMouseEvent* event) override;
50 void handleKeyboardEvent(GUIKeyboardEvent* event) override;
51 void tick() override;
52 void onFocusGained() override;
53 void onFocusLost() override;
54 bool hasValue() override;
55 const MutableString& getValue() override;
56 void setValue(const MutableString& value) override;
57 void onSubTreeChange() override;
58
59 /**
60 * @return state
61 */
62 virtual State getState();
63
64private:
65
66 /**
67 * @return bar height
68 */
69 virtual float getBarHeight();
70
71 /**
72 * @return bar top
73 */
74 virtual float getBarTop();
75
76 /**
77 * Set dragged y
78 * @param draggedY dragged y
79 */
80 virtual void setDraggedY(float draggedY);
81
82};
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 handleMouseEvent(GUINode *node, GUIMouseEvent *event) override
Handle mouse event.
void tick() override
Tick method will be executed once per frame.
Mutable string class.
Definition: MutableString.h:16