11 struct wp_presentation;
12 struct wp_presentation_feedback;
16 struct xdg_positioner;
24 enum class presentation_error : uint32_t;
25 class presentation_feedback_t;
26 struct presentation_feedback_kind;
28 enum class viewporter_error : uint32_t;
30 enum class viewport_error : uint32_t;
32 enum class xdg_wm_base_error : uint32_t;
33 class xdg_positioner_t;
34 enum class xdg_positioner_error : uint32_t;
35 enum class xdg_positioner_anchor : uint32_t;
36 enum class xdg_positioner_gravity : uint32_t;
37 struct xdg_positioner_constraint_adjustment;
39 enum class xdg_surface_error : uint32_t;
41 struct xdg_toplevel_resize_edge;
42 enum class xdg_toplevel_state : uint32_t;
44 enum class xdg_popup_error : uint32_t;
48 extern const wl_interface presentation_interface;
49 extern const wl_interface presentation_feedback_interface;
50 extern const wl_interface viewporter_interface;
51 extern const wl_interface viewport_interface;
52 extern const wl_interface xdg_wm_base_interface;
53 extern const wl_interface xdg_positioner_interface;
54 extern const wl_interface xdg_surface_interface;
55 extern const wl_interface xdg_toplevel_interface;
56 extern const wl_interface xdg_popup_interface;
78 struct events_t :
public detail::events_base_t
80 std::function<void(uint32_t)> clock_id;
83 static int dispatcher(uint32_t opcode,
const std::vector<detail::any>& args,
const std::shared_ptr<detail::events_base_t>& e);
94 static const std::string interface_name;
96 operator wp_presentation*()
const;
162 enum class presentation_error : uint32_t
165 invalid_timestamp = 0,
189 struct events_t :
public detail::events_base_t
191 std::function<void(
output_t)> sync_output;
193 std::function<void()> discarded;
196 static int dispatcher(uint32_t opcode,
const std::vector<detail::any>& args,
const std::shared_ptr<detail::events_base_t>& e);
207 static const std::string interface_name;
209 operator wp_presentation_feedback*()
const;
328 : detail::bitfield<4, 1>(b) {}
330 : detail::bitfield<4, 1>(value) {}
332 static const detail::bitfield<4, 1>
vsync;
355 struct events_t :
public detail::events_base_t
359 static int dispatcher(uint32_t opcode,
const std::vector<detail::any>& args,
const std::shared_ptr<detail::events_base_t>& e);
370 static const std::string interface_name;
372 operator wp_viewporter*()
const;
395 enum class viewporter_error : uint32_t
470 struct events_t :
public detail::events_base_t
474 static int dispatcher(uint32_t opcode,
const std::vector<detail::any>& args,
const std::shared_ptr<detail::events_base_t>& e);
485 static const std::string interface_name;
487 operator wp_viewport*()
const;
508 void set_source(
double x,
double y,
double width,
double height);
542 enum class viewport_error : uint32_t
567 struct events_t :
public detail::events_base_t
569 std::function<void(uint32_t)> ping;
572 static int dispatcher(uint32_t opcode,
const std::vector<detail::any>& args,
const std::shared_ptr<detail::events_base_t>& e);
583 static const std::string interface_name;
585 operator xdg_wm_base*()
const;
629 void pong(uint32_t serial);
651 std::function<void(uint32_t)> &
on_ping();
658 enum class xdg_wm_base_error : uint32_t
663 defunct_surfaces = 1,
665 not_the_topmost_popup = 2,
667 invalid_popup_parent = 3,
669 invalid_surface_state = 4,
671 invalid_positioner = 5
701 struct events_t :
public detail::events_base_t
705 static int dispatcher(uint32_t opcode,
const std::vector<detail::any>& args,
const std::shared_ptr<detail::events_base_t>& e);
716 static const std::string interface_name;
718 operator xdg_positioner*()
const;
731 void set_size(int32_t width, int32_t height);
755 void set_anchor_rect(int32_t x, int32_t y, int32_t width, int32_t height);
772 void set_anchor(xdg_positioner_anchor
const& anchor);
789 void set_gravity(xdg_positioner_gravity
const& gravity);
912 enum class xdg_positioner_error : uint32_t
921 enum class xdg_positioner_anchor : uint32_t
937 enum class xdg_positioner_gravity : uint32_t
968 : detail::bitfield<6, 8>(b) {}
970 : detail::bitfield<6, 8>(value) {}
971 static const detail::bitfield<6, 8> none;
972 static const detail::bitfield<6, 8> slide_x;
973 static const detail::bitfield<6, 8> slide_y;
974 static const detail::bitfield<6, 8> flip_x;
975 static const detail::bitfield<6, 8> flip_y;
976 static const detail::bitfield<6, 8> resize_x;
977 static const detail::bitfield<6, 8> resize_y;
1032 struct events_t :
public detail::events_base_t
1034 std::function<void(uint32_t)> configure;
1037 static int dispatcher(uint32_t opcode,
const std::vector<detail::any>& args,
const std::shared_ptr<detail::events_base_t>& e);
1048 static const std::string interface_name;
1050 operator xdg_surface*()
const;
1188 enum class xdg_surface_error : uint32_t
1190 not_constructed = 1,
1191 already_constructed = 2,
1192 unconfigured_buffer = 3
1220 struct events_t :
public detail::events_base_t
1222 std::function<void(int32_t, int32_t, array_t)> configure;
1223 std::function<void()> close;
1226 static int dispatcher(uint32_t opcode,
const std::vector<detail::any>& args,
const std::shared_ptr<detail::events_base_t>& e);
1237 static const std::string interface_name;
1239 operator xdg_toplevel*()
const;
1280 void set_title(std::string
const& title);
1367 void move(
seat_t const& seat, uint32_t serial);
1673 std::function<void(int32_t, int32_t, array_t)> &
on_configure();
1700 : detail::bitfield<4, 10>(b) {}
1702 : detail::bitfield<4, 10>(value) {}
1703 static const detail::bitfield<4, 10> none;
1704 static const detail::bitfield<4, 10> top;
1705 static const detail::bitfield<4, 10> bottom;
1706 static const detail::bitfield<4, 10> left;
1707 static const detail::bitfield<4, 10> top_left;
1708 static const detail::bitfield<4, 10> bottom_left;
1709 static const detail::bitfield<4, 10> right;
1710 static const detail::bitfield<4, 10> top_right;
1711 static const detail::bitfield<4, 10> bottom_right;
1725 enum class xdg_toplevel_state : uint32_t
1773 struct events_t :
public detail::events_base_t
1775 std::function<void(int32_t, int32_t, int32_t, int32_t)> configure;
1776 std::function<void()> popup_done;
1777 std::function<void(uint32_t)> repositioned;
1780 static int dispatcher(uint32_t opcode,
const std::vector<detail::any>& args,
const std::shared_ptr<detail::events_base_t>& e);
1791 static const std::string interface_name;
1793 operator xdg_popup*()
const;
1842 void grab(
seat_t const& seat, uint32_t serial);
1908 std::function<void(int32_t, int32_t, int32_t, int32_t)> &
on_configure();
1946 enum class xdg_popup_error : uint32_t