MyGUI_ControllerFadeAlpha.h
Go to the documentation of this file.
/*
* This source file is part of MyGUI. For the latest info, see http://mygui.info/
* Distributed under the MIT License
* (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
*/
#ifndef MYGUI_CONTROLLER_FADE_ALPHA_H_
#define MYGUI_CONTROLLER_FADE_ALPHA_H_
#include "MyGUI_Prerequest.h"
#include "MyGUI_WidgetDefines.h"
#include "MyGUI_ControllerItem.h"
namespace MyGUI
{
class MYGUI_EXPORT ControllerFadeAlpha : public ControllerItem
{
MYGUI_RTTI_DERIVED(ControllerFadeAlpha)
public:
void setAlpha(float _value);
void setCoef(float _value);
void setEnabled(bool _value);
bool addTime(Widget* _widget, float _time) override;
void prepareItem(Widget* _widget) override;
void setProperty(std::string_view _key, std::string_view _value) override;
private:
float mAlpha{1};
float mCoef{1};
bool mEnabled{true};
};
} // namespace MyGUI
#endif // MYGUI_CONTROLLER_FADE_ALPHA_H_
MyGUI_ControllerItem.h
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition MyGUI_Platform.h:77
MyGUI_Prerequest.h
MYGUI_RTTI_DERIVED
#define MYGUI_RTTI_DERIVED(DerivedType)
Definition MyGUI_RTTI.h:69
MyGUI_WidgetDefines.h
MyGUI::ControllerFadeAlpha
Definition MyGUI_ControllerFadeAlpha.h:19
MyGUI::ControllerFadeAlpha::setProperty
void setProperty(std::string_view _key, std::string_view _value) override
Definition MyGUI_ControllerFadeAlpha.cpp:73
MyGUI::ControllerFadeAlpha::setAlpha
void setAlpha(float _value)
Definition MyGUI_ControllerFadeAlpha.cpp:83
MyGUI::ControllerFadeAlpha::prepareItem
void prepareItem(Widget *_widget) override
Definition MyGUI_ControllerFadeAlpha.cpp:17
MyGUI::ControllerFadeAlpha::setCoef
void setCoef(float _value)
Definition MyGUI_ControllerFadeAlpha.cpp:88
MyGUI::ControllerFadeAlpha::setEnabled
void setEnabled(bool _value)
Definition MyGUI_ControllerFadeAlpha.cpp:93
MyGUI::ControllerFadeAlpha::addTime
bool addTime(Widget *_widget, float _time) override
Definition MyGUI_ControllerFadeAlpha.cpp:37
MyGUI::ControllerItem
Definition MyGUI_ControllerItem.h:26
MyGUI::Widget
widget description should be here.
Definition MyGUI_Widget.h:40
MyGUI
Definition MyGUI_ActionController.h:15