SDL  2.0
The org_kde_kwin_server_decoration interface

Data Structures

struct  org_kde_kwin_server_decoration_listener
 

Macros

#define ORG_KDE_KWIN_SERVER_DECORATION_MODE_SINCE_VERSION   1
 
#define ORG_KDE_KWIN_SERVER_DECORATION_RELEASE_SINCE_VERSION   1
 
#define ORG_KDE_KWIN_SERVER_DECORATION_REQUEST_MODE_SINCE_VERSION   1
 

Enumerations

enum  org_kde_kwin_server_decoration_mode {
  ORG_KDE_KWIN_SERVER_DECORATION_MODE_NONE = 0,
  ORG_KDE_KWIN_SERVER_DECORATION_MODE_CLIENT = 1,
  ORG_KDE_KWIN_SERVER_DECORATION_MODE_SERVER = 2
}
 

Functions

static int org_kde_kwin_server_decoration_add_listener (struct org_kde_kwin_server_decoration *org_kde_kwin_server_decoration, const struct org_kde_kwin_server_decoration_listener *listener, void *data)
 
static void org_kde_kwin_server_decoration_set_user_data (struct org_kde_kwin_server_decoration *org_kde_kwin_server_decoration, void *user_data)
 
static voidorg_kde_kwin_server_decoration_get_user_data (struct org_kde_kwin_server_decoration *org_kde_kwin_server_decoration)
 
static void org_kde_kwin_server_decoration_destroy (struct org_kde_kwin_server_decoration *org_kde_kwin_server_decoration)
 
static void org_kde_kwin_server_decoration_release (struct org_kde_kwin_server_decoration *org_kde_kwin_server_decoration)
 
static void org_kde_kwin_server_decoration_request_mode (struct org_kde_kwin_server_decoration *org_kde_kwin_server_decoration, uint32_t mode)
 

Detailed Description

Macro Definition Documentation

◆ ORG_KDE_KWIN_SERVER_DECORATION_MODE_SINCE_VERSION

#define ORG_KDE_KWIN_SERVER_DECORATION_MODE_SINCE_VERSION   1

◆ ORG_KDE_KWIN_SERVER_DECORATION_RELEASE_SINCE_VERSION

#define ORG_KDE_KWIN_SERVER_DECORATION_RELEASE_SINCE_VERSION   1

◆ ORG_KDE_KWIN_SERVER_DECORATION_REQUEST_MODE_SINCE_VERSION

#define ORG_KDE_KWIN_SERVER_DECORATION_REQUEST_MODE_SINCE_VERSION   1

Enumeration Type Documentation

◆ org_kde_kwin_server_decoration_mode

Possible values to use in request_mode and the event mode.

Enumerator
ORG_KDE_KWIN_SERVER_DECORATION_MODE_NONE 

Undecorated: The surface is not decorated at all, neither server nor client-side. An example is a popup surface which should not be decorated.

ORG_KDE_KWIN_SERVER_DECORATION_MODE_CLIENT 

Client-side decoration: The decoration is part of the surface and the client.

ORG_KDE_KWIN_SERVER_DECORATION_MODE_SERVER 

Server-side decoration: The server embeds the surface into a decoration frame.

Definition at line 204 of file org-kde-kwin-server-decoration-manager-client-protocol.h.

204  {
205  /**
206  * Undecorated: The surface is not decorated at all, neither server nor client-side. An example is a popup surface which should not be decorated.
207  */
209  /**
210  * Client-side decoration: The decoration is part of the surface and the client.
211  */
213  /**
214  * Server-side decoration: The server embeds the surface into a decoration frame.
215  */
217 };

Function Documentation

◆ org_kde_kwin_server_decoration_add_listener()

static int org_kde_kwin_server_decoration_add_listener ( struct org_kde_kwin_server_decoration *  org_kde_kwin_server_decoration,
const struct org_kde_kwin_server_decoration_listener listener,
void data 
)
inlinestatic

Definition at line 253 of file org-kde-kwin-server-decoration-manager-client-protocol.h.

255 {
256  return wl_proxy_add_listener((struct wl_proxy *) org_kde_kwin_server_decoration,
257  (void (**)(void)) listener, data);
258 }

◆ org_kde_kwin_server_decoration_destroy()

static void org_kde_kwin_server_decoration_destroy ( struct org_kde_kwin_server_decoration *  org_kde_kwin_server_decoration)
inlinestatic

Definition at line 299 of file org-kde-kwin-server-decoration-manager-client-protocol.h.

300 {
301  wl_proxy_destroy((struct wl_proxy *) org_kde_kwin_server_decoration);
302 }

◆ org_kde_kwin_server_decoration_get_user_data()

static void* org_kde_kwin_server_decoration_get_user_data ( struct org_kde_kwin_server_decoration *  org_kde_kwin_server_decoration)
inlinestatic

Definition at line 286 of file org-kde-kwin-server-decoration-manager-client-protocol.h.

287 {
288  return wl_proxy_get_user_data((struct wl_proxy *) org_kde_kwin_server_decoration);
289 }

◆ org_kde_kwin_server_decoration_release()

static void org_kde_kwin_server_decoration_release ( struct org_kde_kwin_server_decoration *  org_kde_kwin_server_decoration)
inlinestatic

Definition at line 308 of file org-kde-kwin-server-decoration-manager-client-protocol.h.

309 {
310  wl_proxy_marshal_flags((struct wl_proxy *) org_kde_kwin_server_decoration,
311  ORG_KDE_KWIN_SERVER_DECORATION_RELEASE, NULL, wl_proxy_get_version((struct wl_proxy *) org_kde_kwin_server_decoration), WL_MARSHAL_FLAG_DESTROY);
312 }

References NULL, and ORG_KDE_KWIN_SERVER_DECORATION_RELEASE.

◆ org_kde_kwin_server_decoration_request_mode()

static void org_kde_kwin_server_decoration_request_mode ( struct org_kde_kwin_server_decoration *  org_kde_kwin_server_decoration,
uint32_t  mode 
)
inlinestatic

Definition at line 318 of file org-kde-kwin-server-decoration-manager-client-protocol.h.

319 {
320  wl_proxy_marshal_flags((struct wl_proxy *) org_kde_kwin_server_decoration,
321  ORG_KDE_KWIN_SERVER_DECORATION_REQUEST_MODE, NULL, wl_proxy_get_version((struct wl_proxy *) org_kde_kwin_server_decoration), 0, mode);
322 }

References NULL, and ORG_KDE_KWIN_SERVER_DECORATION_REQUEST_MODE.

◆ org_kde_kwin_server_decoration_set_user_data()

static void org_kde_kwin_server_decoration_set_user_data ( struct org_kde_kwin_server_decoration *  org_kde_kwin_server_decoration,
void user_data 
)
inlinestatic

Definition at line 279 of file org-kde-kwin-server-decoration-manager-client-protocol.h.

280 {
281  wl_proxy_set_user_data((struct wl_proxy *) org_kde_kwin_server_decoration, user_data);
282 }
ORG_KDE_KWIN_SERVER_DECORATION_MODE_CLIENT
@ ORG_KDE_KWIN_SERVER_DECORATION_MODE_CLIENT
Definition: org-kde-kwin-server-decoration-manager-client-protocol.h:212
NULL
#define NULL
Definition: begin_code.h:167
ORG_KDE_KWIN_SERVER_DECORATION_MODE_SERVER
@ ORG_KDE_KWIN_SERVER_DECORATION_MODE_SERVER
Definition: org-kde-kwin-server-decoration-manager-client-protocol.h:216
mode
GLenum mode
Definition: SDL_opengl_glext.h:1122
data
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: SDL_opengl.h:1974
ORG_KDE_KWIN_SERVER_DECORATION_REQUEST_MODE
#define ORG_KDE_KWIN_SERVER_DECORATION_REQUEST_MODE
Definition: org-kde-kwin-server-decoration-manager-client-protocol.h:261
ORG_KDE_KWIN_SERVER_DECORATION_MODE_NONE
@ ORG_KDE_KWIN_SERVER_DECORATION_MODE_NONE
Definition: org-kde-kwin-server-decoration-manager-client-protocol.h:208
ORG_KDE_KWIN_SERVER_DECORATION_RELEASE
#define ORG_KDE_KWIN_SERVER_DECORATION_RELEASE
Definition: org-kde-kwin-server-decoration-manager-client-protocol.h:260