API reference
API reference
Select your platform
No SDKs available
No versions available

DpDisplayOptions Class

Modifiers: final
Configuration for a display with density-independent pixel (dp) dimensions.

Signature

data class DpDisplayOptions(val width: Float, val height: Float, val dpi: Int = DpDisplayOptions.DEFAULT_DPI) : PanelConfigOptionsModifier, UIPanelDisplayOptions

Constructors

DpDisplayOptions ( width , height , dpi )
Signature
constructor(width: Float, height: Float, dpi: Int = DpDisplayOptions.DEFAULT_DPI)
Parameters
width: Float
  The width of the panel in dp
height: Float
  The height of the panel in dp
dpi: Int
  The dots per inch to use for the display

Properties

dpi : Int
[Get]
The dots per inch to use for the display
Signature
val dpi: Int
height : Float
[Get]
The height of the panel in dp
Signature
val height: Float
width : Float
[Get]
The width of the panel in dp
Signature
val width: Float

Functions

applyTo ( options )
Signature
open override fun applyTo(options: PanelConfigOptions)
Parameters

Companion Object

Companion Object Properties

DEFAULT_DPI : Int
[Get]
The default DPI used for DpDisplaySettings.
Signature
const val DEFAULT_DPI: Int
Did you find this page helpful?