TDME2
1.9.121
src
tdme
gui
elements
GUIScrollAreaController.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
tdme/tdme.h
>
4
#include <
tdme/gui/elements/fwd-tdme.h
>
5
#include <
tdme/gui/events/fwd-tdme.h
>
6
#include <
tdme/gui/nodes/fwd-tdme.h
>
7
#include <
tdme/gui/nodes/GUINodeController.h
>
8
#include <
tdme/utilities/MutableString.h
>
9
10
using
tdme::gui::events::GUIActionListener
;
11
using
tdme::gui::events::GUIKeyboardEvent
;
12
using
tdme::gui::events::GUIMouseEvent
;
13
using
tdme::gui::nodes::GUINode
;
14
using
tdme::gui::nodes::GUINodeController
;
15
using
tdme::utilities::MutableString
;
16
17
/**
18
* GUI scroll area controller
19
* @author Andreas Drewke
20
* @version $Id$
21
*/
22
class
tdme::gui::elements::GUIScrollAreaController
final:
public
GUINodeController
23
{
24
friend
class
GUIScrollArea
;
25
26
private
:
27
MutableString
value
;
28
GUIActionListener
*
actionListener
{
nullptr
};
29
30
/**
31
* Private constructor
32
* @param node node
33
*/
34
GUIScrollAreaController
(
GUINode
*
node
);
35
36
public
:
37
// overridden methods
38
bool
isDisabled
()
override
;
39
void
setDisabled
(
bool
disabled)
override
;
40
void
initialize
()
override
;
41
void
dispose
()
override
;
42
void
postLayout
()
override
;
43
void
handleMouseEvent
(
GUINode
*
node
,
GUIMouseEvent
* event)
override
;
44
void
handleKeyboardEvent
(
GUIKeyboardEvent
* event)
override
;
45
void
tick
()
override
;
46
void
onFocusGained
()
override
;
47
void
onFocusLost
()
override
;
48
bool
hasValue
()
override
;
49
const
MutableString
&
getValue
()
override
;
50
void
setValue
(
const
MutableString
&
value
)
override
;
51
void
onSubTreeChange
()
override
;
52
53
};
GUINodeController.h
MutableString.h
tdme::gui::elements::GUIScrollAreaController
GUI scroll area controller.
Definition:
GUIScrollAreaController.h:23
tdme::gui::elements::GUIScrollAreaController::onFocusGained
void onFocusGained() override
On focus gained.
Definition:
GUIScrollAreaController.cpp:181
tdme::gui::elements::GUIScrollAreaController::dispose
void dispose() override
Dispose controller.
Definition:
GUIScrollAreaController.cpp:131
tdme::gui::elements::GUIScrollAreaController::postLayout
void postLayout() override
Post layout event.
Definition:
GUIScrollAreaController.cpp:140
tdme::gui::elements::GUIScrollAreaController::initialize
void initialize() override
Initialize controller after element has been created.
Definition:
GUIScrollAreaController.cpp:34
tdme::gui::elements::GUIScrollAreaController::handleKeyboardEvent
void handleKeyboardEvent(GUIKeyboardEvent *event) override
Handle keyboard event.
Definition:
GUIScrollAreaController.cpp:173
tdme::gui::elements::GUIScrollAreaController::onFocusLost
void onFocusLost() override
On focus lost.
Definition:
GUIScrollAreaController.cpp:185
tdme::gui::elements::GUIScrollAreaController::setValue
void setValue(const MutableString &value) override
Set value.
Definition:
GUIScrollAreaController.cpp:199
tdme::gui::elements::GUIScrollAreaController::handleMouseEvent
void handleMouseEvent(GUINode *node, GUIMouseEvent *event) override
Handle mouse event.
Definition:
GUIScrollAreaController.cpp:169
tdme::gui::elements::GUIScrollAreaController::GUIScrollAreaController
GUIScrollAreaController(GUINode *node)
Private constructor.
Definition:
GUIScrollAreaController.cpp:20
tdme::gui::elements::GUIScrollAreaController::tick
void tick() override
Tick method will be executed once per frame.
Definition:
GUIScrollAreaController.cpp:177
tdme::gui::elements::GUIScrollAreaController::setDisabled
void setDisabled(bool disabled) override
Set disabled.
Definition:
GUIScrollAreaController.cpp:30
tdme::gui::elements::GUIScrollAreaController::value
MutableString value
Definition:
GUIScrollAreaController.h:27
tdme::gui::elements::GUIScrollAreaController::getValue
const MutableString & getValue() override
Definition:
GUIScrollAreaController.cpp:194
tdme::gui::elements::GUIScrollAreaController::isDisabled
bool isDisabled() override
Definition:
GUIScrollAreaController.cpp:25
tdme::gui::elements::GUIScrollAreaController::onSubTreeChange
void onSubTreeChange() override
On sub tree change.
Definition:
GUIScrollAreaController.cpp:203
tdme::gui::elements::GUIScrollAreaController::hasValue
bool hasValue() override
Definition:
GUIScrollAreaController.cpp:189
tdme::gui::elements::GUIScrollAreaController::actionListener
GUIActionListener * actionListener
Definition:
GUIScrollAreaController.h:28
tdme::gui::elements::GUIScrollArea
GUI scroll area element.
Definition:
GUIScrollArea.h:28
tdme::gui::events::GUIKeyboardEvent
GUI keyboard event.
Definition:
GUIKeyboardEvent.h:13
tdme::gui::events::GUIMouseEvent
GUI mouse event.
Definition:
GUIMouseEvent.h:13
tdme::gui::nodes::GUINodeController
GUI node controller base class.
Definition:
GUINodeController.h:19
tdme::gui::nodes::GUINodeController::node
GUINode * node
Definition:
GUINodeController.h:21
tdme::gui::nodes::GUINode
GUI node base class.
Definition:
GUINode.h:63
tdme::utilities::MutableString
Mutable string class.
Definition:
MutableString.h:16
fwd-tdme.h
fwd-tdme.h
fwd-tdme.h
tdme::gui::events::GUIActionListener
GUI action listener interface.
Definition:
GUIActionListener.h:26
tdme.h
Generated by
1.9.3