MyGUI
3.2.1
|
00001 /* 00002 * This source file is part of MyGUI. For the latest info, see http://mygui.info/ 00003 * Distributed under the MIT License 00004 * (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT) 00005 */ 00006 00007 #ifndef __MYGUI_CONTROLLER_FADE_ALPHA_H__ 00008 #define __MYGUI_CONTROLLER_FADE_ALPHA_H__ 00009 00010 #include "MyGUI_Prerequest.h" 00011 #include "MyGUI_WidgetDefines.h" 00012 #include "MyGUI_ControllerItem.h" 00013 00014 namespace MyGUI 00015 { 00016 00018 class MYGUI_EXPORT ControllerFadeAlpha : 00019 public ControllerItem 00020 { 00021 MYGUI_RTTI_DERIVED( ControllerFadeAlpha ) 00022 00023 public: 00024 ControllerFadeAlpha(); 00025 virtual ~ControllerFadeAlpha(); 00026 00030 void setAlpha(float _value); 00031 00035 void setCoef(float _value); 00036 00040 void setEnabled(bool _value); 00041 00042 virtual void setProperty(const std::string& _key, const std::string& _value); 00043 00044 private: 00045 bool addTime(Widget* _widget, float _time); 00046 void prepareItem(Widget* _widget); 00047 00048 private: 00049 float mAlpha; 00050 float mCoef; 00051 bool mEnabled; 00052 }; 00053 00054 } // namespace MyGUI 00055 00056 #endif // __MYGUI_CONTROLLER_FADE_ALPHA_H__