gtk2/gdk/broadway/broadway.h
Alexander Larsson 7f0e43c0fd [broadway] Import broadway lib
We put this in gtk+ for now since it will be synced initially, but
it avoids using glib so that it can be used lower in the stack if
required (e.g. in cairo later).
2010-11-25 22:09:29 +01:00

56 lines
1.9 KiB
C

typedef struct BroadwayClient BroadwayClient;
typedef struct {
int x, y;
int width, height;
} BroadwayRect;
BroadwayClient *broadway_client_new (int fd);
void broadway_client_flush (BroadwayClient *client);
void broadway_client_new_surface (BroadwayClient *client,
int id,
int x,
int y,
int w,
int h);
void broadway_client_show_surface (BroadwayClient *client,
int id);
void broadway_client_hide_surface (BroadwayClient *client,
int id);
void broadway_client_destroy_surface (BroadwayClient *client,
int id);
void broadway_client_move_surface (BroadwayClient *client,
int id,
int x,
int y);
void broadway_client_put_rgb (BroadwayClient *client,
int id,
int x,
int y,
int w,
int h,
int byte_stride,
void *data);
void broadway_client_put_rgba (BroadwayClient *client,
int id,
int x,
int y,
int w,
int h,
int byte_stride,
void *data);
void broadway_client_put_delta_rgb (BroadwayClient *client,
int id,
int dest_x,
int dest_y,
int w,
int h,
int byte_stride,
void *data);
void broadway_client_copy_rectangles (BroadwayClient *client,
int id,
BroadwayRect *rects,
int n_rects,
int dx,
int dy);