struct Attributes
source · line 161public
public struct Attributes(val bits: UInt = 0u)
An immutable set of SGR attributes.
constructor constructor
source · line 161public
constructor(val bits: UInt = 0u)
parameter bits
source · line 161public
val bits: UInt = 0u
property isEmpty
source · line 165public
public val isEmpty: Boolean
get: public read-only
Whether no bits are set.
getter get
source · line 165public
get(): Boolean
function has
source · line 169public
public fun has(attribute: Attribute): Boolean
Tests whether the selected flag is present.
parameter attribute
source · line 169public
attribute: Attribute
function toggled
source · line 181public
public fun toggled(attribute: Attribute): Attributes
Returns a copy with the selected attribute's bit toggled.
parameter attribute
source · line 181public
attribute: Attribute
function with
source · line 173public
public fun with(attribute: Attribute): Attributes
Returns a copy with the selected flag included.
parameter attribute
source · line 173public
attribute: Attribute
function without
source · line 177public
public fun without(attribute: Attribute): Attributes
Returns a copy with the selected flag removed.
parameter attribute
source · line 177public
attribute: Attribute
field bits
source · line 161public
val bits: UInt = 0u
function equals
source · line 161publiccompiler-derived
operator fun equals(other: Attributes): Boolean
This derived operation is available when each field or payload type supports same-type equality. Required types: UInt.