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

2803 {
2804  wl_proxy_destroy((struct wl_proxy *) wl_shell);
2805 }

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

2818 {
2819  struct wl_proxy *id;
2820 
2821  id = wl_proxy_marshal_flags((struct wl_proxy *) wl_shell,
2822  WL_SHELL_GET_SHELL_SURFACE, &wl_shell_surface_interface, wl_proxy_get_version((struct wl_proxy *) wl_shell), 0, NULL, surface);
2823 
2824  return (struct wl_shell_surface *) id;
2825 }

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

2790 {
2791  return wl_proxy_get_user_data((struct wl_proxy *) wl_shell);
2792 }

◆ wl_shell_set_user_data()

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

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

2783 {
2784  wl_proxy_set_user_data((struct wl_proxy *) wl_shell, user_data);
2785 }
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:2772
id
GLuint id
Definition: SDL_opengl_glext.h:528