NodeStyle

data class NodeStyle(val foregroundColor: Color? = null, val backgroundColor: Color? = null, val borderColor: Color? = null, val borderWidth: Sizes? = null, val borderStyle: NodeStyle.BorderStyle? = null, val margin: Sizes? = null, val padding: Sizes? = null, val cornerRadius: Sizes? = null, val alignment: NodeStyle.Alignment? = null, val textAlignment: NodeStyle.TextAlignment? = null, val textTransform: TextTransformData? = null)

Style of a StylableNode, such as a com.quarkdown.core.ast.quarkdown.block.Container.

Parameters

foregroundColor

text color

backgroundColor

background color

borderColor

border color

borderWidth

border width

borderStyle

border style

margin

whitespace outside the content

padding

whitespace around the content

cornerRadius

border radius of the container

alignment

alignment of the content

textAlignment

alignment of the text

textTransform

transformation applied to the text content

Constructors

Link copied to clipboard
constructor(foregroundColor: Color? = null, backgroundColor: Color? = null, borderColor: Color? = null, borderWidth: Sizes? = null, borderStyle: NodeStyle.BorderStyle? = null, margin: Sizes? = null, padding: Sizes? = null, cornerRadius: Sizes? = null, alignment: NodeStyle.Alignment? = null, textAlignment: NodeStyle.TextAlignment? = null, textTransform: TextTransformData? = null)

Types

Link copied to clipboard

Possible alignment types.

Link copied to clipboard
Link copied to clipboard
object Companion
Link copied to clipboard

Possible text alignment types.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard