MyGUI: MyGUI_ControllerFadeAlpha.h Source File

MyGUI 3.4.2

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

- File List
- Globals

MyGUI_ControllerFadeAlpha.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_FADE_ALPHA_H_
8#define MYGUI_CONTROLLER_FADE_ALPHA_H_
9
10#include "MyGUI_Prerequest.h"
11#include "MyGUI_WidgetDefines.h"
12#include "MyGUI_ControllerItem.h"
13
14namespace MyGUI
15{
16
18 class MYGUI_EXPORT ControllerFadeAlpha :
19 public ControllerItem
20 {
21 MYGUI_RTTI_DERIVED( ControllerFadeAlpha )
22
23 public:
24 ControllerFadeAlpha();
25
29 void setAlpha(float _value);
30
34 void setCoef(float _value);
35
39 void setEnabled(bool _value);
40
41 bool addTime(Widget* _widget, float _time) override;
42 void prepareItem(Widget* _widget) override;
43 void setProperty(const std::string& _key, const std::string& _value) override;
44
45 private:
46 float mAlpha;
47 float mCoef;
48 bool mEnabled;
49 };
50
51} // namespace MyGUI
52
53#endif // MYGUI_CONTROLLER_FADE_ALPHA_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_WidgetDefines.h
MyGUI::ControllerFadeAlpha
Definition MyGUI_ControllerFadeAlpha.h:20
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