Package-level declarations

Functions

Link copied to clipboard
Link copied to clipboard
fun rememberLayeredComponent(rear: Component, front: Component, padding: Dimensions = Dimensions.Empty, margins: Dimensions = Dimensions.Empty): LayeredComponent

Creates and remembers a LayeredComponent.

Link copied to clipboard
fun rememberLineComponent(color: Color = Color.Black, thickness: Dp = Defaults.LINE_COMPONENT_THICKNESS_DP.dp, shape: Shape = Shape.Rectangle, margins: Dimensions = Dimensions.Empty, strokeColor: Color = Color.Transparent, strokeThickness: Dp = 0.dp, shader: DynamicShader? = null, shadow: Shadow? = null): LineComponent

Creates and remembers a LineComponent.

Link copied to clipboard
fun rememberShapeComponent(color: Color = Color.Black, shape: Shape = Shape.Rectangle, margins: Dimensions = Dimensions.Empty, strokeColor: Color = Color.Transparent, strokeThickness: Dp = 0.dp, shader: DynamicShader? = null, shadow: Shadow? = null): ShapeComponent

Creates and remembers a ShapeComponent.

Link copied to clipboard
fun rememberTextComponent(color: Color = Color.Black, typeface: Typeface = Typeface.DEFAULT, textSize: TextUnit = Defaults.TEXT_COMPONENT_TEXT_SIZE.sp, textAlignment: Layout.Alignment = Layout.Alignment.ALIGN_NORMAL, lineCount: Int = Defaults.TEXT_COMPONENT_LINE_COUNT, truncateAt: TextUtils.TruncateAt = TextUtils.TruncateAt.END, margins: Dimensions = Dimensions.Empty, padding: Dimensions = Dimensions.Empty, background: Component? = null, minWidth: TextComponent.MinWidth = TextComponent.MinWidth.fixed()): TextComponent

Creates and remembers a TextComponent.

Link copied to clipboard
fun shadow(radius: Dp, dx: Dp = 0.dp, dy: Dp = 0.dp, color: Color? = null): Shadow

Creates a Shadow.

Link copied to clipboard
fun shapeComponent(color: Color = Color.Black, shape: Shape = Shape.Rectangle, margins: Dimensions = Dimensions.Empty, strokeColor: Color = Color.Transparent, strokeThickness: Dp = 0.dp, shader: DynamicShader? = null, shadow: Shadow? = null): ShapeComponent

Creates a ShapeComponent.