summaryrefslogtreecommitdiff
path: root/platform/windows/os_windows.h
diff options
context:
space:
mode:
Diffstat (limited to 'platform/windows/os_windows.h')
-rw-r--r--platform/windows/os_windows.h32
1 files changed, 18 insertions, 14 deletions
diff --git a/platform/windows/os_windows.h b/platform/windows/os_windows.h
index ab4acf312c..3116847daa 100644
--- a/platform/windows/os_windows.h
+++ b/platform/windows/os_windows.h
@@ -138,27 +138,27 @@ class OS_Windows : public OS {
void _touch_event(bool p_pressed, int p_x, int p_y, int idx);
// functions used by main to initialize/deintialize the OS
-protected:
+protected:
virtual int get_video_driver_count() const;
virtual const char * get_video_driver_name(int p_driver) const;
-
+
virtual VideoMode get_default_video_mode() const;
-
+
virtual int get_audio_driver_count() const;
virtual const char * get_audio_driver_name(int p_driver) const;
-
+
virtual void initialize_core();
virtual void initialize(const VideoMode& p_desired,int p_video_driver,int p_audio_driver);
-
- virtual void set_main_loop( MainLoop * p_main_loop );
+
+ virtual void set_main_loop( MainLoop * p_main_loop );
virtual void delete_main_loop();
-
+
virtual void finalize();
virtual void finalize_core();
-
+
void process_events();
void process_key_events();
-
+
struct ProcessInfo {
STARTUPINFO si;
@@ -179,6 +179,7 @@ protected:
Vector<MonitorInfo> monitor_info;
bool maximized;
bool minimized;
+ bool borderless;
static BOOL CALLBACK MonitorEnumProc(HMONITOR hMonitor, HDC hdcMonitor, LPRECT lprcMonitor, LPARAM dwData);
@@ -200,7 +201,7 @@ public:
virtual Point2 get_mouse_pos() const;
virtual int get_mouse_button_state() const;
virtual void set_window_title(const String& p_title);
-
+
virtual void set_video_mode(const VideoMode& p_video_mode,int p_screen=0);
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;
@@ -223,10 +224,13 @@ public:
virtual void set_window_maximized(bool p_enabled);
virtual bool is_window_maximized() const;
+ virtual void set_borderless_window(int p_borderless);
+ virtual bool get_borderless_window();
+
virtual MainLoop *get_main_loop() const;
virtual String get_name();
-
+
virtual Date get_date(bool utc) const;
virtual Time get_time(bool utc) const;
virtual TimeZoneInfo get_time_zone_info() const;
@@ -236,12 +240,12 @@ public:
virtual bool can_draw() const;
virtual Error set_cwd(const String& p_cwd);
- virtual void delay_usec(uint32_t p_usec) const;
+ virtual void delay_usec(uint32_t p_usec) const;
virtual uint64_t get_ticks_usec() const;
virtual Error execute(const String& p_path, const List<String>& p_arguments,bool p_blocking,ProcessID *r_child_id=NULL,String* r_pipe=NULL,int *r_exitcode=NULL);
virtual Error kill(const ProcessID& p_pid);
-
+
virtual bool has_environment(const String& p_var) const;
virtual String get_environment(const String& p_var) const;
@@ -273,7 +277,7 @@ public:
virtual bool is_joy_known(int p_device);
virtual String get_joy_guid(int p_device) const;
- OS_Windows(HINSTANCE _hInstance);
+ OS_Windows(HINSTANCE _hInstance);
~OS_Windows();
};