MyGUI 3.2.2

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files
- Examples

- Data Structures
- Data Structure Index
- Class Hierarchy
- Data Fields

Public Types | Public Member Functions | Static Public Member Functions
MyGUI::ControllerFadeAlpha Class Reference

`#include <MyGUI_ControllerFadeAlpha.h>`

Inheritance diagram for MyGUI::ControllerFadeAlpha:
[legend]

## Public Types
typedef RTTIBase | Base
typedef ControllerFadeAlpha | RTTIBase
Public Types inherited from MyGUI::ControllerItem
typedef RTTIBase | Base
typedef ControllerItem | RTTIBase
Public Types inherited from MyGUI::IObject
typedef IObject | RTTIBase

## Public Member Functions
virtual const std::string & | getTypeName () const
virtual bool | isType (const std::type_info &_type) const
template<typename Type >
bool | isType () const
| ControllerFadeAlpha ()
virtual | ~ControllerFadeAlpha ()
void | setAlpha (float _value)
void | setCoef (float _value)
void | setEnabled (bool _value)
virtual bool | addTime (Widget *_widget, float _time)
virtual void | prepareItem (Widget *_widget)
virtual void | setProperty (const std::string &_key, const std::string &_value)
Public Member Functions inherited from MyGUI::ControllerItem
template<typename Type >
bool | isType () const
virtual | ~ControllerItem ()
Public Member Functions inherited from MyGUI::IObject
template<typename Type >
bool | isType () const
template<typename Type >
Type * | castType (bool _throw=true)
template<typename Type >
const Type * | castType (bool _throw=true) const
| IObject ()
virtual | ~IObject ()

## Static Public Member Functions
static const std::string & | getClassTypeName ()
Static Public Member Functions inherited from MyGUI::ControllerItem
static const std::string & | getClassTypeName ()
Static Public Member Functions inherited from MyGUI::IObject
static const std::string & | getClassTypeName ()

## Additional Inherited Members
Data Fields inherited from MyGUI::ControllerItem
EventPairAddParameter< EventHandle_WidgetPtr, EventHandle_WidgetPtrControllerItemPtr > | eventPreAction
EventPairAddParameter< EventHandle_WidgetPtr, EventHandle_WidgetPtrControllerItemPtr > | eventUpdateAction
EventPairAddParameter< EventHandle_WidgetPtr, EventHandle_WidgetPtrControllerItemPtr > | eventPostAction

## Detailed Description

This controller used for smooth changing alpha of widget in time

Definition at line 18 of file MyGUI_ControllerFadeAlpha.h.

## Member Typedef Documentation

typedef RTTIBase MyGUI::ControllerFadeAlpha::Base

Definition at line 21 of file MyGUI_ControllerFadeAlpha.h.

typedef ControllerFadeAlpha MyGUI::ControllerFadeAlpha::RTTIBase

Definition at line 21 of file MyGUI_ControllerFadeAlpha.h.

## Constructor & Destructor Documentation

MyGUI::ControllerFadeAlpha::ControllerFadeAlpha | ( |  | ) |

Definition at line 17 of file MyGUI_ControllerFadeAlpha.cpp.

MyGUI::ControllerFadeAlpha::~ControllerFadeAlpha | ( |  | ) |
| virtual

Definition at line 24 of file MyGUI_ControllerFadeAlpha.cpp.

## Member Function Documentation

bool MyGUI::ControllerFadeAlpha::addTime | ( | Widget * | _widget,
|  | float | _time
| ) |  |
| virtual

Implements MyGUI::ControllerItem.

Definition at line 46 of file MyGUI_ControllerFadeAlpha.cpp.

static const std::string& MyGUI::ControllerFadeAlpha::getClassTypeName | ( |  | ) |
| inline static

Definition at line 21 of file MyGUI_ControllerFadeAlpha.h.

virtual const std::string& MyGUI::ControllerFadeAlpha::getTypeName | ( |  | ) | const
| inline virtual

Get type name as string

Reimplemented from MyGUI::ControllerItem.

Definition at line 21 of file MyGUI_ControllerFadeAlpha.h.

template<typename Type >

bool MyGUI::ControllerFadeAlpha::isType | ( |  | ) | const
| inline

Compare with selected type

Definition at line 21 of file MyGUI_ControllerFadeAlpha.h.

virtual bool MyGUI::ControllerFadeAlpha::isType | ( | const std::type_info & | _type | ) | const
| inline virtual

Compare with selected type

Reimplemented from MyGUI::ControllerItem.

Definition at line 21 of file MyGUI_ControllerFadeAlpha.h.

void MyGUI::ControllerFadeAlpha::prepareItem | ( | Widget * | _widget | ) |
| virtual

Implements MyGUI::ControllerItem.

Definition at line 28 of file MyGUI_ControllerFadeAlpha.cpp.

void MyGUI::ControllerFadeAlpha::setAlpha | ( | float | _value | ) |

Parameters

  _value | Alpha that will be as result of changing

Definition at line 96 of file MyGUI_ControllerFadeAlpha.cpp.

void MyGUI::ControllerFadeAlpha::setCoef | ( | float | _value | ) |

Parameters

  _value | Coefficient of alpha changing speed (1. mean that alpha will change from 0 to 1 at 1 second)

Definition at line 101 of file MyGUI_ControllerFadeAlpha.cpp.

void MyGUI::ControllerFadeAlpha::setEnabled | ( | bool | _value | ) |

Parameters

  _value | If true then widget will be inactive after start of alpha changing

Definition at line 106 of file MyGUI_ControllerFadeAlpha.cpp.

void MyGUI::ControllerFadeAlpha::setProperty | ( | const std::string & | _key,
|  | const std::string & | _value
| ) |  |
| virtual

Reimplemented from MyGUI::ControllerItem.

Definition at line 86 of file MyGUI_ControllerFadeAlpha.cpp.

The documentation for this class was generated from the following files:

- MyGUI_ControllerFadeAlpha.h
- MyGUI_ControllerFadeAlpha.cpp