-
public final class ComponentsKt
-
-
Method Summary
Modifier and Type Method Description final static LineComponentrememberLineComponent(Fill fill, Dp thickness, Shape shape, Insets margins, Fill strokeFill, Dp strokeThickness, Shadow shadow)Creates and remembers a LineComponent. final static ShapeComponentshapeComponent(Fill fill, Shape shape, Insets margins, Fill strokeFill, Dp strokeThickness, Shadow shadow)Creates a ShapeComponent. final static ShapeComponentrememberShapeComponent(Fill fill, Shape shape, Insets margins, Fill strokeFill, Dp strokeThickness, Shadow shadow)Creates and remembers a ShapeComponent. final static TextComponentrememberTextComponent(Color color, Typeface typeface, TextUnit textSize, Layout.Alignment textAlignment, TextUnit lineHeight, Integer lineCount, TextUtils.TruncateAt truncateAt, Insets margins, Insets padding, Component background, TextComponent.MinWidth minWidth)Creates and remembers a TextComponent. final static Shadowshadow(Dp radius, Dp x, Dp y, Color color)Creates a Shadow. final static TextComponent.MinWidthfixed(TextComponent.MinWidth.Companion $self, Dp value)A Dp version of TextComponent.MinWidth.fixed. -
-
Method Detail
-
rememberLineComponent
final static LineComponent rememberLineComponent(Fill fill, Dp thickness, Shape shape, Insets margins, Fill strokeFill, Dp strokeThickness, Shadow shadow)
Creates and remembers a LineComponent.
-
shapeComponent
final static ShapeComponent shapeComponent(Fill fill, Shape shape, Insets margins, Fill strokeFill, Dp strokeThickness, Shadow shadow)
Creates a ShapeComponent.
-
rememberShapeComponent
final static ShapeComponent rememberShapeComponent(Fill fill, Shape shape, Insets margins, Fill strokeFill, Dp strokeThickness, Shadow shadow)
Creates and remembers a ShapeComponent.
-
rememberTextComponent
final static TextComponent rememberTextComponent(Color color, Typeface typeface, TextUnit textSize, Layout.Alignment textAlignment, TextUnit lineHeight, Integer lineCount, TextUtils.TruncateAt truncateAt, Insets margins, Insets padding, Component background, TextComponent.MinWidth minWidth)
Creates and remembers a TextComponent.
-
shadow
final static Shadow shadow(Dp radius, Dp x, Dp y, Color color)
Creates a Shadow.
-
fixed
final static TextComponent.MinWidth fixed(TextComponent.MinWidth.Companion $self, Dp value)
A Dp version of TextComponent.MinWidth.fixed.
-
-
-
-