SDL 2.0
The zxdg_decoration_manager_v1 interface

Macros

#define ZXDG_DECORATION_MANAGER_V1_DESTROY_SINCE_VERSION   1
 
#define ZXDG_DECORATION_MANAGER_V1_GET_TOPLEVEL_DECORATION_SINCE_VERSION   1
 

Functions

static void zxdg_decoration_manager_v1_set_user_data (struct zxdg_decoration_manager_v1 *zxdg_decoration_manager_v1, void *user_data)
 
static voidzxdg_decoration_manager_v1_get_user_data (struct zxdg_decoration_manager_v1 *zxdg_decoration_manager_v1)
 
static void zxdg_decoration_manager_v1_destroy (struct zxdg_decoration_manager_v1 *zxdg_decoration_manager_v1)
 
static struct zxdg_toplevel_decoration_v1 * zxdg_decoration_manager_v1_get_toplevel_decoration (struct zxdg_decoration_manager_v1 *zxdg_decoration_manager_v1, struct xdg_toplevel *toplevel)
 

Detailed Description

This interface allows a compositor to announce support for server-side decorations.

A window decoration is a set of window controls as deemed appropriate by the party managing them, such as user interface components used to move, resize and change a window's state.

A client can use this protocol to request being decorated by a supporting compositor.

If compositor and client do not negotiate the use of a server-side decoration using this protocol, clients continue to self-decorate as they see fit.

Warning! The protocol described in this file is experimental and backward incompatible changes may be made. Backward compatible changes may be added together with the corresponding interface version bump. Backward incompatible changes are done by bumping the version number in the protocol and interface names and resetting the interface version. Once the protocol is to be declared stable, the 'z' prefix and the version number in the protocol and interface names are removed and the interface version number is reset.

Macro Definition Documentation

◆ ZXDG_DECORATION_MANAGER_V1_DESTROY_SINCE_VERSION

#define ZXDG_DECORATION_MANAGER_V1_DESTROY_SINCE_VERSION   1

◆ ZXDG_DECORATION_MANAGER_V1_GET_TOPLEVEL_DECORATION_SINCE_VERSION

#define ZXDG_DECORATION_MANAGER_V1_GET_TOPLEVEL_DECORATION_SINCE_VERSION   1

Function Documentation

◆ zxdg_decoration_manager_v1_destroy()

static void zxdg_decoration_manager_v1_destroy ( struct zxdg_decoration_manager_v1 *  zxdg_decoration_manager_v1)
inlinestatic

Destroy the decoration manager. This doesn't destroy objects created with the manager.

Definition at line 175 of file xdg-decoration-unstable-v1-client-protocol.h.

176{
177 wl_proxy_marshal_flags((struct wl_proxy *) zxdg_decoration_manager_v1,
178 ZXDG_DECORATION_MANAGER_V1_DESTROY, NULL, wl_proxy_get_version((struct wl_proxy *) zxdg_decoration_manager_v1), WL_MARSHAL_FLAG_DESTROY);
179}
#define NULL
Definition: begin_code.h:167

References NULL, and ZXDG_DECORATION_MANAGER_V1_DESTROY.

◆ zxdg_decoration_manager_v1_get_toplevel_decoration()

static struct zxdg_toplevel_decoration_v1 * zxdg_decoration_manager_v1_get_toplevel_decoration ( struct zxdg_decoration_manager_v1 *  zxdg_decoration_manager_v1,
struct xdg_toplevel *  toplevel 
)
inlinestatic

Create a new decoration object associated with the given toplevel.

Creating an xdg_toplevel_decoration from an xdg_toplevel which has a buffer attached or committed is a client error, and any attempts by a client to attach or manipulate a buffer prior to the first xdg_toplevel_decoration.configure event must also be treated as errors.

Definition at line 193 of file xdg-decoration-unstable-v1-client-protocol.h.

194{
195 struct wl_proxy *id;
196
197 id = wl_proxy_marshal_flags((struct wl_proxy *) zxdg_decoration_manager_v1,
198 ZXDG_DECORATION_MANAGER_V1_GET_TOPLEVEL_DECORATION, &zxdg_toplevel_decoration_v1_interface, wl_proxy_get_version((struct wl_proxy *) zxdg_decoration_manager_v1), 0, NULL, toplevel);
199
200 return (struct zxdg_toplevel_decoration_v1 *) id;
201}
GLuint id
const struct wl_interface zxdg_toplevel_decoration_v1_interface
#define ZXDG_DECORATION_MANAGER_V1_GET_TOPLEVEL_DECORATION

References NULL, ZXDG_DECORATION_MANAGER_V1_GET_TOPLEVEL_DECORATION, and zxdg_toplevel_decoration_v1_interface.

◆ zxdg_decoration_manager_v1_get_user_data()

static void * zxdg_decoration_manager_v1_get_user_data ( struct zxdg_decoration_manager_v1 *  zxdg_decoration_manager_v1)
inlinestatic

Definition at line 157 of file xdg-decoration-unstable-v1-client-protocol.h.

158{
159 return wl_proxy_get_user_data((struct wl_proxy *) zxdg_decoration_manager_v1);
160}

◆ zxdg_decoration_manager_v1_set_user_data()

static void zxdg_decoration_manager_v1_set_user_data ( struct zxdg_decoration_manager_v1 *  zxdg_decoration_manager_v1,
void user_data 
)
inlinestatic

Definition at line 150 of file xdg-decoration-unstable-v1-client-protocol.h.

151{
152 wl_proxy_set_user_data((struct wl_proxy *) zxdg_decoration_manager_v1, user_data);
153}