class_referencerect.rst 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the ReferenceRect.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_ReferenceRect:
  6. ReferenceRect
  7. =============
  8. **Inherits:** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. Reference frame for GUI.
  13. Properties
  14. ----------
  15. +---------------------------+----------------------------------------------------------------+---------------------+
  16. | :ref:`Color<class_Color>` | :ref:`border_color<class_ReferenceRect_property_border_color>` | Color( 1, 0, 0, 1 ) |
  17. +---------------------------+----------------------------------------------------------------+---------------------+
  18. | :ref:`bool<class_bool>` | :ref:`editor_only<class_ReferenceRect_property_editor_only>` | true |
  19. +---------------------------+----------------------------------------------------------------+---------------------+
  20. Description
  21. -----------
  22. A rectangle box that displays only a :ref:`border_color<class_ReferenceRect_property_border_color>` border color around its rectangle. ``ReferenceRect`` has no fill :ref:`Color<class_Color>`.
  23. Property Descriptions
  24. ---------------------
  25. .. _class_ReferenceRect_property_border_color:
  26. - :ref:`Color<class_Color>` **border_color**
  27. +-----------+-------------------------+
  28. | *Default* | Color( 1, 0, 0, 1 ) |
  29. +-----------+-------------------------+
  30. | *Setter* | set_border_color(value) |
  31. +-----------+-------------------------+
  32. | *Getter* | get_border_color() |
  33. +-----------+-------------------------+
  34. Sets the border :ref:`Color<class_Color>` of the ``ReferenceRect``.
  35. .. _class_ReferenceRect_property_editor_only:
  36. - :ref:`bool<class_bool>` **editor_only**
  37. +-----------+------------------------+
  38. | *Default* | true |
  39. +-----------+------------------------+
  40. | *Setter* | set_editor_only(value) |
  41. +-----------+------------------------+
  42. | *Getter* | get_editor_only() |
  43. +-----------+------------------------+
  44. If set to ``true``, the ``ReferenceRect`` will only be visible while in editor. Otherwise, ``ReferenceRect`` will be visible in game.