.. index:: pair: class; EE::UI::UINodeDrawable .. _doxid-class_e_e_1_1_u_i_1_1_u_i_node_drawable: class EE::UI::UINodeDrawable ============================ .. toctree:: :hidden: enum_EE_UI_UINodeDrawable_Repeat.rst class_EE_UI_UINodeDrawable_LayerDrawable.rst .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class UINodeDrawable: public :ref:`EE::Graphics::Drawable` { public: // enums enum :ref:`Repeat`; // classes class :ref:`LayerDrawable`; // construction :target:`UINodeDrawable`(:ref:`UINode`* owner); virtual :target:`~UINodeDrawable`(); // methods static :ref:`Repeat` :target:`repeatFromText`(const std::string& text); static UINodeDrawable* :target:`New`(:ref:`UINode`* owner); virtual :ref:`Sizef` :target:`getSize`(); virtual :ref:`Sizef` :target:`getPixelsSize`(); virtual void :target:`setSize`(const :ref:`Sizef`& size); virtual void :target:`draw`(); virtual void :target:`draw`(const :ref:`Vector2f`& position); virtual void :target:`draw`(const :ref:`Vector2f`& position, const :ref:`Sizef`& size); void :target:`draw`(const :ref:`Vector2f`& position, const :ref:`Sizef`& size, const :ref:`Uint32`& alpha); virtual bool :target:`isStateful`(); void :target:`clearDrawables`(); void :target:`setBorderRadius`(const :ref:`Uint32`& radius); :ref:`Uint32` :target:`getBorderRadius`() const; bool :target:`layerExists`(int index); :ref:`LayerDrawable`* :target:`getLayer`(int index); void :target:`setDrawable`(int index, :ref:`Drawable`* drawable, bool ownIt); void :target:`setDrawable`(int index, const std::string& drawable); void :target:`setDrawablePositionX`(int index, const std::string& positionX); void :target:`setDrawablePositionY`(int index, const std::string& positionY); void :target:`setDrawableRepeat`(int index, const std::string& repeatRule); void :target:`setDrawableSize`(int index, const std::string& sizeEq); void :target:`setDrawableColor`(int index, const :ref:`Color`& color); void :target:`setBackgroundColor`(const :ref:`Color`& color); :ref:`Color` :target:`getBackgroundColor`() const; bool :target:`getClipEnabled`() const; void :target:`setClipEnabled`(bool clipEnabled); void :target:`invalidate`(); :ref:`UINode`* :target:`getOwner`() const; :ref:`UIBackgroundDrawable`& :target:`getBackgroundDrawable`(); bool :target:`isSmooth`() const; void :target:`setSmooth`(bool smooth); }; Inherited Members ----------------- .. ref-code-block:: cpp :class: doxyrest-overview-inherited-code-block public: // enums enum :ref:`Type`; // 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;