Window

Inherits: Viewport < Node < Object

Inherited By: AcceptDialog, Popup

There is currently no description for this class. Please help us by contributing one!

Properties

bool

always_on_top

false

bool

auto_translate

true

bool

borderless

false

ContentScaleAspect

content_scale_aspect

0

float

content_scale_factor

1.0

ContentScaleMode

content_scale_mode

0

Vector2i

content_scale_size

Vector2i(0, 0)

ContentScaleStretch

content_scale_stretch

0

int

current_screen

bool

exclusive

false

bool

extend_to_title

false

bool

force_native

false

WindowInitialPosition

initial_position

0

bool

keep_title_visible

false

Vector2i

max_size

Vector2i(0, 0)

Vector2i

min_size

Vector2i(0, 0)

Mode

mode

0

bool

mouse_passthrough

false

PackedVector2Array

mouse_passthrough_polygon

PackedVector2Array()

bool

popup_window

false

Vector2i

position

Vector2i(0, 0)

Vector2i

size

Vector2i(100, 100)

Theme

theme

StringName

theme_type_variation

&""

String

title

""

bool

transient

false

bool

transient_to_focused

false

bool

transparent

false

bool

unfocusable

false

bool

unresizable

false

bool

visible

true

bool

wrap_controls

false

Methods

Vector2

_get_contents_minimum_size ( ) virtual const

void

add_theme_color_override ( StringName name, Color color )

void

add_theme_constant_override ( StringName name, int constant )

void

add_theme_font_override ( StringName name, Font font )

void

add_theme_font_size_override ( StringName name, int font_size )

void

add_theme_icon_override ( StringName name, Texture2D texture )

void

add_theme_stylebox_override ( StringName name, StyleBox stylebox )

void

begin_bulk_theme_override ( )

bool

can_draw ( ) const

void

child_controls_changed ( )

void

end_bulk_theme_override ( )

Vector2

get_contents_minimum_size ( ) const

bool

get_flag ( Flags flag ) const

LayoutDirection

get_layout_direction ( ) const

Vector2i

get_position_with_decorations ( ) const

Vector2i

get_size_with_decorations ( ) const

Color

get_theme_color ( StringName name, StringName theme_type=&”” ) const

int

get_theme_constant ( StringName name, StringName theme_type=&”” ) const

float

get_theme_default_base_scale ( ) const

Font

get_theme_default_font ( ) const

int

get_theme_default_font_size ( ) const

Font

get_theme_font ( StringName name, StringName theme_type=&”” ) const

int

get_theme_font_size ( StringName name, StringName theme_type=&”” ) const

Texture2D

get_theme_icon ( StringName name, StringName theme_type=&”” ) const

StyleBox

get_theme_stylebox ( StringName name, StringName theme_type=&”” ) const

int

get_window_id ( ) const

void

grab_focus ( )

bool

has_focus ( ) const

bool

has_theme_color ( StringName name, StringName theme_type=&”” ) const

bool

has_theme_color_override ( StringName name ) const

bool

has_theme_constant ( StringName name, StringName theme_type=&”” ) const

bool

has_theme_constant_override ( StringName name ) const

bool

has_theme_font ( StringName name, StringName theme_type=&”” ) const

bool

has_theme_font_override ( StringName name ) const

bool

has_theme_font_size ( StringName name, StringName theme_type=&”” ) const

bool

has_theme_font_size_override ( StringName name ) const

bool

has_theme_icon ( StringName name, StringName theme_type=&”” ) const

bool

has_theme_icon_override ( StringName name ) const

bool

has_theme_stylebox ( StringName name, StringName theme_type=&”” ) const

bool

has_theme_stylebox_override ( StringName name ) const

void

hide ( )

bool

is_embedded ( ) const

bool

is_layout_rtl ( ) const

bool

is_maximize_allowed ( ) const

bool

is_using_font_oversampling ( ) const

void

move_to_center ( )

void

move_to_foreground ( )

void

popup ( Rect2i rect=Rect2i(0, 0, 0, 0) )

void

popup_centered ( Vector2i minsize=Vector2i(0, 0) )

void

popup_centered_clamped ( Vector2i minsize=Vector2i(0, 0), float fallback_ratio=0.75 )

void

popup_centered_ratio ( float ratio=0.8 )

void

popup_exclusive ( Node from_node, Rect2i rect=Rect2i(0, 0, 0, 0) )

void

popup_exclusive_centered ( Node from_node, Vector2i minsize=Vector2i(0, 0) )

void

popup_exclusive_centered_clamped ( Node from_node, Vector2i minsize=Vector2i(0, 0), float fallback_ratio=0.75 )

void

popup_exclusive_centered_ratio ( Node from_node, float ratio=0.8 )

void

popup_exclusive_on_parent ( Node from_node, Rect2i parent_rect )

void

popup_on_parent ( Rect2i parent_rect )

void

remove_theme_color_override ( StringName name )

void

remove_theme_constant_override ( StringName name )

void

remove_theme_font_override ( StringName name )

void

remove_theme_font_size_override ( StringName name )

void

remove_theme_icon_override ( StringName name )

void

remove_theme_stylebox_override ( StringName name )

void

request_attention ( )

void

reset_size ( )

void

set_flag ( Flags flag, bool enabled )

void

set_ime_active ( bool active )

void

set_ime_position ( Vector2i position )

void

set_layout_direction ( LayoutDirection direction )

void

set_unparent_when_invisible ( bool unparent )

void

set_use_font_oversampling ( bool enable )

void

show ( )

Theme Properties

Color

title_color

Color(0.875, 0.875, 0.875, 1)

Color

title_outline_modulate

Color(0, 0, 0, 1)

int

close_h_offset

18

int

close_v_offset

24

int

resize_margin

4

int

title_height

36

int

title_outline_size

0

Font

title_font

int

title_font_size

Texture2D

close

Texture2D

close_pressed

StyleBox

embedded_border

StyleBox

embedded_unfocused_border


Signals

about_to_popup ( )

There is currently no description for this signal. Please help us by contributing one!


close_requested ( )

There is currently no description for this signal. Please help us by contributing one!


dpi_changed ( )

There is currently no description for this signal. Please help us by contributing one!


files_dropped ( PackedStringArray files )

There is currently no description for this signal. Please help us by contributing one!


focus_entered ( )

There is currently no description for this signal. Please help us by contributing one!


focus_exited ( )

There is currently no description for this signal. Please help us by contributing one!


go_back_requested ( )

There is currently no description for this signal. Please help us by contributing one!


mouse_entered ( )

There is currently no description for this signal. Please help us by contributing one!


mouse_exited ( )

There is currently no description for this signal. Please help us by contributing one!


theme_changed ( )

There is currently no description for this signal. Please help us by contributing one!


titlebar_changed ( )

There is currently no description for this signal. Please help us by contributing one!


visibility_changed ( )

There is currently no description for this signal. Please help us by contributing one!


window_input ( InputEvent event )

There is currently no description for this signal. Please help us by contributing one!


Enumerations

enum Mode:

Mode MODE_WINDOWED = 0

There is currently no description for this enum. Please help us by contributing one!

Mode MODE_MINIMIZED = 1

There is currently no description for this enum. Please help us by contributing one!

Mode MODE_MAXIMIZED = 2

There is currently no description for this enum. Please help us by contributing one!

Mode MODE_FULLSCREEN = 3

There is currently no description for this enum. Please help us by contributing one!

Mode MODE_EXCLUSIVE_FULLSCREEN = 4

There is currently no description for this enum. Please help us by contributing one!


enum Flags:

Flags FLAG_RESIZE_DISABLED = 0

There is currently no description for this enum. Please help us by contributing one!

Flags FLAG_BORDERLESS = 1

There is currently no description for this enum. Please help us by contributing one!

Flags FLAG_ALWAYS_ON_TOP = 2

There is currently no description for this enum. Please help us by contributing one!

Flags FLAG_TRANSPARENT = 3

There is currently no description for this enum. Please help us by contributing one!

Flags FLAG_NO_FOCUS = 4

There is currently no description for this enum. Please help us by contributing one!

Flags FLAG_POPUP = 5

There is currently no description for this enum. Please help us by contributing one!

Flags FLAG_EXTEND_TO_TITLE = 6

There is currently no description for this enum. Please help us by contributing one!

Flags FLAG_MOUSE_PASSTHROUGH = 7

There is currently no description for this enum. Please help us by contributing one!

Flags FLAG_MAX = 8

There is currently no description for this enum. Please help us by contributing one!


enum ContentScaleMode:

ContentScaleMode CONTENT_SCALE_MODE_DISABLED = 0

There is currently no description for this enum. Please help us by contributing one!

ContentScaleMode CONTENT_SCALE_MODE_CANVAS_ITEMS = 1

There is currently no description for this enum. Please help us by contributing one!

ContentScaleMode CONTENT_SCALE_MODE_VIEWPORT = 2

There is currently no description for this enum. Please help us by contributing one!


enum ContentScaleAspect:

ContentScaleAspect CONTENT_SCALE_ASPECT_IGNORE = 0

There is currently no description for this enum. Please help us by contributing one!

ContentScaleAspect CONTENT_SCALE_ASPECT_KEEP = 1

There is currently no description for this enum. Please help us by contributing one!

ContentScaleAspect CONTENT_SCALE_ASPECT_KEEP_WIDTH = 2

There is currently no description for this enum. Please help us by contributing one!

ContentScaleAspect CONTENT_SCALE_ASPECT_KEEP_HEIGHT = 3

There is currently no description for this enum. Please help us by contributing one!

ContentScaleAspect CONTENT_SCALE_ASPECT_EXPAND = 4

There is currently no description for this enum. Please help us by contributing one!


enum ContentScaleStretch:

ContentScaleStretch CONTENT_SCALE_STRETCH_FRACTIONAL = 0

There is currently no description for this enum. Please help us by contributing one!

ContentScaleStretch CONTENT_SCALE_STRETCH_INTEGER = 1

There is currently no description for this enum. Please help us by contributing one!


enum LayoutDirection:

LayoutDirection LAYOUT_DIRECTION_INHERITED = 0

There is currently no description for this enum. Please help us by contributing one!

LayoutDirection LAYOUT_DIRECTION_LOCALE = 1

There is currently no description for this enum. Please help us by contributing one!

LayoutDirection LAYOUT_DIRECTION_LTR = 2

There is currently no description for this enum. Please help us by contributing one!

LayoutDirection LAYOUT_DIRECTION_RTL = 3

There is currently no description for this enum. Please help us by contributing one!


enum WindowInitialPosition:

WindowInitialPosition WINDOW_INITIAL_POSITION_ABSOLUTE = 0

There is currently no description for this enum. Please help us by contributing one!

WindowInitialPosition WINDOW_INITIAL_POSITION_CENTER_PRIMARY_SCREEN = 1

There is currently no description for this enum. Please help us by contributing one!

WindowInitialPosition WINDOW_INITIAL_POSITION_CENTER_MAIN_WINDOW_SCREEN = 2

There is currently no description for this enum. Please help us by contributing one!

WindowInitialPosition WINDOW_INITIAL_POSITION_CENTER_OTHER_SCREEN = 3

There is currently no description for this enum. Please help us by contributing one!

WindowInitialPosition WINDOW_INITIAL_POSITION_CENTER_SCREEN_WITH_MOUSE_FOCUS = 4

There is currently no description for this enum. Please help us by contributing one!

WindowInitialPosition WINDOW_INITIAL_POSITION_CENTER_SCREEN_WITH_KEYBOARD_FOCUS = 5

There is currently no description for this enum. Please help us by contributing one!


Constants

NOTIFICATION_VISIBILITY_CHANGED = 30

There is currently no description for this constant. Please help us by contributing one!

NOTIFICATION_THEME_CHANGED = 32

There is currently no description for this constant. Please help us by contributing one!


Property Descriptions

bool always_on_top = false

There is currently no description for this property. Please help us by contributing one!


bool auto_translate = true

  • void set_auto_translate ( bool value )

  • bool is_auto_translating ( )

There is currently no description for this property. Please help us by contributing one!


bool borderless = false

There is currently no description for this property. Please help us by contributing one!


ContentScaleAspect content_scale_aspect = 0

There is currently no description for this property. Please help us by contributing one!


float content_scale_factor = 1.0

  • void set_content_scale_factor ( float value )

  • float get_content_scale_factor ( )

There is currently no description for this property. Please help us by contributing one!


ContentScaleMode content_scale_mode = 0

There is currently no description for this property. Please help us by contributing one!


Vector2i content_scale_size = Vector2i(0, 0)

  • void set_content_scale_size ( Vector2i value )

  • Vector2i get_content_scale_size ( )

There is currently no description for this property. Please help us by contributing one!


ContentScaleStretch content_scale_stretch = 0

There is currently no description for this property. Please help us by contributing one!


int current_screen

  • void set_current_screen ( int value )

  • int get_current_screen ( )

There is currently no description for this property. Please help us by contributing one!


bool exclusive = false

  • void set_exclusive ( bool value )

  • bool is_exclusive ( )

There is currently no description for this property. Please help us by contributing one!


bool extend_to_title = false

There is currently no description for this property. Please help us by contributing one!


bool force_native = false

  • void set_force_native ( bool value )

  • bool get_force_native ( )

There is currently no description for this property. Please help us by contributing one!


WindowInitialPosition initial_position = 0

There is currently no description for this property. Please help us by contributing one!


bool keep_title_visible = false

  • void set_keep_title_visible ( bool value )

  • bool get_keep_title_visible ( )

There is currently no description for this property. Please help us by contributing one!


Vector2i max_size = Vector2i(0, 0)

There is currently no description for this property. Please help us by contributing one!


Vector2i min_size = Vector2i(0, 0)

There is currently no description for this property. Please help us by contributing one!


Mode mode = 0

  • void set_mode ( Mode value )

  • Mode get_mode ( )

There is currently no description for this property. Please help us by contributing one!


bool mouse_passthrough = false

There is currently no description for this property. Please help us by contributing one!


PackedVector2Array mouse_passthrough_polygon = PackedVector2Array()

There is currently no description for this property. Please help us by contributing one!


bool popup_window = false

There is currently no description for this property. Please help us by contributing one!


Vector2i position = Vector2i(0, 0)

There is currently no description for this property. Please help us by contributing one!


Vector2i size = Vector2i(100, 100)

There is currently no description for this property. Please help us by contributing one!


Theme theme

  • void set_theme ( Theme value )

  • Theme get_theme ( )

There is currently no description for this property. Please help us by contributing one!


StringName theme_type_variation = &""

There is currently no description for this property. Please help us by contributing one!


String title = ""

There is currently no description for this property. Please help us by contributing one!


bool transient = false

  • void set_transient ( bool value )

  • bool is_transient ( )

There is currently no description for this property. Please help us by contributing one!


bool transient_to_focused = false

  • void set_transient_to_focused ( bool value )

  • bool is_transient_to_focused ( )

There is currently no description for this property. Please help us by contributing one!


bool transparent = false

There is currently no description for this property. Please help us by contributing one!


bool unfocusable = false

There is currently no description for this property. Please help us by contributing one!


bool unresizable = false

There is currently no description for this property. Please help us by contributing one!


bool visible = true

  • void set_visible ( bool value )

  • bool is_visible ( )

There is currently no description for this property. Please help us by contributing one!


bool wrap_controls = false

  • void set_wrap_controls ( bool value )

  • bool is_wrapping_controls ( )

There is currently no description for this property. Please help us by contributing one!


Method Descriptions

Vector2 _get_contents_minimum_size ( ) virtual const

There is currently no description for this method. Please help us by contributing one!


void add_theme_color_override ( StringName name, Color color )

There is currently no description for this method. Please help us by contributing one!


void add_theme_constant_override ( StringName name, int constant )

There is currently no description for this method. Please help us by contributing one!


void add_theme_font_override ( StringName name, Font font )

There is currently no description for this method. Please help us by contributing one!


void add_theme_font_size_override ( StringName name, int font_size )

There is currently no description for this method. Please help us by contributing one!


void add_theme_icon_override ( StringName name, Texture2D texture )

There is currently no description for this method. Please help us by contributing one!


void add_theme_stylebox_override ( StringName name, StyleBox stylebox )

There is currently no description for this method. Please help us by contributing one!


void begin_bulk_theme_override ( )

There is currently no description for this method. Please help us by contributing one!


bool can_draw ( ) const

There is currently no description for this method. Please help us by contributing one!


void child_controls_changed ( )

There is currently no description for this method. Please help us by contributing one!


void end_bulk_theme_override ( )

There is currently no description for this method. Please help us by contributing one!


Vector2 get_contents_minimum_size ( ) const

There is currently no description for this method. Please help us by contributing one!


bool get_flag ( Flags flag ) const

There is currently no description for this method. Please help us by contributing one!


LayoutDirection get_layout_direction ( ) const

There is currently no description for this method. Please help us by contributing one!


Vector2i get_position_with_decorations ( ) const

There is currently no description for this method. Please help us by contributing one!


Vector2i get_size_with_decorations ( ) const

There is currently no description for this method. Please help us by contributing one!


Color get_theme_color ( StringName name, StringName theme_type=&”” ) const

There is currently no description for this method. Please help us by contributing one!


int get_theme_constant ( StringName name, StringName theme_type=&”” ) const

There is currently no description for this method. Please help us by contributing one!


float get_theme_default_base_scale ( ) const

There is currently no description for this method. Please help us by contributing one!


Font get_theme_default_font ( ) const

There is currently no description for this method. Please help us by contributing one!


int get_theme_default_font_size ( ) const

There is currently no description for this method. Please help us by contributing one!


Font get_theme_font ( StringName name, StringName theme_type=&”” ) const

There is currently no description for this method. Please help us by contributing one!


int get_theme_font_size ( StringName name, StringName theme_type=&”” ) const

There is currently no description for this method. Please help us by contributing one!


Texture2D get_theme_icon ( StringName name, StringName theme_type=&”” ) const

There is currently no description for this method. Please help us by contributing one!


StyleBox get_theme_stylebox ( StringName name, StringName theme_type=&”” ) const

There is currently no description for this method. Please help us by contributing one!


int get_window_id ( ) const

There is currently no description for this method. Please help us by contributing one!


void grab_focus ( )

There is currently no description for this method. Please help us by contributing one!


bool has_focus ( ) const

There is currently no description for this method. Please help us by contributing one!


bool has_theme_color ( StringName name, StringName theme_type=&”” ) const

There is currently no description for this method. Please help us by contributing one!


bool has_theme_color_override ( StringName name ) const

There is currently no description for this method. Please help us by contributing one!


bool has_theme_constant ( StringName name, StringName theme_type=&”” ) const

There is currently no description for this method. Please help us by contributing one!


bool has_theme_constant_override ( StringName name ) const

There is currently no description for this method. Please help us by contributing one!


bool has_theme_font ( StringName name, StringName theme_type=&”” ) const

There is currently no description for this method. Please help us by contributing one!


bool has_theme_font_override ( StringName name ) const

There is currently no description for this method. Please help us by contributing one!


bool has_theme_font_size ( StringName name, StringName theme_type=&”” ) const

There is currently no description for this method. Please help us by contributing one!


bool has_theme_font_size_override ( StringName name ) const

There is currently no description for this method. Please help us by contributing one!


bool has_theme_icon ( StringName name, StringName theme_type=&”” ) const

There is currently no description for this method. Please help us by contributing one!


bool has_theme_icon_override ( StringName name ) const

There is currently no description for this method. Please help us by contributing one!


bool has_theme_stylebox ( StringName name, StringName theme_type=&”” ) const

There is currently no description for this method. Please help us by contributing one!


bool has_theme_stylebox_override ( StringName name ) const

There is currently no description for this method. Please help us by contributing one!


void hide ( )

There is currently no description for this method. Please help us by contributing one!


bool is_embedded ( ) const

There is currently no description for this method. Please help us by contributing one!


bool is_layout_rtl ( ) const

There is currently no description for this method. Please help us by contributing one!


bool is_maximize_allowed ( ) const

There is currently no description for this method. Please help us by contributing one!


bool is_using_font_oversampling ( ) const

There is currently no description for this method. Please help us by contributing one!


void move_to_center ( )

There is currently no description for this method. Please help us by contributing one!


void move_to_foreground ( )

There is currently no description for this method. Please help us by contributing one!


void popup ( Rect2i rect=Rect2i(0, 0, 0, 0) )

There is currently no description for this method. Please help us by contributing one!


void popup_centered ( Vector2i minsize=Vector2i(0, 0) )

There is currently no description for this method. Please help us by contributing one!


void popup_centered_clamped ( Vector2i minsize=Vector2i(0, 0), float fallback_ratio=0.75 )

There is currently no description for this method. Please help us by contributing one!


void popup_centered_ratio ( float ratio=0.8 )

There is currently no description for this method. Please help us by contributing one!


void popup_exclusive ( Node from_node, Rect2i rect=Rect2i(0, 0, 0, 0) )

There is currently no description for this method. Please help us by contributing one!


void popup_exclusive_centered ( Node from_node, Vector2i minsize=Vector2i(0, 0) )

There is currently no description for this method. Please help us by contributing one!


void popup_exclusive_centered_clamped ( Node from_node, Vector2i minsize=Vector2i(0, 0), float fallback_ratio=0.75 )

There is currently no description for this method. Please help us by contributing one!


void popup_exclusive_centered_ratio ( Node from_node, float ratio=0.8 )

There is currently no description for this method. Please help us by contributing one!


void popup_exclusive_on_parent ( Node from_node, Rect2i parent_rect )

There is currently no description for this method. Please help us by contributing one!


void popup_on_parent ( Rect2i parent_rect )

There is currently no description for this method. Please help us by contributing one!


void remove_theme_color_override ( StringName name )

There is currently no description for this method. Please help us by contributing one!


void remove_theme_constant_override ( StringName name )

There is currently no description for this method. Please help us by contributing one!


void remove_theme_font_override ( StringName name )

There is currently no description for this method. Please help us by contributing one!


void remove_theme_font_size_override ( StringName name )

There is currently no description for this method. Please help us by contributing one!


void remove_theme_icon_override ( StringName name )

There is currently no description for this method. Please help us by contributing one!


void remove_theme_stylebox_override ( StringName name )

There is currently no description for this method. Please help us by contributing one!


void request_attention ( )

There is currently no description for this method. Please help us by contributing one!


void reset_size ( )

There is currently no description for this method. Please help us by contributing one!


void set_flag ( Flags flag, bool enabled )

There is currently no description for this method. Please help us by contributing one!


void set_ime_active ( bool active )

There is currently no description for this method. Please help us by contributing one!


void set_ime_position ( Vector2i position )

There is currently no description for this method. Please help us by contributing one!


void set_layout_direction ( LayoutDirection direction )

There is currently no description for this method. Please help us by contributing one!


void set_unparent_when_invisible ( bool unparent )

There is currently no description for this method. Please help us by contributing one!


void set_use_font_oversampling ( bool enable )

There is currently no description for this method. Please help us by contributing one!


void show ( )

There is currently no description for this method. Please help us by contributing one!


Theme Property Descriptions

Color title_color = Color(0.875, 0.875, 0.875, 1)

There is currently no description for this theme property. Please help us by contributing one!


Color title_outline_modulate = Color(0, 0, 0, 1)

There is currently no description for this theme property. Please help us by contributing one!


int close_h_offset = 18

There is currently no description for this theme property. Please help us by contributing one!


int close_v_offset = 24

There is currently no description for this theme property. Please help us by contributing one!


int resize_margin = 4

There is currently no description for this theme property. Please help us by contributing one!


int title_height = 36

There is currently no description for this theme property. Please help us by contributing one!


int title_outline_size = 0

There is currently no description for this theme property. Please help us by contributing one!


Font title_font

There is currently no description for this theme property. Please help us by contributing one!


int title_font_size

There is currently no description for this theme property. Please help us by contributing one!


Texture2D close

There is currently no description for this theme property. Please help us by contributing one!


Texture2D close_pressed

There is currently no description for this theme property. Please help us by contributing one!


StyleBox embedded_border

There is currently no description for this theme property. Please help us by contributing one!


StyleBox embedded_unfocused_border

There is currently no description for this theme property. Please help us by contributing one!