MyGUI 3.4.3
MyGUI_ControllerEdgeHide.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_EDGE_HIDE_H_
8#define MYGUI_CONTROLLER_EDGE_HIDE_H_
9
10#include "MyGUI_Prerequest.h"
11#include "MyGUI_WidgetDefines.h"
13#include "MyGUI_Types.h"
14
15namespace MyGUI
16{
17
25 {
27
28 public:
32 void setTime(float _value);
33
37 void setRemainPixels(int _value);
38
42 void setShadowSize(int _value);
43
44 bool addTime(Widget* _widget, float _time) override;
45 void prepareItem(Widget* _widget) override;
46 void setProperty(std::string_view _key, std::string_view _value) override;
47
48 private:
49 void recalculateTime(Widget* _widget);
50
51 float mTime{1.0};
52 int mRemainPixels{0};
53 int mShadowSize{0};
54 float mElapsedTime{0};
55 // for checking if widget was moved
56 MyGUI::IntCoord mLastCoord;
57 };
58
59} // namespace MyGUI
60
61#endif // MYGUI_CONTROLLER_EDGE_HIDE_H_
#define MYGUI_EXPORT
#define MYGUI_RTTI_DERIVED(DerivedType)
Definition MyGUI_RTTI.h:69
bool addTime(Widget *_widget, float _time) override
void prepareItem(Widget *_widget) override
void setProperty(std::string_view _key, std::string_view _value) override
widget description should be here.
types::TCoord< int > IntCoord
Definition MyGUI_Types.h:36