Package 

Class ComponentsKt

    • Method Summary

      Modifier and Type Method Description
      final static LineComponent lineComponent(Color color, Dp thickness, Shape shape, DynamicShader dynamicShader, Dimensions margins, Dp strokeWidth, Color strokeColor) Creates a LineComponent with the specified properties.
      final static LineComponent lineComponent(Color color, Dp thickness, Shape shape, DynamicShader dynamicShader, Dimensions margins, Dp strokeWidth, Color strokeColor) Creates a LineComponent with the specified properties.
      final static ShapeComponent shapeComponent(Shape shape, Color color, DynamicShader dynamicShader, Dimensions margins, Dp strokeWidth, Color strokeColor) Creates a ShapeComponent with the specified properties.
      final static ShapeComponent shapeComponent(Shape shape, Color color, DynamicShader dynamicShader, Dimensions margins, Dp strokeWidth, Color strokeColor) Creates a ShapeComponent with the specified properties.
      final static ShapeComponent shapeComponent(Shape shape, Color color, Brush brush, Dimensions margins, Dp strokeWidth, Color strokeColor) Creates a ShapeComponent with the specified properties.
      final static OverlayingComponent overlayingComponent(Component outer, Component inner, Dp innerPaddingStart, Dp innerPaddingTop, Dp innerPaddingBottom, Dp innerPaddingEnd) Creates an OverlayingComponent.
      final static OverlayingComponent overlayingComponent(Component outer, Component inner, Dp innerPaddingAll) Creates an OverlayingComponent.
      final static TextComponent textComponent(Color color, TextUnit textSize, ShapeComponent background, TextUtils.TruncateAt ellipsize, Integer lineCount, MutableDimensions padding, MutableDimensions margins, Typeface typeface, Paint.Align textAlign) Creates a TextComponent.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • lineComponent

        @Composable() final static LineComponent lineComponent(Color color, Dp thickness, Shape shape, DynamicShader dynamicShader, Dimensions margins, Dp strokeWidth, Color strokeColor)

        Creates a LineComponent with the specified properties.

      • lineComponent

        @Composable() final static LineComponent lineComponent(Color color, Dp thickness, Shape shape, DynamicShader dynamicShader, Dimensions margins, Dp strokeWidth, Color strokeColor)

        Creates a LineComponent with the specified properties.

      • shapeComponent

        @Composable() final static ShapeComponent shapeComponent(Shape shape, Color color, DynamicShader dynamicShader, Dimensions margins, Dp strokeWidth, Color strokeColor)

        Creates a ShapeComponent with the specified properties.

      • shapeComponent

        @Composable() final static ShapeComponent shapeComponent(Shape shape, Color color, DynamicShader dynamicShader, Dimensions margins, Dp strokeWidth, Color strokeColor)

        Creates a ShapeComponent with the specified properties.

      • shapeComponent

        @Composable() final static ShapeComponent shapeComponent(Shape shape, Color color, Brush brush, Dimensions margins, Dp strokeWidth, Color strokeColor)

        Creates a ShapeComponent with the specified properties.

      • overlayingComponent

        @Composable() final static OverlayingComponent overlayingComponent(Component outer, Component inner, Dp innerPaddingStart, Dp innerPaddingTop, Dp innerPaddingBottom, Dp innerPaddingEnd)

        Creates an OverlayingComponent.

        Parameters:
        outer - the outer (background) Component.
        inner - the inner (foreground) Component.
      • overlayingComponent

        @Composable() final static OverlayingComponent overlayingComponent(Component outer, Component inner, Dp innerPaddingAll)

        Creates an OverlayingComponent.

        Parameters:
        outer - the outer (background) Component.
        inner - the inner (foreground) Component.
        innerPaddingAll - the padding between the inner and outer components.
      • textComponent

        @Composable() final static TextComponent textComponent(Color color, TextUnit textSize, ShapeComponent background, TextUtils.TruncateAt ellipsize, Integer lineCount, MutableDimensions padding, MutableDimensions margins, Typeface typeface, Paint.Align textAlign)

        Creates a TextComponent.

        Parameters:
        color - the text color.
        textSize - the text size.
        background - an optional ShapeComponent to display behind the text.
        ellipsize - the text truncation behavior.
        lineCount - the line count.
        padding - the padding between the text and the background.
        margins - the margins around the background.
        typeface - the Typeface for the text.
        textAlign - the text alignment.