MyGUI 3.2.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
15 namespace MyGUI
16 {
17
24 class MYGUI_EXPORT ControllerEdgeHide :
25 public ControllerItem
26 {
27 MYGUI_RTTI_DERIVED( ControllerEdgeHide )
28
29 public:
30 ControllerEdgeHide();
31 virtual ~ControllerEdgeHide();
32
36 void setTime(float _value);
37
41 void setRemainPixels(int _value);
42
46 void setShadowSize(int _value);
47
48 virtual bool addTime(Widget* _widget, float _time);
49 virtual void prepareItem(Widget* _widget);
50 virtual void setProperty(const std::string& _key, const std::string& _value);
51
52 private:
53 void recalculateTime(Widget* _widget);
54
55 float mTime;
56 int mRemainPixels;
57 int mShadowSize;
58 float mElapsedTime;
59 // for checking if widget was moved
60 MyGUI::IntCoord mLastCoord;
61 };
62
63 } // namespace MyGUI
64
65 #endif // MYGUI_CONTROLLER_EDGE_HIDE_H_
MyGUI::types::TCoord< int >
MyGUI::Widget
Widget properties. Widget_skin_childs Skin childs. Widget widget description should be here...
Definition: MyGUI_Widget.h:29
MyGUI_Prerequest.h
MyGUI::ControllerEdgeHide
Definition: MyGUI_ControllerEdgeHide.h:24
MyGUI_WidgetDefines.h
MyGUI_Types.h
MyGUI
Definition: MyGUI_ActionController.h:14
MYGUI_RTTI_DERIVED
#define MYGUI_RTTI_DERIVED(DerivedType)
Definition: MyGUI_RTTI.h:65
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition: MyGUI_Platform.h:103
MyGUI::ControllerItem
Definition: MyGUI_ControllerItem.h:25
MyGUI_ControllerItem.h