wayland::proxy_t(3) | Wayland++ | wayland::proxy_t(3) |
wayland::proxy_t - Represents a protocol object on the client side.
#include <wayland-client.hpp>
Inherited by wayland::buffer_t, wayland::callback_t, wayland::compositor_t, wayland::data_device_manager_t, wayland::data_device_t, wayland::data_offer_t, wayland::data_source_t, wayland::display_t, wayland::keyboard_t, wayland::output_t, wayland::pointer_t, wayland::presentation_feedback_t, wayland::presentation_t, wayland::region_t, wayland::registry_t, wayland::seat_t, wayland::shell_surface_t, wayland::shell_t, wayland::shm_pool_t, wayland::shm_t, wayland::subcompositor_t, wayland::subsurface_t, wayland::surface_t, wayland::touch_t, wayland::viewport_t, wayland::viewporter_t, wayland::xdg_activation_token_v1_t, wayland::xdg_activation_v1_t, wayland::xdg_popup_t, wayland::xdg_positioner_t, wayland::xdg_surface_t, wayland::xdg_toplevel_t, wayland::xdg_wm_base_t, wayland::zwp_confined_pointer_v1_t, wayland::zwp_fullscreen_shell_mode_feedback_v1_t, wayland::zwp_fullscreen_shell_v1_t, wayland::zwp_idle_inhibit_manager_v1_t, wayland::zwp_idle_inhibitor_v1_t, wayland::zwp_input_method_context_v1_t, wayland::zwp_input_method_v1_t, wayland::zwp_input_panel_surface_v1_t, wayland::zwp_input_panel_v1_t, wayland::zwp_input_timestamps_manager_v1_t, wayland::zwp_input_timestamps_v1_t, wayland::zwp_keyboard_shortcuts_inhibit_manager_v1_t, wayland::zwp_keyboard_shortcuts_inhibitor_v1_t, wayland::zwp_linux_buffer_params_v1_t, wayland::zwp_linux_buffer_release_v1_t, wayland::zwp_linux_dmabuf_feedback_v1_t, wayland::zwp_linux_dmabuf_v1_t, wayland::zwp_linux_explicit_synchronization_v1_t, wayland::zwp_linux_surface_synchronization_v1_t, wayland::zwp_locked_pointer_v1_t, wayland::zwp_pointer_constraints_v1_t, wayland::zwp_pointer_gesture_hold_v1_t, wayland::zwp_pointer_gesture_pinch_v1_t, wayland::zwp_pointer_gesture_swipe_v1_t, wayland::zwp_pointer_gestures_v1_t, wayland::zwp_primary_selection_device_manager_v1_t, wayland::zwp_primary_selection_device_v1_t, wayland::zwp_primary_selection_offer_v1_t, wayland::zwp_primary_selection_source_v1_t, wayland::zwp_relative_pointer_manager_v1_t, wayland::zwp_relative_pointer_v1_t, wayland::zwp_tablet_manager_v1_t, wayland::zwp_tablet_manager_v2_t, wayland::zwp_tablet_pad_group_v2_t, wayland::zwp_tablet_pad_ring_v2_t, wayland::zwp_tablet_pad_strip_v2_t, wayland::zwp_tablet_pad_v2_t, wayland::zwp_tablet_seat_v1_t, wayland::zwp_tablet_seat_v2_t, wayland::zwp_tablet_tool_v1_t, wayland::zwp_tablet_tool_v2_t, wayland::zwp_tablet_v1_t, wayland::zwp_tablet_v2_t, wayland::zwp_text_input_manager_v1_t, wayland::zwp_text_input_manager_v3_t, wayland::zwp_text_input_v1_t, wayland::zwp_text_input_v3_t, wayland::zwp_xwayland_keyboard_grab_manager_v1_t, wayland::zwp_xwayland_keyboard_grab_v1_t, wayland::zxdg_decoration_manager_v1_t, wayland::zxdg_exported_v1_t, wayland::zxdg_exported_v2_t, wayland::zxdg_exporter_v1_t, wayland::zxdg_exporter_v2_t, wayland::zxdg_imported_v1_t, wayland::zxdg_imported_v2_t, wayland::zxdg_importer_v1_t, wayland::zxdg_importer_v2_t, wayland::zxdg_output_manager_v1_t, wayland::zxdg_output_v1_t, wayland::zxdg_popup_v6_t, wayland::zxdg_positioner_v6_t, wayland::zxdg_shell_v6_t, wayland::zxdg_surface_v6_t, wayland::zxdg_toplevel_decoration_v1_t, and wayland::zxdg_toplevel_v6_t.
enum class wrapper_type { standard, display,
foreign, proxy_wrapper }
proxy_t (wl_proxy *p, wrapper_type
t=wrapper_type::standard, event_queue_t const
&queue=event_queue_t())
Cronstruct a proxy_t from a wl_proxy pointer. proxy_t (const
proxy_t &p)
Copy Constructior. proxy_t & operator= (const proxy_t
&p)
Assignment operator. proxy_t (proxy_t &&p) noexcept
Move Constructior. proxy_t & operator= (proxy_t
&&p) noexcept
Move Asignment operator. ~proxy_t ()
Destructor. uint32_t get_id () const
Get the id of a proxy object. std::string get_class () const
Get the interface name (class) of a proxy object. uint32_t get_version
() const
Get the protocol object version of a proxy object. wrapper_type
get_wrapper_type () const
Get the type of a proxy object. void set_queue (event_queue_t
queue)
Assign a proxy to an event queue. wl_proxy * c_ptr () const
Get a pointer to the underlying C struct. bool proxy_has_object ()
const
Check whether this wrapper actually wraps an object. operator bool ()
const
Check whether this wrapper actually wraps an object. bool operator==
(const proxy_t &right) const
Check whether two wrappers refer to the same object. bool operator!=
(const proxy_t &right) const
Check whether two wrappers refer to different objects. void
proxy_release ()
Release the wrapped object (if any), making this an empty wrapper.
Represents a protocol object on the client side.
A proxy_t acts as a client side proxy to an object existing in the compositor. The proxy is responsible for converting requests made by the clients with proxy_t::marshal() or proxy_t::marshal_constructor() into Wayland's wire format. Events coming from the compositor are also handled by the proxy, which will in turn call the handler set with the on_XXX() functions of each interface class.
With the exception of the function proxy_t::set_queue(), functions accessing a proxy_t are not normally used by client code. Clients should normally use the higher level interface classed generated by the scanner to interact with compositor objects.
Definition at line 109 of file wayland-client.hpp.
Underlying wl_proxy type and properties of a proxy_t that affect construction, destruction, and event handling
Enumerator
Definition at line 116 of file wayland-client.hpp.
Cronstruct a proxy_t from a wl_proxy pointer.
Parameters
Copy Constructior.
Parameters
Creates a copy of the proxy_t object that points to the sme proxy.
Move Constructior.
Parameters
Transfers the contents of the proxy_t object on the right to the proxy_t object being constructed.
Destructor. If this is the last copy of a paticular proxy, the proxy itself will be detroyed and an destroy request will be marshaled. If the proxy belongs to a wl_display object, the connection will be closed. Special rules apply to proxy wrappers and foreign proxies. See wrapper_type for more infos.
Get a pointer to the underlying C struct.
Returns
Get the interface name (class) of a proxy object.
Returns
Get the id of a proxy object.
Returns
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
Get the type of a proxy object.
Definition at line 302 of file wayland-client.hpp.
Check whether this wrapper actually wraps an object.
Returns
Check whether two wrappers refer to different objects.
Assignment operator.
Parameters
After an assignment, both proxy_t objects will point to the same proxy.
Move Asignment operator.
Parameters
Swaps the contents of both proxy_t objects.
Check whether two wrappers refer to the same object.
Check whether this wrapper actually wraps an object.
Returns
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.
Examples
foreign_display.cpp.
Assign a proxy to an event queue.
Parameters
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.
Generated automatically by Doxygen for Wayland++ from the source code.
Mon Apr 22 2024 09:52:15 | Version 1.0.0 |