wayland::zwp_i...imestamps_v1_t(3)
okay so bestie, welcome to the wayland::zwp_i...imestamps_v1_t(3) page from the Wayland++ manual π β this is literally all about wayland::zwp_input_timestamps_v1_t, the context object for input timestamps. no cap, every detail is below β¨
π NAME
wayland::zwp_input_timestamps_v1_t β context object for input timestamps. it's giving exactly what the name says π«Ά
β¨ SYNOPSIS
#include <wayland-client-protocol-unstable.hpp>
It inherits wayland::proxy_t. iconic behavior, honestly π
πΈ Public Types
enum class wrapper_type { standard, display, foreign, proxy_wrapper }β the wrapper type enum, with all four values sitting right there π
π Public Member Functions
std::function< void(uint32_t, uint32_t, uint32_t)> & on_timestamp ()β high-resolution timestamp event β±οΈuint32_t get_id () constβ grab the id of a proxy objectstd::string get_class () constβ grab the interface name (class) of a proxy objectuint32_t get_version () constβ grab the protocol object version of a proxy objectwrapper_type get_wrapper_type () constβ grab the type of a proxy objectvoid set_queue (event_queue_t queue)β assign a proxy to an event queuewl_proxy * c_ptr () constβ grab a pointer to the underlying C structbool proxy_has_object () constβ check whether this wrapper actually wraps an objectoperator bool () constβ check whether this wrapper actually wraps an objectbool operator== (const proxy_t &right) constβ check whether two wrappers refer to the same objectbool operator!= (const proxy_t &right) constβ check whether two wrappers refer to different objectsvoid proxy_release ()β release the wrapped object (if any), making this an empty wrapper
π¦ Detailed Description
this is the context object for input timestamps π« it provides high-resolution timestamp events for a set of subscribed input events. the set of subscribed input events is determined by the zwp_input_timestamps_manager_v1 request used to create this object. that's the whole description, and it ate.
Definition at line 1254 of file wayland-client-protocol-unstable.hpp.
π Member Enumeration Documentation
enum class wayland::proxy_t::wrapper_type [strong], [inherited]
underlying wl_proxy type and properties of a proxy_t that affect construction, destruction, and event handling. very "behind the scenes but important" energy π
standardβ the C pointer is a standard type compatible withwl_proxy*. events are dispatched and it is destructed when theproxy_tis destructed. user data is set.displayβ the C pointer is awl_display*. no events are dispatched,wl_display_disconnectis called when theproxy_tis destructed. user data is set.foreignβ the C pointer is a standard type compatible withwl_proxy*, but another library owns it and it should not be touched in a way that could affect the operation of the other library. no events are dispatched,wl_proxy_destroyis not called when theproxy_tis destructed, user data is not touched. consequently, there is no reference counting for theproxy_t. lifetime of such wrappers should preferably be short to minimize the chance that the owning library decides to destroy thewl_proxy. πproxy_wrapperβ the C pointer is awl_proxy*that was constructed withwl_proxy_create_wrapper. no events are dispatched,wl_proxy_wrapper_destroyis called when theproxy_tis destroyed. reference counting is active. a reference to theproxy_tcreating this proxy wrapper is held to extend its lifetime until after the proxy wrapper is destroyed.
Definition at line 117 of file wayland-client.hpp.
π Member Function Documentation
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::string wayland::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_t wayland::proxy_t::get_id () const [inherited]
get the id of a proxy object.
Returns: the id the object associated with the proxy.
uint32_t wayland::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. no guessing, bestie β make safe assumptions β¨
display_t will always return version 0.
Returns: the protocol object version of the proxy or 0.
wrapper_type wayland::proxy_t::get_wrapper_type () const [inline], [inherited]
get the type of a proxy object.
Definition at line 303 of file wayland-client.hpp.
std::function< void(uint32_t, uint32_t, uint32_t)> & zwp_input_timestamps_v1_t::on_timestamp ()
high-resolution timestamp event β±οΈπ₯
Parameters:
- tv_sec_hi β high 32 bits of the seconds part of the timestamp
- tv_sec_lo β low 32 bits of the seconds part of the timestamp
- tv_nsec β nanoseconds part of the timestamp
the timestamp event is associated with the first subsequent input event carrying a timestamp which belongs to the set of input events this object is subscribed to.
the timestamp provided by this event is a high-resolution version of the timestamp argument of the associated input event. the provided timestamp is in the same clock domain and is at least as accurate as the associated input event timestamp. same clock domain, at least as accurate β periodt π
the timestamp is expressed as tv_sec_hi, tv_sec_lo, tv_nsec triples, each component being an unsigned 32-bit value. whole seconds are in tv_sec, which is a 64-bit value combined from tv_sec_hi and tv_sec_lo, and the additional fractional part in tv_nsec as nanoseconds. hence, for valid timestamps tv_nsec must be in [0, 999999999]. that range is not optional, bestie π¨
Definition at line 5009 of file wayland-client-protocol-unstable.cpp.
wayland::proxy_t::operator bool () const [inherited]
check whether this wrapper actually wraps an object.
Returns: true if there is an underlying object, false if this wrapper is empty.
bool wayland::proxy_t::operator!= (const proxy_t & right) const [inherited]
check whether two wrappers refer to different objects.
bool wayland::proxy_t::operator== (const proxy_t & right) const [inherited]
check whether two wrappers refer to the same object.
bool wayland::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.
void wayland::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. ignored, not fixed β don't try it π
Examples: foreign_display.cpp.
void wayland::proxy_t::set_queue (event_queue_t queue) [inherited]
assign a proxy to an event queue.
Parameters:
- queue β 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().
Examples: proxy_wrapper.cpp.
π Author
generated automatically by Doxygen for Wayland++ from the source code. very "the docs made themselves" energy β¨
okay that's the whole page, bestie β version 1.0.1 of Wayland++, Fri Mar 27 2026. slay, you made it to the footer π
β¨
π¦ where this page comes from
- ubuntu stonking: waylandpp-dev 1.0.1-2 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms