class_referencerect.rst 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. Reference frame for GUI.
  10. Description
  11. -----------
  12. 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>`.
  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. Property Descriptions
  21. ---------------------
  22. .. _class_ReferenceRect_property_border_color:
  23. - :ref:`Color<class_Color>` **border_color**
  24. +-----------+-------------------------+
  25. | *Default* | ``Color( 1, 0, 0, 1 )`` |
  26. +-----------+-------------------------+
  27. | *Setter* | set_border_color(value) |
  28. +-----------+-------------------------+
  29. | *Getter* | get_border_color() |
  30. +-----------+-------------------------+
  31. Sets the border :ref:`Color<class_Color>` of the ``ReferenceRect``.
  32. ----
  33. .. _class_ReferenceRect_property_editor_only:
  34. - :ref:`bool<class_bool>` **editor_only**
  35. +-----------+------------------------+
  36. | *Default* | ``true`` |
  37. +-----------+------------------------+
  38. | *Setter* | set_editor_only(value) |
  39. +-----------+------------------------+
  40. | *Getter* | get_editor_only() |
  41. +-----------+------------------------+
  42. If set to ``true``, the ``ReferenceRect`` will only be visible while in editor. Otherwise, ``ReferenceRect`` will be visible in game.
  43. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  44. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  45. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`