MyGUI
3.2.1
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
File List
Globals
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
virtual ~
ControllerPosition
();
30
31
void
setCoord(const IntCoord& _value);
32
33
void
setSize(const
IntSize
& _value);
34
35
void
setPosition(const
IntPoint
& _value);
36
37
void
setFunction(const std::
string
& _value);
38
42
void
setTime(
float
_value);
43
47
void
setAction(FrameAction::IDelegate* _value);
48
49
virtual
void
setProperty(const std::
string
& _key, const std::
string
& _value);
50
51
private:
52
bool
addTime(
Widget
* _widget,
float
_time);
53
void
prepareItem(
Widget
* _widget);
54
55
IntCoord mStartCoord;
56
IntCoord mDestCoord;
57
float
mTime;
58
float
mElapsedTime;
59
60
// controller changing position
61
bool
mCalcPosition;
62
// controller changing size
63
bool
mCalcSize;
64
72
FrameAction eventFrameAction;
73
};
74
75
}
// namespace MyGUI
76
77
#endif // __MYGUI_CONTROLLER_POSITION_H__
MyGUI::types::TCoord< int >
MyGUI::Widget
Widget properties. Widget_skin_childs Skin childs. Widget widget description should be here...
Definition:
MyGUI_Widget.h:29
MyGUI::types::TPoint< int >
MyGUI_Prerequest.h
MyGUI::types::TSize< int >
MyGUI::ControllerPosition
Definition:
MyGUI_ControllerPosition.h:20
MyGUI_WidgetDefines.h
MyGUI_Types.h
MYGUI_RTTI_DERIVED
#define MYGUI_RTTI_DERIVED(DerivedType)
Definition:
MyGUI_RTTI.h:65
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition:
MyGUI_Platform.h:102
MyGUI::delegates::CDelegate4< const IntCoord &, const IntCoord &, IntCoord &, float >
MyGUI::ControllerItem
Definition:
MyGUI_ControllerItem.h:25
MyGUI_ControllerItem.h
MyGUI_Delegate.h
Generated on Wed Oct 29 2014 13:06:31 for MyGUI by
1.8.7