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(uint32_t,uint32_t,double,double,double,double)>&zwp_relative_pointer_v1_t::on_relative_motion()
relative pointer motion
Parametersutime_hi high 32 bits of a 64 bit timestamp with microsecond granularity
utime_lo low 32 bits of a 64 bit timestamp with microsecond granularity
dx the x component of the motion vector
dy the y component of the motion vector
dx_unaccel the x component of the unaccelerated motion vector
dy_unaccel the y component of the unaccelerated motion vector
Relative x/y pointer motion from the pointer of the seat associated with this object.
A relative motion is in the same dimension as regular wl_pointer motion events, except they do not
represent an absolute position. For example, moving a pointer from (x, y) to (x', y') would have the
equivalent relative motion (x' - x, y' - y). If a pointer motion caused the absolute pointer position to
be clipped by for example the edge of the monitor, the relative motion is unaffected by the clipping and
will represent the unclipped motion.
This event also contains non-accelerated motion deltas. The non-accelerated delta is, when applicable,
the regular pointer motion delta as it was before having applied motion acceleration and other
transformations such as normalization.
Note that the non-accelerated delta does not represent 'raw' events as they were read from some device.
Pointer motion acceleration is device- and configuration-specific and non-accelerated deltas and
accelerated deltas may have the same value on some devices.
Relative motions are not coupled to wl_pointer.motion events, and can be sent in combination with such
events, but also independently. There may also be scenarios where wl_pointer.motion is sent, but there is
no relative motion. The order of an absolute and relative motion event originating from the same physical
motion is not guaranteed.
If the client needs button events or focus state, it can receive them from a wl_pointer object of the
same seat that the wp_relative_pointer object is associated with.
Definition at line 6703 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.