SDL
2.0
|
The decoration object allows the compositor to toggle server-side window decorations for a toplevel surface. The client can request to switch to another mode. More...
Data Structures | |
struct | zxdg_toplevel_decoration_v1_listener |
Enumerations | |
enum | zxdg_toplevel_decoration_v1_mode { ZXDG_TOPLEVEL_DECORATION_V1_MODE_CLIENT_SIDE = 1, ZXDG_TOPLEVEL_DECORATION_V1_MODE_SERVER_SIDE = 2 } |
Functions | |
static int | zxdg_toplevel_decoration_v1_add_listener (struct zxdg_toplevel_decoration_v1 *zxdg_toplevel_decoration_v1, const struct zxdg_toplevel_decoration_v1_listener *listener, void *data) |
static void | zxdg_toplevel_decoration_v1_set_user_data (struct zxdg_toplevel_decoration_v1 *zxdg_toplevel_decoration_v1, void *user_data) |
static void * | zxdg_toplevel_decoration_v1_get_user_data (struct zxdg_toplevel_decoration_v1 *zxdg_toplevel_decoration_v1) |
static void | zxdg_toplevel_decoration_v1_destroy (struct zxdg_toplevel_decoration_v1 *zxdg_toplevel_decoration_v1) |
static void | zxdg_toplevel_decoration_v1_set_mode (struct zxdg_toplevel_decoration_v1 *zxdg_toplevel_decoration_v1, uint32_t mode) |
static void | zxdg_toplevel_decoration_v1_unset_mode (struct zxdg_toplevel_decoration_v1 *zxdg_toplevel_decoration_v1) |
The decoration object allows the compositor to toggle server-side window decorations for a toplevel surface. The client can request to switch to another mode.
The xdg_toplevel_decoration object must be destroyed before its xdg_toplevel.
#define ZXDG_TOPLEVEL_DECORATION_V1_CONFIGURE_SINCE_VERSION 1 |
Definition at line 278 of file xdg-decoration-unstable-v1-client-protocol.h.
#define ZXDG_TOPLEVEL_DECORATION_V1_DESTROY_SINCE_VERSION 1 |
Definition at line 283 of file xdg-decoration-unstable-v1-client-protocol.h.
#define ZXDG_TOPLEVEL_DECORATION_V1_SET_MODE_SINCE_VERSION 1 |
Definition at line 287 of file xdg-decoration-unstable-v1-client-protocol.h.
#define ZXDG_TOPLEVEL_DECORATION_V1_UNSET_MODE_SINCE_VERSION 1 |
Definition at line 291 of file xdg-decoration-unstable-v1-client-protocol.h.
window decoration modes
These values describe window decoration modes.
Enumerator | |
---|---|
ZXDG_TOPLEVEL_DECORATION_V1_MODE_CLIENT_SIDE | no server-side window decoration |
ZXDG_TOPLEVEL_DECORATION_V1_MODE_SERVER_SIDE | server-side window decoration |
Definition at line 225 of file xdg-decoration-unstable-v1-client-protocol.h.
|
inlinestatic |
Definition at line 264 of file xdg-decoration-unstable-v1-client-protocol.h.
|
inlinestatic |
Switch back to a mode without any server-side decorations at the next commit.
Definition at line 320 of file xdg-decoration-unstable-v1-client-protocol.h.
References ZXDG_TOPLEVEL_DECORATION_V1_DESTROY.
|
inlinestatic |
Definition at line 302 of file xdg-decoration-unstable-v1-client-protocol.h.
|
inlinestatic |
Set the toplevel surface decoration mode. This informs the compositor that the client prefers the provided decoration mode.
After requesting a decoration mode, the compositor will respond by emitting a xdg_surface.configure event. The client should then update its content, drawing it without decorations if the received mode is server-side decorations. The client must also acknowledge the configure when committing the new content (see xdg_surface.ack_configure).
The compositor can decide not to use the client's mode and enforce a different mode instead.
Clients whose decoration mode depend on the xdg_toplevel state may send a set_mode request in response to a xdg_surface.configure event and wait for the next xdg_surface.configure event to prevent unwanted state. Such clients are responsible for preventing configure loops and must make sure not to send multiple successive set_mode requests with the same decoration mode.
Definition at line 351 of file xdg-decoration-unstable-v1-client-protocol.h.
References ZXDG_TOPLEVEL_DECORATION_V1_SET_MODE.
|
inlinestatic |
Definition at line 295 of file xdg-decoration-unstable-v1-client-protocol.h.
|
inlinestatic |
Unset the toplevel surface decoration mode. This informs the compositor that the client doesn't prefer a particular decoration mode.
This request has the same semantics as set_mode.
Definition at line 366 of file xdg-decoration-unstable-v1-client-protocol.h.
References ZXDG_TOPLEVEL_DECORATION_V1_UNSET_MODE.