class_statusindicator.rst 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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/StatusIndicator.xml.
  6. .. _class_StatusIndicator:
  7. StatusIndicator
  8. ===============
  9. **Inherits:** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. Application status indicator (aka notification area icon).
  11. \ **Note:** Status indicator is implemented on macOS and Windows.
  12. .. rst-class:: classref-reftable-group
  13. Properties
  14. ----------
  15. .. table::
  16. :widths: auto
  17. +-----------------------------+--------------------------------------------------------+----------+
  18. | :ref:`Image<class_Image>` | :ref:`icon<class_StatusIndicator_property_icon>` | |
  19. +-----------------------------+--------------------------------------------------------+----------+
  20. | :ref:`String<class_String>` | :ref:`tooltip<class_StatusIndicator_property_tooltip>` | ``""`` |
  21. +-----------------------------+--------------------------------------------------------+----------+
  22. | :ref:`bool<class_bool>` | :ref:`visible<class_StatusIndicator_property_visible>` | ``true`` |
  23. +-----------------------------+--------------------------------------------------------+----------+
  24. .. rst-class:: classref-section-separator
  25. ----
  26. .. rst-class:: classref-descriptions-group
  27. Signals
  28. -------
  29. .. _class_StatusIndicator_signal_pressed:
  30. .. rst-class:: classref-signal
  31. **pressed** **(** :ref:`int<class_int>` mouse_button, :ref:`Vector2i<class_Vector2i>` position **)**
  32. Emitted when the status indicator is pressed.
  33. .. rst-class:: classref-section-separator
  34. ----
  35. .. rst-class:: classref-descriptions-group
  36. Property Descriptions
  37. ---------------------
  38. .. _class_StatusIndicator_property_icon:
  39. .. rst-class:: classref-property
  40. :ref:`Image<class_Image>` **icon**
  41. .. rst-class:: classref-property-setget
  42. - void **set_icon** **(** :ref:`Image<class_Image>` value **)**
  43. - :ref:`Image<class_Image>` **get_icon** **(** **)**
  44. Status indicator icon.
  45. .. rst-class:: classref-item-separator
  46. ----
  47. .. _class_StatusIndicator_property_tooltip:
  48. .. rst-class:: classref-property
  49. :ref:`String<class_String>` **tooltip** = ``""``
  50. .. rst-class:: classref-property-setget
  51. - void **set_tooltip** **(** :ref:`String<class_String>` value **)**
  52. - :ref:`String<class_String>` **get_tooltip** **(** **)**
  53. Status indicator tooltip.
  54. .. rst-class:: classref-item-separator
  55. ----
  56. .. _class_StatusIndicator_property_visible:
  57. .. rst-class:: classref-property
  58. :ref:`bool<class_bool>` **visible** = ``true``
  59. .. rst-class:: classref-property-setget
  60. - void **set_visible** **(** :ref:`bool<class_bool>` value **)**
  61. - :ref:`bool<class_bool>` **is_visible** **(** **)**
  62. If ``true``, the status indicator is visible.
  63. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  64. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  65. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  66. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  67. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  68. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  69. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`