.. index:: pair: class; EE::Scene::Actions::MarginMove .. _doxid-class_e_e_1_1_scene_1_1_actions_1_1_margin_move: class EE::Scene::Actions::MarginMove ==================================== .. toctree:: :hidden: enum_EE_Scene_Actions_MarginMove_InterpolateFlag.rst Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class MarginMove: public :ref:`EE::Scene::Action` { public: // enums enum :ref:`InterpolateFlag`; // methods static MarginMove* :target:`New`(const :ref:`Rect`& start, const :ref:`Rect`& end, const :ref:`Time`& duration, const :ref:`Ease::Interpolation`& type = Ease::Linear, const :ref:`Uint32`& interpolateFlag = InterpolateFlag::All); virtual void :ref:`start`(); virtual void :ref:`stop`(); virtual void :ref:`update`(const :ref:`Time`& time); virtual bool :ref:`isDone`(); virtual :ref:`Action`* :ref:`clone`() const; virtual :ref:`Action`* :ref:`reverse`() const; virtual :ref:`Float` :ref:`getCurrentProgress`(); virtual :ref:`Time` :ref:`getTotalTime`(); :ref:`Interpolation1d` :target:`getInterpolationLeft`() const; void :target:`setInterpolationLeft`(const :ref:`Interpolation1d`& interpolationLeft); :ref:`Interpolation1d` :target:`getInterpolationRight`() const; void :target:`setInterpolationRight`(const :ref:`Interpolation1d`& interpolationRight); :ref:`Interpolation1d` :target:`getInterpolationTop`() const; void :target:`setInterpolationTop`(const :ref:`Interpolation1d`& interpolationTop); :ref:`Interpolation1d` :target:`getInterpolationBottom`() const; void :target:`setInterpolationBottom`(const :ref:`Interpolation1d`& interpolationBottom); }; Inherited Members ----------------- .. ref-code-block:: cpp :class: doxyrest-overview-inherited-code-block public: // typedefs typedef std::function`*, const :ref:`ActionType`&)> :ref:`ActionCallback`; typedef :ref:`Uint64` :ref:`UniqueID`; // enums enum :ref:`ActionType`; // methods virtual void :ref:`start`() = 0; virtual void :ref:`stop`() = 0; virtual void :ref:`update`(const :ref:`Time`& time) = 0; virtual bool :ref:`isDone`() = 0; virtual :ref:`Float` :ref:`getCurrentProgress`() = 0; virtual :ref:`Time` :ref:`getTotalTime`() = 0; virtual :ref:`Action`* :ref:`clone`() const; virtual :ref:`Action`* :ref:`reverse`() const; :ref:`Uint32` :ref:`getFlags`() const; void :ref:`setFlags`(const :ref:`Uint32`& flags); :ref:`UniqueID` :ref:`getTag`() const; void :ref:`setTag`(const :ref:`UniqueID`& tag); :ref:`Node`* :ref:`getTarget`() const; :ref:`Uint32` :ref:`addEventListener`(const :ref:`ActionType`& actionType, const :ref:`ActionCallback`& callback); :ref:`Action`* :ref:`on`(const :ref:`ActionType`& actionType, const :ref:`ActionCallback`& callback); void :ref:`removeEventListener`(const :ref:`Uint32`& callbackId); void :ref:`sendEvent`(const :ref:`ActionType`& actionType); void :ref:`setTarget`(:ref:`Node`* target); void :ref:`setId`(const :ref:`Action::UniqueID`& id); const :ref:`Action::UniqueID`& :ref:`getId`(); .. _details-class_e_e_1_1_scene_1_1_actions_1_1_margin_move: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Methods ------- .. index:: pair: function; start .. _doxid-class_e_e_1_1_scene_1_1_actions_1_1_margin_move_1ac09aeb718b3fe87a90fdfe8faa02429f: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual void start() Starts the action. .. index:: pair: function; stop .. _doxid-class_e_e_1_1_scene_1_1_actions_1_1_margin_move_1a04c8c5ef03747f3e47735e4f532da3cb: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual void stop() Stops the actions (pause it, it will not reset the animation state). .. index:: pair: function; update .. _doxid-class_e_e_1_1_scene_1_1_actions_1_1_margin_move_1a5af6bc645df602c8b0e2a83860a1d12e: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual void update(const :ref:`Time`& time) Update the action state (shouldn't be called manually unless you actually now what you are doing) .. index:: pair: function; isDone .. _doxid-class_e_e_1_1_scene_1_1_actions_1_1_margin_move_1a02747836e5e5afa4468736976089ff36: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual bool isDone() .. rubric:: Returns: If the action is completed. .. index:: pair: function; clone .. _doxid-class_e_e_1_1_scene_1_1_actions_1_1_margin_move_1a1bb0023507aa0bfa9866341f41564597: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual :ref:`Action`* clone() const Clones the action. .. index:: pair: function; reverse .. _doxid-class_e_e_1_1_scene_1_1_actions_1_1_margin_move_1a1e6b36a48a80b96cf824a2c81c46a204: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual :ref:`Action`* reverse() const Clones and reverse the action sequence. Note: not all actions can be reversed. .. index:: pair: function; getCurrentProgress .. _doxid-class_e_e_1_1_scene_1_1_actions_1_1_margin_move_1ae468ff2861c3968a19e9faca28c79325: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual :ref:`Float` getCurrentProgress() .. rubric:: Returns: The current progress percentage. Normalized between 0 and 1. .. index:: pair: function; getTotalTime .. _doxid-class_e_e_1_1_scene_1_1_actions_1_1_margin_move_1a85d9076704d024c257b3fa4491c314fa: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual :ref:`Time` getTotalTime() The total action time.