diff options
| author | eska | 2016-11-26 13:13:16 +0100 |
|---|---|---|
| committer | eska | 2017-03-07 14:11:00 +0100 |
| commit | 9518401100de0efdda026f3ee5c7d2c10eca8840 (patch) | |
| tree | 8b84dfeb67c41311c539b6d6936895a00e64a297 /platform/javascript/os_javascript.h | |
| parent | d34c530a7ffc4b52c46ad52c0c525c2987d37575 (diff) | |
| download | godot-9518401100de0efdda026f3ee5c7d2c10eca8840.tar.gz godot-9518401100de0efdda026f3ee5c7d2c10eca8840.tar.zst godot-9518401100de0efdda026f3ee5c7d2c10eca8840.zip | |
Diffstat (limited to 'platform/javascript/os_javascript.h')
| -rw-r--r-- | platform/javascript/os_javascript.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/platform/javascript/os_javascript.h b/platform/javascript/os_javascript.h index dbd0794f7..e14c2a2a0 100644 --- a/platform/javascript/os_javascript.h +++ b/platform/javascript/os_javascript.h @@ -80,7 +80,8 @@ private: const char* gl_extensions; InputDefault *input; - VideoMode default_videomode; + bool window_maximized; + VideoMode video_mode; MainLoop * main_loop; GetDataDirFunc get_data_dir_func; @@ -135,7 +136,15 @@ public: virtual VideoMode get_video_mode(int p_screen=0) const; virtual void get_fullscreen_mode_list(List<VideoMode> *p_list,int p_screen=0) const; + virtual Size2 get_screen_size(int p_screen=0) const; + + virtual void set_window_size(const Size2); virtual Size2 get_window_size() const; + virtual void set_window_maximized(bool p_enabled); + virtual bool is_window_maximized() const { return window_maximized; } + virtual void set_window_fullscreen(bool p_enable); + virtual bool is_window_fullscreen() const; + virtual String get_name(); virtual MainLoop *get_main_loop() const; @@ -153,7 +162,6 @@ public: virtual bool has_touchscreen_ui_hint() const; void set_opengl_extensions(const char* p_gl_extensions); - void set_display_size(Size2 p_size); void reload_gfx(); |
