You.i Engine
CYIScreen Class Reference

#include <framework/YiScreen.h>

Public Member Functions

 CYIScreen (int32_t screenSizeX, int32_t screenSizeY, int32_t screenDensityX, int32_t screenDensityY)
 
int32_t GetXDensity () const
 
int32_t GetYDensity () const
 
float GetWidthInches () const
 
float GetHeightInches () const
 
float GetDiagonalSizeInches () const
 
int32_t GetWidthPixels () const
 
int32_t GetHeightPixels () const
 

Constructor & Destructor Documentation

◆ CYIScreen()

CYIScreen::CYIScreen ( int32_t  screenSizeX,
int32_t  screenSizeY,
int32_t  screenDensityX,
int32_t  screenDensityY 
)

Member Function Documentation

◆ GetDiagonalSizeInches()

float CYIScreen::GetDiagonalSizeInches ( ) const

The diagonal size of the display in inches.

◆ GetHeightInches()

float CYIScreen::GetHeightInches ( ) const

The height of the display in inches.

◆ GetHeightPixels()

int32_t CYIScreen::GetHeightPixels ( ) const

The height of the display in pixels.

◆ GetWidthInches()

float CYIScreen::GetWidthInches ( ) const

The width of the display in inches.

◆ GetWidthPixels()

int32_t CYIScreen::GetWidthPixels ( ) const

The width of the display in pixels.

◆ GetXDensity()

int32_t CYIScreen::GetXDensity ( ) const

Display X density in DPI.

◆ GetYDensity()

int32_t CYIScreen::GetYDensity ( ) const

Display Y density in DPI.


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