MyGUI 3.4.3
|
#include <MyGUI_ControllerPosition.h>
Public Types | |
typedef RTTIBase | Base |
typedef ControllerPosition | RTTIBase |
using | FrameAction = delegates::Delegate<const IntCoord&, const IntCoord&, IntCoord&, float> |
![]() | |
typedef RTTIBase | Base |
typedef ControllerItem | RTTIBase |
![]() | |
typedef IObject | RTTIBase |
Public Member Functions | |
virtual std::string_view | getTypeName () const override |
virtual bool | isType (const std::type_info &_type) const override |
template<typename Type > | |
bool | isType () const |
ControllerPosition () | |
void | setCoord (const IntCoord &_destCoord) |
void | setSize (const IntSize &_destSize) |
void | setPosition (const IntPoint &_destPoint) |
void | setFunction (std::string_view _value) |
void | setTime (float _value) |
void | setAction (FrameAction::IDelegate *_value) |
bool | addTime (Widget *_widget, float _time) override |
void | prepareItem (Widget *_widget) override |
void | setProperty (std::string_view _key, std::string_view _value) override |
![]() | |
template<typename Type > | |
bool | isType () 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 |
virtual | ~IObject ()=default |
Static Public Member Functions | |
static std::string_view | getClassTypeName () |
![]() | |
static std::string_view | getClassTypeName () |
![]() | |
static std::string_view | getClassTypeName () |
Additional Inherited Members | |
![]() | |
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 22 of file MyGUI_ControllerPosition.h.
using MyGUI::ControllerPosition::FrameAction = delegates::Delegate<const IntCoord&, const IntCoord&, IntCoord&, float> |
Definition at line 25 of file MyGUI_ControllerPosition.h.
Definition at line 22 of file MyGUI_ControllerPosition.h.
MyGUI::ControllerPosition::ControllerPosition | ( | ) |
Definition at line 18 of file MyGUI_ControllerPosition.cpp.
|
overridevirtual |
Implements MyGUI::ControllerItem.
Definition at line 56 of file MyGUI_ControllerPosition.cpp.
|
inlinestatic |
Definition at line 22 of file MyGUI_ControllerPosition.h.
|
inlineoverridevirtual |
Get type name as string
Reimplemented from MyGUI::ControllerItem.
Definition at line 22 of file MyGUI_ControllerPosition.h.
|
inline |
Compare with selected type
Definition at line 22 of file MyGUI_ControllerPosition.h.
|
inlineoverridevirtual |
Compare with selected type
Reimplemented from MyGUI::ControllerItem.
Definition at line 22 of file MyGUI_ControllerPosition.h.
|
overridevirtual |
Implements MyGUI::ControllerItem.
Definition at line 46 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 135 of file MyGUI_ControllerPosition.cpp.
void MyGUI::ControllerPosition::setCoord | ( | const IntCoord & | _destCoord | ) |
Definition at line 23 of file MyGUI_ControllerPosition.cpp.
void MyGUI::ControllerPosition::setFunction | ( | std::string_view | _value | ) |
Set acceleration behavior, same as calling controller->setAction(MyGUI::newDelegate(chosen by value))
_value | could be one of "Linear" (default) |
Definition at line 116 of file MyGUI_ControllerPosition.cpp.
void MyGUI::ControllerPosition::setPosition | ( | const IntPoint & | _destPoint | ) |
Definition at line 38 of file MyGUI_ControllerPosition.cpp.
|
overridevirtual |
Reimplemented from MyGUI::ControllerItem.
Definition at line 102 of file MyGUI_ControllerPosition.cpp.
void MyGUI::ControllerPosition::setSize | ( | const IntSize & | _destSize | ) |
Definition at line 30 of file MyGUI_ControllerPosition.cpp.
void MyGUI::ControllerPosition::setTime | ( | float | _value | ) |
_value | seconds in which widget planned to reach destination coordinate |
Definition at line 130 of file MyGUI_ControllerPosition.cpp.