SDL  2.0
xdg-shell-client-protocol.h File Reference
#include <stdint.h>
#include <stddef.h>
#include "wayland-client.h"
+ Include dependency graph for xdg-shell-client-protocol.h:

Go to the source code of this file.

Data Structures

struct  xdg_wm_base_listener
 
struct  xdg_surface_listener
 
struct  xdg_toplevel_listener
 
struct  xdg_popup_listener
 

Macros

#define XDG_WM_BASE_ERROR_ENUM
 
#define XDG_WM_BASE_DESTROY   0
 
#define XDG_WM_BASE_CREATE_POSITIONER   1
 
#define XDG_WM_BASE_GET_XDG_SURFACE   2
 
#define XDG_WM_BASE_PONG   3
 
#define XDG_WM_BASE_PING_SINCE_VERSION   1
 
#define XDG_WM_BASE_DESTROY_SINCE_VERSION   1
 
#define XDG_WM_BASE_CREATE_POSITIONER_SINCE_VERSION   1
 
#define XDG_WM_BASE_GET_XDG_SURFACE_SINCE_VERSION   1
 
#define XDG_WM_BASE_PONG_SINCE_VERSION   1
 
#define XDG_POSITIONER_ERROR_ENUM
 
#define XDG_POSITIONER_ANCHOR_ENUM
 
#define XDG_POSITIONER_GRAVITY_ENUM
 
#define XDG_POSITIONER_CONSTRAINT_ADJUSTMENT_ENUM
 
#define XDG_POSITIONER_DESTROY   0
 
#define XDG_POSITIONER_SET_SIZE   1
 
#define XDG_POSITIONER_SET_ANCHOR_RECT   2
 
#define XDG_POSITIONER_SET_ANCHOR   3
 
#define XDG_POSITIONER_SET_GRAVITY   4
 
#define XDG_POSITIONER_SET_CONSTRAINT_ADJUSTMENT   5
 
#define XDG_POSITIONER_SET_OFFSET   6
 
#define XDG_POSITIONER_DESTROY_SINCE_VERSION   1
 
#define XDG_POSITIONER_SET_SIZE_SINCE_VERSION   1
 
#define XDG_POSITIONER_SET_ANCHOR_RECT_SINCE_VERSION   1
 
#define XDG_POSITIONER_SET_ANCHOR_SINCE_VERSION   1
 
#define XDG_POSITIONER_SET_GRAVITY_SINCE_VERSION   1
 
#define XDG_POSITIONER_SET_CONSTRAINT_ADJUSTMENT_SINCE_VERSION   1
 
#define XDG_POSITIONER_SET_OFFSET_SINCE_VERSION   1
 
#define XDG_SURFACE_ERROR_ENUM
 
#define XDG_SURFACE_DESTROY   0
 
#define XDG_SURFACE_GET_TOPLEVEL   1
 
#define XDG_SURFACE_GET_POPUP   2
 
#define XDG_SURFACE_SET_WINDOW_GEOMETRY   3
 
#define XDG_SURFACE_ACK_CONFIGURE   4
 
#define XDG_SURFACE_CONFIGURE_SINCE_VERSION   1
 
#define XDG_SURFACE_DESTROY_SINCE_VERSION   1
 
#define XDG_SURFACE_GET_TOPLEVEL_SINCE_VERSION   1
 
#define XDG_SURFACE_GET_POPUP_SINCE_VERSION   1
 
#define XDG_SURFACE_SET_WINDOW_GEOMETRY_SINCE_VERSION   1
 
#define XDG_SURFACE_ACK_CONFIGURE_SINCE_VERSION   1
 
#define XDG_TOPLEVEL_RESIZE_EDGE_ENUM
 
#define XDG_TOPLEVEL_STATE_ENUM
 
#define XDG_TOPLEVEL_DESTROY   0
 
#define XDG_TOPLEVEL_SET_PARENT   1
 
#define XDG_TOPLEVEL_SET_TITLE   2
 
#define XDG_TOPLEVEL_SET_APP_ID   3
 
#define XDG_TOPLEVEL_SHOW_WINDOW_MENU   4
 
#define XDG_TOPLEVEL_MOVE   5
 
#define XDG_TOPLEVEL_RESIZE   6
 
#define XDG_TOPLEVEL_SET_MAX_SIZE   7
 
#define XDG_TOPLEVEL_SET_MIN_SIZE   8
 
#define XDG_TOPLEVEL_SET_MAXIMIZED   9
 
#define XDG_TOPLEVEL_UNSET_MAXIMIZED   10
 
#define XDG_TOPLEVEL_SET_FULLSCREEN   11
 
#define XDG_TOPLEVEL_UNSET_FULLSCREEN   12
 
#define XDG_TOPLEVEL_SET_MINIMIZED   13
 
#define XDG_TOPLEVEL_CONFIGURE_SINCE_VERSION   1
 
#define XDG_TOPLEVEL_CLOSE_SINCE_VERSION   1
 
#define XDG_TOPLEVEL_DESTROY_SINCE_VERSION   1
 
#define XDG_TOPLEVEL_SET_PARENT_SINCE_VERSION   1
 
#define XDG_TOPLEVEL_SET_TITLE_SINCE_VERSION   1
 
#define XDG_TOPLEVEL_SET_APP_ID_SINCE_VERSION   1
 
#define XDG_TOPLEVEL_SHOW_WINDOW_MENU_SINCE_VERSION   1
 
#define XDG_TOPLEVEL_MOVE_SINCE_VERSION   1
 
#define XDG_TOPLEVEL_RESIZE_SINCE_VERSION   1
 
#define XDG_TOPLEVEL_SET_MAX_SIZE_SINCE_VERSION   1
 
#define XDG_TOPLEVEL_SET_MIN_SIZE_SINCE_VERSION   1
 
#define XDG_TOPLEVEL_SET_MAXIMIZED_SINCE_VERSION   1
 
#define XDG_TOPLEVEL_UNSET_MAXIMIZED_SINCE_VERSION   1
 
#define XDG_TOPLEVEL_SET_FULLSCREEN_SINCE_VERSION   1
 
#define XDG_TOPLEVEL_UNSET_FULLSCREEN_SINCE_VERSION   1
 
#define XDG_TOPLEVEL_SET_MINIMIZED_SINCE_VERSION   1
 
#define XDG_POPUP_ERROR_ENUM
 
#define XDG_POPUP_DESTROY   0
 
#define XDG_POPUP_GRAB   1
 
#define XDG_POPUP_CONFIGURE_SINCE_VERSION   1
 
#define XDG_POPUP_POPUP_DONE_SINCE_VERSION   1
 
#define XDG_POPUP_DESTROY_SINCE_VERSION   1
 
#define XDG_POPUP_GRAB_SINCE_VERSION   1
 

Enumerations

enum  xdg_wm_base_error {
  XDG_WM_BASE_ERROR_ROLE = 0,
  XDG_WM_BASE_ERROR_DEFUNCT_SURFACES = 1,
  XDG_WM_BASE_ERROR_NOT_THE_TOPMOST_POPUP = 2,
  XDG_WM_BASE_ERROR_INVALID_POPUP_PARENT = 3,
  XDG_WM_BASE_ERROR_INVALID_SURFACE_STATE = 4,
  XDG_WM_BASE_ERROR_INVALID_POSITIONER = 5
}
 
enum  xdg_positioner_error { XDG_POSITIONER_ERROR_INVALID_INPUT = 0 }
 
enum  xdg_positioner_anchor {
  XDG_POSITIONER_ANCHOR_NONE = 0,
  XDG_POSITIONER_ANCHOR_TOP = 1,
  XDG_POSITIONER_ANCHOR_BOTTOM = 2,
  XDG_POSITIONER_ANCHOR_LEFT = 3,
  XDG_POSITIONER_ANCHOR_RIGHT = 4,
  XDG_POSITIONER_ANCHOR_TOP_LEFT = 5,
  XDG_POSITIONER_ANCHOR_BOTTOM_LEFT = 6,
  XDG_POSITIONER_ANCHOR_TOP_RIGHT = 7,
  XDG_POSITIONER_ANCHOR_BOTTOM_RIGHT = 8
}
 
enum  xdg_positioner_gravity {
  XDG_POSITIONER_GRAVITY_NONE = 0,
  XDG_POSITIONER_GRAVITY_TOP = 1,
  XDG_POSITIONER_GRAVITY_BOTTOM = 2,
  XDG_POSITIONER_GRAVITY_LEFT = 3,
  XDG_POSITIONER_GRAVITY_RIGHT = 4,
  XDG_POSITIONER_GRAVITY_TOP_LEFT = 5,
  XDG_POSITIONER_GRAVITY_BOTTOM_LEFT = 6,
  XDG_POSITIONER_GRAVITY_TOP_RIGHT = 7,
  XDG_POSITIONER_GRAVITY_BOTTOM_RIGHT = 8
}
 
enum  xdg_positioner_constraint_adjustment {
  XDG_POSITIONER_CONSTRAINT_ADJUSTMENT_NONE = 0,
  XDG_POSITIONER_CONSTRAINT_ADJUSTMENT_SLIDE_X = 1,
  XDG_POSITIONER_CONSTRAINT_ADJUSTMENT_SLIDE_Y = 2,
  XDG_POSITIONER_CONSTRAINT_ADJUSTMENT_FLIP_X = 4,
  XDG_POSITIONER_CONSTRAINT_ADJUSTMENT_FLIP_Y = 8,
  XDG_POSITIONER_CONSTRAINT_ADJUSTMENT_RESIZE_X = 16,
  XDG_POSITIONER_CONSTRAINT_ADJUSTMENT_RESIZE_Y = 32
}
 
enum  xdg_surface_error {
  XDG_SURFACE_ERROR_NOT_CONSTRUCTED = 1,
  XDG_SURFACE_ERROR_ALREADY_CONSTRUCTED = 2,
  XDG_SURFACE_ERROR_UNCONFIGURED_BUFFER = 3
}
 
enum  xdg_toplevel_resize_edge {
  XDG_TOPLEVEL_RESIZE_EDGE_NONE = 0,
  XDG_TOPLEVEL_RESIZE_EDGE_TOP = 1,
  XDG_TOPLEVEL_RESIZE_EDGE_BOTTOM = 2,
  XDG_TOPLEVEL_RESIZE_EDGE_LEFT = 4,
  XDG_TOPLEVEL_RESIZE_EDGE_TOP_LEFT = 5,
  XDG_TOPLEVEL_RESIZE_EDGE_BOTTOM_LEFT = 6,
  XDG_TOPLEVEL_RESIZE_EDGE_RIGHT = 8,
  XDG_TOPLEVEL_RESIZE_EDGE_TOP_RIGHT = 9,
  XDG_TOPLEVEL_RESIZE_EDGE_BOTTOM_RIGHT = 10
}
 
enum  xdg_toplevel_state {
  XDG_TOPLEVEL_STATE_MAXIMIZED = 1,
  XDG_TOPLEVEL_STATE_FULLSCREEN = 2,
  XDG_TOPLEVEL_STATE_RESIZING = 3,
  XDG_TOPLEVEL_STATE_ACTIVATED = 4
}
 
enum  xdg_popup_error { XDG_POPUP_ERROR_INVALID_GRAB = 0 }
 

Functions

static int xdg_wm_base_add_listener (struct xdg_wm_base *xdg_wm_base, const struct xdg_wm_base_listener *listener, void *data)
 
static void xdg_wm_base_set_user_data (struct xdg_wm_base *xdg_wm_base, void *user_data)
 
static voidxdg_wm_base_get_user_data (struct xdg_wm_base *xdg_wm_base)
 
static uint32_t xdg_wm_base_get_version (struct xdg_wm_base *xdg_wm_base)
 
static void xdg_wm_base_destroy (struct xdg_wm_base *xdg_wm_base)
 
static struct xdg_positioner * xdg_wm_base_create_positioner (struct xdg_wm_base *xdg_wm_base)
 
static struct xdg_surface * xdg_wm_base_get_xdg_surface (struct xdg_wm_base *xdg_wm_base, struct wl_surface *surface)
 
static void xdg_wm_base_pong (struct xdg_wm_base *xdg_wm_base, uint32_t serial)
 
static void xdg_positioner_set_user_data (struct xdg_positioner *xdg_positioner, void *user_data)
 
static voidxdg_positioner_get_user_data (struct xdg_positioner *xdg_positioner)
 
static uint32_t xdg_positioner_get_version (struct xdg_positioner *xdg_positioner)
 
static void xdg_positioner_destroy (struct xdg_positioner *xdg_positioner)
 
static void xdg_positioner_set_size (struct xdg_positioner *xdg_positioner, int32_t width, int32_t height)
 
static void xdg_positioner_set_anchor_rect (struct xdg_positioner *xdg_positioner, int32_t x, int32_t y, int32_t width, int32_t height)
 
static void xdg_positioner_set_anchor (struct xdg_positioner *xdg_positioner, uint32_t anchor)
 
static void xdg_positioner_set_gravity (struct xdg_positioner *xdg_positioner, uint32_t gravity)
 
static void xdg_positioner_set_constraint_adjustment (struct xdg_positioner *xdg_positioner, uint32_t constraint_adjustment)
 
static void xdg_positioner_set_offset (struct xdg_positioner *xdg_positioner, int32_t x, int32_t y)
 
static int xdg_surface_add_listener (struct xdg_surface *xdg_surface, const struct xdg_surface_listener *listener, void *data)
 
static void xdg_surface_set_user_data (struct xdg_surface *xdg_surface, void *user_data)
 
static voidxdg_surface_get_user_data (struct xdg_surface *xdg_surface)
 
static uint32_t xdg_surface_get_version (struct xdg_surface *xdg_surface)
 
static void xdg_surface_destroy (struct xdg_surface *xdg_surface)
 
static struct xdg_toplevel * xdg_surface_get_toplevel (struct xdg_surface *xdg_surface)
 
static struct xdg_popup * xdg_surface_get_popup (struct xdg_surface *xdg_surface, struct xdg_surface *parent, struct xdg_positioner *positioner)
 
static void xdg_surface_set_window_geometry (struct xdg_surface *xdg_surface, int32_t x, int32_t y, int32_t width, int32_t height)
 
static void xdg_surface_ack_configure (struct xdg_surface *xdg_surface, uint32_t serial)
 
static int xdg_toplevel_add_listener (struct xdg_toplevel *xdg_toplevel, const struct xdg_toplevel_listener *listener, void *data)
 
static void xdg_toplevel_set_user_data (struct xdg_toplevel *xdg_toplevel, void *user_data)
 
static voidxdg_toplevel_get_user_data (struct xdg_toplevel *xdg_toplevel)
 
static uint32_t xdg_toplevel_get_version (struct xdg_toplevel *xdg_toplevel)
 
static void xdg_toplevel_destroy (struct xdg_toplevel *xdg_toplevel)
 
static void xdg_toplevel_set_parent (struct xdg_toplevel *xdg_toplevel, struct xdg_toplevel *parent)
 
static void xdg_toplevel_set_title (struct xdg_toplevel *xdg_toplevel, const char *title)
 
static void xdg_toplevel_set_app_id (struct xdg_toplevel *xdg_toplevel, const char *app_id)
 
static void xdg_toplevel_show_window_menu (struct xdg_toplevel *xdg_toplevel, struct wl_seat *seat, uint32_t serial, int32_t x, int32_t y)
 
static void xdg_toplevel_move (struct xdg_toplevel *xdg_toplevel, struct wl_seat *seat, uint32_t serial)
 
static void xdg_toplevel_resize (struct xdg_toplevel *xdg_toplevel, struct wl_seat *seat, uint32_t serial, uint32_t edges)
 
static void xdg_toplevel_set_max_size (struct xdg_toplevel *xdg_toplevel, int32_t width, int32_t height)
 
static void xdg_toplevel_set_min_size (struct xdg_toplevel *xdg_toplevel, int32_t width, int32_t height)
 
static void xdg_toplevel_set_maximized (struct xdg_toplevel *xdg_toplevel)
 
static void xdg_toplevel_unset_maximized (struct xdg_toplevel *xdg_toplevel)
 
static void xdg_toplevel_set_fullscreen (struct xdg_toplevel *xdg_toplevel, struct wl_output *output)
 
static void xdg_toplevel_unset_fullscreen (struct xdg_toplevel *xdg_toplevel)
 
static void xdg_toplevel_set_minimized (struct xdg_toplevel *xdg_toplevel)
 
static int xdg_popup_add_listener (struct xdg_popup *xdg_popup, const struct xdg_popup_listener *listener, void *data)
 
static void xdg_popup_set_user_data (struct xdg_popup *xdg_popup, void *user_data)
 
static voidxdg_popup_get_user_data (struct xdg_popup *xdg_popup)
 
static uint32_t xdg_popup_get_version (struct xdg_popup *xdg_popup)
 
static void xdg_popup_destroy (struct xdg_popup *xdg_popup)
 
static void xdg_popup_grab (struct xdg_popup *xdg_popup, struct wl_seat *seat, uint32_t serial)
 

Variables

const struct wl_interface xdg_wm_base_interface
 
const struct wl_interface xdg_positioner_interface
 
const struct wl_interface xdg_surface_interface
 
const struct wl_interface xdg_toplevel_interface
 
const struct wl_interface xdg_popup_interface
 

Macro Definition Documentation

◆ XDG_POPUP_DESTROY

#define XDG_POPUP_DESTROY   0

Definition at line 1699 of file xdg-shell-client-protocol.h.

◆ XDG_POPUP_ERROR_ENUM

#define XDG_POPUP_ERROR_ENUM

Definition at line 1642 of file xdg-shell-client-protocol.h.

◆ XDG_POPUP_GRAB

#define XDG_POPUP_GRAB   1

Definition at line 1700 of file xdg-shell-client-protocol.h.

◆ XDG_POSITIONER_ANCHOR_ENUM

#define XDG_POSITIONER_ANCHOR_ENUM

Definition at line 541 of file xdg-shell-client-protocol.h.

◆ XDG_POSITIONER_CONSTRAINT_ADJUSTMENT_ENUM

#define XDG_POSITIONER_CONSTRAINT_ADJUSTMENT_ENUM

Definition at line 571 of file xdg-shell-client-protocol.h.

◆ XDG_POSITIONER_DESTROY

#define XDG_POSITIONER_DESTROY   0

Definition at line 589 of file xdg-shell-client-protocol.h.

◆ XDG_POSITIONER_ERROR_ENUM

#define XDG_POSITIONER_ERROR_ENUM

Definition at line 531 of file xdg-shell-client-protocol.h.

◆ XDG_POSITIONER_GRAVITY_ENUM

#define XDG_POSITIONER_GRAVITY_ENUM

Definition at line 556 of file xdg-shell-client-protocol.h.

◆ XDG_POSITIONER_SET_ANCHOR

#define XDG_POSITIONER_SET_ANCHOR   3

Definition at line 592 of file xdg-shell-client-protocol.h.

◆ XDG_POSITIONER_SET_ANCHOR_RECT

#define XDG_POSITIONER_SET_ANCHOR_RECT   2

Definition at line 591 of file xdg-shell-client-protocol.h.

◆ XDG_POSITIONER_SET_CONSTRAINT_ADJUSTMENT

#define XDG_POSITIONER_SET_CONSTRAINT_ADJUSTMENT   5

Definition at line 594 of file xdg-shell-client-protocol.h.

◆ XDG_POSITIONER_SET_GRAVITY

#define XDG_POSITIONER_SET_GRAVITY   4

Definition at line 593 of file xdg-shell-client-protocol.h.

◆ XDG_POSITIONER_SET_OFFSET

#define XDG_POSITIONER_SET_OFFSET   6

Definition at line 595 of file xdg-shell-client-protocol.h.

◆ XDG_POSITIONER_SET_SIZE

#define XDG_POSITIONER_SET_SIZE   1

Definition at line 590 of file xdg-shell-client-protocol.h.

◆ XDG_SURFACE_ACK_CONFIGURE

#define XDG_SURFACE_ACK_CONFIGURE   4

Definition at line 836 of file xdg-shell-client-protocol.h.

◆ XDG_SURFACE_DESTROY

#define XDG_SURFACE_DESTROY   0

Definition at line 832 of file xdg-shell-client-protocol.h.

◆ XDG_SURFACE_ERROR_ENUM

#define XDG_SURFACE_ERROR_ENUM

Definition at line 779 of file xdg-shell-client-protocol.h.

◆ XDG_SURFACE_GET_POPUP

#define XDG_SURFACE_GET_POPUP   2

Definition at line 834 of file xdg-shell-client-protocol.h.

◆ XDG_SURFACE_GET_TOPLEVEL

#define XDG_SURFACE_GET_TOPLEVEL   1

Definition at line 833 of file xdg-shell-client-protocol.h.

◆ XDG_SURFACE_SET_WINDOW_GEOMETRY

#define XDG_SURFACE_SET_WINDOW_GEOMETRY   3

Definition at line 835 of file xdg-shell-client-protocol.h.

◆ XDG_TOPLEVEL_DESTROY

#define XDG_TOPLEVEL_DESTROY   0

Definition at line 1126 of file xdg-shell-client-protocol.h.

◆ XDG_TOPLEVEL_MOVE

#define XDG_TOPLEVEL_MOVE   5

Definition at line 1131 of file xdg-shell-client-protocol.h.

◆ XDG_TOPLEVEL_RESIZE

#define XDG_TOPLEVEL_RESIZE   6

Definition at line 1132 of file xdg-shell-client-protocol.h.

◆ XDG_TOPLEVEL_RESIZE_EDGE_ENUM

#define XDG_TOPLEVEL_RESIZE_EDGE_ENUM

Definition at line 1013 of file xdg-shell-client-protocol.h.

◆ XDG_TOPLEVEL_SET_APP_ID

#define XDG_TOPLEVEL_SET_APP_ID   3

Definition at line 1129 of file xdg-shell-client-protocol.h.

◆ XDG_TOPLEVEL_SET_FULLSCREEN

#define XDG_TOPLEVEL_SET_FULLSCREEN   11

Definition at line 1137 of file xdg-shell-client-protocol.h.

◆ XDG_TOPLEVEL_SET_MAX_SIZE

#define XDG_TOPLEVEL_SET_MAX_SIZE   7

Definition at line 1133 of file xdg-shell-client-protocol.h.

◆ XDG_TOPLEVEL_SET_MAXIMIZED

#define XDG_TOPLEVEL_SET_MAXIMIZED   9

Definition at line 1135 of file xdg-shell-client-protocol.h.

◆ XDG_TOPLEVEL_SET_MIN_SIZE

#define XDG_TOPLEVEL_SET_MIN_SIZE   8

Definition at line 1134 of file xdg-shell-client-protocol.h.

◆ XDG_TOPLEVEL_SET_MINIMIZED

#define XDG_TOPLEVEL_SET_MINIMIZED   13

Definition at line 1139 of file xdg-shell-client-protocol.h.

◆ XDG_TOPLEVEL_SET_PARENT

#define XDG_TOPLEVEL_SET_PARENT   1

Definition at line 1127 of file xdg-shell-client-protocol.h.

◆ XDG_TOPLEVEL_SET_TITLE

#define XDG_TOPLEVEL_SET_TITLE   2

Definition at line 1128 of file xdg-shell-client-protocol.h.

◆ XDG_TOPLEVEL_SHOW_WINDOW_MENU

#define XDG_TOPLEVEL_SHOW_WINDOW_MENU   4

Definition at line 1130 of file xdg-shell-client-protocol.h.

◆ XDG_TOPLEVEL_STATE_ENUM

#define XDG_TOPLEVEL_STATE_ENUM

Definition at line 1035 of file xdg-shell-client-protocol.h.

◆ XDG_TOPLEVEL_UNSET_FULLSCREEN

#define XDG_TOPLEVEL_UNSET_FULLSCREEN   12

Definition at line 1138 of file xdg-shell-client-protocol.h.

◆ XDG_TOPLEVEL_UNSET_MAXIMIZED

#define XDG_TOPLEVEL_UNSET_MAXIMIZED   10

Definition at line 1136 of file xdg-shell-client-protocol.h.

◆ XDG_WM_BASE_CREATE_POSITIONER

#define XDG_WM_BASE_CREATE_POSITIONER   1

Definition at line 409 of file xdg-shell-client-protocol.h.

◆ XDG_WM_BASE_DESTROY

#define XDG_WM_BASE_DESTROY   0

Definition at line 408 of file xdg-shell-client-protocol.h.

◆ XDG_WM_BASE_ERROR_ENUM

#define XDG_WM_BASE_ERROR_ENUM

Definition at line 341 of file xdg-shell-client-protocol.h.

◆ XDG_WM_BASE_GET_XDG_SURFACE

#define XDG_WM_BASE_GET_XDG_SURFACE   2

Definition at line 410 of file xdg-shell-client-protocol.h.

◆ XDG_WM_BASE_PONG

#define XDG_WM_BASE_PONG   3

Definition at line 411 of file xdg-shell-client-protocol.h.

Enumeration Type Documentation

◆ xdg_popup_error

Enumerator
XDG_POPUP_ERROR_INVALID_GRAB 

tried to grab after being mapped

Definition at line 1643 of file xdg-shell-client-protocol.h.

1643  {
1644  /**
1645  * tried to grab after being mapped
1646  */
1648 };

◆ xdg_positioner_anchor

Enumerator
XDG_POSITIONER_ANCHOR_NONE 
XDG_POSITIONER_ANCHOR_TOP 
XDG_POSITIONER_ANCHOR_BOTTOM 
XDG_POSITIONER_ANCHOR_LEFT 
XDG_POSITIONER_ANCHOR_RIGHT 
XDG_POSITIONER_ANCHOR_TOP_LEFT 
XDG_POSITIONER_ANCHOR_BOTTOM_LEFT 
XDG_POSITIONER_ANCHOR_TOP_RIGHT 
XDG_POSITIONER_ANCHOR_BOTTOM_RIGHT 

Definition at line 542 of file xdg-shell-client-protocol.h.

◆ xdg_positioner_error

Enumerator
XDG_POSITIONER_ERROR_INVALID_INPUT 

invalid input provided

Definition at line 532 of file xdg-shell-client-protocol.h.

532  {
533  /**
534  * invalid input provided
535  */
537 };

◆ xdg_positioner_gravity

Enumerator
XDG_POSITIONER_GRAVITY_NONE 
XDG_POSITIONER_GRAVITY_TOP 
XDG_POSITIONER_GRAVITY_BOTTOM 
XDG_POSITIONER_GRAVITY_LEFT 
XDG_POSITIONER_GRAVITY_RIGHT 
XDG_POSITIONER_GRAVITY_TOP_LEFT 
XDG_POSITIONER_GRAVITY_BOTTOM_LEFT 
XDG_POSITIONER_GRAVITY_TOP_RIGHT 
XDG_POSITIONER_GRAVITY_BOTTOM_RIGHT 

Definition at line 557 of file xdg-shell-client-protocol.h.

◆ xdg_surface_error

Enumerator
XDG_SURFACE_ERROR_NOT_CONSTRUCTED 
XDG_SURFACE_ERROR_ALREADY_CONSTRUCTED 
XDG_SURFACE_ERROR_UNCONFIGURED_BUFFER 

Definition at line 780 of file xdg-shell-client-protocol.h.

◆ xdg_wm_base_error

Enumerator
XDG_WM_BASE_ERROR_ROLE 

given wl_surface has another role

XDG_WM_BASE_ERROR_DEFUNCT_SURFACES 

xdg_wm_base was destroyed before children

XDG_WM_BASE_ERROR_NOT_THE_TOPMOST_POPUP 

the client tried to map or destroy a non-topmost popup

XDG_WM_BASE_ERROR_INVALID_POPUP_PARENT 

the client specified an invalid popup parent surface

XDG_WM_BASE_ERROR_INVALID_SURFACE_STATE 

the client provided an invalid surface state

XDG_WM_BASE_ERROR_INVALID_POSITIONER 

the client provided an invalid positioner

Definition at line 342 of file xdg-shell-client-protocol.h.

342  {
343  /**
344  * given wl_surface has another role
345  */
347  /**
348  * xdg_wm_base was destroyed before children
349  */
351  /**
352  * the client tried to map or destroy a non-topmost popup
353  */
355  /**
356  * the client specified an invalid popup parent surface
357  */
359  /**
360  * the client provided an invalid surface state
361  */
363  /**
364  * the client provided an invalid positioner
365  */
367 };

Function Documentation

◆ xdg_popup_get_version()

static uint32_t xdg_popup_get_version ( struct xdg_popup *  xdg_popup)
inlinestatic

Definition at line 1735 of file xdg-shell-client-protocol.h.

1736 {
1737  return wl_proxy_get_version((struct wl_proxy *) xdg_popup);
1738 }

◆ xdg_positioner_get_version()

static uint32_t xdg_positioner_get_version ( struct xdg_positioner *  xdg_positioner)
inlinestatic

Definition at line 642 of file xdg-shell-client-protocol.h.

643 {
644  return wl_proxy_get_version((struct wl_proxy *) xdg_positioner);
645 }

◆ xdg_surface_get_version()

static uint32_t xdg_surface_get_version ( struct xdg_surface *  xdg_surface)
inlinestatic

Definition at line 879 of file xdg-shell-client-protocol.h.

880 {
881  return wl_proxy_get_version((struct wl_proxy *) xdg_surface);
882 }

◆ xdg_toplevel_get_version()

static uint32_t xdg_toplevel_get_version ( struct xdg_toplevel *  xdg_toplevel)
inlinestatic

Definition at line 1222 of file xdg-shell-client-protocol.h.

1223 {
1224  return wl_proxy_get_version((struct wl_proxy *) xdg_toplevel);
1225 }

◆ xdg_wm_base_get_version()

static uint32_t xdg_wm_base_get_version ( struct xdg_wm_base *  xdg_wm_base)
inlinestatic

Definition at line 450 of file xdg-shell-client-protocol.h.

451 {
452  return wl_proxy_get_version((struct wl_proxy *) xdg_wm_base);
453 }

Variable Documentation

◆ xdg_popup_interface

WL_EXPORT const struct wl_interface xdg_popup_interface
extern
Initial value:
= {
"xdg_popup", 1,
}

Definition at line 159 of file xdg-shell-protocol.c.

Referenced by xdg_surface_get_popup().

◆ xdg_positioner_interface

WL_EXPORT const struct wl_interface xdg_positioner_interface
extern
Initial value:
= {
"xdg_positioner", 1,
0, NULL,
}

Definition at line 97 of file xdg-shell-protocol.c.

Referenced by xdg_wm_base_create_positioner().

◆ xdg_surface_interface

WL_EXPORT const struct wl_interface xdg_surface_interface
extern
Initial value:
= {
"xdg_surface", 1,
}

Definition at line 115 of file xdg-shell-protocol.c.

Referenced by xdg_wm_base_get_xdg_surface().

◆ xdg_toplevel_interface

WL_EXPORT const struct wl_interface xdg_toplevel_interface
extern
Initial value:
= {
"xdg_toplevel", 1,
}

Definition at line 143 of file xdg-shell-protocol.c.

Referenced by xdg_surface_get_toplevel().

◆ xdg_wm_base_interface

const struct wl_interface xdg_wm_base_interface
extern

Definition at line 81 of file xdg-shell-protocol.c.

XDG_POSITIONER_ANCHOR_TOP_RIGHT
@ XDG_POSITIONER_ANCHOR_TOP_RIGHT
Definition: xdg-shell-client-protocol.h:550
xdg_popup_requests
static const struct wl_message xdg_popup_requests[]
Definition: xdg-shell-protocol.c:149
NULL
#define NULL
Definition: begin_code.h:164
xdg_toplevel_events
static const struct wl_message xdg_toplevel_events[]
Definition: xdg-shell-protocol.c:138
XDG_POPUP_ERROR_INVALID_GRAB
@ XDG_POPUP_ERROR_INVALID_GRAB
Definition: xdg-shell-client-protocol.h:1647
XDG_WM_BASE_ERROR_INVALID_POSITIONER
@ XDG_WM_BASE_ERROR_INVALID_POSITIONER
Definition: xdg-shell-client-protocol.h:366
xdg_positioner_requests
static const struct wl_message xdg_positioner_requests[]
Definition: xdg-shell-protocol.c:87
XDG_POSITIONER_ANCHOR_BOTTOM_LEFT
@ XDG_POSITIONER_ANCHOR_BOTTOM_LEFT
Definition: xdg-shell-client-protocol.h:549
XDG_POSITIONER_ANCHOR_RIGHT
@ XDG_POSITIONER_ANCHOR_RIGHT
Definition: xdg-shell-client-protocol.h:547
XDG_POSITIONER_ANCHOR_TOP_LEFT
@ XDG_POSITIONER_ANCHOR_TOP_LEFT
Definition: xdg-shell-client-protocol.h:548
XDG_WM_BASE_ERROR_INVALID_SURFACE_STATE
@ XDG_WM_BASE_ERROR_INVALID_SURFACE_STATE
Definition: xdg-shell-client-protocol.h:362
XDG_POSITIONER_GRAVITY_BOTTOM
@ XDG_POSITIONER_GRAVITY_BOTTOM
Definition: xdg-shell-client-protocol.h:560
XDG_POSITIONER_ANCHOR_NONE
@ XDG_POSITIONER_ANCHOR_NONE
Definition: xdg-shell-client-protocol.h:543
XDG_POSITIONER_GRAVITY_BOTTOM_LEFT
@ XDG_POSITIONER_GRAVITY_BOTTOM_LEFT
Definition: xdg-shell-client-protocol.h:564
xdg_surface_requests
static const struct wl_message xdg_surface_requests[]
Definition: xdg-shell-protocol.c:103
XDG_POSITIONER_GRAVITY_LEFT
@ XDG_POSITIONER_GRAVITY_LEFT
Definition: xdg-shell-client-protocol.h:561
XDG_POSITIONER_ERROR_INVALID_INPUT
@ XDG_POSITIONER_ERROR_INVALID_INPUT
Definition: xdg-shell-client-protocol.h:536
XDG_POSITIONER_GRAVITY_NONE
@ XDG_POSITIONER_GRAVITY_NONE
Definition: xdg-shell-client-protocol.h:558
xdg_popup_events
static const struct wl_message xdg_popup_events[]
Definition: xdg-shell-protocol.c:154
XDG_POSITIONER_ANCHOR_BOTTOM
@ XDG_POSITIONER_ANCHOR_BOTTOM
Definition: xdg-shell-client-protocol.h:545
XDG_WM_BASE_ERROR_ROLE
@ XDG_WM_BASE_ERROR_ROLE
Definition: xdg-shell-client-protocol.h:346
XDG_POSITIONER_ANCHOR_BOTTOM_RIGHT
@ XDG_POSITIONER_ANCHOR_BOTTOM_RIGHT
Definition: xdg-shell-client-protocol.h:551
xdg_toplevel_requests
static const struct wl_message xdg_toplevel_requests[]
Definition: xdg-shell-protocol.c:121
XDG_SURFACE_ERROR_UNCONFIGURED_BUFFER
@ XDG_SURFACE_ERROR_UNCONFIGURED_BUFFER
Definition: xdg-shell-client-protocol.h:783
XDG_SURFACE_ERROR_ALREADY_CONSTRUCTED
@ XDG_SURFACE_ERROR_ALREADY_CONSTRUCTED
Definition: xdg-shell-client-protocol.h:782
XDG_WM_BASE_ERROR_DEFUNCT_SURFACES
@ XDG_WM_BASE_ERROR_DEFUNCT_SURFACES
Definition: xdg-shell-client-protocol.h:350
XDG_POSITIONER_GRAVITY_TOP
@ XDG_POSITIONER_GRAVITY_TOP
Definition: xdg-shell-client-protocol.h:559
XDG_POSITIONER_GRAVITY_BOTTOM_RIGHT
@ XDG_POSITIONER_GRAVITY_BOTTOM_RIGHT
Definition: xdg-shell-client-protocol.h:566
XDG_WM_BASE_ERROR_NOT_THE_TOPMOST_POPUP
@ XDG_WM_BASE_ERROR_NOT_THE_TOPMOST_POPUP
Definition: xdg-shell-client-protocol.h:354
XDG_POSITIONER_ANCHOR_TOP
@ XDG_POSITIONER_ANCHOR_TOP
Definition: xdg-shell-client-protocol.h:544
xdg_surface_events
static const struct wl_message xdg_surface_events[]
Definition: xdg-shell-protocol.c:111
XDG_POSITIONER_GRAVITY_RIGHT
@ XDG_POSITIONER_GRAVITY_RIGHT
Definition: xdg-shell-client-protocol.h:562
XDG_SURFACE_ERROR_NOT_CONSTRUCTED
@ XDG_SURFACE_ERROR_NOT_CONSTRUCTED
Definition: xdg-shell-client-protocol.h:781
XDG_POSITIONER_GRAVITY_TOP_LEFT
@ XDG_POSITIONER_GRAVITY_TOP_LEFT
Definition: xdg-shell-client-protocol.h:563
XDG_POSITIONER_ANCHOR_LEFT
@ XDG_POSITIONER_ANCHOR_LEFT
Definition: xdg-shell-client-protocol.h:546
XDG_POSITIONER_GRAVITY_TOP_RIGHT
@ XDG_POSITIONER_GRAVITY_TOP_RIGHT
Definition: xdg-shell-client-protocol.h:565
XDG_WM_BASE_ERROR_INVALID_POPUP_PARENT
@ XDG_WM_BASE_ERROR_INVALID_POPUP_PARENT
Definition: xdg-shell-client-protocol.h:358