Functions
xdg_wm_base_add_listener ()
int
xdg_wm_base_add_listener (struct xdg_wm_base *xdg_wm_base
,
const struct xdg_wm_base_listener *listener
,
void *data
);
xdg_wm_base_set_user_data ()
void
xdg_wm_base_set_user_data (struct xdg_wm_base *xdg_wm_base
,
void *user_data
);
xdg_wm_base_get_user_data ()
void *
xdg_wm_base_get_user_data (struct xdg_wm_base *xdg_wm_base
);
xdg_wm_base_get_version ()
uint32_t
xdg_wm_base_get_version (struct xdg_wm_base *xdg_wm_base
);
xdg_wm_base_destroy ()
void
xdg_wm_base_destroy (struct xdg_wm_base *xdg_wm_base
);
xdg_wm_base_create_positioner ()
struct xdg_positioner *
xdg_wm_base_create_positioner (struct xdg_wm_base *xdg_wm_base
);
xdg_wm_base_get_xdg_surface ()
struct xdg_surface *
xdg_wm_base_get_xdg_surface (struct xdg_wm_base *xdg_wm_base
,
struct wl_surface *surface
);
xdg_wm_base_pong ()
void
xdg_wm_base_pong (struct xdg_wm_base *xdg_wm_base
,
uint32_t serial
);
xdg_positioner_set_user_data ()
void
xdg_positioner_set_user_data (struct xdg_positioner *xdg_positioner
,
void *user_data
);
xdg_positioner_get_user_data ()
void *
xdg_positioner_get_user_data (struct xdg_positioner *xdg_positioner
);
xdg_positioner_get_version ()
uint32_t
xdg_positioner_get_version (struct xdg_positioner *xdg_positioner
);
xdg_positioner_destroy ()
void
xdg_positioner_destroy (struct xdg_positioner *xdg_positioner
);
xdg_positioner_set_size ()
void
xdg_positioner_set_size (struct xdg_positioner *xdg_positioner
,
int32_t width
,
int32_t height
);
xdg_positioner_set_anchor_rect ()
void
xdg_positioner_set_anchor_rect (struct xdg_positioner *xdg_positioner
,
int32_t x
,
int32_t y
,
int32_t width
,
int32_t height
);
xdg_positioner_set_anchor ()
void
xdg_positioner_set_anchor (struct xdg_positioner *xdg_positioner
,
uint32_t anchor
);
xdg_positioner_set_gravity ()
void
xdg_positioner_set_gravity (struct xdg_positioner *xdg_positioner
,
uint32_t gravity
);
xdg_positioner_set_constraint_adjustment ()
void
xdg_positioner_set_constraint_adjustment
(struct xdg_positioner *xdg_positioner
,
uint32_t constraint_adjustment
);
xdg_positioner_set_offset ()
void
xdg_positioner_set_offset (struct xdg_positioner *xdg_positioner
,
int32_t x
,
int32_t y
);
xdg_surface_add_listener ()
int
xdg_surface_add_listener (struct xdg_surface *xdg_surface
,
const struct xdg_surface_listener *listener
,
void *data
);
xdg_surface_set_user_data ()
void
xdg_surface_set_user_data (struct xdg_surface *xdg_surface
,
void *user_data
);
xdg_surface_get_user_data ()
void *
xdg_surface_get_user_data (struct xdg_surface *xdg_surface
);
xdg_surface_get_version ()
uint32_t
xdg_surface_get_version (struct xdg_surface *xdg_surface
);
xdg_surface_destroy ()
void
xdg_surface_destroy (struct xdg_surface *xdg_surface
);
xdg_surface_get_toplevel ()
struct xdg_toplevel *
xdg_surface_get_toplevel (struct xdg_surface *xdg_surface
);
xdg_surface_get_popup ()
struct xdg_popup *
xdg_surface_get_popup (struct xdg_surface *xdg_surface
,
struct xdg_surface *parent
,
struct xdg_positioner *positioner
);
xdg_surface_set_window_geometry ()
void
xdg_surface_set_window_geometry (struct xdg_surface *xdg_surface
,
int32_t x
,
int32_t y
,
int32_t width
,
int32_t height
);
xdg_surface_ack_configure ()
void
xdg_surface_ack_configure (struct xdg_surface *xdg_surface
,
uint32_t serial
);
xdg_toplevel_add_listener ()
int
xdg_toplevel_add_listener (struct xdg_toplevel *xdg_toplevel
,
const struct xdg_toplevel_listener *listener
,
void *data
);
xdg_toplevel_set_user_data ()
void
xdg_toplevel_set_user_data (struct xdg_toplevel *xdg_toplevel
,
void *user_data
);
xdg_toplevel_get_user_data ()
void *
xdg_toplevel_get_user_data (struct xdg_toplevel *xdg_toplevel
);
xdg_toplevel_get_version ()
uint32_t
xdg_toplevel_get_version (struct xdg_toplevel *xdg_toplevel
);
xdg_toplevel_destroy ()
void
xdg_toplevel_destroy (struct xdg_toplevel *xdg_toplevel
);
xdg_toplevel_set_parent ()
void
xdg_toplevel_set_parent (struct xdg_toplevel *xdg_toplevel
,
struct xdg_toplevel *parent
);
xdg_toplevel_set_title ()
void
xdg_toplevel_set_title (struct xdg_toplevel *xdg_toplevel
,
const char *title
);
xdg_toplevel_set_app_id ()
void
xdg_toplevel_set_app_id (struct xdg_toplevel *xdg_toplevel
,
const char *app_id
);
xdg_toplevel_show_window_menu ()
void
xdg_toplevel_show_window_menu (struct xdg_toplevel *xdg_toplevel
,
struct wl_seat *seat
,
uint32_t serial
,
int32_t x
,
int32_t y
);
xdg_toplevel_move ()
void
xdg_toplevel_move (struct xdg_toplevel *xdg_toplevel
,
struct wl_seat *seat
,
uint32_t serial
);
xdg_toplevel_resize ()
void
xdg_toplevel_resize (struct xdg_toplevel *xdg_toplevel
,
struct wl_seat *seat
,
uint32_t serial
,
uint32_t edges
);
xdg_toplevel_set_max_size ()
void
xdg_toplevel_set_max_size (struct xdg_toplevel *xdg_toplevel
,
int32_t width
,
int32_t height
);
xdg_toplevel_set_min_size ()
void
xdg_toplevel_set_min_size (struct xdg_toplevel *xdg_toplevel
,
int32_t width
,
int32_t height
);
xdg_toplevel_set_maximized ()
void
xdg_toplevel_set_maximized (struct xdg_toplevel *xdg_toplevel
);
xdg_toplevel_unset_maximized ()
void
xdg_toplevel_unset_maximized (struct xdg_toplevel *xdg_toplevel
);
xdg_toplevel_set_fullscreen ()
void
xdg_toplevel_set_fullscreen (struct xdg_toplevel *xdg_toplevel
,
struct wl_output *output
);
xdg_toplevel_unset_fullscreen ()
void
xdg_toplevel_unset_fullscreen (struct xdg_toplevel *xdg_toplevel
);
xdg_toplevel_set_minimized ()
void
xdg_toplevel_set_minimized (struct xdg_toplevel *xdg_toplevel
);
xdg_popup_add_listener ()
int
xdg_popup_add_listener (struct xdg_popup *xdg_popup
,
const struct xdg_popup_listener *listener
,
void *data
);
xdg_popup_set_user_data ()
void
xdg_popup_set_user_data (struct xdg_popup *xdg_popup
,
void *user_data
);
xdg_popup_get_user_data ()
void *
xdg_popup_get_user_data (struct xdg_popup *xdg_popup
);
xdg_popup_get_version ()
uint32_t
xdg_popup_get_version (struct xdg_popup *xdg_popup
);
xdg_popup_destroy ()
void
xdg_popup_destroy (struct xdg_popup *xdg_popup
);
xdg_popup_grab ()
void
xdg_popup_grab (struct xdg_popup *xdg_popup
,
struct wl_seat *seat
,
uint32_t serial
);
Types and Values
XDG_WM_BASE_ERROR_ENUM
#define XDG_WM_BASE_ERROR_ENUM
struct xdg_wm_base_listener
struct xdg_wm_base_listener {
/**
* check if the client is alive
*
* The ping event asks the client if it's still alive. Pass the
* serial specified in the event back to the compositor by sending
* a "pong" request back with the specified serial. See
* xdg_wm_base.ping.
*
* Compositors can use this to determine if the client is still
* alive. It's unspecified what will happen if the client doesn't
* respond to the ping request, or in what timeframe. Clients
* should try to respond in a reasonable amount of time.
*
* A compositor is free to ping in any way it wants, but a client
* must always respond to any xdg_wm_base object it created.
* @param serial pass this to the pong request
*/
void (*ping)(void *data,
struct xdg_wm_base *xdg_wm_base,
uint32_t serial);
};
XDG_WM_BASE_DESTROY
#define XDG_WM_BASE_DESTROY
XDG_WM_BASE_CREATE_POSITIONER
#define XDG_WM_BASE_CREATE_POSITIONER
XDG_WM_BASE_GET_XDG_SURFACE
#define XDG_WM_BASE_GET_XDG_SURFACE
XDG_WM_BASE_PONG
#define XDG_WM_BASE_PONG
XDG_WM_BASE_PING_SINCE_VERSION
#define XDG_WM_BASE_PING_SINCE_VERSION
XDG_WM_BASE_DESTROY_SINCE_VERSION
#define XDG_WM_BASE_DESTROY_SINCE_VERSION
XDG_WM_BASE_CREATE_POSITIONER_SINCE_VERSION
#define XDG_WM_BASE_CREATE_POSITIONER_SINCE_VERSION
XDG_WM_BASE_GET_XDG_SURFACE_SINCE_VERSION
#define XDG_WM_BASE_GET_XDG_SURFACE_SINCE_VERSION
XDG_WM_BASE_PONG_SINCE_VERSION
#define XDG_WM_BASE_PONG_SINCE_VERSION
XDG_POSITIONER_ERROR_ENUM
#define XDG_POSITIONER_ERROR_ENUM
enum xdg_positioner_error
XDG_POSITIONER_ANCHOR_ENUM
#define XDG_POSITIONER_ANCHOR_ENUM
enum xdg_positioner_anchor
XDG_POSITIONER_GRAVITY_ENUM
#define XDG_POSITIONER_GRAVITY_ENUM
enum xdg_positioner_gravity
XDG_POSITIONER_CONSTRAINT_ADJUSTMENT_ENUM
#define XDG_POSITIONER_CONSTRAINT_ADJUSTMENT_ENUM
enum xdg_positioner_constraint_adjustment
XDG_POSITIONER_DESTROY
#define XDG_POSITIONER_DESTROY
XDG_POSITIONER_SET_SIZE
#define XDG_POSITIONER_SET_SIZE
XDG_POSITIONER_SET_ANCHOR_RECT
#define XDG_POSITIONER_SET_ANCHOR_RECT
XDG_POSITIONER_SET_ANCHOR
#define XDG_POSITIONER_SET_ANCHOR
XDG_POSITIONER_SET_GRAVITY
#define XDG_POSITIONER_SET_GRAVITY
XDG_POSITIONER_SET_CONSTRAINT_ADJUSTMENT
#define XDG_POSITIONER_SET_CONSTRAINT_ADJUSTMENT
XDG_POSITIONER_SET_OFFSET
#define XDG_POSITIONER_SET_OFFSET
XDG_POSITIONER_DESTROY_SINCE_VERSION
#define XDG_POSITIONER_DESTROY_SINCE_VERSION
XDG_POSITIONER_SET_SIZE_SINCE_VERSION
#define XDG_POSITIONER_SET_SIZE_SINCE_VERSION
XDG_POSITIONER_SET_ANCHOR_RECT_SINCE_VERSION
#define XDG_POSITIONER_SET_ANCHOR_RECT_SINCE_VERSION
XDG_POSITIONER_SET_ANCHOR_SINCE_VERSION
#define XDG_POSITIONER_SET_ANCHOR_SINCE_VERSION
XDG_POSITIONER_SET_GRAVITY_SINCE_VERSION
#define XDG_POSITIONER_SET_GRAVITY_SINCE_VERSION
XDG_POSITIONER_SET_CONSTRAINT_ADJUSTMENT_SINCE_VERSION
#define XDG_POSITIONER_SET_CONSTRAINT_ADJUSTMENT_SINCE_VERSION
XDG_POSITIONER_SET_OFFSET_SINCE_VERSION
#define XDG_POSITIONER_SET_OFFSET_SINCE_VERSION
XDG_SURFACE_ERROR_ENUM
#define XDG_SURFACE_ERROR_ENUM
struct xdg_surface_listener
struct xdg_surface_listener {
/**
* suggest a surface change
*
* The configure event marks the end of a configure sequence. A
* configure sequence is a set of one or more events configuring
* the state of the xdg_surface, including the final
* xdg_surface.configure event.
*
* Where applicable, xdg_surface surface roles will during a
* configure sequence extend this event as a latched state sent as
* events before the xdg_surface.configure event. Such events
* should be considered to make up a set of atomically applied
* configuration states, where the xdg_surface.configure commits
* the accumulated state.
*
* Clients should arrange their surface for the new states, and
* then send an ack_configure request with the serial sent in this
* configure event at some point before committing the new surface.
*
* If the client receives multiple configure events before it can
* respond to one, it is free to discard all but the last event it
* received.
* @param serial serial of the configure event
*/
void (*configure)(void *data,
struct xdg_surface *xdg_surface,
uint32_t serial);
};
XDG_SURFACE_DESTROY
#define XDG_SURFACE_DESTROY
XDG_SURFACE_GET_TOPLEVEL
#define XDG_SURFACE_GET_TOPLEVEL
XDG_SURFACE_GET_POPUP
#define XDG_SURFACE_GET_POPUP
XDG_SURFACE_SET_WINDOW_GEOMETRY
#define XDG_SURFACE_SET_WINDOW_GEOMETRY
XDG_SURFACE_ACK_CONFIGURE
#define XDG_SURFACE_ACK_CONFIGURE
XDG_SURFACE_CONFIGURE_SINCE_VERSION
#define XDG_SURFACE_CONFIGURE_SINCE_VERSION
XDG_SURFACE_DESTROY_SINCE_VERSION
#define XDG_SURFACE_DESTROY_SINCE_VERSION
XDG_SURFACE_GET_TOPLEVEL_SINCE_VERSION
#define XDG_SURFACE_GET_TOPLEVEL_SINCE_VERSION
XDG_SURFACE_GET_POPUP_SINCE_VERSION
#define XDG_SURFACE_GET_POPUP_SINCE_VERSION
XDG_SURFACE_SET_WINDOW_GEOMETRY_SINCE_VERSION
#define XDG_SURFACE_SET_WINDOW_GEOMETRY_SINCE_VERSION
XDG_SURFACE_ACK_CONFIGURE_SINCE_VERSION
#define XDG_SURFACE_ACK_CONFIGURE_SINCE_VERSION
XDG_TOPLEVEL_RESIZE_EDGE_ENUM
#define XDG_TOPLEVEL_RESIZE_EDGE_ENUM
enum xdg_toplevel_resize_edge
XDG_TOPLEVEL_STATE_ENUM
#define XDG_TOPLEVEL_STATE_ENUM
XDG_TOPLEVEL_STATE_TILED_LEFT_SINCE_VERSION
#define XDG_TOPLEVEL_STATE_TILED_LEFT_SINCE_VERSION
XDG_TOPLEVEL_STATE_TILED_RIGHT_SINCE_VERSION
#define XDG_TOPLEVEL_STATE_TILED_RIGHT_SINCE_VERSION
XDG_TOPLEVEL_STATE_TILED_TOP_SINCE_VERSION
#define XDG_TOPLEVEL_STATE_TILED_TOP_SINCE_VERSION
XDG_TOPLEVEL_STATE_TILED_BOTTOM_SINCE_VERSION
#define XDG_TOPLEVEL_STATE_TILED_BOTTOM_SINCE_VERSION
struct xdg_toplevel_listener
struct xdg_toplevel_listener {
/**
* suggest a surface change
*
* This configure event asks the client to resize its toplevel
* surface or to change its state. The configured state should not
* be applied immediately. See xdg_surface.configure for details.
*
* The width and height arguments specify a hint to the window
* about how its surface should be resized in window geometry
* coordinates. See set_window_geometry.
*
* If the width or height arguments are zero, it means the client
* should decide its own window dimension. This may happen when the
* compositor needs to configure the state of the surface but
* doesn't have any information about any previous or expected
* dimension.
*
* The states listed in the event specify how the width/height
* arguments should be interpreted, and possibly how it should be
* drawn.
*
* Clients must send an ack_configure in response to this event.
* See xdg_surface.configure and xdg_surface.ack_configure for
* details.
*/
void (*configure)(void *data,
struct xdg_toplevel *xdg_toplevel,
int32_t width,
int32_t height,
struct wl_array *states);
/**
* surface wants to be closed
*
* The close event is sent by the compositor when the user wants
* the surface to be closed. This should be equivalent to the user
* clicking the close button in client-side decorations, if your
* application has any.
*
* This is only a request that the user intends to close the
* window. The client may choose to ignore this request, or show a
* dialog to ask the user to save their data, etc.
*/
void (*close)(void *data,
struct xdg_toplevel *xdg_toplevel);
};
XDG_TOPLEVEL_DESTROY
#define XDG_TOPLEVEL_DESTROY
XDG_TOPLEVEL_SET_PARENT
#define XDG_TOPLEVEL_SET_PARENT
XDG_TOPLEVEL_SET_TITLE
#define XDG_TOPLEVEL_SET_TITLE
XDG_TOPLEVEL_SET_APP_ID
#define XDG_TOPLEVEL_SET_APP_ID
XDG_TOPLEVEL_SHOW_WINDOW_MENU
#define XDG_TOPLEVEL_SHOW_WINDOW_MENU
XDG_TOPLEVEL_MOVE
#define XDG_TOPLEVEL_MOVE
XDG_TOPLEVEL_RESIZE
#define XDG_TOPLEVEL_RESIZE
XDG_TOPLEVEL_SET_MAX_SIZE
#define XDG_TOPLEVEL_SET_MAX_SIZE
XDG_TOPLEVEL_SET_MIN_SIZE
#define XDG_TOPLEVEL_SET_MIN_SIZE
XDG_TOPLEVEL_SET_MAXIMIZED
#define XDG_TOPLEVEL_SET_MAXIMIZED
XDG_TOPLEVEL_UNSET_MAXIMIZED
#define XDG_TOPLEVEL_UNSET_MAXIMIZED
XDG_TOPLEVEL_SET_FULLSCREEN
#define XDG_TOPLEVEL_SET_FULLSCREEN
XDG_TOPLEVEL_UNSET_FULLSCREEN
#define XDG_TOPLEVEL_UNSET_FULLSCREEN
XDG_TOPLEVEL_SET_MINIMIZED
#define XDG_TOPLEVEL_SET_MINIMIZED
XDG_TOPLEVEL_CONFIGURE_SINCE_VERSION
#define XDG_TOPLEVEL_CONFIGURE_SINCE_VERSION
XDG_TOPLEVEL_CLOSE_SINCE_VERSION
#define XDG_TOPLEVEL_CLOSE_SINCE_VERSION
XDG_TOPLEVEL_DESTROY_SINCE_VERSION
#define XDG_TOPLEVEL_DESTROY_SINCE_VERSION
XDG_TOPLEVEL_SET_PARENT_SINCE_VERSION
#define XDG_TOPLEVEL_SET_PARENT_SINCE_VERSION
XDG_TOPLEVEL_SET_TITLE_SINCE_VERSION
#define XDG_TOPLEVEL_SET_TITLE_SINCE_VERSION
XDG_TOPLEVEL_SET_APP_ID_SINCE_VERSION
#define XDG_TOPLEVEL_SET_APP_ID_SINCE_VERSION
XDG_TOPLEVEL_SHOW_WINDOW_MENU_SINCE_VERSION
#define XDG_TOPLEVEL_SHOW_WINDOW_MENU_SINCE_VERSION
XDG_TOPLEVEL_MOVE_SINCE_VERSION
#define XDG_TOPLEVEL_MOVE_SINCE_VERSION
XDG_TOPLEVEL_RESIZE_SINCE_VERSION
#define XDG_TOPLEVEL_RESIZE_SINCE_VERSION
XDG_TOPLEVEL_SET_MAX_SIZE_SINCE_VERSION
#define XDG_TOPLEVEL_SET_MAX_SIZE_SINCE_VERSION
XDG_TOPLEVEL_SET_MIN_SIZE_SINCE_VERSION
#define XDG_TOPLEVEL_SET_MIN_SIZE_SINCE_VERSION
XDG_TOPLEVEL_SET_MAXIMIZED_SINCE_VERSION
#define XDG_TOPLEVEL_SET_MAXIMIZED_SINCE_VERSION
XDG_TOPLEVEL_UNSET_MAXIMIZED_SINCE_VERSION
#define XDG_TOPLEVEL_UNSET_MAXIMIZED_SINCE_VERSION
XDG_TOPLEVEL_SET_FULLSCREEN_SINCE_VERSION
#define XDG_TOPLEVEL_SET_FULLSCREEN_SINCE_VERSION
XDG_TOPLEVEL_UNSET_FULLSCREEN_SINCE_VERSION
#define XDG_TOPLEVEL_UNSET_FULLSCREEN_SINCE_VERSION
XDG_TOPLEVEL_SET_MINIMIZED_SINCE_VERSION
#define XDG_TOPLEVEL_SET_MINIMIZED_SINCE_VERSION
XDG_POPUP_ERROR_ENUM
#define XDG_POPUP_ERROR_ENUM
struct xdg_popup_listener
struct xdg_popup_listener {
/**
* configure the popup surface
*
* This event asks the popup surface to configure itself given
* the configuration. The configured state should not be applied
* immediately. See xdg_surface.configure for details.
*
* The x and y arguments represent the position the popup was
* placed at given the xdg_positioner rule, relative to the upper
* left corner of the window geometry of the parent surface.
* @param x x position relative to parent surface window geometry
* @param y y position relative to parent surface window geometry
* @param width window geometry width
* @param height window geometry height
*/
void (*configure)(void *data,
struct xdg_popup *xdg_popup,
int32_t x,
int32_t y,
int32_t width,
int32_t height);
/**
* popup interaction is done
*
* The popup_done event is sent out when a popup is dismissed by
* the compositor. The client should destroy the xdg_popup object
* at this point.
*/
void (*popup_done)(void *data,
struct xdg_popup *xdg_popup);
};
XDG_POPUP_DESTROY
#define XDG_POPUP_DESTROY
XDG_POPUP_GRAB
#define XDG_POPUP_GRAB
XDG_POPUP_CONFIGURE_SINCE_VERSION
#define XDG_POPUP_CONFIGURE_SINCE_VERSION
XDG_POPUP_POPUP_DONE_SINCE_VERSION
#define XDG_POPUP_POPUP_DONE_SINCE_VERSION
XDG_POPUP_DESTROY_SINCE_VERSION
#define XDG_POPUP_DESTROY_SINCE_VERSION
XDG_POPUP_GRAB_SINCE_VERSION
#define XDG_POPUP_GRAB_SINCE_VERSION
struct wl_output
struct wl_output;
struct wl_seat
struct wl_seat;
struct wl_surface
struct wl_surface;
struct xdg_popup
struct xdg_popup;
struct xdg_positioner
struct xdg_positioner;
struct xdg_surface
struct xdg_surface;
struct xdg_toplevel
struct xdg_toplevel;
struct xdg_wm_base
struct xdg_wm_base;