SDL  2.0
The wl_compositor interface

Macros

#define WL_COMPOSITOR_CREATE_SURFACE_SINCE_VERSION   1
 
#define WL_COMPOSITOR_CREATE_REGION_SINCE_VERSION   1
 

Functions

static void wl_compositor_set_user_data (struct wl_compositor *wl_compositor, void *user_data)
 
static voidwl_compositor_get_user_data (struct wl_compositor *wl_compositor)
 
static void wl_compositor_destroy (struct wl_compositor *wl_compositor)
 
static struct wl_surface * wl_compositor_create_surface (struct wl_compositor *wl_compositor)
 
static struct wl_region * wl_compositor_create_region (struct wl_compositor *wl_compositor)
 

Detailed Description

A compositor. This object is a singleton global. The compositor is in charge of combining the contents of multiple surfaces into one displayable output.

Macro Definition Documentation

◆ WL_COMPOSITOR_CREATE_REGION_SINCE_VERSION

#define WL_COMPOSITOR_CREATE_REGION_SINCE_VERSION   1

Definition at line 1168 of file wayland-client-protocol.h.

◆ WL_COMPOSITOR_CREATE_SURFACE_SINCE_VERSION

#define WL_COMPOSITOR_CREATE_SURFACE_SINCE_VERSION   1

Definition at line 1164 of file wayland-client-protocol.h.

Function Documentation

◆ wl_compositor_create_region()

static struct wl_region* wl_compositor_create_region ( struct wl_compositor *  wl_compositor)
static

Ask the compositor to create a new region.

Definition at line 1219 of file wayland-client-protocol.h.

References NULL, WL_COMPOSITOR_CREATE_REGION, and wl_region_interface.

1220 {
1221  struct wl_proxy *id;
1222 
1223  id = wl_proxy_marshal_constructor((struct wl_proxy *) wl_compositor,
1225 
1226  return (struct wl_region *) id;
1227 }
GLuint id
const struct wl_interface wl_region_interface
#define WL_COMPOSITOR_CREATE_REGION
#define NULL
Definition: begin_code.h:164

◆ wl_compositor_create_surface()

static struct wl_surface* wl_compositor_create_surface ( struct wl_compositor *  wl_compositor)
static

Ask the compositor to create a new surface.

Definition at line 1203 of file wayland-client-protocol.h.

References NULL, WL_COMPOSITOR_CREATE_SURFACE, and wl_surface_interface.

1204 {
1205  struct wl_proxy *id;
1206 
1207  id = wl_proxy_marshal_constructor((struct wl_proxy *) wl_compositor,
1209 
1210  return (struct wl_surface *) id;
1211 }
GLuint id
#define WL_COMPOSITOR_CREATE_SURFACE
const struct wl_interface wl_surface_interface
#define NULL
Definition: begin_code.h:164

◆ wl_compositor_destroy()

static void wl_compositor_destroy ( struct wl_compositor *  wl_compositor)
inlinestatic

Definition at line 1192 of file wayland-client-protocol.h.

1193 {
1194  wl_proxy_destroy((struct wl_proxy *) wl_compositor);
1195 }

◆ wl_compositor_get_user_data()

static void* wl_compositor_get_user_data ( struct wl_compositor *  wl_compositor)
inlinestatic

Definition at line 1179 of file wayland-client-protocol.h.

1180 {
1181  return wl_proxy_get_user_data((struct wl_proxy *) wl_compositor);
1182 }

◆ wl_compositor_set_user_data()

static void wl_compositor_set_user_data ( struct wl_compositor *  wl_compositor,
void user_data 
)
inlinestatic

Definition at line 1172 of file wayland-client-protocol.h.

1173 {
1174  wl_proxy_set_user_data((struct wl_proxy *) wl_compositor, user_data);
1175 }