MyGUI: MyGUI_ControllerEdgeHide.h Source File

MyGUI 3.4.2

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

- File List
- Globals

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 :
25 public ControllerItem
26 {
27 MYGUI_RTTI_DERIVED( ControllerEdgeHide )
28
29 public:
30 ControllerEdgeHide();
31
35 void setTime(float _value);
36
40 void setRemainPixels(int _value);
41
45 void setShadowSize(int _value);
46
47 bool addTime(Widget* _widget, float _time) override;
48 void prepareItem(Widget* _widget) override;
49 void setProperty(const std::string& _key, const std::string& _value) override;
50
51 private:
52 void recalculateTime(Widget* _widget);
53
54 float mTime;
55 int mRemainPixels;
56 int mShadowSize;
57 float mElapsedTime;
58 // for checking if widget was moved
59 MyGUI::IntCoord mLastCoord;
60 };
61
62} // namespace MyGUI
63
64#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:48
MyGUI_Types.h
MyGUI_WidgetDefines.h
MyGUI::ControllerEdgeHide
Definition MyGUI_ControllerEdgeHide.h:26
MyGUI::ControllerItem
Definition MyGUI_ControllerItem.h:27
MyGUI::Widget
widget description should be here.
Definition MyGUI_Widget.h:37
MyGUI
Definition MyGUI_ActionController.h:15
MyGUI::types::TCoord< int >