SDL  2.0
The wl_shell interface

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.

Note! This protocol is deprecated and not intended for production use. For desktop-style user interfaces, use xdg_shell.

Macro Definition Documentation

◆ WL_SHELL_GET_SHELL_SURFACE_SINCE_VERSION

#define WL_SHELL_GET_SHELL_SURFACE_SINCE_VERSION   1

Definition at line 2734 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 2758 of file wayland-client-protocol.h.

2759 {
2760  wl_proxy_destroy((struct wl_proxy *) wl_shell);
2761 }

◆ wl_shell_get_shell_surface()

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

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

References NULL, WL_SHELL_GET_SHELL_SURFACE, and wl_shell_surface_interface.

2774 {
2775  struct wl_proxy *id;
2776 
2777  id = wl_proxy_marshal_constructor((struct wl_proxy *) wl_shell,
2779 
2780  return (struct wl_shell_surface *) id;
2781 }
GLuint id
EGLSurface surface
Definition: eglext.h:248
#define WL_SHELL_GET_SHELL_SURFACE
#define NULL
Definition: begin_code.h:164
const struct wl_interface 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 2745 of file wayland-client-protocol.h.

2746 {
2747  return wl_proxy_get_user_data((struct wl_proxy *) wl_shell);
2748 }

◆ wl_shell_set_user_data()

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

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

2739 {
2740  wl_proxy_set_user_data((struct wl_proxy *) wl_shell, user_data);
2741 }