Add separate minimize_disabled and maximize_disabled window flags.

This commit is contained in:
Pāvels Nadtočajevs
2025-04-06 17:38:00 +03:00
parent af2c713971
commit f37fb49739
20 changed files with 212 additions and 20 deletions

View File

@ -479,6 +479,8 @@ class DisplayServerWindows : public DisplayServer {
bool multiwindow_fs = false;
bool borderless = false;
bool resizable = true;
bool no_min_btn = false;
bool no_max_btn = false;
bool window_focused = false;
int activate_state = 0;
bool was_maximized_pre_fs = false;
@ -617,7 +619,7 @@ class DisplayServerWindows : public DisplayServer {
HashMap<int64_t, Vector2> pointer_last_pos;
void _send_window_event(const WindowData &wd, WindowEvent p_event);
void _get_window_style(bool p_main_window, bool p_initialized, bool p_fullscreen, bool p_multiwindow_fs, bool p_borderless, bool p_resizable, bool p_minimized, bool p_maximized, bool p_maximized_fs, bool p_no_activate_focus, bool p_embed_child, DWORD &r_style, DWORD &r_style_ex);
void _get_window_style(bool p_main_window, bool p_initialized, bool p_fullscreen, bool p_multiwindow_fs, bool p_borderless, bool p_resizable, bool p_no_min_btn, bool p_no_max_btn, bool p_minimized, bool p_maximized, bool p_maximized_fs, bool p_no_activate_focus, bool p_embed_child, DWORD &r_style, DWORD &r_style_ex);
MouseMode mouse_mode;
MouseMode mouse_mode_base = MOUSE_MODE_VISIBLE;