MyGUI
3.2.1
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
File List
Globals
mygui
MyGUIEngine
include
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
void
setProperty(const std::
string
& _key, const std::
string
& _value);
49
50
private:
51
bool
addTime(
Widget
* _widget,
float
_time);
52
void
prepareItem(
Widget
* _widget);
53
54
void
recalculateTime(
Widget
* _widget);
55
56
float
mTime;
57
int
mRemainPixels;
58
int
mShadowSize;
59
float
mElapsedTime;
60
// for checking if widget was moved
61
MyGUI::
IntCoord
mLastCoord;
62
};
63
64
}
// namespace MyGUI
65
66
#endif // __MYGUI_CONTROLLER_EDGE_HIDE_H__
Generated on Wed Aug 20 2014 00:03:32 for MyGUI by
1.8.3.1