class_windowdialog.rst 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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 WindowDialog.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_WindowDialog:
  6. WindowDialog
  7. ============
  8. **Inherits:** :ref:`Popup<class_Popup>` **<** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  9. **Inherited By:** :ref:`AcceptDialog<class_AcceptDialog>`
  10. Base class for window dialogs.
  11. Description
  12. -----------
  13. 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.
  14. Properties
  15. ----------
  16. +-----------------------------+---------------------------------------------------------------+-----------+
  17. | :ref:`bool<class_bool>` | :ref:`resizable<class_WindowDialog_property_resizable>` | ``false`` |
  18. +-----------------------------+---------------------------------------------------------------+-----------+
  19. | :ref:`String<class_String>` | :ref:`window_title<class_WindowDialog_property_window_title>` | ``""`` |
  20. +-----------------------------+---------------------------------------------------------------+-----------+
  21. Methods
  22. -------
  23. +-------------------------------------------+---------------------------------------------------------------------------------+
  24. | :ref:`TextureButton<class_TextureButton>` | :ref:`get_close_button<class_WindowDialog_method_get_close_button>` **(** **)** |
  25. +-------------------------------------------+---------------------------------------------------------------------------------+
  26. Theme Properties
  27. ----------------
  28. +---------------------------------+------------------+---------------------+
  29. | :ref:`Texture<class_Texture>` | close | |
  30. +---------------------------------+------------------+---------------------+
  31. | :ref:`int<class_int>` | close_h_ofs | 18 |
  32. +---------------------------------+------------------+---------------------+
  33. | :ref:`Texture<class_Texture>` | close_highlight | |
  34. +---------------------------------+------------------+---------------------+
  35. | :ref:`int<class_int>` | close_v_ofs | 18 |
  36. +---------------------------------+------------------+---------------------+
  37. | :ref:`StyleBox<class_StyleBox>` | panel | |
  38. +---------------------------------+------------------+---------------------+
  39. | :ref:`int<class_int>` | scaleborder_size | 4 |
  40. +---------------------------------+------------------+---------------------+
  41. | :ref:`Color<class_Color>` | title_color | Color( 0, 0, 0, 1 ) |
  42. +---------------------------------+------------------+---------------------+
  43. | :ref:`Font<class_Font>` | title_font | |
  44. +---------------------------------+------------------+---------------------+
  45. | :ref:`int<class_int>` | title_height | 20 |
  46. +---------------------------------+------------------+---------------------+
  47. Property Descriptions
  48. ---------------------
  49. .. _class_WindowDialog_property_resizable:
  50. - :ref:`bool<class_bool>` **resizable**
  51. +-----------+----------------------+
  52. | *Default* | ``false`` |
  53. +-----------+----------------------+
  54. | *Setter* | set_resizable(value) |
  55. +-----------+----------------------+
  56. | *Getter* | get_resizable() |
  57. +-----------+----------------------+
  58. If ``true``, the user can resize the window.
  59. ----
  60. .. _class_WindowDialog_property_window_title:
  61. - :ref:`String<class_String>` **window_title**
  62. +-----------+------------------+
  63. | *Default* | ``""`` |
  64. +-----------+------------------+
  65. | *Setter* | set_title(value) |
  66. +-----------+------------------+
  67. | *Getter* | get_title() |
  68. +-----------+------------------+
  69. The text displayed in the window's title bar.
  70. Method Descriptions
  71. -------------------
  72. .. _class_WindowDialog_method_get_close_button:
  73. - :ref:`TextureButton<class_TextureButton>` **get_close_button** **(** **)**
  74. Returns the close :ref:`TextureButton<class_TextureButton>`.
  75. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  76. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  77. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`