Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#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 |
wl_output handler that collects information from the compositor and then passes it on when everything is available
COutput::COutput | ( | std::uint32_t | globalName, |
wayland::output_t const & | output, | ||
std::function< void()> | doneHandler ) |
|
noexcept |
float COutput::GetCurrentDpi | ( | ) | const |
const COutput::Mode & COutput::GetCurrentMode | ( | ) | const |
float COutput::GetDpiForMode | ( | Mode const & | mode | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get output physical size in millimeters
float COutput::GetPixelRatioForMode | ( | Mode const & | mode | ) | const |
|
inline |
Get output position in compositor coordinate space
const COutput::Mode & COutput::GetPreferredMode | ( | ) | const |
|
inline |
|
inline |