MyGUI 3.4.3
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"
15
16
17namespace MyGUI
18{
19
22 {
24
25 public:
30 void setRepeat(float init, float step);
31
32 bool addTime(Widget* _widget, float _time) override;
33 void prepareItem(Widget* _widget) override;
34 void setProperty(std::string_view _key, std::string_view _value) override;
35
37
42
43 private:
44 float mInit{0.5f};
45 float mStep{0.1f};
46 float mTimeLeft{0};
47 };
48
49}
50
51#endif
#define MYGUI_EXPORT
#define MYGUI_RTTI_DERIVED(DerivedType)
Definition MyGUI_RTTI.h:69
void prepareItem(Widget *_widget) override
void setProperty(std::string_view _key, std::string_view _value) override
bool addTime(Widget *_widget, float _time) override
void setRepeat(float init, float step)
delegates::MultiDelegate< Widget *, ControllerItem * > EventHandle_RepeatClick
widget description should be here.