/Godot 3.2


Inherits: Popup < Control < CanvasItem < Node < Object

Inherited By: AcceptDialog

Base class for window dialogs.


Windowdialog is the base class for all window-based dialogs. It's a by-default toplevel Control that draws a window decoration and allows motion and resizing.


bool resizable false
String window_title ""


TextureButton get_close_button ( )

Theme Properties

Texture close
int close_h_ofs 18
Texture close_highlight
int close_v_ofs 18
StyleBox panel
int scaleborder_size 4
Color title_color Color( 0, 0, 0, 1 )
Font title_font
int title_height 20

Property Descriptions

bool resizable

Default false
Setter set_resizable(value)
Getter get_resizable()

If true, the user can resize the window.

String window_title

Default ""
Setter set_title(value)
Getter get_title()

The text displayed in the window's title bar.

Method Descriptions

TextureButton get_close_button ( )

Returns the close TextureButton.

© 2014–2020 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.