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_INTERFACE
 
#define XDG_POSITIONER_INTERFACE
 
#define XDG_SURFACE_INTERFACE
 
#define XDG_TOPLEVEL_INTERFACE
 
#define XDG_POPUP_INTERFACE
 
#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 1821 of file xdg-shell-client-protocol.h.

◆ XDG_POPUP_ERROR_ENUM

#define XDG_POPUP_ERROR_ENUM

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

◆ XDG_POPUP_GRAB

#define XDG_POPUP_GRAB   1

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

◆ XDG_POPUP_INTERFACE

#define XDG_POPUP_INTERFACE

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

◆ XDG_POSITIONER_ANCHOR_ENUM

#define XDG_POSITIONER_ANCHOR_ENUM

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

◆ XDG_POSITIONER_CONSTRAINT_ADJUSTMENT_ENUM

#define XDG_POSITIONER_CONSTRAINT_ADJUSTMENT_ENUM

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

◆ XDG_POSITIONER_DESTROY

#define XDG_POSITIONER_DESTROY   0

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

◆ XDG_POSITIONER_ERROR_ENUM

#define XDG_POSITIONER_ERROR_ENUM

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

◆ XDG_POSITIONER_GRAVITY_ENUM

#define XDG_POSITIONER_GRAVITY_ENUM

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

◆ XDG_POSITIONER_INTERFACE

#define XDG_POSITIONER_INTERFACE

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

◆ XDG_POSITIONER_SET_ANCHOR

#define XDG_POSITIONER_SET_ANCHOR   3

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

◆ XDG_POSITIONER_SET_ANCHOR_RECT

#define XDG_POSITIONER_SET_ANCHOR_RECT   2

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

◆ XDG_POSITIONER_SET_CONSTRAINT_ADJUSTMENT

#define XDG_POSITIONER_SET_CONSTRAINT_ADJUSTMENT   5

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

◆ XDG_POSITIONER_SET_GRAVITY

#define XDG_POSITIONER_SET_GRAVITY   4

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

◆ XDG_POSITIONER_SET_OFFSET

#define XDG_POSITIONER_SET_OFFSET   6

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

◆ XDG_POSITIONER_SET_SIZE

#define XDG_POSITIONER_SET_SIZE   1

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

◆ XDG_SURFACE_ACK_CONFIGURE

#define XDG_SURFACE_ACK_CONFIGURE   4

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

◆ XDG_SURFACE_DESTROY

#define XDG_SURFACE_DESTROY   0

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

◆ XDG_SURFACE_ERROR_ENUM

#define XDG_SURFACE_ERROR_ENUM

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

◆ XDG_SURFACE_GET_POPUP

#define XDG_SURFACE_GET_POPUP   2

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

◆ XDG_SURFACE_GET_TOPLEVEL

#define XDG_SURFACE_GET_TOPLEVEL   1

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

◆ XDG_SURFACE_INTERFACE

#define XDG_SURFACE_INTERFACE

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

◆ XDG_SURFACE_SET_WINDOW_GEOMETRY

#define XDG_SURFACE_SET_WINDOW_GEOMETRY   3

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

◆ XDG_TOPLEVEL_DESTROY

#define XDG_TOPLEVEL_DESTROY   0

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

◆ XDG_TOPLEVEL_INTERFACE

#define XDG_TOPLEVEL_INTERFACE

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

◆ XDG_TOPLEVEL_MOVE

#define XDG_TOPLEVEL_MOVE   5

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

◆ XDG_TOPLEVEL_RESIZE

#define XDG_TOPLEVEL_RESIZE   6

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

◆ XDG_TOPLEVEL_RESIZE_EDGE_ENUM

#define XDG_TOPLEVEL_RESIZE_EDGE_ENUM

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

◆ XDG_TOPLEVEL_SET_APP_ID

#define XDG_TOPLEVEL_SET_APP_ID   3

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

◆ XDG_TOPLEVEL_SET_FULLSCREEN

#define XDG_TOPLEVEL_SET_FULLSCREEN   11

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

◆ XDG_TOPLEVEL_SET_MAX_SIZE

#define XDG_TOPLEVEL_SET_MAX_SIZE   7

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

◆ XDG_TOPLEVEL_SET_MAXIMIZED

#define XDG_TOPLEVEL_SET_MAXIMIZED   9

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

◆ XDG_TOPLEVEL_SET_MIN_SIZE

#define XDG_TOPLEVEL_SET_MIN_SIZE   8

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

◆ XDG_TOPLEVEL_SET_MINIMIZED

#define XDG_TOPLEVEL_SET_MINIMIZED   13

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

◆ XDG_TOPLEVEL_SET_PARENT

#define XDG_TOPLEVEL_SET_PARENT   1

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

◆ XDG_TOPLEVEL_SET_TITLE

#define XDG_TOPLEVEL_SET_TITLE   2

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

◆ XDG_TOPLEVEL_SHOW_WINDOW_MENU

#define XDG_TOPLEVEL_SHOW_WINDOW_MENU   4

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

◆ XDG_TOPLEVEL_STATE_ENUM

#define XDG_TOPLEVEL_STATE_ENUM

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

◆ XDG_TOPLEVEL_UNSET_FULLSCREEN

#define XDG_TOPLEVEL_UNSET_FULLSCREEN   12

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

◆ XDG_TOPLEVEL_UNSET_MAXIMIZED

#define XDG_TOPLEVEL_UNSET_MAXIMIZED   10

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

◆ XDG_WM_BASE_CREATE_POSITIONER

#define XDG_WM_BASE_CREATE_POSITIONER   1

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

◆ XDG_WM_BASE_DESTROY

#define XDG_WM_BASE_DESTROY   0

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

◆ XDG_WM_BASE_ERROR_ENUM

#define XDG_WM_BASE_ERROR_ENUM

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

◆ XDG_WM_BASE_GET_XDG_SURFACE

#define XDG_WM_BASE_GET_XDG_SURFACE   2

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

◆ XDG_WM_BASE_INTERFACE

#define XDG_WM_BASE_INTERFACE

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

◆ XDG_WM_BASE_PONG

#define XDG_WM_BASE_PONG   3

Definition at line 426 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 1765 of file xdg-shell-client-protocol.h.

1765  {
1766  /**
1767  * tried to grab after being mapped
1768  */
1770 };

◆ 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 555 of file xdg-shell-client-protocol.h.

◆ xdg_positioner_error

Enumerator
XDG_POSITIONER_ERROR_INVALID_INPUT 

invalid input provided

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

545  {
546  /**
547  * invalid input provided
548  */
550 };

◆ 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 570 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 880 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 357 of file xdg-shell-client-protocol.h.

357  {
358  /**
359  * given wl_surface has another role
360  */
362  /**
363  * xdg_wm_base was destroyed before children
364  */
366  /**
367  * the client tried to map or destroy a non-topmost popup
368  */
370  /**
371  * the client specified an invalid popup parent surface
372  */
374  /**
375  * the client provided an invalid surface state
376  */
378  /**
379  * the client provided an invalid positioner
380  */
382 };

Function Documentation

◆ xdg_popup_get_version()

static uint32_t xdg_popup_get_version ( struct xdg_popup *  xdg_popup)
inlinestatic

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

1858 {
1859  return wl_proxy_get_version((struct wl_proxy *) xdg_popup);
1860 }

◆ xdg_positioner_get_version()

static uint32_t xdg_positioner_get_version ( struct xdg_positioner *  xdg_positioner)
inlinestatic

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

745 {
746  return wl_proxy_get_version((struct wl_proxy *) xdg_positioner);
747 }

◆ xdg_surface_get_version()

static uint32_t xdg_surface_get_version ( struct xdg_surface *  xdg_surface)
inlinestatic

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

980 {
981  return wl_proxy_get_version((struct wl_proxy *) xdg_surface);
982 }

◆ xdg_toplevel_get_version()

static uint32_t xdg_toplevel_get_version ( struct xdg_toplevel *  xdg_toplevel)
inlinestatic

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

1347 {
1348  return wl_proxy_get_version((struct wl_proxy *) xdg_toplevel);
1349 }

◆ xdg_wm_base_get_version()

static uint32_t xdg_wm_base_get_version ( struct xdg_wm_base *  xdg_wm_base)
inlinestatic

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

466 {
467  return wl_proxy_get_version((struct wl_proxy *) xdg_wm_base);
468 }

Variable Documentation

◆ xdg_popup_interface

WL_EXPORT const struct wl_interface xdg_popup_interface
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
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
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

const struct wl_interface xdg_toplevel_interface

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

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:563
xdg_popup_requests
static const struct wl_message xdg_popup_requests[]
Definition: xdg-shell-protocol.c:149
NULL
#define NULL
Definition: begin_code.h:167
XDG_POPUP_ERROR_INVALID_GRAB
@ XDG_POPUP_ERROR_INVALID_GRAB
Definition: xdg-shell-client-protocol.h:1769
XDG_WM_BASE_ERROR_INVALID_POSITIONER
@ XDG_WM_BASE_ERROR_INVALID_POSITIONER
Definition: xdg-shell-client-protocol.h:381
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:562
XDG_POSITIONER_ANCHOR_RIGHT
@ XDG_POSITIONER_ANCHOR_RIGHT
Definition: xdg-shell-client-protocol.h:560
XDG_POSITIONER_ANCHOR_TOP_LEFT
@ XDG_POSITIONER_ANCHOR_TOP_LEFT
Definition: xdg-shell-client-protocol.h:561
XDG_WM_BASE_ERROR_INVALID_SURFACE_STATE
@ XDG_WM_BASE_ERROR_INVALID_SURFACE_STATE
Definition: xdg-shell-client-protocol.h:377
XDG_POSITIONER_GRAVITY_BOTTOM
@ XDG_POSITIONER_GRAVITY_BOTTOM
Definition: xdg-shell-client-protocol.h:573
XDG_POSITIONER_ANCHOR_NONE
@ XDG_POSITIONER_ANCHOR_NONE
Definition: xdg-shell-client-protocol.h:556
XDG_POSITIONER_GRAVITY_BOTTOM_LEFT
@ XDG_POSITIONER_GRAVITY_BOTTOM_LEFT
Definition: xdg-shell-client-protocol.h:577
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:574
XDG_POSITIONER_ERROR_INVALID_INPUT
@ XDG_POSITIONER_ERROR_INVALID_INPUT
Definition: xdg-shell-client-protocol.h:549
XDG_POSITIONER_GRAVITY_NONE
@ XDG_POSITIONER_GRAVITY_NONE
Definition: xdg-shell-client-protocol.h:571
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:558
XDG_WM_BASE_ERROR_ROLE
@ XDG_WM_BASE_ERROR_ROLE
Definition: xdg-shell-client-protocol.h:361
XDG_POSITIONER_ANCHOR_BOTTOM_RIGHT
@ XDG_POSITIONER_ANCHOR_BOTTOM_RIGHT
Definition: xdg-shell-client-protocol.h:564
XDG_SURFACE_ERROR_UNCONFIGURED_BUFFER
@ XDG_SURFACE_ERROR_UNCONFIGURED_BUFFER
Definition: xdg-shell-client-protocol.h:883
XDG_SURFACE_ERROR_ALREADY_CONSTRUCTED
@ XDG_SURFACE_ERROR_ALREADY_CONSTRUCTED
Definition: xdg-shell-client-protocol.h:882
XDG_WM_BASE_ERROR_DEFUNCT_SURFACES
@ XDG_WM_BASE_ERROR_DEFUNCT_SURFACES
Definition: xdg-shell-client-protocol.h:365
XDG_POSITIONER_GRAVITY_TOP
@ XDG_POSITIONER_GRAVITY_TOP
Definition: xdg-shell-client-protocol.h:572
XDG_POSITIONER_GRAVITY_BOTTOM_RIGHT
@ XDG_POSITIONER_GRAVITY_BOTTOM_RIGHT
Definition: xdg-shell-client-protocol.h:579
XDG_WM_BASE_ERROR_NOT_THE_TOPMOST_POPUP
@ XDG_WM_BASE_ERROR_NOT_THE_TOPMOST_POPUP
Definition: xdg-shell-client-protocol.h:369
XDG_POSITIONER_ANCHOR_TOP
@ XDG_POSITIONER_ANCHOR_TOP
Definition: xdg-shell-client-protocol.h:557
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:575
XDG_SURFACE_ERROR_NOT_CONSTRUCTED
@ XDG_SURFACE_ERROR_NOT_CONSTRUCTED
Definition: xdg-shell-client-protocol.h:881
XDG_POSITIONER_GRAVITY_TOP_LEFT
@ XDG_POSITIONER_GRAVITY_TOP_LEFT
Definition: xdg-shell-client-protocol.h:576
XDG_POSITIONER_ANCHOR_LEFT
@ XDG_POSITIONER_ANCHOR_LEFT
Definition: xdg-shell-client-protocol.h:559
XDG_POSITIONER_GRAVITY_TOP_RIGHT
@ XDG_POSITIONER_GRAVITY_TOP_RIGHT
Definition: xdg-shell-client-protocol.h:578
XDG_WM_BASE_ERROR_INVALID_POPUP_PARENT
@ XDG_WM_BASE_ERROR_INVALID_POPUP_PARENT
Definition: xdg-shell-client-protocol.h:373