Package-level declarations
Types
Link copied to clipboard
Controller responsible for managing tape-related actions, including drawing the tape, handling touch events, and maintaining the state of the tape items.
Link copied to clipboard
data class TapeItem(val id: String = Uuid.random().toString(), val bound: Rect, val startPoint: Offset, val paint: Paint, val imagePaint: Paint, val path: Path, val imagePath: Path = Path())
Represents a sticky text item that can be attached to the canvas. This class contains properties related to the text, including its position, scaling, and properties.
Functions
Link copied to clipboard
fun rememberTapeController(paint: Paint = defaultTapePaint(), imagePaint: Paint = Paint(), selectedTapeAlpha: Float = 0.2f, tapeCornerRadius: CornerRadius = CornerRadius(10f, 10f)): TapeController
Creates and remembers a TapeController instance.
Link copied to clipboard
fun Modifier.useTapeMode(controller: TapeController, isEnabled: Boolean, onCanvasInvalidate: () -> Unit = { }): Modifier
Modifier extension function to enable or disable tape mode on a canvas.