wl_proxy*wayland::proxy_t::c_ptr()const[inherited]
Get a pointer to the underlying C struct.
Returns
The underlying wl_proxy wrapped by this proxy_t if it exists, otherwise an exception is thrown
std::stringwayland::proxy_t::get_class()const[inherited]
Get the interface name (class) of a proxy object.
Returns
The interface name of the object associated with the proxy
uint32_twayland::proxy_t::get_id()const[inherited]
Get the id of a proxy object.
Returns
The id the object associated with the proxy
uint32_twayland::proxy_t::get_version()const[inherited]
Get the protocol object version of a proxy object. Gets the protocol object version of a proxy object, or
0 if the proxy was created with unversioned API.
A returned value of 0 means that no version information is available, so the caller must make safe
assumptions about the object's real version.
display_t will always return version 0.
Returns
The protocol object version of the proxy or 0
wrapper_typewayland::proxy_t::get_wrapper_type()const[inline],[inherited]
Get the type of a proxy object.
Definition at line 302 of file wayland-client.hpp.
std::function<void(array_t)>&zwp_tablet_pad_group_v2_t::on_buttons()
buttons announced
Parametersbuttons buttons in this group
Sent on wp_tablet_pad_group initialization to announce the available buttons in the group. Button indices
start at 0, a button may only be in one group at a time.
This event is first sent in the initial burst of events before the wp_tablet_pad_group.done event.
Some buttons are reserved by the compositor. These buttons may not be assigned to any
wp_tablet_pad_group. Compositors may broadcast this event in the case of changes to the mapping of these
reserved buttons. If the compositor happens to reserve all buttons in a group, this event will be sent
with an empty array.
Definition at line 7899 of file wayland-client-protocol-unstable.cpp.
std::function<void()>&zwp_tablet_pad_group_v2_t::on_done()
tablet group description events sequence complete This event is sent immediately to signal the end of the
initial burst of descriptive events. A client may consider the static description of the tablet to be
complete and finalize initialization of the tablet group.
Definition at line 7919 of file wayland-client-protocol-unstable.cpp.
std::function<void(uint32_t,uint32_t,uint32_t)>&zwp_tablet_pad_group_v2_t::on_mode_switch()
mode switch event
Parameterstime the time of the event with millisecond granularity
serialmode the new mode of the pad
Notification that the mode was switched.
A mode applies to all buttons, rings and strips in a group simultaneously, but a client is not required
to assign different actions for each mode. For example, a client may have mode-specific button mappings
but map the ring to vertical scrolling in all modes. Mode indices start at 0.
Switching modes is compositor-dependent. The compositor may provide visual cues to the client about the
mode, e.g. by toggling LEDs on the tablet device. Mode-switching may be software-controlled or controlled
by one or more physical buttons. For example, on a Wacom Intuos Pro, the button inside the ring may be
assigned to switch between modes.
The compositor will also send this event after wp_tablet_pad.enter on each group in order to notify of
the current mode. Groups that only feature one mode will use mode=0 when emitting this event.
If a button action in the new mode differs from the action in the previous mode, the client should
immediately issue a wp_tablet_pad.set_feedback request for each changed button.
If a ring or strip action in the new mode differs from the action in the previous mode, the client should
immediately issue a wp_tablet_ring.set_feedback or wp_tablet_strip.set_feedback request for each changed
ring or strip.
Definition at line 7924 of file wayland-client-protocol-unstable.cpp.
std::function<void(uint32_t)>&zwp_tablet_pad_group_v2_t::on_modes()
mode-switch ability announced
Parametersmodes the number of modes
Sent on wp_tablet_pad_group initialization to announce that the pad group may switch between modes. A
client may use a mode to store a specific configuration for buttons, rings and strips and use the
wl_tablet_pad_group.mode_switch event to toggle between these configurations. Mode indices start at 0.
Switching modes is compositor-dependent. See the wp_tablet_pad_group.mode_switch event for more details.
This event is sent in the initial burst of events before the wp_tablet_pad_group.done event. This event
is only sent when more than more than one mode is available.
Definition at line 7914 of file wayland-client-protocol-unstable.cpp.
std::function<void(zwp_tablet_pad_ring_v2_t)>&zwp_tablet_pad_group_v2_t::on_ring()
ring announced
Parametersring
Sent on wp_tablet_pad_group initialization to announce available rings. One event is sent for each ring
available on this pad group.
This event is sent in the initial burst of events before the wp_tablet_pad_group.done event.
Definition at line 7904 of file wayland-client-protocol-unstable.cpp.
std::function<void(zwp_tablet_pad_strip_v2_t)>&zwp_tablet_pad_group_v2_t::on_strip()
strip announced
Parametersstrip
Sent on wp_tablet_pad initialization to announce available strips. One event is sent for each strip
available on this pad group.
This event is sent in the initial burst of events before the wp_tablet_pad_group.done event.
Definition at line 7909 of file wayland-client-protocol-unstable.cpp.
wayland::proxy_t::operatorbool()const[inherited]
Check whether this wrapper actually wraps an object.
Returns
true if there is an underlying object, false if this wrapper is empty
boolwayland::proxy_t::operator!=(constproxy_t&right)const[inherited]
Check whether two wrappers refer to different objects.
boolwayland::proxy_t::operator==(constproxy_t&right)const[inherited]
Check whether two wrappers refer to the same object.
boolwayland::proxy_t::proxy_has_object()const[inherited]
Check whether this wrapper actually wraps an object.
Returns
true if there is an underlying object, false if this wrapper is empty
voidwayland::proxy_t::proxy_release()[inherited]
Release the wrapped object (if any), making this an empty wrapper. Note that display_t instances cannot
be released this way. Attempts to do so are ignored.
Examplesforeign_display.cpp.
voidwayland::proxy_t::set_queue(event_queue_tqueue)[inherited]
Assign a proxy to an event queue.
Parametersqueue The event queue that will handle this proxy
Assign proxy to event queue. Events coming from proxy will be queued in queue instead of the display's
main queue.
See also: display_t::dispatch_queue().
Examplesproxy_wrapper.cpp.