GFXprim
2D bitmap graphics library with emphasis on speed and correctness
|
A X11 backend. More...
#include <backends/gp_backend.h>
Go to the source code of this file.
Enumerations | |
enum | gp_x11_flags { GP_X11_USE_ROOT_WIN = 0x01 , GP_X11_CREATE_ROOT_WIN = 0x02 , GP_X11_FULLSCREEN = 0x04 , GP_X11_DISABLE_SHM = 0x08 } |
A X11 backend init flags. More... | |
Functions | |
gp_backend * | gp_x11_init (const char *display, int x, int y, unsigned int w, unsigned int h, const char *caption, enum gp_x11_flags flags) |
X11 backend initialization. | |
A X11 backend.
X11 backend supports multiple windows, you can call the init function multiple times, each time you get a backend representing a new X11 window that will share the underlying X11 server connection.
Definition in file gp_x11.h.
enum gp_x11_flags |
gp_backend * gp_x11_init | ( | const char * | display, |
int | x, | ||
int | y, | ||
unsigned int | w, | ||
unsigned int | h, | ||
const char * | caption, | ||
enum gp_x11_flags | flags | ||
) |
X11 backend initialization.
display | A X11 display. If NULL default is used. |
x | A window X offset. |
y | A window Y offset. |
w | A window width. |
h | A window height. |
caption | A window caption. |
flags | A bitwise combination of enum gp_x11_flags. |