MyGUI
3.4.0
MyGUIEngine
include
MyGUI_ControllerPosition.h
Go to the documentation of this file.
1
/*
2
* This source file is part of MyGUI. For the latest info, see http://mygui.info/
3
* Distributed under the MIT License
4
* (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
5
*/
6
7
#ifndef MYGUI_CONTROLLER_POSITION_H_
8
#define MYGUI_CONTROLLER_POSITION_H_
9
10
#include "
MyGUI_Prerequest.h
"
11
#include "
MyGUI_Delegate.h
"
12
#include "
MyGUI_Types.h
"
13
#include "
MyGUI_WidgetDefines.h
"
14
#include "
MyGUI_ControllerItem.h
"
15
16
namespace
MyGUI
17
{
18
20
class
MYGUI_EXPORT
ControllerPosition
:
21
public
ControllerItem
22
{
23
MYGUI_RTTI_DERIVED
(
ControllerPosition
)
24
25
public
:
26
typedef
delegates::CDelegate4<const IntCoord&, const IntCoord&, IntCoord&, float>
FrameAction
;
27
28
ControllerPosition
();
29
30
void
setCoord(
const
IntCoord
& _value);
31
32
void
setSize(
const
IntSize
& _value);
33
34
void
setPosition(
const
IntPoint
& _value);
35
36
void
setFunction(
const
std::string& _value);
37
41
void
setTime(
float
_value);
42
46
void
setAction(
FrameAction::IDelegate
* _value);
47
48
bool
addTime(
Widget
* _widget,
float
_time)
override
;
49
void
prepareItem(
Widget
* _widget)
override
;
50
void
setProperty(
const
std::string& _key,
const
std::string& _value)
override
;
51
52
private
:
53
IntCoord
mStartCoord;
54
IntCoord
mDestCoord;
55
float
mTime;
56
float
mElapsedTime;
57
58
// controller changing position
59
bool
mCalcPosition;
60
// controller changing size
61
bool
mCalcSize;
62
70
FrameAction
eventFrameAction;
71
};
72
73
}
// namespace MyGUI
74
75
#endif // MYGUI_CONTROLLER_POSITION_H_
MyGUI_ControllerItem.h
MyGUI::ControllerPosition::FrameAction
delegates::CDelegate4< const IntCoord &, const IntCoord &, IntCoord &, float > FrameAction
Definition:
MyGUI_ControllerPosition.h:26
MyGUI_Delegate.h
MyGUI::delegates::DelegateFunction
Definition:
MyGUI_Delegate.h:42
MyGUI::Widget
Widget properties. Skin childs. Widget widget description should be here.
Definition:
MyGUI_Widget.h:37
MyGUI::types::TPoint< int >
MyGUI::ControllerItem
Definition:
MyGUI_ControllerItem.h:27
MyGUI::ControllerPosition
Definition:
MyGUI_ControllerPosition.h:22
MyGUI::delegates::Delegate
Definition:
MyGUI_Delegate.h:119
MyGUI_Prerequest.h
MYGUI_RTTI_DERIVED
#define MYGUI_RTTI_DERIVED(DerivedType)
Definition:
MyGUI_RTTI.h:48
MyGUI::types::TSize< int >
MyGUI_WidgetDefines.h
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition:
MyGUI_Platform.h:89
MyGUI_Types.h
MyGUI::types::TCoord< int >
MyGUI
Definition:
MyGUI_ActionController.h:15
Generated by
1.8.20