summaryrefslogtreecommitdiff
path: root/src/platform.h
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik.ramaekers@protonmail.com>2020-05-11 13:26:16 +0200
committerAldrik Ramaekers <aldrik.ramaekers@protonmail.com>2020-05-11 13:26:16 +0200
commit5392f970f970ba0d5f4642b11935e61653086aae (patch)
tree020b881d0b93d3af82d2b4d83e7ca7e44101f052 /src/platform.h
parent45d1a969f70e1b127eb0aaab94dfce33b18e42ee (diff)
work
Diffstat (limited to 'src/platform.h')
-rw-r--r--src/platform.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/platform.h b/src/platform.h
index b3d30e9..14118d2 100644
--- a/src/platform.h
+++ b/src/platform.h
@@ -160,11 +160,24 @@ typedef struct t_vec2
s32 y;
} vec2;
+// NOT IMPLEMENTED ON LINUX: USE FLAGS_NONE
+typedef enum t_window_flags
+{
+ FLAGS_NONE = 0,
+ FLAGS_BORDERLESS = 1,
+ FLAGS_TOPMOST = 2,
+ FLAGS_GLOBAL_MOUSE = 4,
+ FLAGS_HIDDEN = 8,
+} window_flags;
+// NOT IMPLEMENTED ON LINUX: USE FLAGS_NONE
+
platform_window *main_window = 0;
platform_window *settings_window = 0;
bool platform_window_is_valid(platform_window *window);
-platform_window platform_open_window(char *name, u16 width, u16 height, u16 max_w, u16 max_h, u16 min_w, u16 min_h);
+
+#define platform_open_window(name, width, height, max_w, max_h, min_w, min_h) platform_open_window_ex(name,width,height,max_w,max_h,min_w,min_h, 0)
+platform_window platform_open_window_ex(char *name, u16 width, u16 height, u16 max_w, u16 max_h, u16 min_w, u16 min_h, s32 flags);
void platform_get_focus(platform_window *window);
bool platform_set_clipboard(platform_window *window, char *buffer);
bool platform_get_clipboard(platform_window *window, char *buffer);