Cogs.Core
Public Member Functions | Private Attributes | List of all members
Cogs::Core::DPIService Class Reference

Public Member Functions

int getDPI () const
 
float getScaleFactor () const
 
void set (int dpi, float scaleFactor)
 

Private Attributes

int mDPI = 96
 
float mScaleFactor = 1.0f
 

Detailed Description

Definition at line 9 of file DPIService.h.

Member Function Documentation

◆ getDPI()

int Cogs::Core::DPIService::getDPI ( ) const
inline

Definition at line 11 of file DPIService.h.

◆ getScaleFactor()

float Cogs::Core::DPIService::getScaleFactor ( ) const
inline

Definition at line 12 of file DPIService.h.

◆ set()

void Cogs::Core::DPIService::set ( int  dpi,
float  scaleFactor 
)
inline

Definition at line 14 of file DPIService.h.

Member Data Documentation

◆ mDPI

int Cogs::Core::DPIService::mDPI = 96
private

Definition at line 20 of file DPIService.h.

◆ mScaleFactor

float Cogs::Core::DPIService::mScaleFactor = 1.0f
private

Definition at line 21 of file DPIService.h.


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