MyGUI
3.4.3
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
File List
Globals
MyGUIEngine
include
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
18
class
MYGUI_EXPORT
ControllerFadeAlpha
:
public
ControllerItem
19
{
20
MYGUI_RTTI_DERIVED
(
ControllerFadeAlpha
)
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_
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::ControllerItem
Definition
MyGUI_ControllerItem.h:26
MyGUI::Widget
widget description should be here.
Definition
MyGUI_Widget.h:40
MyGUI
Definition
MyGUI_ActionController.h:15
Generated by
1.12.0