.. index:: pair: class; EE::Scene::Actions::Tint .. _doxid-class_e_e_1_1_scene_1_1_actions_1_1_tint: class EE::Scene::Actions::Tint ============================== .. toctree:: :hidden: enum_EE_Scene_Actions_Tint_TintType.rst Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class Tint: public :ref:`EE::Scene::Action` { public: // enums enum :ref:`TintType`; // methods static Tint* :target:`New`( const :ref:`Color`& start, const :ref:`Color`& end, const bool& interpolateAlpha, const :ref:`Time`& duration, const :ref:`Ease::Interpolation`& type = Ease::Linear, const :ref:`TintType`& colorInterpolationType = :ref:`Background`, const :ref:`Uint32`& elemIndex = 0 ); 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:`getInterpolationR`() const; void :target:`setInterpolationR`(const :ref:`Interpolation1d`& interpolationR); :ref:`Interpolation1d` :target:`getInterpolationG`() const; void :target:`setInterpolationG`(const :ref:`Interpolation1d`& interpolationG); :ref:`Interpolation1d` :target:`getInterpolationB`() const; void :target:`setInterpolationB`(const :ref:`Interpolation1d`& interpolationB); :ref:`Interpolation1d` :target:`getInterpolationA`() const; void :target:`setInterpolationA`(const :ref:`Interpolation1d`& interpolationA); }; 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_tint: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Methods ------- .. index:: pair: function; start .. _doxid-class_e_e_1_1_scene_1_1_actions_1_1_tint_1a9c73f218f78affed1cda148d3b69d98d: .. 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_tint_1ab4800087ef2b79fdbb64c0a0d9781c71: .. 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_tint_1afb0f0dc18acb5df828fe29ea26510d34: .. 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_tint_1a20fd3bcc177adad47c26f8c35bf13a28: .. 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_tint_1a2f0b6a9545dff77e8d1f45c8f42fbb1a: .. 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_tint_1ab0eeb80583226f663acc8bd338974408: .. 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_tint_1a2be714e52eb454558880ef7edc10951d: .. 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_tint_1a886cf7334951c31959a95aabc330aa10: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual :ref:`Time` getTotalTime() The total action time.