class_referencerect.rst 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/ReferenceRect.xml.
  6. .. _class_ReferenceRect:
  7. ReferenceRect
  8. =============
  9. **Inherits:** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. A rectangle hint for designing UIs.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. A rectangle box that displays only a colored border around its rectangle. It is used to visualize the extents of a :ref:`Control<class_Control>`.
  15. .. rst-class:: classref-reftable-group
  16. Properties
  17. ----------
  18. .. table::
  19. :widths: auto
  20. +---------------------------+----------------------------------------------------------------+-----------------------+
  21. | :ref:`Color<class_Color>` | :ref:`border_color<class_ReferenceRect_property_border_color>` | ``Color(1, 0, 0, 1)`` |
  22. +---------------------------+----------------------------------------------------------------+-----------------------+
  23. | :ref:`float<class_float>` | :ref:`border_width<class_ReferenceRect_property_border_width>` | ``1.0`` |
  24. +---------------------------+----------------------------------------------------------------+-----------------------+
  25. | :ref:`bool<class_bool>` | :ref:`editor_only<class_ReferenceRect_property_editor_only>` | ``true`` |
  26. +---------------------------+----------------------------------------------------------------+-----------------------+
  27. .. rst-class:: classref-section-separator
  28. ----
  29. .. rst-class:: classref-descriptions-group
  30. Property Descriptions
  31. ---------------------
  32. .. _class_ReferenceRect_property_border_color:
  33. .. rst-class:: classref-property
  34. :ref:`Color<class_Color>` **border_color** = ``Color(1, 0, 0, 1)`` :ref:`🔗<class_ReferenceRect_property_border_color>`
  35. .. rst-class:: classref-property-setget
  36. - |void| **set_border_color**\ (\ value\: :ref:`Color<class_Color>`\ )
  37. - :ref:`Color<class_Color>` **get_border_color**\ (\ )
  38. Sets the border color of the **ReferenceRect**.
  39. .. rst-class:: classref-item-separator
  40. ----
  41. .. _class_ReferenceRect_property_border_width:
  42. .. rst-class:: classref-property
  43. :ref:`float<class_float>` **border_width** = ``1.0`` :ref:`🔗<class_ReferenceRect_property_border_width>`
  44. .. rst-class:: classref-property-setget
  45. - |void| **set_border_width**\ (\ value\: :ref:`float<class_float>`\ )
  46. - :ref:`float<class_float>` **get_border_width**\ (\ )
  47. Sets the border width of the **ReferenceRect**. The border grows both inwards and outwards with respect to the rectangle box.
  48. .. rst-class:: classref-item-separator
  49. ----
  50. .. _class_ReferenceRect_property_editor_only:
  51. .. rst-class:: classref-property
  52. :ref:`bool<class_bool>` **editor_only** = ``true`` :ref:`🔗<class_ReferenceRect_property_editor_only>`
  53. .. rst-class:: classref-property-setget
  54. - |void| **set_editor_only**\ (\ value\: :ref:`bool<class_bool>`\ )
  55. - :ref:`bool<class_bool>` **get_editor_only**\ (\ )
  56. If ``true``, the **ReferenceRect** will only be visible while in editor. Otherwise, **ReferenceRect** will be visible in the running project.
  57. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  58. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  59. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  60. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  61. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  62. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  63. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  64. .. |void| replace:: :abbr:`void (No return value.)`