Package 

Class SketchbookKt

  • All Implemented Interfaces:

    
    public final class SketchbookKt
    
                        
    • 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 Sketchbook(Modifier modifier, SketchbookController controller, Color backgroundColor, ImageBitmap imageBitmap, Function2<Float, Float, Unit> onEventListener, Function2<Boolean, Boolean, Unit> onRevisedListener) Sketchbook is a canvas implementation to draw paths with custom properties.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • Sketchbook

         final static Unit Sketchbook(Modifier modifier, SketchbookController controller, Color backgroundColor, ImageBitmap imageBitmap, Function2<Float, Float, Unit> onEventListener, Function2<Boolean, Boolean, Unit> onRevisedListener)

        Sketchbook is a canvas implementation to draw paths with custom properties.

        SketchbookController allows you to control the Sketchbook.

        Parameters:
        modifier - Modifier to decorate the canvas.
        controller - SketchbookController to control the Sketchbook.
        backgroundColor - A background color to be used erasing colored paths.
        imageBitmap - An ImageBitmap to draw on the canvas as a background.
        onEventListener - An event listener to track drawing paths.
        onRevisedListener - A listener to track whether can execute undo or redo.