class_editortoaster.rst 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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/EditorToaster.xml.
  6. .. _class_EditorToaster:
  7. EditorToaster
  8. =============
  9. **Inherits:** :ref:`HBoxContainer<class_HBoxContainer>` **<** :ref:`BoxContainer<class_BoxContainer>` **<** :ref:`Container<class_Container>` **<** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. Manages toast notifications within the editor.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. This object manages the functionality and display of toast notifications within the editor, ensuring timely and informative alerts are presented to users.
  15. \ **Note:** This class shouldn't be instantiated directly. Instead, access the singleton using :ref:`EditorInterface.get_editor_toaster<class_EditorInterface_method_get_editor_toaster>`.
  16. .. rst-class:: classref-reftable-group
  17. Methods
  18. -------
  19. .. table::
  20. :widths: auto
  21. +--------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  22. | |void| | :ref:`push_toast<class_EditorToaster_method_push_toast>`\ (\ message\: :ref:`String<class_String>`, severity\: :ref:`Severity<enum_EditorToaster_Severity>` = 0, tooltip\: :ref:`String<class_String>` = ""\ ) |
  23. +--------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  24. .. rst-class:: classref-section-separator
  25. ----
  26. .. rst-class:: classref-descriptions-group
  27. Enumerations
  28. ------------
  29. .. _enum_EditorToaster_Severity:
  30. .. rst-class:: classref-enumeration
  31. enum **Severity**: :ref:`🔗<enum_EditorToaster_Severity>`
  32. .. _class_EditorToaster_constant_SEVERITY_INFO:
  33. .. rst-class:: classref-enumeration-constant
  34. :ref:`Severity<enum_EditorToaster_Severity>` **SEVERITY_INFO** = ``0``
  35. Toast will display with an INFO severity.
  36. .. _class_EditorToaster_constant_SEVERITY_WARNING:
  37. .. rst-class:: classref-enumeration-constant
  38. :ref:`Severity<enum_EditorToaster_Severity>` **SEVERITY_WARNING** = ``1``
  39. Toast will display with a WARNING severity and have a corresponding color.
  40. .. _class_EditorToaster_constant_SEVERITY_ERROR:
  41. .. rst-class:: classref-enumeration-constant
  42. :ref:`Severity<enum_EditorToaster_Severity>` **SEVERITY_ERROR** = ``2``
  43. Toast will display with an ERROR severity and have a corresponding color.
  44. .. rst-class:: classref-section-separator
  45. ----
  46. .. rst-class:: classref-descriptions-group
  47. Method Descriptions
  48. -------------------
  49. .. _class_EditorToaster_method_push_toast:
  50. .. rst-class:: classref-method
  51. |void| **push_toast**\ (\ message\: :ref:`String<class_String>`, severity\: :ref:`Severity<enum_EditorToaster_Severity>` = 0, tooltip\: :ref:`String<class_String>` = ""\ ) :ref:`🔗<class_EditorToaster_method_push_toast>`
  52. Pushes a toast notification to the editor for display.
  53. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  54. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  55. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  56. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  57. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  58. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  59. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  60. .. |void| replace:: :abbr:`void (No return value.)`