class_styleboxtexture.rst 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/3.6/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/3.6/doc/classes/StyleBoxTexture.xml.
  6. .. _class_StyleBoxTexture:
  7. StyleBoxTexture
  8. ===============
  9. **Inherits:** :ref:`StyleBox<class_StyleBox>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  10. Texture-based nine-patch :ref:`StyleBox<class_StyleBox>`.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. Texture-based nine-patch :ref:`StyleBox<class_StyleBox>`, in a way similar to :ref:`NinePatchRect<class_NinePatchRect>`. This stylebox performs a 3×3 scaling of a texture, where only the center cell is fully stretched. This makes it possible to design bordered styles regardless of the stylebox's size.
  15. .. rst-class:: classref-reftable-group
  16. Properties
  17. ----------
  18. .. table::
  19. :widths: auto
  20. +--------------------------------------------------------------+----------------------------------------------------------------------------------------+-------------------------+
  21. | :ref:`AxisStretchMode<enum_StyleBoxTexture_AxisStretchMode>` | :ref:`axis_stretch_horizontal<class_StyleBoxTexture_property_axis_stretch_horizontal>` | ``0`` |
  22. +--------------------------------------------------------------+----------------------------------------------------------------------------------------+-------------------------+
  23. | :ref:`AxisStretchMode<enum_StyleBoxTexture_AxisStretchMode>` | :ref:`axis_stretch_vertical<class_StyleBoxTexture_property_axis_stretch_vertical>` | ``0`` |
  24. +--------------------------------------------------------------+----------------------------------------------------------------------------------------+-------------------------+
  25. | :ref:`bool<class_bool>` | :ref:`draw_center<class_StyleBoxTexture_property_draw_center>` | ``true`` |
  26. +--------------------------------------------------------------+----------------------------------------------------------------------------------------+-------------------------+
  27. | :ref:`float<class_float>` | :ref:`expand_margin_bottom<class_StyleBoxTexture_property_expand_margin_bottom>` | ``0.0`` |
  28. +--------------------------------------------------------------+----------------------------------------------------------------------------------------+-------------------------+
  29. | :ref:`float<class_float>` | :ref:`expand_margin_left<class_StyleBoxTexture_property_expand_margin_left>` | ``0.0`` |
  30. +--------------------------------------------------------------+----------------------------------------------------------------------------------------+-------------------------+
  31. | :ref:`float<class_float>` | :ref:`expand_margin_right<class_StyleBoxTexture_property_expand_margin_right>` | ``0.0`` |
  32. +--------------------------------------------------------------+----------------------------------------------------------------------------------------+-------------------------+
  33. | :ref:`float<class_float>` | :ref:`expand_margin_top<class_StyleBoxTexture_property_expand_margin_top>` | ``0.0`` |
  34. +--------------------------------------------------------------+----------------------------------------------------------------------------------------+-------------------------+
  35. | :ref:`float<class_float>` | :ref:`margin_bottom<class_StyleBoxTexture_property_margin_bottom>` | ``0.0`` |
  36. +--------------------------------------------------------------+----------------------------------------------------------------------------------------+-------------------------+
  37. | :ref:`float<class_float>` | :ref:`margin_left<class_StyleBoxTexture_property_margin_left>` | ``0.0`` |
  38. +--------------------------------------------------------------+----------------------------------------------------------------------------------------+-------------------------+
  39. | :ref:`float<class_float>` | :ref:`margin_right<class_StyleBoxTexture_property_margin_right>` | ``0.0`` |
  40. +--------------------------------------------------------------+----------------------------------------------------------------------------------------+-------------------------+
  41. | :ref:`float<class_float>` | :ref:`margin_top<class_StyleBoxTexture_property_margin_top>` | ``0.0`` |
  42. +--------------------------------------------------------------+----------------------------------------------------------------------------------------+-------------------------+
  43. | :ref:`Color<class_Color>` | :ref:`modulate_color<class_StyleBoxTexture_property_modulate_color>` | ``Color( 1, 1, 1, 1 )`` |
  44. +--------------------------------------------------------------+----------------------------------------------------------------------------------------+-------------------------+
  45. | :ref:`Texture<class_Texture>` | :ref:`normal_map<class_StyleBoxTexture_property_normal_map>` | |
  46. +--------------------------------------------------------------+----------------------------------------------------------------------------------------+-------------------------+
  47. | :ref:`Rect2<class_Rect2>` | :ref:`region_rect<class_StyleBoxTexture_property_region_rect>` | ``Rect2( 0, 0, 0, 0 )`` |
  48. +--------------------------------------------------------------+----------------------------------------------------------------------------------------+-------------------------+
  49. | :ref:`Texture<class_Texture>` | :ref:`texture<class_StyleBoxTexture_property_texture>` | |
  50. +--------------------------------------------------------------+----------------------------------------------------------------------------------------+-------------------------+
  51. .. rst-class:: classref-reftable-group
  52. Methods
  53. -------
  54. .. table::
  55. :widths: auto
  56. +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  57. | :ref:`float<class_float>` | :ref:`get_expand_margin_size<class_StyleBoxTexture_method_get_expand_margin_size>` **(** :ref:`Margin<enum_@GlobalScope_Margin>` margin **)** |const| |
  58. +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  59. | :ref:`float<class_float>` | :ref:`get_margin_size<class_StyleBoxTexture_method_get_margin_size>` **(** :ref:`Margin<enum_@GlobalScope_Margin>` margin **)** |const| |
  60. +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  61. | void | :ref:`set_expand_margin_all<class_StyleBoxTexture_method_set_expand_margin_all>` **(** :ref:`float<class_float>` size **)** |
  62. +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  63. | void | :ref:`set_expand_margin_individual<class_StyleBoxTexture_method_set_expand_margin_individual>` **(** :ref:`float<class_float>` size_left, :ref:`float<class_float>` size_top, :ref:`float<class_float>` size_right, :ref:`float<class_float>` size_bottom **)** |
  64. +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  65. | void | :ref:`set_expand_margin_size<class_StyleBoxTexture_method_set_expand_margin_size>` **(** :ref:`Margin<enum_@GlobalScope_Margin>` margin, :ref:`float<class_float>` size **)** |
  66. +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  67. | void | :ref:`set_margin_size<class_StyleBoxTexture_method_set_margin_size>` **(** :ref:`Margin<enum_@GlobalScope_Margin>` margin, :ref:`float<class_float>` size **)** |
  68. +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  69. .. rst-class:: classref-section-separator
  70. ----
  71. .. rst-class:: classref-descriptions-group
  72. Signals
  73. -------
  74. .. _class_StyleBoxTexture_signal_texture_changed:
  75. .. rst-class:: classref-signal
  76. **texture_changed** **(** **)**
  77. Emitted when the stylebox's texture is changed.
  78. .. rst-class:: classref-section-separator
  79. ----
  80. .. rst-class:: classref-descriptions-group
  81. Enumerations
  82. ------------
  83. .. _enum_StyleBoxTexture_AxisStretchMode:
  84. .. rst-class:: classref-enumeration
  85. enum **AxisStretchMode**:
  86. .. _class_StyleBoxTexture_constant_AXIS_STRETCH_MODE_STRETCH:
  87. .. rst-class:: classref-enumeration-constant
  88. :ref:`AxisStretchMode<enum_StyleBoxTexture_AxisStretchMode>` **AXIS_STRETCH_MODE_STRETCH** = ``0``
  89. Stretch the stylebox's texture. This results in visible distortion unless the texture size matches the stylebox's size perfectly.
  90. .. _class_StyleBoxTexture_constant_AXIS_STRETCH_MODE_TILE:
  91. .. rst-class:: classref-enumeration-constant
  92. :ref:`AxisStretchMode<enum_StyleBoxTexture_AxisStretchMode>` **AXIS_STRETCH_MODE_TILE** = ``1``
  93. Repeats the stylebox's texture to match the stylebox's size according to the nine-patch system.
  94. .. _class_StyleBoxTexture_constant_AXIS_STRETCH_MODE_TILE_FIT:
  95. .. rst-class:: classref-enumeration-constant
  96. :ref:`AxisStretchMode<enum_StyleBoxTexture_AxisStretchMode>` **AXIS_STRETCH_MODE_TILE_FIT** = ``2``
  97. Repeats the stylebox's texture to match the stylebox's size according to the nine-patch system. Unlike :ref:`AXIS_STRETCH_MODE_TILE<class_StyleBoxTexture_constant_AXIS_STRETCH_MODE_TILE>`, the texture may be slightly stretched to make the nine-patch texture tile seamlessly.
  98. .. rst-class:: classref-section-separator
  99. ----
  100. .. rst-class:: classref-descriptions-group
  101. Property Descriptions
  102. ---------------------
  103. .. _class_StyleBoxTexture_property_axis_stretch_horizontal:
  104. .. rst-class:: classref-property
  105. :ref:`AxisStretchMode<enum_StyleBoxTexture_AxisStretchMode>` **axis_stretch_horizontal** = ``0``
  106. .. rst-class:: classref-property-setget
  107. - void **set_h_axis_stretch_mode** **(** :ref:`AxisStretchMode<enum_StyleBoxTexture_AxisStretchMode>` value **)**
  108. - :ref:`AxisStretchMode<enum_StyleBoxTexture_AxisStretchMode>` **get_h_axis_stretch_mode** **(** **)**
  109. Controls how the stylebox's texture will be stretched or tiled horizontally. See :ref:`AxisStretchMode<enum_StyleBoxTexture_AxisStretchMode>` for possible values.
  110. .. rst-class:: classref-item-separator
  111. ----
  112. .. _class_StyleBoxTexture_property_axis_stretch_vertical:
  113. .. rst-class:: classref-property
  114. :ref:`AxisStretchMode<enum_StyleBoxTexture_AxisStretchMode>` **axis_stretch_vertical** = ``0``
  115. .. rst-class:: classref-property-setget
  116. - void **set_v_axis_stretch_mode** **(** :ref:`AxisStretchMode<enum_StyleBoxTexture_AxisStretchMode>` value **)**
  117. - :ref:`AxisStretchMode<enum_StyleBoxTexture_AxisStretchMode>` **get_v_axis_stretch_mode** **(** **)**
  118. Controls how the stylebox's texture will be stretched or tiled vertically. See :ref:`AxisStretchMode<enum_StyleBoxTexture_AxisStretchMode>` for possible values.
  119. .. rst-class:: classref-item-separator
  120. ----
  121. .. _class_StyleBoxTexture_property_draw_center:
  122. .. rst-class:: classref-property
  123. :ref:`bool<class_bool>` **draw_center** = ``true``
  124. .. rst-class:: classref-property-setget
  125. - void **set_draw_center** **(** :ref:`bool<class_bool>` value **)**
  126. - :ref:`bool<class_bool>` **is_draw_center_enabled** **(** **)**
  127. If ``true``, the nine-patch texture's center tile will be drawn.
  128. .. rst-class:: classref-item-separator
  129. ----
  130. .. _class_StyleBoxTexture_property_expand_margin_bottom:
  131. .. rst-class:: classref-property
  132. :ref:`float<class_float>` **expand_margin_bottom** = ``0.0``
  133. .. rst-class:: classref-property-setget
  134. - void **set_expand_margin_size** **(** :ref:`Margin<enum_@GlobalScope_Margin>` margin, :ref:`float<class_float>` size **)**
  135. - :ref:`float<class_float>` **get_expand_margin_size** **(** :ref:`Margin<enum_@GlobalScope_Margin>` margin **)** |const|
  136. Expands the bottom margin of this style box when drawing, causing it to be drawn larger than requested.
  137. .. rst-class:: classref-item-separator
  138. ----
  139. .. _class_StyleBoxTexture_property_expand_margin_left:
  140. .. rst-class:: classref-property
  141. :ref:`float<class_float>` **expand_margin_left** = ``0.0``
  142. .. rst-class:: classref-property-setget
  143. - void **set_expand_margin_size** **(** :ref:`Margin<enum_@GlobalScope_Margin>` margin, :ref:`float<class_float>` size **)**
  144. - :ref:`float<class_float>` **get_expand_margin_size** **(** :ref:`Margin<enum_@GlobalScope_Margin>` margin **)** |const|
  145. Expands the left margin of this style box when drawing, causing it to be drawn larger than requested.
  146. .. rst-class:: classref-item-separator
  147. ----
  148. .. _class_StyleBoxTexture_property_expand_margin_right:
  149. .. rst-class:: classref-property
  150. :ref:`float<class_float>` **expand_margin_right** = ``0.0``
  151. .. rst-class:: classref-property-setget
  152. - void **set_expand_margin_size** **(** :ref:`Margin<enum_@GlobalScope_Margin>` margin, :ref:`float<class_float>` size **)**
  153. - :ref:`float<class_float>` **get_expand_margin_size** **(** :ref:`Margin<enum_@GlobalScope_Margin>` margin **)** |const|
  154. Expands the right margin of this style box when drawing, causing it to be drawn larger than requested.
  155. .. rst-class:: classref-item-separator
  156. ----
  157. .. _class_StyleBoxTexture_property_expand_margin_top:
  158. .. rst-class:: classref-property
  159. :ref:`float<class_float>` **expand_margin_top** = ``0.0``
  160. .. rst-class:: classref-property-setget
  161. - void **set_expand_margin_size** **(** :ref:`Margin<enum_@GlobalScope_Margin>` margin, :ref:`float<class_float>` size **)**
  162. - :ref:`float<class_float>` **get_expand_margin_size** **(** :ref:`Margin<enum_@GlobalScope_Margin>` margin **)** |const|
  163. Expands the top margin of this style box when drawing, causing it to be drawn larger than requested.
  164. .. rst-class:: classref-item-separator
  165. ----
  166. .. _class_StyleBoxTexture_property_margin_bottom:
  167. .. rst-class:: classref-property
  168. :ref:`float<class_float>` **margin_bottom** = ``0.0``
  169. .. rst-class:: classref-property-setget
  170. - void **set_margin_size** **(** :ref:`Margin<enum_@GlobalScope_Margin>` margin, :ref:`float<class_float>` size **)**
  171. - :ref:`float<class_float>` **get_margin_size** **(** :ref:`Margin<enum_@GlobalScope_Margin>` margin **)** |const|
  172. Increases the bottom margin of the 3×3 texture box.
  173. A higher value means more of the source texture is considered to be part of the bottom border of the 3×3 box.
  174. This is also the value used as fallback for :ref:`StyleBox.content_margin_bottom<class_StyleBox_property_content_margin_bottom>` if it is negative.
  175. .. rst-class:: classref-item-separator
  176. ----
  177. .. _class_StyleBoxTexture_property_margin_left:
  178. .. rst-class:: classref-property
  179. :ref:`float<class_float>` **margin_left** = ``0.0``
  180. .. rst-class:: classref-property-setget
  181. - void **set_margin_size** **(** :ref:`Margin<enum_@GlobalScope_Margin>` margin, :ref:`float<class_float>` size **)**
  182. - :ref:`float<class_float>` **get_margin_size** **(** :ref:`Margin<enum_@GlobalScope_Margin>` margin **)** |const|
  183. Increases the left margin of the 3×3 texture box.
  184. A higher value means more of the source texture is considered to be part of the left border of the 3×3 box.
  185. This is also the value used as fallback for :ref:`StyleBox.content_margin_left<class_StyleBox_property_content_margin_left>` if it is negative.
  186. .. rst-class:: classref-item-separator
  187. ----
  188. .. _class_StyleBoxTexture_property_margin_right:
  189. .. rst-class:: classref-property
  190. :ref:`float<class_float>` **margin_right** = ``0.0``
  191. .. rst-class:: classref-property-setget
  192. - void **set_margin_size** **(** :ref:`Margin<enum_@GlobalScope_Margin>` margin, :ref:`float<class_float>` size **)**
  193. - :ref:`float<class_float>` **get_margin_size** **(** :ref:`Margin<enum_@GlobalScope_Margin>` margin **)** |const|
  194. Increases the right margin of the 3×3 texture box.
  195. A higher value means more of the source texture is considered to be part of the right border of the 3×3 box.
  196. This is also the value used as fallback for :ref:`StyleBox.content_margin_right<class_StyleBox_property_content_margin_right>` if it is negative.
  197. .. rst-class:: classref-item-separator
  198. ----
  199. .. _class_StyleBoxTexture_property_margin_top:
  200. .. rst-class:: classref-property
  201. :ref:`float<class_float>` **margin_top** = ``0.0``
  202. .. rst-class:: classref-property-setget
  203. - void **set_margin_size** **(** :ref:`Margin<enum_@GlobalScope_Margin>` margin, :ref:`float<class_float>` size **)**
  204. - :ref:`float<class_float>` **get_margin_size** **(** :ref:`Margin<enum_@GlobalScope_Margin>` margin **)** |const|
  205. Increases the top margin of the 3×3 texture box.
  206. A higher value means more of the source texture is considered to be part of the top border of the 3×3 box.
  207. This is also the value used as fallback for :ref:`StyleBox.content_margin_top<class_StyleBox_property_content_margin_top>` if it is negative.
  208. .. rst-class:: classref-item-separator
  209. ----
  210. .. _class_StyleBoxTexture_property_modulate_color:
  211. .. rst-class:: classref-property
  212. :ref:`Color<class_Color>` **modulate_color** = ``Color( 1, 1, 1, 1 )``
  213. .. rst-class:: classref-property-setget
  214. - void **set_modulate** **(** :ref:`Color<class_Color>` value **)**
  215. - :ref:`Color<class_Color>` **get_modulate** **(** **)**
  216. Modulates the color of the texture when this style box is drawn.
  217. .. rst-class:: classref-item-separator
  218. ----
  219. .. _class_StyleBoxTexture_property_normal_map:
  220. .. rst-class:: classref-property
  221. :ref:`Texture<class_Texture>` **normal_map**
  222. .. rst-class:: classref-property-setget
  223. - void **set_normal_map** **(** :ref:`Texture<class_Texture>` value **)**
  224. - :ref:`Texture<class_Texture>` **get_normal_map** **(** **)**
  225. The normal map to use when drawing this style box.
  226. \ **Note:** Godot expects the normal map to use X+, Y-, and Z+ coordinates. See `this page <http://wiki.polycount.com/wiki/Normal_Map_Technical_Details#Common_Swizzle_Coordinates>`__ for a comparison of normal map coordinates expected by popular engines.
  227. .. rst-class:: classref-item-separator
  228. ----
  229. .. _class_StyleBoxTexture_property_region_rect:
  230. .. rst-class:: classref-property
  231. :ref:`Rect2<class_Rect2>` **region_rect** = ``Rect2( 0, 0, 0, 0 )``
  232. .. rst-class:: classref-property-setget
  233. - void **set_region_rect** **(** :ref:`Rect2<class_Rect2>` value **)**
  234. - :ref:`Rect2<class_Rect2>` **get_region_rect** **(** **)**
  235. Species a sub-region of the texture to use.
  236. This is equivalent to first wrapping the texture in an :ref:`AtlasTexture<class_AtlasTexture>` with the same region.
  237. .. rst-class:: classref-item-separator
  238. ----
  239. .. _class_StyleBoxTexture_property_texture:
  240. .. rst-class:: classref-property
  241. :ref:`Texture<class_Texture>` **texture**
  242. .. rst-class:: classref-property-setget
  243. - void **set_texture** **(** :ref:`Texture<class_Texture>` value **)**
  244. - :ref:`Texture<class_Texture>` **get_texture** **(** **)**
  245. The texture to use when drawing this style box.
  246. .. rst-class:: classref-section-separator
  247. ----
  248. .. rst-class:: classref-descriptions-group
  249. Method Descriptions
  250. -------------------
  251. .. _class_StyleBoxTexture_method_get_expand_margin_size:
  252. .. rst-class:: classref-method
  253. :ref:`float<class_float>` **get_expand_margin_size** **(** :ref:`Margin<enum_@GlobalScope_Margin>` margin **)** |const|
  254. Returns the size of the given ``margin``'s expand margin. See :ref:`Margin<enum_@GlobalScope_Margin>` for possible values.
  255. .. rst-class:: classref-item-separator
  256. ----
  257. .. _class_StyleBoxTexture_method_get_margin_size:
  258. .. rst-class:: classref-method
  259. :ref:`float<class_float>` **get_margin_size** **(** :ref:`Margin<enum_@GlobalScope_Margin>` margin **)** |const|
  260. Returns the size of the given ``margin``. See :ref:`Margin<enum_@GlobalScope_Margin>` for possible values.
  261. .. rst-class:: classref-item-separator
  262. ----
  263. .. _class_StyleBoxTexture_method_set_expand_margin_all:
  264. .. rst-class:: classref-method
  265. void **set_expand_margin_all** **(** :ref:`float<class_float>` size **)**
  266. Sets the expand margin to ``size`` pixels for all margins.
  267. .. rst-class:: classref-item-separator
  268. ----
  269. .. _class_StyleBoxTexture_method_set_expand_margin_individual:
  270. .. rst-class:: classref-method
  271. void **set_expand_margin_individual** **(** :ref:`float<class_float>` size_left, :ref:`float<class_float>` size_top, :ref:`float<class_float>` size_right, :ref:`float<class_float>` size_bottom **)**
  272. Sets the expand margin for each margin to ``size_left``, ``size_top``, ``size_right``, and ``size_bottom`` pixels.
  273. .. rst-class:: classref-item-separator
  274. ----
  275. .. _class_StyleBoxTexture_method_set_expand_margin_size:
  276. .. rst-class:: classref-method
  277. void **set_expand_margin_size** **(** :ref:`Margin<enum_@GlobalScope_Margin>` margin, :ref:`float<class_float>` size **)**
  278. Sets the expand margin to ``size`` pixels for the given ``margin``. See :ref:`Margin<enum_@GlobalScope_Margin>` for possible values.
  279. .. rst-class:: classref-item-separator
  280. ----
  281. .. _class_StyleBoxTexture_method_set_margin_size:
  282. .. rst-class:: classref-method
  283. void **set_margin_size** **(** :ref:`Margin<enum_@GlobalScope_Margin>` margin, :ref:`float<class_float>` size **)**
  284. Sets the margin to ``size`` pixels for the given ``margin``. See :ref:`Margin<enum_@GlobalScope_Margin>` for possible values.
  285. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  286. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  287. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  288. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`