struct KeyboardEnhancementFlags
source · line 35public
public struct KeyboardEnhancementFlags(val bits: UInt = 0u)
An immutable bit set of requested or reported keyboard enhancements.
property isEmpty
source · line 39public
public val isEmpty: Boolean
get: public read-only
Whether no bits are set.
getter get
source · line 39public
get(): Boolean
field bits
source · line 35public
val bits: UInt = 0u
constructor constructor
source · line 35public
constructor(val bits: UInt = 0u)
parameter bits
source · line 35public
val bits: UInt = 0u
function without
source · line 51public
public fun without(flag: KeyboardEnhancement): KeyboardEnhancementFlags
Returns a copy with the selected flag removed.
parameter flag
source · line 51public
flag: KeyboardEnhancement
function with
source · line 47public
public fun with(flag: KeyboardEnhancement): KeyboardEnhancementFlags
Returns a copy with the selected flag included.
parameter flag
source · line 47public
flag: KeyboardEnhancement
function has
source · line 43public
public fun has(flag: KeyboardEnhancement): Boolean
Tests whether the selected flag is present.
parameter flag
source · line 43public
flag: KeyboardEnhancement
function equals
source · line 35publiccompiler-derived
operator fun equals(other: KeyboardEnhancementFlags): Boolean
This derived operation is available when each field or payload type supports same-type equality. Required types: UInt.