MyGUI 3.4.3
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 {
21
22 public:
26 void setAlpha(float _value);
27
31 void setCoef(float _value);
32
36 void setEnabled(bool _value);
37
38 bool addTime(Widget* _widget, float _time) override;
39 void prepareItem(Widget* _widget) override;
40 void setProperty(std::string_view _key, std::string_view _value) override;
41
42 private:
43 float mAlpha{1};
44 float mCoef{1};
45 bool mEnabled{true};
46 };
47
48} // namespace MyGUI
49
50#endif // MYGUI_CONTROLLER_FADE_ALPHA_H_
#define MYGUI_EXPORT
#define MYGUI_RTTI_DERIVED(DerivedType)
Definition MyGUI_RTTI.h:69
widget description should be here.