struct KeyEventState
source · line 85public
public struct KeyEventState(val bits: UInt = 0u)
An immutable bit set of additional lock/keypad state.
function without
source · line 101public
public fun without(state: KeyState): KeyEventState
Returns a copy with the selected flag removed.
parameter state
source · line 101public
state: KeyState
function with
source · line 97public
public fun with(state: KeyState): KeyEventState
Returns a copy with the selected flag included.
parameter state
source · line 97public
state: KeyState
property isEmpty
source · line 89public
public val isEmpty: Boolean
get: public read-only
Whether no bits are set.
getter get
source · line 89public
get(): Boolean
function has
source · line 93public
public fun has(state: KeyState): Boolean
Tests whether the selected flag is present.
parameter state
source · line 93public
state: KeyState
field bits
source · line 85public
val bits: UInt = 0u
constructor constructor
source · line 85public
constructor(val bits: UInt = 0u)
parameter bits
source · line 85public
val bits: UInt = 0u
function equals
source · line 85publiccompiler-derived
operator fun equals(other: KeyEventState): Boolean
This derived operation is available when each field or payload type supports same-type equality. Required types: UInt.