SDL  2.0
The wl_shell interface

This interface is implemented by servers that provide desktop-style user interfaces. More...

Macros

#define WL_SHELL_GET_SHELL_SURFACE_SINCE_VERSION   1
 

Functions

static void wl_shell_set_user_data (struct wl_shell *wl_shell, void *user_data)
 
static voidwl_shell_get_user_data (struct wl_shell *wl_shell)
 
static void wl_shell_destroy (struct wl_shell *wl_shell)
 
static struct wl_shell_surface * wl_shell_get_shell_surface (struct wl_shell *wl_shell, struct wl_surface *surface)
 

Detailed Description

This interface is implemented by servers that provide desktop-style user interfaces.

It allows clients to associate a wl_shell_surface with a basic surface.

Macro Definition Documentation

◆ WL_SHELL_GET_SHELL_SURFACE_SINCE_VERSION

#define WL_SHELL_GET_SHELL_SURFACE_SINCE_VERSION   1

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

Function Documentation

◆ wl_shell_destroy()

static void wl_shell_destroy ( struct wl_shell *  wl_shell)
inlinestatic

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

2747 {
2748  wl_proxy_destroy((struct wl_proxy *) wl_shell);
2749 }

◆ wl_shell_get_shell_surface()

static struct wl_shell_surface* wl_shell_get_shell_surface ( struct wl_shell *  wl_shell,
struct wl_surface *  surface 
)
inlinestatic

Create a shell surface for an existing surface. This gives the wl_surface the role of a shell surface. If the wl_surface already has another role, it raises a protocol error.

Only one shell surface can be associated with a given surface.

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

2762 {
2763  struct wl_proxy *id;
2764 
2765  id = wl_proxy_marshal_constructor((struct wl_proxy *) wl_shell,
2767 
2768  return (struct wl_shell_surface *) id;
2769 }

References NULL, WL_SHELL_GET_SHELL_SURFACE, and wl_shell_surface_interface.

◆ wl_shell_get_user_data()

static void* wl_shell_get_user_data ( struct wl_shell *  wl_shell)
inlinestatic

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

2734 {
2735  return wl_proxy_get_user_data((struct wl_proxy *) wl_shell);
2736 }

◆ wl_shell_set_user_data()

static void wl_shell_set_user_data ( struct wl_shell *  wl_shell,
void user_data 
)
inlinestatic

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

2727 {
2728  wl_proxy_set_user_data((struct wl_proxy *) wl_shell, user_data);
2729 }
NULL
#define NULL
Definition: begin_code.h:167
surface
EGLSurface surface
Definition: eglext.h:248
wl_shell_surface_interface
const struct wl_interface wl_shell_surface_interface
Definition: wayland-protocol.c:343
WL_SHELL_GET_SHELL_SURFACE
#define WL_SHELL_GET_SHELL_SURFACE
Definition: wayland-client-protocol.h:2716
id
GLuint id
Definition: SDL_opengl_glext.h:531