MyGUI: MyGUI_ControllerEdgeHide.h Source File

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"
12#include "MyGUI_ControllerItem.h"
13#include "MyGUI_Types.h"
14
15namespace MyGUI
16{
17
24 class MYGUI_EXPORT ControllerEdgeHide : public ControllerItem
25 {
26 MYGUI_RTTI_DERIVED(ControllerEdgeHide)
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_
MyGUI_ControllerItem.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:69
MyGUI_Types.h
MyGUI_WidgetDefines.h
MyGUI::ControllerEdgeHide
Definition MyGUI_ControllerEdgeHide.h:25
MyGUI::ControllerEdgeHide::setRemainPixels
void setRemainPixels(int _value)
Definition MyGUI_ControllerEdgeHide.cpp:168
MyGUI::ControllerEdgeHide::setShadowSize
void setShadowSize(int _value)
Definition MyGUI_ControllerEdgeHide.cpp:173
MyGUI::ControllerEdgeHide::setTime
void setTime(float _value)
Definition MyGUI_ControllerEdgeHide.cpp:163
MyGUI::ControllerEdgeHide::addTime
bool addTime(Widget *_widget, float _time) override
Definition MyGUI_ControllerEdgeHide.cpp:29
MyGUI::ControllerEdgeHide::prepareItem
void prepareItem(Widget *_widget) override
Definition MyGUI_ControllerEdgeHide.cpp:22
MyGUI::ControllerEdgeHide::setProperty
void setProperty(std::string_view _key, std::string_view _value) override
Definition MyGUI_ControllerEdgeHide.cpp:117
MyGUI::ControllerItem
Definition MyGUI_ControllerItem.h:26
MyGUI::Widget
widget description should be here.
Definition MyGUI_Widget.h:40
MyGUI
Definition MyGUI_ActionController.h:15
MyGUI::IntCoord
types::TCoord< int > IntCoord
Definition MyGUI_Types.h:36