2018-05-13 11:49:45 +00:00
|
|
|
#ifndef TYPES_WLR_XDG_SHELL_V6_H
|
|
|
|
#define TYPES_WLR_XDG_SHELL_V6_H
|
|
|
|
|
|
|
|
#include <wayland-server.h>
|
|
|
|
#include <wlr/types/wlr_xdg_shell_v6.h>
|
|
|
|
#include "xdg-shell-unstable-v6-protocol.h"
|
|
|
|
|
|
|
|
struct wlr_xdg_positioner_v6_resource {
|
|
|
|
struct wl_resource *resource;
|
|
|
|
struct wlr_xdg_positioner_v6 attrs;
|
|
|
|
};
|
|
|
|
|
2018-07-07 21:45:16 +00:00
|
|
|
extern const struct wlr_surface_role xdg_toplevel_v6_surface_role;
|
|
|
|
extern const struct wlr_surface_role xdg_popup_v6_surface_role;
|
2018-05-13 11:49:45 +00:00
|
|
|
|
2018-05-14 18:16:46 +00:00
|
|
|
uint32_t schedule_xdg_surface_v6_configure(struct wlr_xdg_surface_v6 *surface);
|
|
|
|
struct wlr_xdg_surface_v6 *create_xdg_surface_v6(
|
2018-05-13 11:49:45 +00:00
|
|
|
struct wlr_xdg_client_v6 *client, struct wlr_surface *surface,
|
|
|
|
uint32_t id);
|
2018-05-14 18:16:46 +00:00
|
|
|
void unmap_xdg_surface_v6(struct wlr_xdg_surface_v6 *surface);
|
|
|
|
void destroy_xdg_surface_v6(struct wlr_xdg_surface_v6 *surface);
|
2018-07-09 22:02:03 +00:00
|
|
|
void handle_xdg_surface_v6_commit(struct wlr_surface *wlr_surface);
|
|
|
|
void handle_xdg_surface_v6_precommit(struct wlr_surface *wlr_surface);
|
2018-05-13 11:49:45 +00:00
|
|
|
|
2018-05-14 18:16:46 +00:00
|
|
|
void create_xdg_positioner_v6(struct wlr_xdg_client_v6 *client, uint32_t id);
|
|
|
|
struct wlr_xdg_positioner_v6_resource *get_xdg_positioner_v6_from_resource(
|
2018-05-13 11:49:45 +00:00
|
|
|
struct wl_resource *resource);
|
|
|
|
|
2018-05-14 18:16:46 +00:00
|
|
|
void create_xdg_popup_v6(struct wlr_xdg_surface_v6 *xdg_surface,
|
2018-05-13 11:49:45 +00:00
|
|
|
struct wlr_xdg_surface_v6 *parent,
|
|
|
|
struct wlr_xdg_positioner_v6_resource *positioner, int32_t id);
|
2018-05-14 18:16:46 +00:00
|
|
|
void handle_xdg_surface_v6_popup_committed(struct wlr_xdg_surface_v6 *surface);
|
|
|
|
struct wlr_xdg_popup_grab_v6 *get_xdg_shell_v6_popup_grab_from_seat(
|
2018-05-13 11:49:45 +00:00
|
|
|
struct wlr_xdg_shell_v6 *shell, struct wlr_seat *seat);
|
2018-05-14 18:16:46 +00:00
|
|
|
void destroy_xdg_popup_v6(struct wlr_xdg_surface_v6 *surface);
|
2018-05-13 11:49:45 +00:00
|
|
|
|
2018-05-14 18:16:46 +00:00
|
|
|
void create_xdg_toplevel_v6(struct wlr_xdg_surface_v6 *xdg_surface,
|
2018-05-13 11:49:45 +00:00
|
|
|
uint32_t id);
|
2018-05-14 18:16:46 +00:00
|
|
|
void handle_xdg_surface_v6_toplevel_committed(struct wlr_xdg_surface_v6 *surface);
|
|
|
|
void send_xdg_toplevel_v6_configure(struct wlr_xdg_surface_v6 *surface,
|
2018-05-13 11:49:45 +00:00
|
|
|
struct wlr_xdg_surface_v6_configure *configure);
|
2018-05-14 18:16:46 +00:00
|
|
|
void handle_xdg_toplevel_v6_ack_configure(struct wlr_xdg_surface_v6 *surface,
|
2018-05-13 11:49:45 +00:00
|
|
|
struct wlr_xdg_surface_v6_configure *configure);
|
2018-05-14 18:16:46 +00:00
|
|
|
bool compare_xdg_surface_v6_toplevel_state(struct wlr_xdg_toplevel_v6 *state);
|
|
|
|
void destroy_xdg_toplevel_v6(struct wlr_xdg_surface_v6 *surface);
|
2018-05-13 11:49:45 +00:00
|
|
|
|
|
|
|
#endif
|