MyGUI  3.2.2
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 
14 namespace MyGUI
15 {
16 
18  class MYGUI_EXPORT ControllerFadeAlpha :
19  public ControllerItem
20  {
22 
23  public:
25  virtual ~ControllerFadeAlpha();
26 
30  void setAlpha(float _value);
31 
35  void setCoef(float _value);
36 
40  void setEnabled(bool _value);
41 
42  virtual bool addTime(Widget* _widget, float _time);
43  virtual void prepareItem(Widget* _widget);
44  virtual void setProperty(const std::string& _key, const std::string& _value);
45 
46  private:
47  float mAlpha;
48  float mCoef;
49  bool mEnabled;
50  };
51 
52 } // namespace MyGUI
53 
54 #endif // MYGUI_CONTROLLER_FADE_ALPHA_H_
MyGUI_ControllerItem.h
MyGUI::Widget
Widget properties. Skin childs. Widget widget description should be here.
Definition: MyGUI_Widget.h:29
MyGUI::ControllerItem
Definition: MyGUI_ControllerItem.h:25
MyGUI_Prerequest.h
MYGUI_RTTI_DERIVED
#define MYGUI_RTTI_DERIVED(DerivedType)
Definition: MyGUI_RTTI.h:61
MyGUI_WidgetDefines.h
MyGUI::ControllerFadeAlpha
Definition: MyGUI_ControllerFadeAlpha.h:18
MyGUI
Definition: MyGUI_ActionController.h:14