MyGUI 3.4.1
|
#include <MyGUI_ControllerPosition.h>
Public Types | |
typedef RTTIBase | Base |
typedef ControllerPosition | RTTIBase |
typedef delegates::CDelegate4< const IntCoord &, const IntCoord &, IntCoord &, float > | FrameAction |
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 override |
virtual bool | isType (const std::type_info &_type) const override |
template<typename Type > | |
bool | isType () const |
ControllerPosition () | |
void | setCoord (const IntCoord &_value) |
void | setSize (const IntSize &_value) |
void | setPosition (const IntPoint &_value) |
void | setFunction (const std::string &_value) |
void | setTime (float _value) |
void | setAction (FrameAction::IDelegate *_value) |
bool | addTime (Widget *_widget, float _time) override |
void | prepareItem (Widget *_widget) override |
void | setProperty (const std::string &_key, const std::string &_value) override |
Public Member Functions inherited from MyGUI::ControllerItem | |
virtual const std::string & | getTypeName () const override |
virtual bool | isType (const std::type_info &_type) const override |
template<typename Type > | |
bool | isType () const |
~ControllerItem () override=default | |
virtual void | prepareItem (Widget *_widget)=0 |
virtual bool | addTime (Widget *_widget, float _time)=0 |
virtual void | setProperty (const std::string &_key, const std::string &_value) |
Public Member Functions inherited from MyGUI::IObject | |
virtual const std::string & | getTypeName () const |
virtual bool | isType (const std::type_info &_type) const |
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 ()=default | |
virtual | ~IObject ()=default |
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 |
This controller used for smooth changing position of widget in time
Definition at line 20 of file MyGUI_ControllerPosition.h.
Definition at line 23 of file MyGUI_ControllerPosition.h.
typedef delegates::CDelegate4<const IntCoord&, const IntCoord&, IntCoord&, float> MyGUI::ControllerPosition::FrameAction |
Definition at line 26 of file MyGUI_ControllerPosition.h.
Definition at line 23 of file MyGUI_ControllerPosition.h.
MyGUI::ControllerPosition::ControllerPosition | ( | ) |
Definition at line 18 of file MyGUI_ControllerPosition.cpp.
|
overridevirtual |
Implements MyGUI::ControllerItem.
Definition at line 60 of file MyGUI_ControllerPosition.cpp.
|
inlinestatic |
Definition at line 23 of file MyGUI_ControllerPosition.h.
|
inlineoverridevirtual |
Get type name as string
Reimplemented from MyGUI::ControllerItem.
Definition at line 23 of file MyGUI_ControllerPosition.h.
|
inline |
Compare with selected type
Definition at line 23 of file MyGUI_ControllerPosition.h.
|
inlineoverridevirtual |
Compare with selected type
Reimplemented from MyGUI::ControllerItem.
Definition at line 23 of file MyGUI_ControllerPosition.h.
|
overridevirtual |
Implements MyGUI::ControllerItem.
Definition at line 50 of file MyGUI_ControllerPosition.cpp.
void MyGUI::ControllerPosition::setAction | ( | FrameAction::IDelegate * | _value | ) |
_value | Delegate applied to widget every frame (see ControllerPosition::eventFrameAction) |
Definition at line 133 of file MyGUI_ControllerPosition.cpp.
void MyGUI::ControllerPosition::setCoord | ( | const IntCoord & | _value | ) |
Definition at line 27 of file MyGUI_ControllerPosition.cpp.
void MyGUI::ControllerPosition::setFunction | ( | const std::string & | _value | ) |
Set acceleration behavior, same as calling controller->setAction(MyGUI::newDelegate(chosen by value))
_value | could be one of "Linear" (default) |
Definition at line 114 of file MyGUI_ControllerPosition.cpp.
void MyGUI::ControllerPosition::setPosition | ( | const IntPoint & | _value | ) |
Definition at line 42 of file MyGUI_ControllerPosition.cpp.
|
overridevirtual |
Reimplemented from MyGUI::ControllerItem.
Definition at line 100 of file MyGUI_ControllerPosition.cpp.
void MyGUI::ControllerPosition::setSize | ( | const IntSize & | _value | ) |
Definition at line 34 of file MyGUI_ControllerPosition.cpp.
void MyGUI::ControllerPosition::setTime | ( | float | _value | ) |
_value | seconds in which widget planned to reach destination coordinate |
Definition at line 128 of file MyGUI_ControllerPosition.cpp.