2023-09-03 00:51:45 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
2023-11-29 05:28:54 +02:00
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
2023-09-03 00:51:45 +03:00
|
|
|
#include <X11/Xlib.h>
|
|
|
|
|
|
2023-11-29 05:28:54 +02:00
|
|
|
int x11_init(Display **display, Window *window, const char* title, int window_width, int window_height);
|
|
|
|
|
void x11_close(Display **display, Window *window);
|
|
|
|
|
void x11_resize_window(Display *display, Window window);
|
|
|
|
|
void x11_toggle_fullscreen(bool fullscreen, Display *display, Window window);
|
|
|
|
|
void x11_get_screen_size(Display *display, int *width, int *height);
|
2023-11-26 01:29:17 +02:00
|
|
|
void x11_make_window_non_resizable(Display *display, Window window, int width, int height);
|