Reference for JVM version of SpaceVIL  0.3.5.8
SpaceVIL (Space of Visual Items Layout) is a cross-platform and multilingual framework for creating GUI client applications for .NET Standard, .NET Core and JVM. SpaceVIL is based on OpenGL graphic technology and GLFW. Using this framework in conjunction with .Net Core or with a JVM, you can work and create graphical client applications on Linux, Mac OS X and Windows.
com.spvessel.spacevil.Common.DisplayService Class Reference

DisplayService is static class providing methods to getting display attributes such as size and dpi scale. More...

Static Public Member Functions

static int getDisplayWidth ()
 Getting the current display width. More...
 
static int getDisplayHeight ()
 Getting the current display height. More...
 
static Scale getDisplayDpiScale ()
 Getting the current display scale. More...
 
static void setDisplayScale (float x, float y)
 
static Scale getWindowDpiScale (CoreWindow window)
 Getting the current window scale. More...
 

Detailed Description

DisplayService is static class providing methods to getting display attributes such as size and dpi scale.

Member Function Documentation

◆ getDisplayDpiScale()

static Scale com.spvessel.spacevil.Common.DisplayService.getDisplayDpiScale ( )
static

Getting the current display scale.

Returns
The current display scale as com.spvessel.spacevil.Core.Scale.

◆ getDisplayHeight()

static int com.spvessel.spacevil.Common.DisplayService.getDisplayHeight ( )
static

Getting the current display height.

Returns
The current display height as int.

◆ getDisplayWidth()

static int com.spvessel.spacevil.Common.DisplayService.getDisplayWidth ( )
static

Getting the current display width.

Returns
The current display width as int.

◆ getWindowDpiScale()

static Scale com.spvessel.spacevil.Common.DisplayService.getWindowDpiScale ( CoreWindow  window)
static

Getting the current window scale.

Parameters
windowA window as com.spvessel.spacevil.CoreWindow.
Returns
The current window scale as com.spvessel.spacevil.Core.Scale.

◆ setDisplayScale()

static void com.spvessel.spacevil.Common.DisplayService.setDisplayScale ( float  x,
float  y 
)
static

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