struct KeyModifiers
source · line 41public
public struct KeyModifiers(val bits: UInt = 0u)
An immutable bit set of active key modifiers.
function has
source · line 49public
public fun has(modifier: KeyModifier): Boolean
Tests whether the selected flag is present.
parameter modifier
source · line 49public
modifier: KeyModifier
field bits
source · line 41public
val bits: UInt = 0u
function with
source · line 53public
public fun with(modifier: KeyModifier): KeyModifiers
Returns a copy with the selected flag included.
parameter modifier
source · line 53public
modifier: KeyModifier
property isEmpty
source · line 45public
public val isEmpty: Boolean
get: public read-only
Whether no bits are set.
getter get
source · line 45public
get(): Boolean
constructor constructor
source · line 41public
constructor(val bits: UInt = 0u)
parameter bits
source · line 41public
val bits: UInt = 0u
function without
source · line 57public
public fun without(modifier: KeyModifier): KeyModifiers
Returns a copy with the selected flag removed.
parameter modifier
source · line 57public
modifier: KeyModifier
function equals
source · line 41publiccompiler-derived
operator fun equals(other: KeyModifiers): Boolean
This derived operation is available when each field or payload type supports same-type equality. Required types: UInt.