blob: 6421f4b5b5f64f895558b9d25ac17f7dac134439 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/*
* x11_support.h
*
* Relevant helper functions for acquiring a drawing surface on X11
* Created by buzzert <buzzert@buzzert.net> 2019-01-18
*/
#pragma once
#include <cairo/cairo.h>
#include <cairo-xlib.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
void x11_get_display_bounds(int *width, int *height);
// Sets up a window and returns a cairo_surface to draw onto
cairo_surface_t* x11_helper_acquire_cairo_surface(int width, int height);
// Cleanup
void x11_helper_destroy_surface(cairo_surface_t *surface);
|