Loading...
Searching...
No Matches
Monitorabstract

#include <AppCore/Monitor.h>

Overview

A platform-specific monitor.

Public Member Functions

virtual ~Monitor ()
 
virtual uint32_t display_id () const =0
 Get the unique display ID of the monitor.
 
virtual double scale () const =0
 Get the DPI scale (1.0 = 100%)
 
virtual uint32_t width () const =0
 Get the width of the monitor (in pixels).
 
virtual uint32_t height () const =0
 Get the height of the monitor (in pixels).
 
virtual uint32_t refresh_rate () const =0
 Get the refresh rate of the monitor (in Hz).
 

Constructor & Destructor Documentation

◆ ~Monitor()

virtual ~Monitor ( )
inlinevirtual

Member Function Documentation

◆ display_id()

virtual uint32_t display_id ( ) const
pure virtual

Get the unique display ID of the monitor.

The renderer uses this ID to identify which monitor a View is on (ViewConfig::display_id).

AppCore internally tracks the display's hardware refresh event and automatically calls Renderer::RefreshDisplay(id) to drive animation in all corresponding Views.

◆ height()

virtual uint32_t height ( ) const
pure virtual

Get the height of the monitor (in pixels).

◆ refresh_rate()

virtual uint32_t refresh_rate ( ) const
pure virtual

Get the refresh rate of the monitor (in Hz).

◆ scale()

virtual double scale ( ) const
pure virtual

Get the DPI scale (1.0 = 100%)

◆ width()

virtual uint32_t width ( ) const
pure virtual

Get the width of the monitor (in pixels).


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