mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Added OS::center_window to center the window precisely on desktop platforms
This commit is contained in:
parent
7983fb95b0
commit
129e0f34d0
10 changed files with 62 additions and 1 deletions
|
|
@ -142,6 +142,7 @@ public:
|
|||
virtual Point2 get_window_position() const;
|
||||
virtual void set_window_position(const Point2 &p_position);
|
||||
virtual Size2 get_window_size() const;
|
||||
virtual Size2 get_real_window_size() const;
|
||||
virtual void set_window_size(const Size2 &p_size);
|
||||
virtual void set_window_fullscreen(bool p_enabled);
|
||||
virtual bool is_window_fullscreen() const;
|
||||
|
|
@ -152,6 +153,7 @@ public:
|
|||
virtual void set_window_maximized(bool p_enabled);
|
||||
virtual bool is_window_maximized() const;
|
||||
virtual void request_attention();
|
||||
virtual void center_window();
|
||||
|
||||
virtual void set_borderless_window(bool p_borderless);
|
||||
virtual bool get_borderless_window() const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue