MyGUI: MyGUI_ControllerRepeatClick.h Source File

MyGUI 3.4.2

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files
- Examples

- File List
- Globals

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