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 1222 of file wayland-client-protocol.h.

◆ WL_COMPOSITOR_CREATE_SURFACE_SINCE_VERSION

#define WL_COMPOSITOR_CREATE_SURFACE_SINCE_VERSION   1

Definition at line 1218 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)
inlinestatic

Ask the compositor to create a new region.

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

1274{
1275 struct wl_proxy *id;
1276
1277 id = wl_proxy_marshal_flags((struct wl_proxy *) wl_compositor,
1278 WL_COMPOSITOR_CREATE_REGION, &wl_region_interface, wl_proxy_get_version((struct wl_proxy *) wl_compositor), 0, NULL);
1279
1280 return (struct wl_region *) id;
1281}
GLuint id
#define NULL
Definition: begin_code.h:167
const struct wl_interface wl_region_interface
#define WL_COMPOSITOR_CREATE_REGION

References NULL, WL_COMPOSITOR_CREATE_REGION, and wl_region_interface.

◆ wl_compositor_create_surface()

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

Ask the compositor to create a new surface.

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

1258{
1259 struct wl_proxy *id;
1260
1261 id = wl_proxy_marshal_flags((struct wl_proxy *) wl_compositor,
1262 WL_COMPOSITOR_CREATE_SURFACE, &wl_surface_interface, wl_proxy_get_version((struct wl_proxy *) wl_compositor), 0, NULL);
1263
1264 return (struct wl_surface *) id;
1265}
const struct wl_interface wl_surface_interface
#define WL_COMPOSITOR_CREATE_SURFACE

References NULL, WL_COMPOSITOR_CREATE_SURFACE, and wl_surface_interface.

◆ wl_compositor_destroy()

static void wl_compositor_destroy ( struct wl_compositor *  wl_compositor)
inlinestatic

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

1247{
1248 wl_proxy_destroy((struct wl_proxy *) wl_compositor);
1249}

◆ wl_compositor_get_user_data()

static void * wl_compositor_get_user_data ( struct wl_compositor *  wl_compositor)
inlinestatic

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

1234{
1235 return wl_proxy_get_user_data((struct wl_proxy *) wl_compositor);
1236}

◆ wl_compositor_set_user_data()

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

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

1227{
1228 wl_proxy_set_user_data((struct wl_proxy *) wl_compositor, user_data);
1229}