|
Sunshine master
Self-hosted game stream host for Moonlight.
|
Wayland output metadata used to match a configured display name. More...
#include <src/platform/linux/wayland.h>
Public Member Functions | |
| void | listen (zxdg_output_manager_v1 *output_manager) |
| Attach xdg-output and wl-output listeners for this monitor. | |
| monitor_t (const monitor_t &)=delete | |
| monitor_t (monitor_t &&)=delete | |
| monitor_t (wl_output *output) | |
| Track a Wayland output and its advertised modes. | |
| monitor_t & | operator= (const monitor_t &)=delete |
| monitor_t & | operator= (monitor_t &&)=delete |
| void | wl_done (wl_output *wl_output) |
| Acknowledge completion of a wl-output metadata update. | |
| void | wl_geometry (wl_output *wl_output, std::int32_t x, std::int32_t y, std::int32_t physical_width, std::int32_t physical_height, std::int32_t subpixel, const char *make, const char *model, std::int32_t transform) |
| Receive physical wl-output geometry metadata. | |
| void | wl_mode (wl_output *wl_output, std::uint32_t flags, std::int32_t width, std::int32_t height, std::int32_t refresh) |
| Store the active pixel mode reported by wl-output. | |
| void | wl_scale (wl_output *wl_output, std::int32_t factor) |
| Receive the wl-output scale factor. | |
| void | xdg_description (zxdg_output_v1 *, const char *description) |
| Store the xdg-output human-readable monitor description. | |
| void | xdg_done (zxdg_output_v1 *) |
| Acknowledge completion of an xdg-output metadata update. | |
| void | xdg_name (zxdg_output_v1 *, const char *name) |
| Store the xdg-output logical monitor name. | |
| void | xdg_position (zxdg_output_v1 *, std::int32_t x, std::int32_t y) |
| Store the logical monitor position reported by xdg-output. | |
| void | xdg_size (zxdg_output_v1 *, std::int32_t width, std::int32_t height) |
| Store the logical monitor size reported by xdg-output. | |
Public Attributes | |
| std::string | description |
| xdg-output description used for logs and UI. | |
| std::string | name |
| xdg-output name used for display selection. | |
| wl_output * | output |
| Wayland output associated with this monitor. | |
| platf::touch_port_t | viewport |
| Logical monitor bounds used to scale absolute input. | |
| wl_output_listener | wl_listener |
| Callback table for wl-output events. | |
| zxdg_output_v1_listener | xdg_listener |
| Callback table for xdg-output events. | |
Wayland output metadata used to match a configured display name.
|
inlineexplicit |
Track a Wayland output and its advertised modes.
| output | Wayland output object being described. |
| void wl::monitor_t::listen | ( | zxdg_output_manager_v1 * | output_manager | ) |
Attach xdg-output and wl-output listeners for this monitor.
| output_manager | xdg-output manager used to query logical monitor metadata. |
|
inline |
Acknowledge completion of a wl-output metadata update.
| wl_output | Wayland output. |
|
inline |
Receive physical wl-output geometry metadata.
| wl_output | Wayland output. |
| x | Horizontal coordinate reported by Wayland. |
| y | Vertical coordinate reported by Wayland. |
| physical_width | Physical width in millimeters. |
| physical_height | Physical height in millimeters. |
| subpixel | Wayland subpixel layout enum. |
| make | Monitor manufacturer string reported by Wayland. |
| model | Monitor model string reported by Wayland. |
| transform | Wayland output transform value. |
| void wl::monitor_t::wl_mode | ( | wl_output * | wl_output, |
| std::uint32_t | flags, | ||
| std::int32_t | width, | ||
| std::int32_t | height, | ||
| std::int32_t | refresh ) |
Store the active pixel mode reported by wl-output.
| wl_output | Wayland output. |
| flags | Bit flags that modify the requested operation. |
| width | Frame or display width in pixels. |
| height | Frame or display height in pixels. |
| refresh | Output refresh rate in mHz. |
|
inline |
Receive the wl-output scale factor.
| wl_output | Wayland output. |
| factor | Wayland output scale factor. |
| void wl::monitor_t::xdg_description | ( | zxdg_output_v1 * | , |
| const char * | description ) |
Store the xdg-output human-readable monitor description.
| description | Human-readable description used in log output. |
|
inline |
Store the xdg-output logical monitor name.
| name | Human-readable name to assign. |
| void wl::monitor_t::xdg_position | ( | zxdg_output_v1 * | , |
| std::int32_t | x, | ||
| std::int32_t | y ) |
Store the logical monitor position reported by xdg-output.
| x | Horizontal coordinate reported by Wayland. |
| y | Vertical coordinate reported by Wayland. |
| void wl::monitor_t::xdg_size | ( | zxdg_output_v1 * | , |
| std::int32_t | width, | ||
| std::int32_t | height ) |
Store the logical monitor size reported by xdg-output.
| width | Frame or display width in pixels. |
| height | Frame or display height in pixels. |