.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead. .. _class_NinePatchRect: NinePatchRect ============= **Inherits:** :ref:`Control` **<** :ref:`CanvasItem` **<** :ref:`Node` **<** :ref:`Object` **Category:** Core Brief Description ----------------- Member Functions ---------------- +--------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_h_axis_stretch_mode` **(** **)** const | +--------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_patch_margin` **(** :ref:`int` margin **)** const | +--------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Rect2` | :ref:`get_region_rect` **(** **)** const | +--------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Texture` | :ref:`get_texture` **(** **)** const | +--------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_v_axis_stretch_mode` **(** **)** const | +--------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_draw_center_enabled` **(** **)** const | +--------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_draw_center` **(** :ref:`bool` draw_center **)** | +--------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_h_axis_stretch_mode` **(** :ref:`int` mode **)** | +--------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_patch_margin` **(** :ref:`int` margin, :ref:`int` value **)** | +--------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_region_rect` **(** :ref:`Rect2` rect **)** | +--------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_texture` **(** :ref:`Texture` texture **)** | +--------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_v_axis_stretch_mode` **(** :ref:`int` mode **)** | +--------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+ Signals ------- - **texture_changed** **(** **)** Member Variables ---------------- - :ref:`int` **axis_stretch_horizontal** - :ref:`int` **axis_stretch_vertical** - :ref:`bool` **draw_center** - :ref:`int` **patch_margin_bottom** - :ref:`int` **patch_margin_left** - :ref:`int` **patch_margin_right** - :ref:`int` **patch_margin_top** - :ref:`Rect2` **region_rect** - :ref:`Texture` **texture** Numeric Constants ----------------- - **AXIS_STRETCH_MODE_STRETCH** = **0** - **AXIS_STRETCH_MODE_TILE** = **1** - **AXIS_STRETCH_MODE_TILE_FIT** = **2** Member Function Description --------------------------- .. _class_NinePatchRect_get_h_axis_stretch_mode: - :ref:`int` **get_h_axis_stretch_mode** **(** **)** const .. _class_NinePatchRect_get_patch_margin: - :ref:`int` **get_patch_margin** **(** :ref:`int` margin **)** const .. _class_NinePatchRect_get_region_rect: - :ref:`Rect2` **get_region_rect** **(** **)** const .. _class_NinePatchRect_get_texture: - :ref:`Texture` **get_texture** **(** **)** const .. _class_NinePatchRect_get_v_axis_stretch_mode: - :ref:`int` **get_v_axis_stretch_mode** **(** **)** const .. _class_NinePatchRect_is_draw_center_enabled: - :ref:`bool` **is_draw_center_enabled** **(** **)** const .. _class_NinePatchRect_set_draw_center: - void **set_draw_center** **(** :ref:`bool` draw_center **)** .. _class_NinePatchRect_set_h_axis_stretch_mode: - void **set_h_axis_stretch_mode** **(** :ref:`int` mode **)** .. _class_NinePatchRect_set_patch_margin: - void **set_patch_margin** **(** :ref:`int` margin, :ref:`int` value **)** .. _class_NinePatchRect_set_region_rect: - void **set_region_rect** **(** :ref:`Rect2` rect **)** .. _class_NinePatchRect_set_texture: - void **set_texture** **(** :ref:`Texture` texture **)** .. _class_NinePatchRect_set_v_axis_stretch_mode: - void **set_v_axis_stretch_mode** **(** :ref:`int` mode **)**