GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
gp_xcb.h File Reference

A xcb backend. More...

Go to the source code of this file.

Functions

gp_backendgp_xcb_init (const char *display, int x, int y, unsigned int w, unsigned int h, const char *caption)
 Initalize XCB backend.
 

Detailed Description

A xcb backend.

Definition in file gp_xcb.h.

Function Documentation

◆ gp_xcb_init()

gp_backend * gp_xcb_init ( const char * display,
int x,
int y,
unsigned int w,
unsigned int h,
const char * caption )

Initalize XCB backend.

The display may be NULL for default display ($DISPLAY shell variable will be used).

Parameters
displayA X display to connect to, pass NULL for a default.
xA x window offset.
yA y window offset.
wA window width.
hA window height.
Returns
Newly initialized backend or on a failure NULL.