.. index:: pair: class; EE::Graphics::StateListDrawable .. _doxid-class_e_e_1_1_graphics_1_1_state_list_drawable: class EE::Graphics::StateListDrawable ===================================== .. toctree:: :hidden: .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class StateListDrawable: public :ref:`EE::Graphics::StatefulDrawable` { public: // construction :target:`StateListDrawable`(const std::string& name = ""); virtual :target:`~StateListDrawable`(); // methods static StateListDrawable* :target:`New`(const std::string& name = ""); virtual :ref:`Sizef` :target:`getSize`(); virtual :ref:`Sizef` :target:`getPixelsSize`(); virtual :ref:`Sizef` :target:`getSize`(const :ref:`Uint32`& state); virtual :ref:`Sizef` :target:`getPixelsSize`(const :ref:`Uint32`& state); virtual void :target:`draw`(); virtual void :target:`draw`(const :ref:`Vector2f`& position); virtual void :target:`draw`(const :ref:`Vector2f`& position, const :ref:`Sizef`& size); virtual bool :target:`isStateful`(); virtual :ref:`StatefulDrawable`* :target:`setState`(:ref:`Uint32` state); virtual const :ref:`Uint32`& :target:`getState`() const; virtual :ref:`Drawable`* :target:`getStateDrawable`(const :ref:`Uint32`& state); virtual StateListDrawable* :target:`setStateDrawable`(const :ref:`Uint32`& state, :ref:`Drawable`* drawable, bool ownIt = false); virtual :ref:`Sizef` :target:`getStateSize`(const :ref:`Uint32`& state); virtual StateListDrawable* :target:`setStateColor`(const :ref:`Uint32`& state, const :ref:`Color`& color); virtual :ref:`Color` :target:`getStateColor`(const :ref:`Uint32`& state); virtual StateListDrawable* :target:`setStateAlpha`(const :ref:`Uint32`& state, const :ref:`Uint8`& alpha); virtual :ref:`Uint8` :target:`getStateAlpha`(const :ref:`Uint32`& state); bool :target:`hasDrawableState`(const :ref:`Uint32`& state) const; bool :target:`hasDrawableStateColor`(const :ref:`Uint32`& state) const; void :target:`clearDrawables`(); }; Inherited Members ----------------- .. ref-code-block:: cpp :class: doxyrest-overview-inherited-code-block public: // typedefs typedef std::function`, :ref:`Event`, :ref:`DrawableResource`*)> :ref:`OnResourceChangeCallback`; // enums enum :ref:`Type`; enum :ref:`Event`; // methods virtual :ref:`Sizef` :ref:`getSize`() = 0; virtual :ref:`Sizef` :ref:`getPixelsSize`() = 0; virtual void :ref:`draw`() = 0; virtual void :ref:`draw`(const :ref:`Vector2f`& position) = 0; virtual void :ref:`draw`(const :ref:`Vector2f`& position, const :ref:`Sizef`& size) = 0; virtual bool :ref:`isStateful`() = 0; void :ref:`setAlpha`(:ref:`Uint8` alpha); const :ref:`Uint8`& :ref:`getAlpha`(); void :ref:`setColor`(const :ref:`Color`& color); const :ref:`Color`& :ref:`getColor`() const; void :ref:`setColorFilter`(const :ref:`Color`& color); :ref:`RGB` :ref:`getColorFilter`(); void :ref:`clearColor`(); void :ref:`clearColorFilter`(); void :ref:`resetAlpha`(); :ref:`Type` :ref:`getDrawableType`() const; const :ref:`Vector2f`& :ref:`getPosition`() const; void :ref:`setPosition`(const :ref:`Vector2f`& position); virtual bool :ref:`isDrawableResource`() const; const :ref:`String::HashType`& :ref:`getId`() const; const std::string :ref:`getName`() const; void :ref:`setName`(const std::string& name); virtual bool :ref:`isDrawableResource`() const; :ref:`Uint32` :ref:`pushResourceChangeCallback`(const :ref:`OnResourceChangeCallback`& cb); bool :ref:`popResourceChangeCallback`(const :ref:`Uint32`& callbackId); virtual :ref:`StatefulDrawable`* :ref:`setState`(:ref:`Uint32` state) = 0; virtual const :ref:`Uint32`& :ref:`getState`() const = 0;