Hermes 0.7.0
Linux game streaming host
Loading...
Searching...
No Matches
VDISPLAY::mutter::state_t Struct Reference

Public Member Functions

const monitor_t * find_monitor (const std::string &connector) const
const logical_monitor_t * find_logical_monitor (const std::string &connector) const
bool logical_size (const logical_monitor_t &lm, int &width, int &height) const

Static Public Member Functions

static double scale_of (const logical_monitor_t &lm)

Public Attributes

std::string serial
std::map< std::string, std::string > current_mode
 connector -> mode id
std::vector< monitor_t > monitors
std::vector< logical_monitor_t > logical_monitors
layout_mode_e layout_mode {layout_mode_e::logical}
bool global_scale_required {false}

Detailed Description

Definition at line 4100 of file virtual_display.cpp.

Member Function Documentation

◆ find_logical_monitor()

const logical_monitor_t * VDISPLAY::mutter::state_t::find_logical_monitor ( const std::string & connector) const
inline

Definition at line 4119 of file virtual_display.cpp.

◆ find_monitor()

const monitor_t * VDISPLAY::mutter::state_t::find_monitor ( const std::string & connector) const
inline

Definition at line 4110 of file virtual_display.cpp.

◆ logical_size()

bool VDISPLAY::mutter::state_t::logical_size ( const logical_monitor_t & lm,
int & width,
int & height ) const
inline

Size of a logical monitor in layout coordinates - the space the desktop, and therefore the pointer, is measured in.

Mutter derives it from the current mode of the monitors assigned to it: a rotated transform swaps the axes, and in the logical layout mode the result is divided by the logical monitor's scale. Taking the mode size instead is only correct at scale 1 with no rotation.

Definition at line 4142 of file virtual_display.cpp.

◆ scale_of()

double VDISPLAY::mutter::state_t::scale_of ( const logical_monitor_t & lm)
inlinestatic

Definition at line 4128 of file virtual_display.cpp.

Member Data Documentation

◆ current_mode

std::map<std::string, std::string> VDISPLAY::mutter::state_t::current_mode

connector -> mode id

Definition at line 4102 of file virtual_display.cpp.

◆ global_scale_required

bool VDISPLAY::mutter::state_t::global_scale_required {false}

Definition at line 4108 of file virtual_display.cpp.

◆ layout_mode

layout_mode_e VDISPLAY::mutter::state_t::layout_mode {layout_mode_e::logical}

Definition at line 4107 of file virtual_display.cpp.

◆ logical_monitors

std::vector<logical_monitor_t> VDISPLAY::mutter::state_t::logical_monitors

Definition at line 4104 of file virtual_display.cpp.

◆ monitors

std::vector<monitor_t> VDISPLAY::mutter::state_t::monitors

Definition at line 4103 of file virtual_display.cpp.

◆ serial

std::string VDISPLAY::mutter::state_t::serial

Definition at line 4101 of file virtual_display.cpp.


The documentation for this struct was generated from the following file: