Package-level declarations

Types

Link copied to clipboard
@Serializable
enum Alignment : Enum<Alignment>

TextBlock Alignment

Link copied to clipboard
typealias ContentColor = @Serializable(with = ColorSerializer::class) Int

Used for serializing Int color values as "#RRGGBB"

Link copied to clipboard
@Serializable
class FaceMismatch(val unavailableFaceName: String? = null)

Represents a font face mismatch when the requested font face is not available on the device. This is used during content editing to indicate that a particular font face couldn't be matched to an available font.

Link copied to clipboard
typealias Numeric = Float

Core uses a "typedef Numeric" a lot, which is defined as float. We just do the same

Link copied to clipboard
@Serializable
class StyleInfo(val family: String? = null, val faceMismatch: FaceMismatch? = null, val bold: Boolean? = null, val italic: Boolean? = null, val size: Numeric? = null, val color: ContentColor? = null, val xScale: Numeric? = null, val skew: Numeric? = null)

Style information for a specific text selection or cursor position during content editing. This class holds various text formatting properties like font family, size, color, and style.

Link copied to clipboard
class TextBlockStyleInfo(val alignment: Alignment, val lineSpacingFactor: Numeric?, val rotation: Numeric, val flipY: Boolean)

Contains style properties that affect the whole text block during content editing.