class_windowdialog.rst 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
  3. .. _class_WindowDialog:
  4. WindowDialog
  5. ============
  6. **Inherits:** :ref:`Popup<class_popup>` **<** :ref:`Control<class_control>` **<** :ref:`CanvasItem<class_canvasitem>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
  7. **Inherited By:** :ref:`AcceptDialog<class_acceptdialog>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Base class for window dialogs.
  12. Member Functions
  13. ----------------
  14. +--------------------------------------------+------------------------------------------------------------------------------------------------+
  15. | :ref:`TextureButton<class_texturebutton>` | :ref:`get_close_button<class_WindowDialog_get_close_button>` **(** **)** |
  16. +--------------------------------------------+------------------------------------------------------------------------------------------------+
  17. | :ref:`String<class_string>` | :ref:`get_title<class_WindowDialog_get_title>` **(** **)** const |
  18. +--------------------------------------------+------------------------------------------------------------------------------------------------+
  19. | void | :ref:`set_title<class_WindowDialog_set_title>` **(** :ref:`String<class_string>` title **)** |
  20. +--------------------------------------------+------------------------------------------------------------------------------------------------+
  21. Description
  22. -----------
  23. Windowdialog is the base class for all window-based dialogs. It's a by-default toplevel :ref:`Control<class_control>` that draws a window decoration and allows motion and resizing.
  24. Member Function Description
  25. ---------------------------
  26. .. _class_WindowDialog_get_close_button:
  27. - :ref:`TextureButton<class_texturebutton>` **get_close_button** **(** **)**
  28. Return the close :ref:`TextureButton<class_texturebutton>`.
  29. .. _class_WindowDialog_get_title:
  30. - :ref:`String<class_string>` **get_title** **(** **)** const
  31. Return the title of the window.
  32. .. _class_WindowDialog_set_title:
  33. - void **set_title** **(** :ref:`String<class_string>` title **)**
  34. Set the title of the window.