.. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/master/docs/gdscript/doc/classes/NinePatchRect.xml. .. _class_NinePatchRect: NinePatchRect ============= **Inherits:** :ref:`Control` **<** :ref:`CanvasItem` **<** :ref:`Node` **<** :ref:`Object` .. container:: contribute There is currently no description for this class. Please help us by :ref:`contributing one `! .. rst-class:: classref-reftable-group Properties ---------- .. table:: :widths: auto +------------------------------------------------------------+--------------------------------------------------------------------------------------+-----------------------------------------------------------------------+ | :ref:`AxisStretchMode` | :ref:`axis_stretch_horizontal` | ``0`` | +------------------------------------------------------------+--------------------------------------------------------------------------------------+-----------------------------------------------------------------------+ | :ref:`AxisStretchMode` | :ref:`axis_stretch_vertical` | ``0`` | +------------------------------------------------------------+--------------------------------------------------------------------------------------+-----------------------------------------------------------------------+ | :ref:`bool` | :ref:`draw_center` | ``true`` | +------------------------------------------------------------+--------------------------------------------------------------------------------------+-----------------------------------------------------------------------+ | :ref:`MouseFilter` | mouse_filter | ``2`` (overrides :ref:`Control`) | +------------------------------------------------------------+--------------------------------------------------------------------------------------+-----------------------------------------------------------------------+ | :ref:`int` | :ref:`patch_margin_bottom` | ``0`` | +------------------------------------------------------------+--------------------------------------------------------------------------------------+-----------------------------------------------------------------------+ | :ref:`int` | :ref:`patch_margin_left` | ``0`` | +------------------------------------------------------------+--------------------------------------------------------------------------------------+-----------------------------------------------------------------------+ | :ref:`int` | :ref:`patch_margin_right` | ``0`` | +------------------------------------------------------------+--------------------------------------------------------------------------------------+-----------------------------------------------------------------------+ | :ref:`int` | :ref:`patch_margin_top` | ``0`` | +------------------------------------------------------------+--------------------------------------------------------------------------------------+-----------------------------------------------------------------------+ | :ref:`Rect2` | :ref:`region_rect` | ``Rect2(0, 0, 0, 0)`` | +------------------------------------------------------------+--------------------------------------------------------------------------------------+-----------------------------------------------------------------------+ | :ref:`Texture2D` | :ref:`texture` | | +------------------------------------------------------------+--------------------------------------------------------------------------------------+-----------------------------------------------------------------------+ .. rst-class:: classref-reftable-group Methods ------- .. table:: :widths: auto +-----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_patch_margin` **(** :ref:`Side` margin **)** |const| | +-----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_patch_margin` **(** :ref:`Side` margin, :ref:`int` value **)** | +-----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Signals ------- .. _class_NinePatchRect_signal_texture_changed: .. rst-class:: classref-signal **texture_changed** **(** **)** .. container:: contribute There is currently no description for this signal. Please help us by :ref:`contributing one `! .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Enumerations ------------ .. _enum_NinePatchRect_AxisStretchMode: .. rst-class:: classref-enumeration enum **AxisStretchMode**: .. _class_NinePatchRect_constant_AXIS_STRETCH_MODE_STRETCH: .. rst-class:: classref-enumeration-constant :ref:`AxisStretchMode` **AXIS_STRETCH_MODE_STRETCH** = ``0`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_NinePatchRect_constant_AXIS_STRETCH_MODE_TILE: .. rst-class:: classref-enumeration-constant :ref:`AxisStretchMode` **AXIS_STRETCH_MODE_TILE** = ``1`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_NinePatchRect_constant_AXIS_STRETCH_MODE_TILE_FIT: .. rst-class:: classref-enumeration-constant :ref:`AxisStretchMode` **AXIS_STRETCH_MODE_TILE_FIT** = ``2`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Property Descriptions --------------------- .. _class_NinePatchRect_property_axis_stretch_horizontal: .. rst-class:: classref-property :ref:`AxisStretchMode` **axis_stretch_horizontal** = ``0`` .. rst-class:: classref-property-setget - void **set_h_axis_stretch_mode** **(** :ref:`AxisStretchMode` value **)** - :ref:`AxisStretchMode` **get_h_axis_stretch_mode** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_NinePatchRect_property_axis_stretch_vertical: .. rst-class:: classref-property :ref:`AxisStretchMode` **axis_stretch_vertical** = ``0`` .. rst-class:: classref-property-setget - void **set_v_axis_stretch_mode** **(** :ref:`AxisStretchMode` value **)** - :ref:`AxisStretchMode` **get_v_axis_stretch_mode** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_NinePatchRect_property_draw_center: .. rst-class:: classref-property :ref:`bool` **draw_center** = ``true`` .. rst-class:: classref-property-setget - void **set_draw_center** **(** :ref:`bool` value **)** - :ref:`bool` **is_draw_center_enabled** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_NinePatchRect_property_patch_margin_bottom: .. rst-class:: classref-property :ref:`int` **patch_margin_bottom** = ``0`` .. rst-class:: classref-property-setget - void **set_patch_margin** **(** :ref:`Side` margin, :ref:`int` value **)** - :ref:`int` **get_patch_margin** **(** :ref:`Side` margin **)** |const| .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_NinePatchRect_property_patch_margin_left: .. rst-class:: classref-property :ref:`int` **patch_margin_left** = ``0`` .. rst-class:: classref-property-setget - void **set_patch_margin** **(** :ref:`Side` margin, :ref:`int` value **)** - :ref:`int` **get_patch_margin** **(** :ref:`Side` margin **)** |const| .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_NinePatchRect_property_patch_margin_right: .. rst-class:: classref-property :ref:`int` **patch_margin_right** = ``0`` .. rst-class:: classref-property-setget - void **set_patch_margin** **(** :ref:`Side` margin, :ref:`int` value **)** - :ref:`int` **get_patch_margin** **(** :ref:`Side` margin **)** |const| .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_NinePatchRect_property_patch_margin_top: .. rst-class:: classref-property :ref:`int` **patch_margin_top** = ``0`` .. rst-class:: classref-property-setget - void **set_patch_margin** **(** :ref:`Side` margin, :ref:`int` value **)** - :ref:`int` **get_patch_margin** **(** :ref:`Side` margin **)** |const| .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_NinePatchRect_property_region_rect: .. rst-class:: classref-property :ref:`Rect2` **region_rect** = ``Rect2(0, 0, 0, 0)`` .. rst-class:: classref-property-setget - void **set_region_rect** **(** :ref:`Rect2` value **)** - :ref:`Rect2` **get_region_rect** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_NinePatchRect_property_texture: .. rst-class:: classref-property :ref:`Texture2D` **texture** .. rst-class:: classref-property-setget - void **set_texture** **(** :ref:`Texture2D` value **)** - :ref:`Texture2D` **get_texture** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Method Descriptions ------------------- .. _class_NinePatchRect_method_get_patch_margin: .. rst-class:: classref-method :ref:`int` **get_patch_margin** **(** :ref:`Side` margin **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_NinePatchRect_method_set_patch_margin: .. rst-class:: classref-method void **set_patch_margin** **(** :ref:`Side` margin, :ref:`int` value **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)` .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)` .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`