Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
KODI::WINDOWING::WAYLAND::COutput Class Reference

#include <Output.h>

Classes

struct  Mode
 

Public Member Functions

 COutput (std::uint32_t globalName, wayland::output_t const &output, std::function< void()> doneHandler)
 
 ~COutput () noexcept
 
wayland::output_t const & GetWaylandOutput () const
 
std::uint32_t GetGlobalName () const
 
CPointInt GetPosition () const
 
CSizeInt GetPhysicalSize () const
 
std::string const & GetMake () const
 
std::string const & GetModel () const
 
std::int32_t GetScale () const
 
std::set< Mode > const & GetModes () const
 
Mode const & GetCurrentMode () const
 
Mode const & GetPreferredMode () const
 
float GetPixelRatioForMode (Mode const &mode) const
 
float GetDpiForMode (Mode const &mode) const
 
float GetCurrentDpi () const
 

Detailed Description

wl_output handler that collects information from the compositor and then passes it on when everything is available

Constructor & Destructor Documentation

◆ COutput()

COutput::COutput ( std::uint32_t globalName,
wayland::output_t const & output,
std::function< void()> doneHandler )

◆ ~COutput()

COutput::~COutput ( )
noexcept

Member Function Documentation

◆ GetCurrentDpi()

float COutput::GetCurrentDpi ( ) const

◆ GetCurrentMode()

const COutput::Mode & COutput::GetCurrentMode ( ) const

◆ GetDpiForMode()

float COutput::GetDpiForMode ( Mode const & mode) const

◆ GetGlobalName()

std::uint32_t KODI::WINDOWING::WAYLAND::COutput::GetGlobalName ( ) const
inline

◆ GetMake()

std::string const & KODI::WINDOWING::WAYLAND::COutput::GetMake ( ) const
inline

◆ GetModel()

std::string const & KODI::WINDOWING::WAYLAND::COutput::GetModel ( ) const
inline

◆ GetModes()

std::set< Mode > const & KODI::WINDOWING::WAYLAND::COutput::GetModes ( ) const
inline

◆ GetPhysicalSize()

CSizeInt KODI::WINDOWING::WAYLAND::COutput::GetPhysicalSize ( ) const
inline

Get output physical size in millimeters

Returns
(width, height) tuple of output physical size in millimeters

◆ GetPixelRatioForMode()

float COutput::GetPixelRatioForMode ( Mode const & mode) const

◆ GetPosition()

CPointInt KODI::WINDOWING::WAYLAND::COutput::GetPosition ( ) const
inline

Get output position in compositor coordinate space

Returns
(x, y) tuple of output position

◆ GetPreferredMode()

const COutput::Mode & COutput::GetPreferredMode ( ) const

◆ GetScale()

std::int32_t KODI::WINDOWING::WAYLAND::COutput::GetScale ( ) const
inline

◆ GetWaylandOutput()

wayland::output_t const & KODI::WINDOWING::WAYLAND::COutput::GetWaylandOutput ( ) const
inline

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