:github_url: hide .. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the WindowDialog.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _class_WindowDialog: WindowDialog ============ **Inherits:** :ref:`Popup` **<** :ref:`Control` **<** :ref:`CanvasItem` **<** :ref:`Node` **<** :ref:`Object` **Inherited By:** :ref:`AcceptDialog` Base class for window dialogs. Description ----------- Windowdialog is the base class for all window-based dialogs. It's a by-default toplevel :ref:`Control` that draws a window decoration and allows motion and resizing. Properties ---------- +-----------------------------+---------------------------------------------------------------+-----------+ | :ref:`bool` | :ref:`resizable` | ``false`` | +-----------------------------+---------------------------------------------------------------+-----------+ | :ref:`String` | :ref:`window_title` | ``""`` | +-----------------------------+---------------------------------------------------------------+-----------+ Methods ------- +-------------------------------------------+---------------------------------------------------------------------------------+ | :ref:`TextureButton` | :ref:`get_close_button` **(** **)** | +-------------------------------------------+---------------------------------------------------------------------------------+ Theme Properties ---------------- +---------------------------------+------------------+---------------------+ | :ref:`Texture` | close | | +---------------------------------+------------------+---------------------+ | :ref:`int` | close_h_ofs | 18 | +---------------------------------+------------------+---------------------+ | :ref:`Texture` | close_highlight | | +---------------------------------+------------------+---------------------+ | :ref:`int` | close_v_ofs | 18 | +---------------------------------+------------------+---------------------+ | :ref:`StyleBox` | panel | | +---------------------------------+------------------+---------------------+ | :ref:`int` | scaleborder_size | 4 | +---------------------------------+------------------+---------------------+ | :ref:`Color` | title_color | Color( 0, 0, 0, 1 ) | +---------------------------------+------------------+---------------------+ | :ref:`Font` | title_font | | +---------------------------------+------------------+---------------------+ | :ref:`int` | title_height | 20 | +---------------------------------+------------------+---------------------+ Property Descriptions --------------------- .. _class_WindowDialog_property_resizable: - :ref:`bool` **resizable** +-----------+----------------------+ | *Default* | ``false`` | +-----------+----------------------+ | *Setter* | set_resizable(value) | +-----------+----------------------+ | *Getter* | get_resizable() | +-----------+----------------------+ If ``true``, the user can resize the window. ---- .. _class_WindowDialog_property_window_title: - :ref:`String` **window_title** +-----------+------------------+ | *Default* | ``""`` | +-----------+------------------+ | *Setter* | set_title(value) | +-----------+------------------+ | *Getter* | get_title() | +-----------+------------------+ The text displayed in the window's title bar. Method Descriptions ------------------- .. _class_WindowDialog_method_get_close_button: - :ref:`TextureButton` **get_close_button** **(** **)** Returns the close :ref:`TextureButton`. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`