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

ScreenFractionDisplayOptions Class

Modifiers: final
Configuration for a display that occupies a fraction of the screen. This is useful if you do not know an exact size but want a panel that you estimate will take up X% of the screen. Defaults to an assumption that 50% of the screen will be occupied.

Signature

data class ScreenFractionDisplayOptions(val fraction: Float = 0.5f) : PanelConfigOptionsModifier, UIPanelDisplayOptions

Constructors

ScreenFractionDisplayOptions ( fraction )
Signature
constructor(fraction: Float = 0.5f)
Parameters
fraction: Float
  The fraction of the screen that the panel should occupy (0.0-1.0)

Properties

fraction : Float
[Get]
The fraction of the screen that the panel should occupy (0.0-1.0)
Signature
val fraction: Float = 0.5f

Functions

applyTo ( options )
Signature
open override fun applyTo(options: PanelConfigOptions)
Parameters
Did you find this page helpful?