MyGUI  3.2.1
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 
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 void setProperty(const std::string& _key, const std::string& _value);
43 
44  private:
45  bool addTime(Widget* _widget, float _time);
46  void prepareItem(Widget* _widget);
47 
48  private:
49  float mAlpha;
50  float mCoef;
51  bool mEnabled;
52  };
53 
54 } // namespace MyGUI
55 
56 #endif // __MYGUI_CONTROLLER_FADE_ALPHA_H__