MyGUI 3.2.0

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

- File List
- Globals

MyGUI_ControllerFadeAlpha.h
Go to the documentation of this file.
1
6 /*
7 This file is part of MyGUI.
8
9 MyGUI is free software: you can redistribute it and/or modify
10 it under the terms of the GNU Lesser General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
13
14 MyGUI is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU Lesser General Public License for more details.
18
19 You should have received a copy of the GNU Lesser General Public License
20 along with MyGUI. If not, see <http://www.gnu.org/licenses/>.
21 */
22 #ifndef __MYGUI_CONTROLLER_FADE_ALPHA_H__
23 #define __MYGUI_CONTROLLER_FADE_ALPHA_H__
24
25 #include "MyGUI_Prerequest.h"
26 #include "MyGUI_WidgetDefines.h"
27 #include "MyGUI_ControllerItem.h"
28
29 namespace MyGUI
30 {
31
33 class MYGUI_EXPORT ControllerFadeAlpha :
34 public ControllerItem
35 {
36 MYGUI_RTTI_DERIVED( ControllerFadeAlpha )
37
38 public:
39 ControllerFadeAlpha();
40 virtual ~ControllerFadeAlpha();
41
45 void setAlpha(float _value);
46
50 void setCoef(float _value);
51
55 void setEnabled(bool _value);
56
57 virtual void setProperty(const std::string& _key, const std::string& _value);
58
59 private:
60 bool addTime(Widget* _widget, float _time);
61 void prepareItem(Widget* _widget);
62
63 private:
64 float mAlpha;
65 float mCoef;
66 bool mEnabled;
67 };
68
69 } // namespace MyGUI
70
71 #endif // __MYGUI_CONTROLLER_FADE_ALPHA_H__
MyGUI::Widget
Definition: MyGUI_Widget.h:41
MyGUI_Prerequest.h
MyGUI_WidgetDefines.h
MYGUI_RTTI_DERIVED
#define MYGUI_RTTI_DERIVED(DerivedType)
Definition: MyGUI_RTTI.h:88
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition: MyGUI_Platform.h:120
MyGUI::ControllerFadeAlpha
Definition: MyGUI_ControllerFadeAlpha.h:33
MyGUI::ControllerItem
Definition: MyGUI_ControllerItem.h:34
MyGUI_ControllerItem.h