summaryrefslogtreecommitdiffstats
path: root/core/os/os.h
diff options
context:
space:
mode:
authorMarcelo Fernandez <marcelofg55@gmail.com>2018-02-12 14:17:29 -0300
committerMarcelo Fernandez <marcelofg55@gmail.com>2018-02-12 15:45:41 -0300
commitea1d726a4603fdd6bd4dfa6c1fa3128cfb2915c7 (patch)
tree109889d417d20c47442d9bcae765fb7f0703018d /core/os/os.h
parentf961ba004b1d67cbc0835202930fa8d16b8ff07a (diff)
downloadredot-engine-ea1d726a4603fdd6bd4dfa6c1fa3128cfb2915c7.tar.gz
Added OS::center_window to center the window precisely on desktop platforms
Diffstat (limited to 'core/os/os.h')
-rw-r--r--core/os/os.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/os/os.h b/core/os/os.h
index 248e1dbefa..1ec488df06 100644
--- a/core/os/os.h
+++ b/core/os/os.h
@@ -182,6 +182,7 @@ public:
virtual Point2 get_window_position() const { return Vector2(); }
virtual void set_window_position(const Point2 &p_position) {}
virtual Size2 get_window_size() const = 0;
+ virtual Size2 get_real_window_size() const { return get_window_size(); }
virtual void set_window_size(const Size2 p_size) {}
virtual void set_window_fullscreen(bool p_enabled) {}
virtual bool is_window_fullscreen() const { return true; }
@@ -192,6 +193,7 @@ public:
virtual void set_window_maximized(bool p_enabled) {}
virtual bool is_window_maximized() const { return true; }
virtual void request_attention() {}
+ virtual void center_window();
virtual void set_borderless_window(bool p_borderless) {}
virtual bool get_borderless_window() { return 0; }