FormatSection

Holds format entries used in a format expression.

data class FormatSection @JvmOverloads() constructor(content: Expression, fontScale: Expression?, textFont: Expression?, textColor: Expression?)

Constructors

FormatSection
Link copied to clipboard
fun FormatSection(content: Expression, fontScale: Expression?, textFont: Expression?, textColor: Expression?)

Functions

component1
Link copied to clipboard
operator fun component1(): Expression
component2
Link copied to clipboard
operator fun component2(): Expression?
component3
Link copied to clipboard
operator fun component3(): Expression?
component4
Link copied to clipboard
operator fun component4(): Expression?
copy
Link copied to clipboard
fun copy(content: Expression, fontScale: Expression?, textFont: Expression?, textColor: Expression?): FormatSection
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

content
Link copied to clipboard

The visible text or image as an expression for this format section.

val content: Expression
fontScale
Link copied to clipboard

If set, the font-scale argument specifies a scaling factor relative to the text-size specified in the root layout properties.

"font-scale" is required to be of a resulting type number.

var fontScale: Expression?
textColor
Link copied to clipboard

If set, the text-color argument overrides the color specified by the root paint properties.

var textColor: Expression?
textFont
Link copied to clipboard

If set, the text-font argument overrides the font specified by the root layout properties.

"text-font" is required to be a literal array.

The requested font stack has to be a part of the used style. For more information see The online documentation.

var textFont: Expression?