Loading...
Searching...
No Matches
wayland-client-protocol-extra.hpp
#pragma once
#include <array>
#include <cstdint>
#include <functional>
#include <memory>
#include <string>
#include <vector>
#include <wayland-client.hpp>
struct wp_presentation;
struct wp_presentation_feedback;
struct wp_viewporter;
struct wp_viewport;
struct xdg_wm_base;
struct xdg_positioner;
struct xdg_surface;
struct xdg_toplevel;
struct xdg_popup;
namespace wayland
{
class presentation_t;
enum class presentation_error : uint32_t;
class presentation_feedback_t;
struct presentation_feedback_kind;
class viewporter_t;
enum class viewporter_error : uint32_t;
class viewport_t;
enum class viewport_error : uint32_t;
class xdg_wm_base_t;
enum class xdg_wm_base_error : uint32_t;
class xdg_positioner_t;
enum class xdg_positioner_error : uint32_t;
enum class xdg_positioner_anchor : uint32_t;
enum class xdg_positioner_gravity : uint32_t;
struct xdg_positioner_constraint_adjustment;
class xdg_surface_t;
enum class xdg_surface_error : uint32_t;
class xdg_toplevel_t;
enum class xdg_toplevel_error : uint32_t;
struct xdg_toplevel_resize_edge;
enum class xdg_toplevel_state : uint32_t;
class xdg_popup_t;
enum class xdg_popup_error : uint32_t;
namespace detail
{
extern const wl_interface presentation_interface;
extern const wl_interface presentation_feedback_interface;
extern const wl_interface viewporter_interface;
extern const wl_interface viewport_interface;
extern const wl_interface xdg_wm_base_interface;
extern const wl_interface xdg_positioner_interface;
extern const wl_interface xdg_surface_interface;
extern const wl_interface xdg_toplevel_interface;
extern const wl_interface xdg_popup_interface;
}
class presentation_t : public proxy_t
{
private:
struct events_t : public detail::events_base_t
{
std::function<void(uint32_t)> clock_id;
};
static int dispatcher(uint32_t opcode, const std::vector<detail::any>& args, const std::shared_ptr<detail::events_base_t>& e);
presentation_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag /*unused*/);
public:
presentation_t();
explicit presentation_t(const proxy_t &proxy);
presentation_t(wp_presentation *p, wrapper_type t = wrapper_type::standard);
presentation_t proxy_create_wrapper();
static const std::string interface_name;
operator wp_presentation*() const;
presentation_feedback_t feedback(surface_t const& surface);
static constexpr std::uint32_t feedback_since_version = 1;
std::function<void(uint32_t)> &on_clock_id();
};
enum class presentation_error : uint32_t
{
invalid_timestamp = 0,
invalid_flag = 1
};
class presentation_feedback_t : public proxy_t
{
private:
struct events_t : public detail::events_base_t
{
std::function<void(output_t)> sync_output;
std::function<void(uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, presentation_feedback_kind)> presented;
std::function<void()> discarded;
};
static int dispatcher(uint32_t opcode, const std::vector<detail::any>& args, const std::shared_ptr<detail::events_base_t>& e);
presentation_feedback_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag /*unused*/);
public:
presentation_feedback_t();
explicit presentation_feedback_t(const proxy_t &proxy);
presentation_feedback_t(wp_presentation_feedback *p, wrapper_type t = wrapper_type::standard);
presentation_feedback_t proxy_create_wrapper();
static const std::string interface_name;
operator wp_presentation_feedback*() const;
std::function<void(output_t)> &on_sync_output();
std::function<void(uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, presentation_feedback_kind)> &on_presented();
std::function<void()> &on_discarded();
};
struct presentation_feedback_kind : public wayland::detail::bitfield<4, 1>
{
presentation_feedback_kind(const wayland::detail::bitfield<4, 1> &b)
: wayland::detail::bitfield<4, 1>(b) {}
presentation_feedback_kind(const uint32_t value)
: wayland::detail::bitfield<4, 1>(value) {}
static const wayland::detail::bitfield<4, 1> vsync;
static const wayland::detail::bitfield<4, 1> hw_clock;
static const wayland::detail::bitfield<4, 1> hw_completion;
static const wayland::detail::bitfield<4, 1> zero_copy;
};
class viewporter_t : public proxy_t
{
private:
struct events_t : public detail::events_base_t
{
};
static int dispatcher(uint32_t opcode, const std::vector<detail::any>& args, const std::shared_ptr<detail::events_base_t>& e);
viewporter_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag /*unused*/);
public:
viewporter_t();
explicit viewporter_t(const proxy_t &proxy);
viewporter_t(wp_viewporter *p, wrapper_type t = wrapper_type::standard);
viewporter_t proxy_create_wrapper();
static const std::string interface_name;
operator wp_viewporter*() const;
viewport_t get_viewport(surface_t const& surface);
static constexpr std::uint32_t get_viewport_since_version = 1;
};
enum class viewporter_error : uint32_t
{
viewport_exists = 0
};
class viewport_t : public proxy_t
{
private:
struct events_t : public detail::events_base_t
{
};
static int dispatcher(uint32_t opcode, const std::vector<detail::any>& args, const std::shared_ptr<detail::events_base_t>& e);
viewport_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag /*unused*/);
public:
viewport_t();
explicit viewport_t(const proxy_t &proxy);
viewport_t(wp_viewport *p, wrapper_type t = wrapper_type::standard);
viewport_t proxy_create_wrapper();
static const std::string interface_name;
operator wp_viewport*() const;
void set_source(double x, double y, double width, double height);
static constexpr std::uint32_t set_source_since_version = 1;
void set_destination(int32_t width, int32_t height);
static constexpr std::uint32_t set_destination_since_version = 1;
};
enum class viewport_error : uint32_t
{
bad_value = 0,
bad_size = 1,
out_of_buffer = 2,
no_surface = 3
};
class xdg_wm_base_t : public proxy_t
{
private:
struct events_t : public detail::events_base_t
{
std::function<void(uint32_t)> ping;
};
static int dispatcher(uint32_t opcode, const std::vector<detail::any>& args, const std::shared_ptr<detail::events_base_t>& e);
xdg_wm_base_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag /*unused*/);
public:
xdg_wm_base_t();
explicit xdg_wm_base_t(const proxy_t &proxy);
xdg_wm_base_t(xdg_wm_base *p, wrapper_type t = wrapper_type::standard);
xdg_wm_base_t proxy_create_wrapper();
static const std::string interface_name;
operator xdg_wm_base*() const;
xdg_positioner_t create_positioner();
static constexpr std::uint32_t create_positioner_since_version = 1;
xdg_surface_t get_xdg_surface(surface_t const& surface);
static constexpr std::uint32_t get_xdg_surface_since_version = 1;
void pong(uint32_t serial);
static constexpr std::uint32_t pong_since_version = 1;
std::function<void(uint32_t)> &on_ping();
};
enum class xdg_wm_base_error : uint32_t
{
role = 0,
defunct_surfaces = 1,
not_the_topmost_popup = 2,
invalid_popup_parent = 3,
invalid_surface_state = 4,
invalid_positioner = 5
};
class xdg_positioner_t : public proxy_t
{
private:
struct events_t : public detail::events_base_t
{
};
static int dispatcher(uint32_t opcode, const std::vector<detail::any>& args, const std::shared_ptr<detail::events_base_t>& e);
xdg_positioner_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag /*unused*/);
public:
xdg_positioner_t();
explicit xdg_positioner_t(const proxy_t &proxy);
xdg_positioner_t(xdg_positioner *p, wrapper_type t = wrapper_type::standard);
xdg_positioner_t proxy_create_wrapper();
static const std::string interface_name;
operator xdg_positioner*() const;
void set_size(int32_t width, int32_t height);
static constexpr std::uint32_t set_size_since_version = 1;
void set_anchor_rect(int32_t x, int32_t y, int32_t width, int32_t height);
static constexpr std::uint32_t set_anchor_rect_since_version = 1;
void set_anchor(xdg_positioner_anchor const& anchor);
static constexpr std::uint32_t set_anchor_since_version = 1;
void set_gravity(xdg_positioner_gravity const& gravity);
static constexpr std::uint32_t set_gravity_since_version = 1;
void set_constraint_adjustment(xdg_positioner_constraint_adjustment const& constraint_adjustment);
static constexpr std::uint32_t set_constraint_adjustment_since_version = 1;
void set_offset(int32_t x, int32_t y);
static constexpr std::uint32_t set_offset_since_version = 1;
void set_reactive();
static constexpr std::uint32_t set_reactive_since_version = 3;
bool can_set_reactive() const;
void set_parent_size(int32_t parent_width, int32_t parent_height);
static constexpr std::uint32_t set_parent_size_since_version = 3;
bool can_set_parent_size() const;
void set_parent_configure(uint32_t serial);
static constexpr std::uint32_t set_parent_configure_since_version = 3;
bool can_set_parent_configure() const;
};
enum class xdg_positioner_error : uint32_t
{
invalid_input = 0
};
enum class xdg_positioner_anchor : uint32_t
{
none = 0,
top = 1,
bottom = 2,
left = 3,
right = 4,
top_left = 5,
bottom_left = 6,
top_right = 7,
bottom_right = 8
};
enum class xdg_positioner_gravity : uint32_t
{
none = 0,
top = 1,
bottom = 2,
left = 3,
right = 4,
top_left = 5,
bottom_left = 6,
top_right = 7,
bottom_right = 8
};
struct xdg_positioner_constraint_adjustment : public wayland::detail::bitfield<6, 8>
{
xdg_positioner_constraint_adjustment(const wayland::detail::bitfield<6, 8> &b)
: wayland::detail::bitfield<6, 8>(b) {}
xdg_positioner_constraint_adjustment(const uint32_t value)
: wayland::detail::bitfield<6, 8>(value) {}
static const wayland::detail::bitfield<6, 8> none;
static const wayland::detail::bitfield<6, 8> slide_x;
static const wayland::detail::bitfield<6, 8> slide_y;
static const wayland::detail::bitfield<6, 8> flip_x;
static const wayland::detail::bitfield<6, 8> flip_y;
static const wayland::detail::bitfield<6, 8> resize_x;
static const wayland::detail::bitfield<6, 8> resize_y;
};
class xdg_surface_t : public proxy_t
{
private:
struct events_t : public detail::events_base_t
{
std::function<void(uint32_t)> configure;
};
static int dispatcher(uint32_t opcode, const std::vector<detail::any>& args, const std::shared_ptr<detail::events_base_t>& e);
xdg_surface_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag /*unused*/);
public:
xdg_surface_t();
explicit xdg_surface_t(const proxy_t &proxy);
xdg_surface_t(xdg_surface *p, wrapper_type t = wrapper_type::standard);
xdg_surface_t proxy_create_wrapper();
static const std::string interface_name;
operator xdg_surface*() const;
xdg_toplevel_t get_toplevel();
static constexpr std::uint32_t get_toplevel_since_version = 1;
xdg_popup_t get_popup(xdg_surface_t const& parent, xdg_positioner_t const& positioner);
static constexpr std::uint32_t get_popup_since_version = 1;
void set_window_geometry(int32_t x, int32_t y, int32_t width, int32_t height);
static constexpr std::uint32_t set_window_geometry_since_version = 1;
void ack_configure(uint32_t serial);
static constexpr std::uint32_t ack_configure_since_version = 1;
std::function<void(uint32_t)> &on_configure();
};
enum class xdg_surface_error : uint32_t
{
not_constructed = 1,
already_constructed = 2,
unconfigured_buffer = 3
};
class xdg_toplevel_t : public proxy_t
{
private:
struct events_t : public detail::events_base_t
{
std::function<void(int32_t, int32_t, array_t)> configure;
std::function<void()> close;
std::function<void(int32_t, int32_t)> configure_bounds;
};
static int dispatcher(uint32_t opcode, const std::vector<detail::any>& args, const std::shared_ptr<detail::events_base_t>& e);
xdg_toplevel_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag /*unused*/);
public:
xdg_toplevel_t();
explicit xdg_toplevel_t(const proxy_t &proxy);
xdg_toplevel_t(xdg_toplevel *p, wrapper_type t = wrapper_type::standard);
xdg_toplevel_t proxy_create_wrapper();
static const std::string interface_name;
operator xdg_toplevel*() const;
void set_parent(xdg_toplevel_t const& parent);
static constexpr std::uint32_t set_parent_since_version = 1;
void set_title(std::string const& title);
static constexpr std::uint32_t set_title_since_version = 1;
void set_app_id(std::string const& app_id);
static constexpr std::uint32_t set_app_id_since_version = 1;
void show_window_menu(seat_t const& seat, uint32_t serial, int32_t x, int32_t y);
static constexpr std::uint32_t show_window_menu_since_version = 1;
void move(seat_t const& seat, uint32_t serial);
static constexpr std::uint32_t move_since_version = 1;
void resize(seat_t const& seat, uint32_t serial, xdg_toplevel_resize_edge const& edges);
static constexpr std::uint32_t resize_since_version = 1;
void set_max_size(int32_t width, int32_t height);
static constexpr std::uint32_t set_max_size_since_version = 1;
void set_min_size(int32_t width, int32_t height);
static constexpr std::uint32_t set_min_size_since_version = 1;
void set_maximized();
static constexpr std::uint32_t set_maximized_since_version = 1;
void unset_maximized();
static constexpr std::uint32_t unset_maximized_since_version = 1;
void set_fullscreen(output_t const& output);
static constexpr std::uint32_t set_fullscreen_since_version = 1;
void unset_fullscreen();
static constexpr std::uint32_t unset_fullscreen_since_version = 1;
void set_minimized();
static constexpr std::uint32_t set_minimized_since_version = 1;
std::function<void(int32_t, int32_t, array_t)> &on_configure();
std::function<void()> &on_close();
std::function<void(int32_t, int32_t)> &on_configure_bounds();
};
enum class xdg_toplevel_error : uint32_t
{
invalid_resize_edge = 0
};
struct xdg_toplevel_resize_edge : public wayland::detail::bitfield<4, 11>
{
xdg_toplevel_resize_edge(const wayland::detail::bitfield<4, 11> &b)
: wayland::detail::bitfield<4, 11>(b) {}
xdg_toplevel_resize_edge(const uint32_t value)
: wayland::detail::bitfield<4, 11>(value) {}
static const wayland::detail::bitfield<4, 11> none;
static const wayland::detail::bitfield<4, 11> top;
static const wayland::detail::bitfield<4, 11> bottom;
static const wayland::detail::bitfield<4, 11> left;
static const wayland::detail::bitfield<4, 11> top_left;
static const wayland::detail::bitfield<4, 11> bottom_left;
static const wayland::detail::bitfield<4, 11> right;
static const wayland::detail::bitfield<4, 11> top_right;
static const wayland::detail::bitfield<4, 11> bottom_right;
};
enum class xdg_toplevel_state : uint32_t
{
maximized = 1,
fullscreen = 2,
resizing = 3,
activated = 4,
tiled_left = 5,
tiled_right = 6,
tiled_top = 7,
tiled_bottom = 8
};
class xdg_popup_t : public proxy_t
{
private:
struct events_t : public detail::events_base_t
{
std::function<void(int32_t, int32_t, int32_t, int32_t)> configure;
std::function<void()> popup_done;
std::function<void(uint32_t)> repositioned;
};
static int dispatcher(uint32_t opcode, const std::vector<detail::any>& args, const std::shared_ptr<detail::events_base_t>& e);
xdg_popup_t(proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag /*unused*/);
public:
xdg_popup_t();
explicit xdg_popup_t(const proxy_t &proxy);
xdg_popup_t(xdg_popup *p, wrapper_type t = wrapper_type::standard);
xdg_popup_t proxy_create_wrapper();
static const std::string interface_name;
operator xdg_popup*() const;
void grab(seat_t const& seat, uint32_t serial);
static constexpr std::uint32_t grab_since_version = 1;
void reposition(xdg_positioner_t const& positioner, uint32_t token);
static constexpr std::uint32_t reposition_since_version = 3;
bool can_reposition() const;
std::function<void(int32_t, int32_t, int32_t, int32_t)> &on_configure();
std::function<void()> &on_popup_done();
std::function<void(uint32_t)> &on_repositioned();
};
enum class xdg_popup_error : uint32_t
{
invalid_grab = 0
};
}
wayland::output_t
compositor output region
Definition wayland-client-protocol.hpp:3485
wayland::presentation_feedback_t
presentation time feedback event
Definition wayland-client-protocol-extra.hpp:189
wayland::presentation_feedback_t::on_presented
std::function< void(uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, presentation_feedback_kind)> & on_presented()
the content update was displayed
Definition wayland-client-protocol-extra.cpp:799
wayland::presentation_feedback_t::on_discarded
std::function< void()> & on_discarded()
the content update was not displayed
Definition wayland-client-protocol-extra.cpp:804
wayland::presentation_feedback_t::on_sync_output
std::function< void(output_t)> & on_sync_output()
presentation synchronized to this output
Definition wayland-client-protocol-extra.cpp:794
wayland::presentation_t
timed presentation related wl_surface requests
Definition wayland-client-protocol-extra.hpp:78
wayland::presentation_t::on_clock_id
std::function< void(uint32_t)> & on_clock_id()
clock ID for timestamps
Definition wayland-client-protocol-extra.cpp:727
wayland::presentation_t::feedback
presentation_feedback_t feedback(surface_t const &surface)
request presentation feedback information
Definition wayland-client-protocol-extra.cpp:720
wayland::presentation_t::feedback_since_version
static constexpr std::uint32_t feedback_since_version
Minimum protocol version required for the feedback function.
Definition wayland-client-protocol-extra.hpp:118
wayland::proxy_t::wrapper_type
wrapper_type
Definition wayland-client.hpp:118
wayland::proxy_t::wrapper_type::standard
@ standard
Definition wayland-client.hpp:123
wayland::seat_t
group of input devices
Definition wayland-client-protocol.hpp:2492
wayland::surface_t
an onscreen surface
Definition wayland-client-protocol.hpp:2006
wayland::viewport_t
crop and scale interface to a wl_surface
Definition wayland-client-protocol-extra.hpp:438
wayland::viewport_t::set_source
void set_source(double x, double y, double width, double height)
set the source rectangle for cropping
Definition wayland-client-protocol-extra.cpp:947
wayland::viewport_t::set_destination
void set_destination(int32_t width, int32_t height)
set the surface size for scaling
Definition wayland-client-protocol-extra.cpp:953
wayland::viewport_t::set_source_since_version
static constexpr std::uint32_t set_source_since_version
Minimum protocol version required for the set_source function.
Definition wayland-client-protocol-extra.hpp:482
wayland::viewport_t::set_destination_since_version
static constexpr std::uint32_t set_destination_since_version
Minimum protocol version required for the set_destination function.
Definition wayland-client-protocol-extra.hpp:505
wayland::viewporter_t
surface cropping and scaling
Definition wayland-client-protocol-extra.hpp:323
wayland::viewporter_t::get_viewport_since_version
static constexpr std::uint32_t get_viewport_since_version
Minimum protocol version required for the get_viewport function.
Definition wayland-client-protocol-extra.hpp:358
wayland::viewporter_t::get_viewport
viewport_t get_viewport(surface_t const &surface)
extend surface interface for crop and scale
Definition wayland-client-protocol-extra.cpp:883
wayland::xdg_popup_t
short-lived, popup surfaces for menus
Definition wayland-client-protocol-extra.hpp:1778
wayland::xdg_popup_t::on_configure
std::function< void(int32_t, int32_t, int32_t, int32_t)> & on_configure()
configure the popup surface
Definition wayland-client-protocol-extra.cpp:1527
wayland::xdg_popup_t::on_popup_done
std::function< void()> & on_popup_done()
popup interaction is done
Definition wayland-client-protocol-extra.cpp:1532
wayland::xdg_popup_t::grab
void grab(seat_t const &seat, uint32_t serial)
make the popup take an explicit grab
Definition wayland-client-protocol-extra.cpp:1510
wayland::xdg_popup_t::reposition
void reposition(xdg_positioner_t const &positioner, uint32_t token)
recalculate the popup's location
Definition wayland-client-protocol-extra.cpp:1516
wayland::xdg_popup_t::grab_since_version
static constexpr std::uint32_t grab_since_version
Minimum protocol version required for the grab function.
Definition wayland-client-protocol-extra.hpp:1853
wayland::xdg_popup_t::on_repositioned
std::function< void(uint32_t)> & on_repositioned()
signal the completion of a repositioned request
Definition wayland-client-protocol-extra.cpp:1537
wayland::xdg_popup_t::can_reposition
bool can_reposition() const
Check whether the reposition function is available with the currently bound version of the protocol.
Definition wayland-client-protocol-extra.cpp:1521
wayland::xdg_popup_t::reposition_since_version
static constexpr std::uint32_t reposition_since_version
Minimum protocol version required for the reposition function.
Definition wayland-client-protocol-extra.hpp:1888
wayland::xdg_positioner_t
child surface positioner
Definition wayland-client-protocol-extra.hpp:671
wayland::xdg_positioner_t::set_size_since_version
static constexpr std::uint32_t set_size_since_version
Minimum protocol version required for the set_size function.
Definition wayland-client-protocol-extra.hpp:707
wayland::xdg_positioner_t::set_parent_configure_since_version
static constexpr std::uint32_t set_parent_configure_since_version
Minimum protocol version required for the set_parent_configure function.
Definition wayland-client-protocol-extra.hpp:872
wayland::xdg_positioner_t::set_parent_configure
void set_parent_configure(uint32_t serial)
set parent configure this is a response to
Definition wayland-client-protocol-extra.cpp:1163
wayland::xdg_positioner_t::set_reactive
void set_reactive()
continuously reconstrain the surface
Definition wayland-client-protocol-extra.cpp:1141
wayland::xdg_positioner_t::set_offset
void set_offset(int32_t x, int32_t y)
set surface position offset
Definition wayland-client-protocol-extra.cpp:1135
wayland::xdg_positioner_t::set_parent_size_since_version
static constexpr std::uint32_t set_parent_size_since_version
Minimum protocol version required for the set_parent_size function.
Definition wayland-client-protocol-extra.hpp:852
wayland::xdg_positioner_t::set_anchor_rect_since_version
static constexpr std::uint32_t set_anchor_rect_since_version
Minimum protocol version required for the set_anchor_rect function.
Definition wayland-client-protocol-extra.hpp:731
wayland::xdg_positioner_t::set_reactive_since_version
static constexpr std::uint32_t set_reactive_since_version
Minimum protocol version required for the set_reactive function.
Definition wayland-client-protocol-extra.hpp:828
wayland::xdg_positioner_t::set_constraint_adjustment
void set_constraint_adjustment(xdg_positioner_constraint_adjustment const &constraint_adjustment)
set the adjustment to be done when constrained
Definition wayland-client-protocol-extra.cpp:1129
wayland::xdg_positioner_t::set_gravity_since_version
static constexpr std::uint32_t set_gravity_since_version
Minimum protocol version required for the set_gravity function.
Definition wayland-client-protocol-extra.hpp:765
wayland::xdg_positioner_t::can_set_reactive
bool can_set_reactive() const
Check whether the set_reactive function is available with the currently bound version of the protocol...
Definition wayland-client-protocol-extra.cpp:1146
wayland::xdg_positioner_t::set_offset_since_version
static constexpr std::uint32_t set_offset_since_version
Minimum protocol version required for the set_offset function.
Definition wayland-client-protocol-extra.hpp:812
wayland::xdg_positioner_t::set_size
void set_size(int32_t width, int32_t height)
set the size of the to-be positioned rectangle
Definition wayland-client-protocol-extra.cpp:1105
wayland::xdg_positioner_t::set_anchor_since_version
static constexpr std::uint32_t set_anchor_since_version
Minimum protocol version required for the set_anchor function.
Definition wayland-client-protocol-extra.hpp:748
wayland::xdg_positioner_t::set_gravity
void set_gravity(xdg_positioner_gravity const &gravity)
set child surface gravity
Definition wayland-client-protocol-extra.cpp:1123
wayland::xdg_positioner_t::set_constraint_adjustment_since_version
static constexpr std::uint32_t set_constraint_adjustment_since_version
Minimum protocol version required for the set_constraint_adjustment function.
Definition wayland-client-protocol-extra.hpp:789
wayland::xdg_positioner_t::can_set_parent_configure
bool can_set_parent_configure() const
Check whether the set_parent_configure function is available with the currently bound version of the ...
Definition wayland-client-protocol-extra.cpp:1168
wayland::xdg_positioner_t::set_anchor
void set_anchor(xdg_positioner_anchor const &anchor)
set anchor rectangle anchor
Definition wayland-client-protocol-extra.cpp:1117
wayland::xdg_positioner_t::set_anchor_rect
void set_anchor_rect(int32_t x, int32_t y, int32_t width, int32_t height)
set the anchor rectangle within the parent surface
Definition wayland-client-protocol-extra.cpp:1111
wayland::xdg_positioner_t::can_set_parent_size
bool can_set_parent_size() const
Check whether the set_parent_size function is available with the currently bound version of the proto...
Definition wayland-client-protocol-extra.cpp:1157
wayland::xdg_positioner_t::set_parent_size
void set_parent_size(int32_t parent_width, int32_t parent_height)
Definition wayland-client-protocol-extra.cpp:1152
wayland::xdg_surface_t
desktop user interface surface base interface
Definition wayland-client-protocol-extra.hpp:1003
wayland::xdg_surface_t::set_window_geometry_since_version
static constexpr std::uint32_t set_window_geometry_since_version
Minimum protocol version required for the set_window_geometry function.
Definition wayland-client-protocol-extra.hpp:1101
wayland::xdg_surface_t::get_popup_since_version
static constexpr std::uint32_t get_popup_since_version
Minimum protocol version required for the get_popup function.
Definition wayland-client-protocol-extra.hpp:1058
wayland::xdg_surface_t::on_configure
std::function< void(uint32_t)> & on_configure()
suggest a surface change
Definition wayland-client-protocol-extra.cpp:1267
wayland::xdg_surface_t::get_toplevel
xdg_toplevel_t get_toplevel()
assign the xdg_toplevel surface role
Definition wayland-client-protocol-extra.cpp:1241
wayland::xdg_surface_t::ack_configure
void ack_configure(uint32_t serial)
ack a configure event
Definition wayland-client-protocol-extra.cpp:1261
wayland::xdg_surface_t::ack_configure_since_version
static constexpr std::uint32_t ack_configure_since_version
Minimum protocol version required for the ack_configure function.
Definition wayland-client-protocol-extra.hpp:1131
wayland::xdg_surface_t::get_popup
xdg_popup_t get_popup(xdg_surface_t const &parent, xdg_positioner_t const &positioner)
assign the xdg_popup surface role
Definition wayland-client-protocol-extra.cpp:1248
wayland::xdg_surface_t::get_toplevel_since_version
static constexpr std::uint32_t get_toplevel_since_version
Minimum protocol version required for the get_toplevel function.
Definition wayland-client-protocol-extra.hpp:1038
wayland::xdg_surface_t::set_window_geometry
void set_window_geometry(int32_t x, int32_t y, int32_t width, int32_t height)
set the new window geometry
Definition wayland-client-protocol-extra.cpp:1255
wayland::xdg_toplevel_t
toplevel surface
Definition wayland-client-protocol-extra.hpp:1191
wayland::xdg_toplevel_t::set_title
void set_title(std::string const &title)
set surface title
Definition wayland-client-protocol-extra.cpp:1342
wayland::xdg_toplevel_t::on_close
std::function< void()> & on_close()
surface wants to be closed
Definition wayland-client-protocol-extra.cpp:1419
wayland::xdg_toplevel_t::resize_since_version
static constexpr std::uint32_t resize_since_version
Minimum protocol version required for the resize function.
Definition wayland-client-protocol-extra.hpp:1389
wayland::xdg_toplevel_t::set_max_size_since_version
static constexpr std::uint32_t set_max_size_since_version
Minimum protocol version required for the set_max_size function.
Definition wayland-client-protocol-extra.hpp:1435
wayland::xdg_toplevel_t::unset_maximized_since_version
static constexpr std::uint32_t unset_maximized_since_version
Minimum protocol version required for the unset_maximized function.
Definition wayland-client-protocol-extra.hpp:1541
wayland::xdg_toplevel_t::show_window_menu
void show_window_menu(seat_t const &seat, uint32_t serial, int32_t x, int32_t y)
show the window menu
Definition wayland-client-protocol-extra.cpp:1354
wayland::xdg_toplevel_t::set_min_size
void set_min_size(int32_t width, int32_t height)
set the minimum size
Definition wayland-client-protocol-extra.cpp:1378
wayland::xdg_toplevel_t::on_configure
std::function< void(int32_t, int32_t, array_t)> & on_configure()
suggest a surface change
Definition wayland-client-protocol-extra.cpp:1414
wayland::xdg_toplevel_t::set_maximized
void set_maximized()
maximize the window
Definition wayland-client-protocol-extra.cpp:1384
wayland::xdg_toplevel_t::on_configure_bounds
std::function< void(int32_t, int32_t)> & on_configure_bounds()
recommended window geometry bounds
Definition wayland-client-protocol-extra.cpp:1424
wayland::xdg_toplevel_t::set_fullscreen_since_version
static constexpr std::uint32_t set_fullscreen_since_version
Minimum protocol version required for the set_fullscreen function.
Definition wayland-client-protocol-extra.hpp:1575
wayland::xdg_toplevel_t::set_max_size
void set_max_size(int32_t width, int32_t height)
set the maximum size
Definition wayland-client-protocol-extra.cpp:1372
wayland::xdg_toplevel_t::set_min_size_since_version
static constexpr std::uint32_t set_min_size_since_version
Minimum protocol version required for the set_min_size function.
Definition wayland-client-protocol-extra.hpp:1481
wayland::xdg_toplevel_t::set_app_id_since_version
static constexpr std::uint32_t set_app_id_since_version
Minimum protocol version required for the set_app_id function.
Definition wayland-client-protocol-extra.hpp:1292
wayland::xdg_toplevel_t::show_window_menu_since_version
static constexpr std::uint32_t show_window_menu_since_version
Minimum protocol version required for the show_window_menu function.
Definition wayland-client-protocol-extra.hpp:1317
wayland::xdg_toplevel_t::set_minimized_since_version
static constexpr std::uint32_t set_minimized_since_version
Minimum protocol version required for the set_minimized function.
Definition wayland-client-protocol-extra.hpp:1620
wayland::xdg_toplevel_t::set_minimized
void set_minimized()
set the window as minimized
Definition wayland-client-protocol-extra.cpp:1408
wayland::xdg_toplevel_t::set_fullscreen
void set_fullscreen(output_t const &output)
set the window as fullscreen on an output
Definition wayland-client-protocol-extra.cpp:1396
wayland::xdg_toplevel_t::move
void move(seat_t const &seat, uint32_t serial)
start an interactive move
Definition wayland-client-protocol-extra.cpp:1360
wayland::xdg_toplevel_t::move_since_version
static constexpr std::uint32_t move_since_version
Minimum protocol version required for the move function.
Definition wayland-client-protocol-extra.hpp:1345
wayland::xdg_toplevel_t::set_maximized_since_version
static constexpr std::uint32_t set_maximized_since_version
Minimum protocol version required for the set_maximized function.
Definition wayland-client-protocol-extra.hpp:1510
wayland::xdg_toplevel_t::unset_fullscreen_since_version
static constexpr std::uint32_t unset_fullscreen_since_version
Minimum protocol version required for the unset_fullscreen function.
Definition wayland-client-protocol-extra.hpp:1602
wayland::xdg_toplevel_t::set_title_since_version
static constexpr std::uint32_t set_title_since_version
Minimum protocol version required for the set_title function.
Definition wayland-client-protocol-extra.hpp:1258
wayland::xdg_toplevel_t::set_app_id
void set_app_id(std::string const &app_id)
set application ID
Definition wayland-client-protocol-extra.cpp:1348
wayland::xdg_toplevel_t::set_parent_since_version
static constexpr std::uint32_t set_parent_since_version
Minimum protocol version required for the set_parent function.
Definition wayland-client-protocol-extra.hpp:1240
wayland::xdg_toplevel_t::unset_fullscreen
void unset_fullscreen()
unset the window as fullscreen
Definition wayland-client-protocol-extra.cpp:1402
wayland::xdg_toplevel_t::set_parent
void set_parent(xdg_toplevel_t const &parent)
set the parent of this surface
Definition wayland-client-protocol-extra.cpp:1336
wayland::xdg_toplevel_t::resize
void resize(seat_t const &seat, uint32_t serial, xdg_toplevel_resize_edge const &edges)
start an interactive resize
Definition wayland-client-protocol-extra.cpp:1366
wayland::xdg_toplevel_t::unset_maximized
void unset_maximized()
unmaximize the window
Definition wayland-client-protocol-extra.cpp:1390
wayland::xdg_wm_base_t
create desktop-style surfaces
Definition wayland-client-protocol-extra.hpp:535
wayland::xdg_wm_base_t::on_ping
std::function< void(uint32_t)> & on_ping()
check if the client is alive
Definition wayland-client-protocol-extra.cpp:1036
wayland::xdg_wm_base_t::get_xdg_surface_since_version
static constexpr std::uint32_t get_xdg_surface_since_version
Minimum protocol version required for the get_xdg_surface function.
Definition wayland-client-protocol-extra.hpp:592
wayland::xdg_wm_base_t::create_positioner_since_version
static constexpr std::uint32_t create_positioner_since_version
Minimum protocol version required for the create_positioner function.
Definition wayland-client-protocol-extra.hpp:568
wayland::xdg_wm_base_t::pong
void pong(uint32_t serial)
respond to a ping event
Definition wayland-client-protocol-extra.cpp:1030
wayland::xdg_wm_base_t::pong_since_version
static constexpr std::uint32_t pong_since_version
Minimum protocol version required for the pong function.
Definition wayland-client-protocol-extra.hpp:605
wayland::xdg_wm_base_t::create_positioner
xdg_positioner_t create_positioner()
create a positioner object
Definition wayland-client-protocol-extra.cpp:1016
wayland::xdg_wm_base_t::get_xdg_surface
xdg_surface_t get_xdg_surface(surface_t const &surface)
create a shell surface from a surface
Definition wayland-client-protocol-extra.cpp:1023
wayland::presentation_feedback_kind
bitmask of flags in presented event
Definition wayland-client-protocol-extra.hpp:300
wayland::xdg_positioner_constraint_adjustment
constraint adjustments
Definition wayland-client-protocol-extra.hpp:938
wayland::xdg_toplevel_resize_edge
edge values for resizing
Definition wayland-client-protocol-extra.hpp:1705
wayland-client.hpp