Wayland++
0.2.6
C++ Bindings for Wayland
|
18 struct wl_data_source;
19 struct wl_data_device;
20 struct wl_data_device_manager;
22 struct wl_shell_surface;
30 struct wl_subcompositor;
40 enum class shm_error : uint32_t;
41 enum class shm_format : uint32_t;
44 enum class data_offer_error : uint32_t;
46 enum class data_source_error : uint32_t;
48 enum class data_device_error : uint32_t;
49 class data_device_manager_t;
50 struct data_device_manager_dnd_action;
52 enum class shell_error : uint32_t;
53 class shell_surface_t;
54 struct shell_surface_resize;
55 struct shell_surface_transient;
56 enum class shell_surface_fullscreen_method : uint32_t;
58 enum class surface_error : uint32_t;
60 struct seat_capability;
62 enum class pointer_error : uint32_t;
63 enum class pointer_button_state : uint32_t;
64 enum class pointer_axis : uint32_t;
65 enum class pointer_axis_source : uint32_t;
67 enum class keyboard_keymap_format : uint32_t;
68 enum class keyboard_key_state : uint32_t;
71 enum class output_subpixel : uint32_t;
72 struct output_transform;
75 class subcompositor_t;
76 enum class subcompositor_error : uint32_t;
78 enum class subsurface_error : uint32_t;
82 extern const wl_interface display_interface;
83 extern const wl_interface registry_interface;
84 extern const wl_interface callback_interface;
85 extern const wl_interface compositor_interface;
86 extern const wl_interface shm_pool_interface;
87 extern const wl_interface shm_interface;
88 extern const wl_interface buffer_interface;
89 extern const wl_interface data_offer_interface;
90 extern const wl_interface data_source_interface;
91 extern const wl_interface data_device_interface;
92 extern const wl_interface data_device_manager_interface;
93 extern const wl_interface shell_interface;
94 extern const wl_interface shell_surface_interface;
95 extern const wl_interface surface_interface;
96 extern const wl_interface seat_interface;
97 extern const wl_interface pointer_interface;
98 extern const wl_interface keyboard_interface;
99 extern const wl_interface touch_interface;
100 extern const wl_interface output_interface;
101 extern const wl_interface region_interface;
102 extern const wl_interface subcompositor_interface;
103 extern const wl_interface subsurface_interface;
133 struct events_t :
public detail::events_base_t
135 std::function<void(uint32_t, std::string, uint32_t)> global;
136 std::function<void(uint32_t)> global_remove;
139 static int dispatcher(uint32_t opcode, std::vector<detail::any> args, std::shared_ptr<detail::events_base_t> e);
150 static const std::string interface_name;
152 operator wl_registry*()
const;
182 std::function<void(uint32_t, std::string, uint32_t)> &
on_global();
213 struct events_t :
public detail::events_base_t
215 std::function<void(uint32_t)> done;
218 static int dispatcher(uint32_t opcode, std::vector<detail::any> args, std::shared_ptr<detail::events_base_t> e);
229 static const std::string interface_name;
231 operator wl_callback*()
const;
239 std::function<void(uint32_t)> &
on_done();
254 struct events_t :
public detail::events_base_t
258 static int dispatcher(uint32_t opcode, std::vector<detail::any> args, std::shared_ptr<detail::events_base_t> e);
269 static const std::string interface_name;
271 operator wl_compositor*()
const;
314 struct events_t :
public detail::events_base_t
318 static int dispatcher(uint32_t opcode, std::vector<detail::any> args, std::shared_ptr<detail::events_base_t> e);
329 static const std::string interface_name;
331 operator wl_shm_pool*()
const;
354 buffer_t create_buffer(int32_t offset, int32_t width, int32_t height, int32_t stride, shm_format format);
369 void resize(int32_t size);
394 struct events_t :
public detail::events_base_t
396 std::function<void(shm_format)> format;
399 static int dispatcher(uint32_t opcode, std::vector<detail::any> args, std::shared_ptr<detail::events_base_t> e);
401 shm_t(
proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag );
408 shm_t proxy_create_wrapper();
410 static const std::string interface_name;
412 operator wl_shm*()
const;
440 std::function<void(shm_format)> &
on_format();
449 enum class shm_error : uint32_t
472 enum class shm_format : uint32_t
485 xrgb4444 = 0x32315258,
487 xbgr4444 = 0x32314258,
489 rgbx4444 = 0x32315852,
491 bgrx4444 = 0x32315842,
493 argb4444 = 0x32315241,
495 abgr4444 = 0x32314241,
497 rgba4444 = 0x32314152,
499 bgra4444 = 0x32314142,
501 xrgb1555 = 0x35315258,
503 xbgr1555 = 0x35314258,
505 rgbx5551 = 0x35315852,
507 bgrx5551 = 0x35315842,
509 argb1555 = 0x35315241,
511 abgr1555 = 0x35314241,
513 rgba5551 = 0x35314152,
515 bgra5551 = 0x35314142,
525 xbgr8888 = 0x34324258,
527 rgbx8888 = 0x34325852,
529 bgrx8888 = 0x34325842,
531 abgr8888 = 0x34324241,
533 rgba8888 = 0x34324152,
535 bgra8888 = 0x34324142,
537 xrgb2101010 = 0x30335258,
539 xbgr2101010 = 0x30334258,
541 rgbx1010102 = 0x30335852,
543 bgrx1010102 = 0x30335842,
545 argb2101010 = 0x30335241,
547 abgr2101010 = 0x30334241,
549 rgba1010102 = 0x30334152,
551 bgra1010102 = 0x30334142,
605 struct events_t :
public detail::events_base_t
607 std::function<void()> release;
610 static int dispatcher(uint32_t opcode, std::vector<detail::any> args, std::shared_ptr<detail::events_base_t> e);
621 static const std::string interface_name;
623 operator wl_buffer*()
const;
659 struct events_t :
public detail::events_base_t
661 std::function<void(std::string)> offer;
666 static int dispatcher(uint32_t opcode, std::vector<detail::any> args, std::shared_ptr<detail::events_base_t> e);
677 static const std::string interface_name;
679 operator wl_data_offer*()
const;
701 void accept(uint32_t serial, std::string mime_type);
728 void receive(std::string mime_type,
int fd);
818 std::function<void(std::string)> &
on_offer();
877 enum class data_offer_error : uint32_t
882 invalid_action_mask = 1,
901 struct events_t :
public detail::events_base_t
903 std::function<void(std::string)> target;
904 std::function<void(std::string,
int)> send;
905 std::function<void()> cancelled;
906 std::function<void()> dnd_drop_performed;
907 std::function<void()> dnd_finished;
911 static int dispatcher(uint32_t opcode, std::vector<detail::any> args, std::shared_ptr<detail::events_base_t> e);
922 static const std::string interface_name;
924 operator wl_data_source*()
const;
934 void offer(std::string mime_type);
978 std::function<void(std::string)> &
on_target();
989 std::function<void(std::string,
int)> &
on_send();
1081 enum class data_source_error : uint32_t
1084 invalid_action_mask = 0,
1102 struct events_t :
public detail::events_base_t
1106 std::function<void()> leave;
1107 std::function<void(uint32_t,
double,
double)> motion;
1108 std::function<void()> drop;
1112 static int dispatcher(uint32_t opcode, std::vector<detail::any> args, std::shared_ptr<detail::events_base_t> e);
1123 static const std::string interface_name;
1125 operator wl_data_device*()
const;
1249 std::function<void(uint32_t,
double,
double)> &
on_motion();
1268 std::function<void()> &
on_drop();
1293 enum class data_device_error : uint32_t
1317 struct events_t :
public detail::events_base_t
1321 static int dispatcher(uint32_t opcode, std::vector<detail::any> args, std::shared_ptr<detail::events_base_t> e);
1332 static const std::string interface_name;
1334 operator wl_data_device_manager*()
const;
1393 : detail::bitfield<3, 6>(b) {}
1395 : detail::bitfield<3, 6>(value) {}
1397 static const detail::bitfield<3, 6>
none;
1399 static const detail::bitfield<3, 6>
copy;
1401 static const detail::bitfield<3, 6>
move;
1403 static const detail::bitfield<3, 6>
ask;
1422 struct events_t :
public detail::events_base_t
1426 static int dispatcher(uint32_t opcode, std::vector<detail::any> args, std::shared_ptr<detail::events_base_t> e);
1428 shell_t(
proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag );
1435 shell_t proxy_create_wrapper();
1437 static const std::string interface_name;
1439 operator wl_shell*()
const;
1463 enum class shell_error : uint32_t
1488 struct events_t :
public detail::events_base_t
1490 std::function<void(uint32_t)> ping;
1492 std::function<void()> popup_done;
1495 static int dispatcher(uint32_t opcode, std::vector<detail::any> args, std::shared_ptr<detail::events_base_t> e);
1506 static const std::string interface_name;
1508 operator wl_shell_surface*()
const;
1517 void pong(uint32_t serial);
1744 std::function<void(uint32_t)> &
on_ping();
1794 : detail::bitfield<4, 8>(b) {}
1796 : detail::bitfield<4, 8>(value) {}
1798 static const detail::bitfield<4, 8>
none;
1800 static const detail::bitfield<4, 8>
top;
1804 static const detail::bitfield<4, 8>
left;
1810 static const detail::bitfield<4, 8>
right;
1826 : detail::bitfield<1, 9>(b) {}
1828 : detail::bitfield<1, 9>(value) {}
1840 enum class shell_surface_fullscreen_method : uint32_t
1901 struct events_t :
public detail::events_base_t
1903 std::function<void(
output_t)> enter;
1904 std::function<void(
output_t)> leave;
1907 static int dispatcher(uint32_t opcode, std::vector<detail::any> args, std::shared_ptr<detail::events_base_t> e);
1918 static const std::string interface_name;
1920 operator wl_surface*()
const;
2009 void damage(int32_t x, int32_t y, int32_t width, int32_t height);
2277 void damage_buffer(int32_t x, int32_t y, int32_t width, int32_t height);
2317 enum class surface_error : uint32_t
2322 invalid_transform = 1
2337 struct events_t :
public detail::events_base_t
2340 std::function<void(std::string)> name;
2343 static int dispatcher(uint32_t opcode, std::vector<detail::any> args, std::shared_ptr<detail::events_base_t> e);
2345 seat_t(
proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag );
2352 seat_t proxy_create_wrapper();
2354 static const std::string interface_name;
2356 operator wl_seat*()
const;
2468 std::function<void(std::string)> &
on_name();
2481 : detail::bitfield<3, 12>(b) {}
2483 : detail::bitfield<3, 12>(value) {}
2489 static const detail::bitfield<3, 12>
touch;
2508 struct events_t :
public detail::events_base_t
2510 std::function<void(uint32_t,
surface_t,
double,
double)> enter;
2511 std::function<void(uint32_t,
surface_t)> leave;
2512 std::function<void(uint32_t,
double,
double)> motion;
2513 std::function<void(uint32_t, uint32_t, uint32_t, pointer_button_state)> button;
2514 std::function<void(uint32_t, pointer_axis,
double)> axis;
2515 std::function<void()> frame;
2516 std::function<void(pointer_axis_source)> axis_source;
2517 std::function<void(uint32_t, pointer_axis)> axis_stop;
2518 std::function<void(pointer_axis, int32_t)> axis_discrete;
2521 static int dispatcher(uint32_t opcode, std::vector<detail::any> args, std::shared_ptr<detail::events_base_t> e);
2532 static const std::string interface_name;
2534 operator wl_pointer*()
const;
2575 void set_cursor(uint32_t serial,
surface_t surface, int32_t hotspot_x, int32_t hotspot_y);
2640 std::function<void(uint32_t,
double,
double)> &
on_motion();
2664 std::function<void(uint32_t, uint32_t, uint32_t, pointer_button_state)> &
on_button();
2689 std::function<void(uint32_t, pointer_axis,
double)> &
on_axis();
2783 std::function<void(uint32_t, pointer_axis)> &
on_axis_stop();
2824 enum class pointer_error : uint32_t
2836 enum class pointer_button_state : uint32_t
2849 enum class pointer_axis : uint32_t
2852 vertical_scroll = 0,
2854 horizontal_scroll = 1
2877 enum class pointer_axis_source : uint32_t
2899 struct events_t :
public detail::events_base_t
2901 std::function<void(keyboard_keymap_format,
int, uint32_t)> keymap;
2902 std::function<void(uint32_t,
surface_t, array_t)> enter;
2903 std::function<void(uint32_t,
surface_t)> leave;
2904 std::function<void(uint32_t, uint32_t, uint32_t, keyboard_key_state)> key;
2905 std::function<void(uint32_t, uint32_t, uint32_t, uint32_t, uint32_t)> modifiers;
2906 std::function<void(int32_t, int32_t)> repeat_info;
2909 static int dispatcher(uint32_t opcode, std::vector<detail::any> args, std::shared_ptr<detail::events_base_t> e);
2920 static const std::string interface_name;
2922 operator wl_keyboard*()
const;
2950 std::function<void(keyboard_keymap_format,
int, uint32_t)> &
on_keymap();
2987 std::function<void(uint32_t, uint32_t, uint32_t, keyboard_key_state)> &
on_key();
3000 std::function<void(uint32_t, uint32_t, uint32_t, uint32_t, uint32_t)> &
on_modifiers();
3030 enum class keyboard_keymap_format : uint32_t
3043 enum class keyboard_key_state : uint32_t
3067 struct events_t :
public detail::events_base_t
3069 std::function<void(uint32_t, uint32_t,
surface_t, int32_t,
double,
double)> down;
3070 std::function<void(uint32_t, uint32_t, int32_t)> up;
3071 std::function<void(uint32_t, int32_t,
double,
double)> motion;
3072 std::function<void()> frame;
3073 std::function<void()> cancel;
3074 std::function<void(int32_t,
double,
double)> shape;
3075 std::function<void(int32_t,
double)> orientation;
3078 static int dispatcher(uint32_t opcode, std::vector<detail::any> args, std::shared_ptr<detail::events_base_t> e);
3080 touch_t(
proxy_t const &wrapped_proxy, construct_proxy_wrapper_tag );
3087 touch_t proxy_create_wrapper();
3089 static const std::string interface_name;
3091 operator wl_touch*()
const;
3121 std::function<void(uint32_t, uint32_t,
surface_t, int32_t,
double,
double)> &
on_down();
3133 std::function<void(uint32_t, uint32_t, int32_t)> &
on_up();
3144 std::function<void(uint32_t, int32_t,
double,
double)> &
on_motion();
3204 std::function<void(int32_t,
double,
double)> &
on_shape();
3253 struct events_t :
public detail::events_base_t
3255 std::function<void(int32_t, int32_t, int32_t, int32_t, output_subpixel, std::string, std::string,
output_transform)> geometry;
3256 std::function<void(
output_mode, int32_t, int32_t, int32_t)> mode;
3257 std::function<void()> done;
3258 std::function<void(int32_t)> scale;
3261 static int dispatcher(uint32_t opcode, std::vector<detail::any> args, std::shared_ptr<detail::events_base_t> e);
3272 static const std::string interface_name;
3274 operator wl_output*()
const;
3318 std::function<void(int32_t, int32_t, int32_t, int32_t, output_subpixel, std::string, std::string,
output_transform)> &
on_geometry();
3365 std::function<void()> &
on_done();
3390 std::function<void(int32_t)> &
on_scale();
3400 enum class output_subpixel : uint32_t
3434 : detail::bitfield<3, 20>(b) {}
3436 : detail::bitfield<3, 20>(value) {}
3440 static const detail::bitfield<3, 20>
_90;
3442 static const detail::bitfield<3, 20>
_180;
3444 static const detail::bitfield<3, 20>
_270;
3464 : detail::bitfield<2, 21>(b) {}
3466 : detail::bitfield<2, 21>(value) {}
3485 struct events_t :
public detail::events_base_t
3489 static int dispatcher(uint32_t opcode, std::vector<detail::any> args, std::shared_ptr<detail::events_base_t> e);
3500 static const std::string interface_name;
3502 operator wl_region*()
const;
3513 void add(int32_t x, int32_t y, int32_t width, int32_t height);
3528 void subtract(int32_t x, int32_t y, int32_t width, int32_t height);
3563 struct events_t :
public detail::events_base_t
3567 static int dispatcher(uint32_t opcode, std::vector<detail::any> args, std::shared_ptr<detail::events_base_t> e);
3578 static const std::string interface_name;
3580 operator wl_subcompositor*()
const;
3615 enum class subcompositor_error : uint32_t
3678 struct events_t :
public detail::events_base_t
3682 static int dispatcher(uint32_t opcode, std::vector<detail::any> args, std::shared_ptr<detail::events_base_t> e);
3693 static const std::string interface_name;
3695 operator wl_subsurface*()
const;
3821 enum class subsurface_error : uint32_t
touch_t get_touch()
return touch object
details of transient behaviour
static const detail::bitfield< 4, 8 > top
top edge
static const detail::bitfield< 3, 6 > ask
ask action
void set_buffer_transform(output_transform transform)
sets the buffer transformation
callback_t frame()
request a frame throttling hint
void set_desync()
set sub-surface to desynchronized mode
void release()
release the pointer object
static constexpr std::uint32_t set_sync_since_version
Minimum protocol version required for the set_sync function.
std::function< void(shm_format)> & on_format()
pixel format description
void set_popup(seat_t seat, uint32_t serial, surface_t parent, int32_t x, int32_t y, shell_surface_transient flags)
make the surface a popup surface
static constexpr std::uint32_t start_drag_since_version
Minimum protocol version required for the start_drag function.
std::function< void(uint32_t, uint32_t, uint32_t, pointer_button_state)> & on_button()
pointer button event
std::function< void()> & on_dnd_drop_performed()
the drag-and-drop operation physically finished
static const detail::bitfield< 3, 6 > move
move action
static const detail::bitfield< 4, 8 > left
left edge
static constexpr std::uint32_t damage_buffer_since_version
Minimum protocol version required for the damage_buffer function.
void release()
release the output object
std::function< void(uint32_t, surface_t, double, double)> & on_enter()
enter event
shm_pool_t create_pool(int fd, int32_t size)
create a shm pool
bool can_finish() const
Check whether the finish function is available with the currently bound version of the protocol.
void start_drag(data_source_t source, surface_t origin, surface_t icon, uint32_t serial)
start drag-and-drop operation
std::function< void(uint32_t, surface_t, array_t)> & on_enter()
enter event
static constexpr std::uint32_t set_desync_since_version
Minimum protocol version required for the set_desync function.
bool can_release() const
Check whether the release function is available with the currently bound version of the protocol.
static const detail::bitfield< 4, 8 > top_left
top and left edges
create desktop-style surfaces
std::function< void(int32_t, double, double)> & on_shape()
update shape of touch point
void release()
release the seat object
data_device_t get_data_device(seat_t seat)
create a new data device
std::function< void(std::string)> & on_offer()
advertise offered mime type
void pong(uint32_t serial)
respond to a ping event
static const detail::bitfield< 4, 8 > top_right
top and right edges
bool can_release() const
Check whether the release function is available with the currently bound version of the protocol.
std::function< void(output_mode, int32_t, int32_t, int32_t)> & on_mode()
advertise available modes for the output
void set_sync()
set sub-surface to synchronized mode
std::function< void(data_offer_t)> & on_selection()
advertise new selection
static constexpr std::uint32_t get_data_device_since_version
Minimum protocol version required for the get_data_device function.
static constexpr std::uint32_t set_transient_since_version
Minimum protocol version required for the set_transient function.
void set_cursor(uint32_t serial, surface_t surface, int32_t hotspot_x, int32_t hotspot_y)
set the pointer surface
static const detail::bitfield< 3, 6 > none
no action
std::function< void(uint32_t, int32_t, double, double)> & on_motion()
update of touch point coordinates
static const detail::bitfield< 1, 9 > inactive
do not set keyboard focus
static constexpr std::uint32_t place_below_since_version
Minimum protocol version required for the place_below function.
static const detail::bitfield< 4, 8 > bottom
bottom edge
bool can_set_buffer_scale() const
Check whether the set_buffer_scale function is available with the currently bound version of the prot...
static constexpr std::uint32_t create_data_source_since_version
Minimum protocol version required for the create_data_source function.
std::function< void(std::string)> & on_name()
unique identifier for this seat
static constexpr std::uint32_t frame_since_version
Minimum protocol version required for the frame function.
std::function< void(uint32_t)> & on_done()
done event
static constexpr std::uint32_t set_position_since_version
Minimum protocol version required for the set_position function.
std::function< void(uint32_t, surface_t)> & on_leave()
leave event
static constexpr std::uint32_t add_since_version
Minimum protocol version required for the add function.
std::function< void()> & on_popup_done()
popup interaction is done
bool can_set_actions() const
Check whether the set_actions function is available with the currently bound version of the protocol.
bool can_release() const
Check whether the release function is available with the currently bound version of the protocol.
void place_below(surface_t sibling)
restack the sub-surface
void set_buffer_scale(int32_t scale)
sets the buffer scaling factor
void receive(std::string mime_type, int fd)
request that the data is transferred
static constexpr std::uint32_t set_popup_since_version
Minimum protocol version required for the set_popup function.
static const detail::bitfield< 4, 8 > right
right edge
buffer_t create_buffer(int32_t offset, int32_t width, int32_t height, int32_t stride, shm_format format)
create a buffer from the pool
void set_transient(surface_t parent, int32_t x, int32_t y, shell_surface_transient flags)
make the surface a transient surface
static constexpr std::uint32_t commit_since_version
Minimum protocol version required for the commit function.
static constexpr std::uint32_t set_title_since_version
Minimum protocol version required for the set_title function.
static constexpr std::uint32_t set_toplevel_since_version
Minimum protocol version required for the set_toplevel function.
static constexpr std::uint32_t release_since_version
Minimum protocol version required for the release function.
static constexpr std::uint32_t set_class_since_version
Minimum protocol version required for the set_class function.
void commit()
commit pending surface state
std::function< void(uint32_t, uint32_t, uint32_t, keyboard_key_state)> & on_key()
key event
bool can_release() const
Check whether the release function is available with the currently bound version of the protocol.
static constexpr std::uint32_t bind_since_version
Minimum protocol version required for the bind function.
void set_title(std::string title)
set surface title
void offer(std::string mime_type)
add an offered mime type
static const detail::bitfield< 2, 21 > preferred
indicates this is the preferred mode
static constexpr std::uint32_t release_since_version
Minimum protocol version required for the release function.
static constexpr std::uint32_t resize_since_version
Minimum protocol version required for the resize function.
std::function< void()> & on_frame()
end of touch frame event
void set_position(int32_t x, int32_t y)
reposition the sub-surface
std::function< void()> & on_release()
compositor releases buffer
void set_fullscreen(shell_surface_fullscreen_method method, uint32_t framerate, output_t output)
make the surface a fullscreen surface
std::function< void(data_device_manager_dnd_action)> & on_source_actions()
notify the source-side available actions
static constexpr std::uint32_t set_opaque_region_since_version
Minimum protocol version required for the set_opaque_region function.
void attach(buffer_t buffer, int32_t x, int32_t y)
set the surface contents
std::function< void()> & on_dnd_finished()
the drag-and-drop operation concluded
bool can_set_actions() const
Check whether the set_actions function is available with the currently bound version of the protocol.
static const detail::bitfield< 3, 12 > pointer
the seat has pointer devices
static constexpr std::uint32_t get_shell_surface_since_version
Minimum protocol version required for the get_shell_surface function.
static const detail::bitfield< 3, 12 > touch
the seat has touch devices
std::function< void(std::string)> & on_target()
a target accepts an offered mime type
bool can_damage_buffer() const
Check whether the damage_buffer function is available with the currently bound version of the protoco...
std::function< void(shell_surface_resize, int32_t, int32_t)> & on_configure()
suggest resize
std::function< void(int32_t)> & on_scale()
output scaling properties
static constexpr std::uint32_t get_touch_since_version
Minimum protocol version required for the get_touch function.
static constexpr std::uint32_t pong_since_version
Minimum protocol version required for the pong function.
std::function< void()> & on_cancel()
touch session cancelled
static constexpr std::uint32_t set_actions_since_version
Minimum protocol version required for the set_actions function.
std::function< void()> & on_cancelled()
selection was cancelled
Represents a protocol object on the client side.
std::function< void()> & on_done()
sent all information about output
static constexpr std::uint32_t attach_since_version
Minimum protocol version required for the attach function.
static constexpr std::uint32_t release_since_version
Minimum protocol version required for the release function.
static constexpr std::uint32_t create_region_since_version
Minimum protocol version required for the create_region function.
std::function< void()> & on_leave()
end drag-and-drop session
void damage(int32_t x, int32_t y, int32_t width, int32_t height)
mark part of the surface damaged
std::function< void(output_t)> & on_enter()
surface enters an output
void subtract(int32_t x, int32_t y, int32_t width, int32_t height)
subtract rectangle from region
static constexpr std::uint32_t set_buffer_scale_since_version
Minimum protocol version required for the set_buffer_scale function.
static constexpr std::uint32_t set_selection_since_version
Minimum protocol version required for the set_selection function.
static constexpr std::uint32_t release_since_version
Minimum protocol version required for the release function.
void resize(int32_t size)
change the size of the pool mapping
static constexpr std::uint32_t set_buffer_transform_since_version
Minimum protocol version required for the set_buffer_transform function.
void set_selection(data_source_t source, uint32_t serial)
copy data to the selection
std::function< void(int32_t, int32_t)> & on_repeat_info()
repeat rate and delay
data_source_t create_data_source()
create a new data source
static constexpr std::uint32_t create_buffer_since_version
Minimum protocol version required for the create_buffer function.
static const detail::bitfield< 4, 8 > bottom_left
bottom and left edges
void damage_buffer(int32_t x, int32_t y, int32_t width, int32_t height)
mark part of the surface damaged using buffer coordinates
void set_actions(data_device_manager_dnd_action dnd_actions, data_device_manager_dnd_action preferred_action)
set the available/preferred drag-and-drop actions
static const detail::bitfield< 4, 8 > none
no edge
static constexpr std::uint32_t set_cursor_since_version
Minimum protocol version required for the set_cursor function.
static constexpr std::uint32_t get_keyboard_since_version
Minimum protocol version required for the get_keyboard function.
std::function< void(uint32_t, pointer_axis, double)> & on_axis()
axis event
static constexpr std::uint32_t get_subsurface_since_version
Minimum protocol version required for the get_subsurface function.
static constexpr std::uint32_t move_since_version
Minimum protocol version required for the move function.
subsurface_t get_subsurface(surface_t surface, surface_t parent)
give a surface the role sub-surface
static constexpr std::uint32_t resize_since_version
Minimum protocol version required for the resize function.
std::function< void()> & on_frame()
end of a pointer event sequence
bool can_release() const
Check whether the release function is available with the currently bound version of the protocol.
static const detail::bitfield< 3, 6 > copy
copy action
static constexpr std::uint32_t damage_since_version
Minimum protocol version required for the damage function.
desktop-style metadata interface
std::function< void(uint32_t, pointer_axis)> & on_axis_stop()
axis stop event
static constexpr std::uint32_t subtract_since_version
Minimum protocol version required for the subtract function.
void release()
destroy data device
static constexpr std::uint32_t create_pool_since_version
Minimum protocol version required for the create_pool function.
static constexpr std::uint32_t place_above_since_version
Minimum protocol version required for the place_above function.
std::function< void(output_t)> & on_leave()
surface leaves an output
void move(seat_t seat, uint32_t serial)
start an interactive move
std::function< void(std::string, int)> & on_send()
send the data
static constexpr std::uint32_t set_actions_since_version
Minimum protocol version required for the set_actions function.
void set_class(std::string class_)
set surface class
std::function< void()> & on_drop()
end drag-and-drop session successfully
static const detail::bitfield< 2, 21 > current
indicates this is the current mode
static constexpr std::uint32_t set_fullscreen_since_version
Minimum protocol version required for the set_fullscreen function.
proxy_t bind(uint32_t name, proxy_t &interface, uint32_t version)
bind an object to the display
void resize(seat_t seat, uint32_t serial, shell_surface_resize edges)
start an interactive resize
surface_t create_surface()
create new surface
shell_surface_t get_shell_surface(surface_t surface)
create a shell surface from a surface
static constexpr std::uint32_t get_pointer_since_version
Minimum protocol version required for the get_pointer function.
std::function< void(uint32_t)> & on_ping()
ping client
std::function< void(uint32_t, surface_t, double, double, data_offer_t)> & on_enter()
initiate drag-and-drop session
std::function< void(uint32_t)> & on_global_remove()
announce removal of global object
std::function< void(uint32_t, surface_t)> & on_leave()
leave event
static constexpr std::uint32_t receive_since_version
Minimum protocol version required for the receive function.
bool can_release() const
Check whether the release function is available with the currently bound version of the protocol.
std::function< void(data_device_manager_dnd_action)> & on_action()
notify the selected action
std::function< void(uint32_t, uint32_t, uint32_t, uint32_t, uint32_t)> & on_modifiers()
modifier and group state
pointer_t get_pointer()
return pointer object
std::function< void(uint32_t, double, double)> & on_motion()
pointer motion event
std::function< void(pointer_axis_source)> & on_axis_source()
axis source event
static constexpr std::uint32_t accept_since_version
Minimum protocol version required for the accept function.
void set_maximized(output_t output)
make the surface a maximized surface
static constexpr std::uint32_t set_input_region_since_version
Minimum protocol version required for the set_input_region function.
static constexpr std::uint32_t release_since_version
Minimum protocol version required for the release function.
void accept(uint32_t serial, std::string mime_type)
accept one of the offered mime types
void set_input_region(region_t region)
set input region
void set_actions(data_device_manager_dnd_action dnd_actions)
set the available drag-and-drop actions
keyboard_t get_keyboard()
return keyboard object
static constexpr std::uint32_t create_surface_since_version
Minimum protocol version required for the create_surface function.
static constexpr std::uint32_t finish_since_version
Minimum protocol version required for the finish function.
static const detail::bitfield< 4, 8 > bottom_right
bottom and right edges
void set_toplevel()
make the surface a toplevel surface
std::function< void(uint32_t, std::string, uint32_t)> & on_global()
announce global object
void release()
release the keyboard object
static constexpr std::uint32_t release_since_version
Minimum protocol version required for the release function.
void place_above(surface_t sibling)
restack the sub-surface
region_t create_region()
create new region
void release()
release the touch object
std::function< void(seat_capability)> & on_capabilities()
seat capabilities changed
static constexpr std::uint32_t offer_since_version
Minimum protocol version required for the offer function.
std::function< void(uint32_t, uint32_t, surface_t, int32_t, double, double)> & on_down()
touch down event and beginning of a touch sequence
static const detail::bitfield< 3, 12 > keyboard
the seat has one or more keyboards
void add(int32_t x, int32_t y, int32_t width, int32_t height)
add rectangle to region
std::function< void(pointer_axis, int32_t)> & on_axis_discrete()
axis click event
bool can_set_buffer_transform() const
Check whether the set_buffer_transform function is available with the currently bound version of the ...
std::function< void(data_device_manager_dnd_action)> & on_action()
notify the selected action
static constexpr std::uint32_t set_maximized_since_version
Minimum protocol version required for the set_maximized function.
std::function< void(int32_t, double)> & on_orientation()
update orientation of touch point
void finish()
the offer will no longer be used
sub-surface interface to a wl_surface
std::function< void(keyboard_keymap_format, int, uint32_t)> & on_keymap()
keyboard mapping
std::function< void(data_offer_t)> & on_data_offer()
introduce a new wl_data_offer
std::function< void(uint32_t, double, double)> & on_motion()
drag-and-drop session motion
void set_opaque_region(region_t region)
set opaque region
std::function< void(int32_t, int32_t, int32_t, int32_t, output_subpixel, std::string, std::string, output_transform)> & on_geometry()
properties of the output
std::function< void(uint32_t, uint32_t, int32_t)> & on_up()
end of a touch event sequence
- build
- wayland-client-protocol.hpp