Sunshine latest
Self-hosted game stream host for Moonlight.
wl::display_t Class Reference

Public Member Functions

bool dispatch (std::chrono::milliseconds timeout)
 Waits up to the specified timeout to dispatch new events on the wl_display.
 
display_internal_t::pointer get ()
 
int init (const char *display_name=nullptr)
 Initialize display. If display_name == nullptr -> display_name = std::getenv("WAYLAND_DISPLAY")
 
wl_registry * registry ()
 
void roundtrip ()
 

Member Function Documentation

◆ dispatch()

bool wl::display_t::dispatch ( std::chrono::milliseconds timeout)

Waits up to the specified timeout to dispatch new events on the wl_display.

Parameters
timeoutThe timeout in milliseconds.
Returns
true if new events were dispatched or false if the timeout expired.

◆ init()

int wl::display_t::init ( const char * display_name = nullptr)

Initialize display. If display_name == nullptr -> display_name = std::getenv("WAYLAND_DISPLAY")

Parameters
display_nameThe name of the display.
Returns
0 on success, -1 on failure.

The documentation for this class was generated from the following files: