.. index:: pair: class; EE::UI::UISkin .. _doxid-class_e_e_1_1_u_i_1_1_u_i_skin: class EE::UI::UISkin ==================== .. toctree:: :hidden: .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class UISkin: public :ref:`EE::Graphics::StateListDrawable` { public: // construction :target:`UISkin`(const std::string& name = ""); virtual :target:`~UISkin`(); // methods static UISkin* :target:`New`(const std::string& name = ""); virtual :ref:`Sizef` :target:`getSize`(const :ref:`Uint32`& state); virtual :ref:`Sizef` :target:`getPixelsSize`(const :ref:`Uint32`& state); virtual :ref:`Sizef` :target:`getSize`(); virtual :ref:`Sizef` :target:`getPixelsSize`(); virtual UISkin* :target:`clone`(); virtual UISkin* :target:`clone`(const std::string& NewName); virtual :ref:`Rectf` :target:`getBorderSize`(const :ref:`Uint32`& state); virtual :ref:`Rectf` :target:`getBorderSize`(); }; 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; static :ref:`StateListDrawable`* :ref:`New`(const std::string& name = ""); virtual :ref:`Sizef` :ref:`getSize`(); virtual :ref:`Sizef` :ref:`getPixelsSize`(); virtual :ref:`Sizef` :ref:`getSize`(const :ref:`Uint32`& state); virtual :ref:`Sizef` :ref:`getPixelsSize`(const :ref:`Uint32`& state); virtual void :ref:`draw`(); virtual void :ref:`draw`(const :ref:`Vector2f`& position); virtual void :ref:`draw`(const :ref:`Vector2f`& position, const :ref:`Sizef`& size); virtual bool :ref:`isStateful`(); virtual :ref:`StatefulDrawable`* :ref:`setState`(:ref:`Uint32` state); virtual const :ref:`Uint32`& :ref:`getState`() const; virtual :ref:`Drawable`* :ref:`getStateDrawable`(const :ref:`Uint32`& state); virtual :ref:`StateListDrawable`* :ref:`setStateDrawable`(const :ref:`Uint32`& state, :ref:`Drawable`* drawable, bool ownIt = false); virtual :ref:`Sizef` :ref:`getStateSize`(const :ref:`Uint32`& state); virtual :ref:`StateListDrawable`* :ref:`setStateColor`(const :ref:`Uint32`& state, const :ref:`Color`& color); virtual :ref:`Color` :ref:`getStateColor`(const :ref:`Uint32`& state); virtual :ref:`StateListDrawable`* :ref:`setStateAlpha`(const :ref:`Uint32`& state, const :ref:`Uint8`& alpha); virtual :ref:`Uint8` :ref:`getStateAlpha`(const :ref:`Uint32`& state); bool :ref:`hasDrawableState`(const :ref:`Uint32`& state) const; bool :ref:`hasDrawableStateColor`(const :ref:`Uint32`& state) const; void :ref:`clearDrawables`();