Maria GDK 5.0.0.738
Documentation of native code in develop branch
Loading...
Searching...
No Matches
STK::Screen Class Reference

#include <StkScreen.h>

Public Member Functions

 Screen (float pixelResolutionScale)
 
void setPixelResolutionScale (float s)
 
float getPixelResolutionScale () const
 Get resolution scaling factor for HiDPI displays.
 
bool isHiDPI () const
 
bool changed (long generation) const
 
long getGeneration () const
 

Detailed Description

Screen - Represents a screen device on a computer. Currently only handles DPI scaling.

Member Function Documentation

◆ changed()

bool STK::Screen::changed ( long  generation) const
inline

Check if the screen parameters have changed since the given generation.

◆ setPixelResolutionScale()

void STK::Screen::setPixelResolutionScale ( float  s)
inline

Set scaling factor for HiDPI displays. This scale can be used to increase resolution of fixed pixel size values, such as font size, line thickness etc.


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