Package 

Class PaintColorPaletteKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Unit PaintColorPalette(Modifier modifier, SketchbookController controller, List<Color> colorList, PaintColorPaletteTheme theme, Integer initialSelectedIndex, Function2<Integer, Color, Unit> onColorSelected, Function0<Unit> header, Function2<Integer, Color, Unit> content, Function0<Unit> footer) PaintColorPalette provides a list of color palette.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • PaintColorPalette

        @Composable() final static Unit PaintColorPalette(Modifier modifier, SketchbookController controller, List<Color> colorList, PaintColorPaletteTheme theme, Integer initialSelectedIndex, Function2<Integer, Color, Unit> onColorSelected, Function0<Unit> header, Function2<Integer, Color, Unit> content, Function0<Unit> footer)

        PaintColorPalette provides a list of color palette. With SketchbookController it will take and apply the selected color to the Sketchbook automatically.

        Parameters:
        modifier - Modifier to decorate the color palette.
        controller - SketchbookController to bind Sketchbook.
        colorList - List of color-palette to show them as a row.
        theme - A theme that has a collection parameters to customize PaintColorPalette.
        initialSelectedIndex - Sets a selected index initially.
        onColorSelected - Listener to track a selected Color.
        content - Custom content to build the palette item.