mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 19:29:06 +00:00
Sync classref with current source
Changes order of brief/long descriptions and removes category as per godotengine/godot#35132.
This commit is contained in:
@@ -11,13 +11,13 @@ NinePatchRect
|
||||
|
||||
**Inherits:** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
||||
|
||||
**Category:** Core
|
||||
|
||||
Brief Description
|
||||
-----------------
|
||||
|
||||
Scalable texture-based frame that tiles the texture's centers and sides, but keeps the corners' original size. Perfect for panels and dialog boxes.
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
Also known as 9-slice panels, NinePatchRect produces clean panels of any size, based on a small texture. To do so, it splits the texture in a 3×3 grid. When you scale the node, it tiles the texture's sides horizontally or vertically, the center on both axes but it doesn't scale or tile the corners.
|
||||
|
||||
Properties
|
||||
----------
|
||||
|
||||
@@ -59,7 +59,7 @@ Signals
|
||||
|
||||
- **texture_changed** **(** **)**
|
||||
|
||||
Fired when the node's texture changes.
|
||||
Emitted when the node's texture changes.
|
||||
|
||||
Enumerations
|
||||
------------
|
||||
@@ -80,11 +80,6 @@ enum **AxisStretchMode**:
|
||||
|
||||
- **AXIS_STRETCH_MODE_TILE_FIT** = **2** --- Doesn't do anything at the time of writing.
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
Also known as 9-slice panels, NinePatchRect produces clean panels of any size, based on a small texture. To do so, it splits the texture in a 3×3 grid. When you scale the node, it tiles the texture's sides horizontally or vertically, the center on both axes but it doesn't scale or tile the corners.
|
||||
|
||||
Property Descriptions
|
||||
---------------------
|
||||
|
||||
@@ -235,9 +230,13 @@ Method Descriptions
|
||||
|
||||
- :ref:`int<class_int>` **get_patch_margin** **(** :ref:`Margin<enum_@GlobalScope_Margin>` margin **)** const
|
||||
|
||||
Returns the size of the margin identified by the given :ref:`Margin<enum_@GlobalScope_Margin>` constant.
|
||||
|
||||
----
|
||||
|
||||
.. _class_NinePatchRect_method_set_patch_margin:
|
||||
|
||||
- void **set_patch_margin** **(** :ref:`Margin<enum_@GlobalScope_Margin>` margin, :ref:`int<class_int>` value **)**
|
||||
|
||||
Sets the size of the margin identified by the given :ref:`Margin<enum_@GlobalScope_Margin>` constant to ``value`` in pixels.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user