MyGUI
3.2.0
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
6
/*
7
This file is part of MyGUI.
8
9
MyGUI is free software: you can redistribute it and/or modify
10
it under the terms of the GNU Lesser General Public License as published by
11
the Free Software Foundation, either version 3 of the License, or
12
(at your option) any later version.
13
14
MyGUI is distributed in the hope that it will be useful,
15
but WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
GNU Lesser General Public License for more details.
18
19
You should have received a copy of the GNU Lesser General Public License
20
along with MyGUI. If not, see <http://www.gnu.org/licenses/>.
21
*/
22
#ifndef __MYGUI_CONTROLLER_POSITION_H__
23
#define __MYGUI_CONTROLLER_POSITION_H__
24
25
#include "
MyGUI_Prerequest.h
"
26
#include "
MyGUI_Delegate.h
"
27
#include "
MyGUI_Types.h
"
28
#include "
MyGUI_WidgetDefines.h
"
29
#include "
MyGUI_ControllerItem.h
"
30
31
namespace
MyGUI
32
{
33
35
class
MYGUI_EXPORT
ControllerPosition
:
36
public
ControllerItem
37
{
38
MYGUI_RTTI_DERIVED
(
ControllerPosition
)
39
40
public:
41
typedef delegates::CDelegate4<const
IntCoord
&, const IntCoord&, IntCoord&,
float
>
FrameAction
;
42
43
ControllerPosition
();
44
virtual ~
ControllerPosition
();
45
46
void
setCoord(const IntCoord& _value);
47
48
void
setSize(const
IntSize
& _value);
49
50
void
setPosition(const
IntPoint
& _value);
51
52
void
setFunction(const std::
string
& _value);
53
57
void
setTime(
float
_value);
58
62
void
setAction(FrameAction::IDelegate* _value);
63
64
virtual
void
setProperty(const std::
string
& _key, const std::
string
& _value);
65
66
private:
67
bool
addTime(
Widget
* _widget,
float
_time);
68
void
prepareItem(
Widget
* _widget);
69
70
IntCoord mStartCoord;
71
IntCoord mDestCoord;
72
float
mTime;
73
float
mElapsedTime;
74
75
// controller changing position
76
bool
mCalcPosition;
77
// controller changing size
78
bool
mCalcSize;
79
87
FrameAction eventFrameAction;
88
};
89
90
}
// namespace MyGUI
91
92
#endif // __MYGUI_CONTROLLER_POSITION_H__
MyGUI::types::TCoord< int >
MyGUI::Widget
Definition:
MyGUI_Widget.h:41
MyGUI::types::TPoint< int >
MyGUI_Prerequest.h
MyGUI::types::TSize< int >
MyGUI::ControllerPosition
Definition:
MyGUI_ControllerPosition.h:35
MyGUI_WidgetDefines.h
MyGUI_Types.h
MYGUI_RTTI_DERIVED
#define MYGUI_RTTI_DERIVED(DerivedType)
Definition:
MyGUI_RTTI.h:88
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition:
MyGUI_Platform.h:120
MyGUI::delegates::CDelegate4< const IntCoord &, const IntCoord &, IntCoord &, float >
MyGUI::ControllerItem
Definition:
MyGUI_ControllerItem.h:34
MyGUI_ControllerItem.h
MyGUI_Delegate.h
Generated on Fri Jan 3 2014 05:27:50 for MyGUI by
1.8.5