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)
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/cursor position

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