MyGUI 3.4.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"
13
14namespace MyGUI
15{
16
19 public ControllerItem
20 {
22
23 public:
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_
#define MYGUI_EXPORT
#define MYGUI_RTTI_DERIVED(DerivedType)
Definition: MyGUI_RTTI.h:48
widget description should be here.
Definition: MyGUI_Widget.h:37