MyGUI: MyGUI_ControllerRepeatClick.h Source File

MyGUI 3.2.2

MyGUI_ControllerRepeatClick.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_REPEATCLICK_H_
8 #define MYGUI_CONTROLLER_REPEATCLICK_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
17 namespace MyGUI
18 {
19
21 class ControllerRepeatClick :
22 public ControllerItem
23 {
24 MYGUI_RTTI_DERIVED( ControllerRepeatClick )
25
26 public:
27 ControllerRepeatClick();
28 virtual ~ControllerRepeatClick();
29
34 void setRepeat(float init, float step);
35
36 virtual bool addTime(Widget* _widget, float _time);
37 virtual void prepareItem(Widget* _widget);
38 virtual void setProperty(const std::string& _key, const std::string& _value);
39
40 typedef delegates::CMultiDelegate2<Widget*, ControllerItem*> EventHandle_RepeatClick;
41
45 EventHandle_RepeatClick eventRepeatClick;
46
47 private:
48 float mInit;
49 float mStep;
50 float mTimeLeft;
51 };
52
53 }
54
55 #endif
MyGUI::ControllerRepeatClick::~ControllerRepeatClick
virtual ~ControllerRepeatClick()
Definition: MyGUI_ControllerRepeatClick.cpp:19
MyGUI_ControllerItem.h
MyGUI::ControllerRepeatClick::setProperty
virtual void setProperty(const std::string &_key, const std::string &_value)
Definition: MyGUI_ControllerRepeatClick.cpp:46
MyGUI_Delegate.h
MyGUI::ControllerRepeatClick::EventHandle_RepeatClick
delegates::CMultiDelegate2< Widget *, ControllerItem * > EventHandle_RepeatClick
Definition: MyGUI_ControllerRepeatClick.h:40
MyGUI::ControllerRepeatClick::addTime
virtual bool addTime(Widget *_widget, float _time)
Definition: MyGUI_ControllerRepeatClick.cpp:23
MyGUI::Widget
Widget properties. Skin childs. Widget widget description should be here.
Definition: MyGUI_Widget.h:29
MyGUI::ControllerItem
Definition: MyGUI_ControllerItem.h:25
MyGUI::ControllerRepeatClick::ControllerRepeatClick
ControllerRepeatClick()
Definition: MyGUI_ControllerRepeatClick.cpp:12
MyGUI_Prerequest.h
MYGUI_RTTI_DERIVED
#define MYGUI_RTTI_DERIVED(DerivedType)
Definition: MyGUI_RTTI.h:65
MyGUI::ControllerRepeatClick::setRepeat
void setRepeat(float init, float step)
Definition: MyGUI_ControllerRepeatClick.cpp:40
MyGUI::ControllerRepeatClick::eventRepeatClick
EventHandle_RepeatClick eventRepeatClick
Definition: MyGUI_ControllerRepeatClick.h:45
MyGUI_WidgetDefines.h
MyGUI_Types.h
MyGUI
Definition: MyGUI_ActionController.h:14
MyGUI::ControllerRepeatClick::prepareItem
virtual void prepareItem(Widget *_widget)
Definition: MyGUI_ControllerRepeatClick.cpp:50
MyGUI::ControllerRepeatClick
Definition: MyGUI_ControllerRepeatClick.h:21