TapeController

Controller responsible for managing tape-related actions, including drawing the tape, handling touch events, and maintaining the state of the tape items.

Parameters

defaultPaint

The default paint used for drawing the tape.

defaultImagePaint

The default paint used for drawing the tape image.

defaultSelectedTapeAlpha

The default alpha value for selected tapes.

defaultCornerRadius

The default corner radius of the tape.

Properties

Link copied to clipboard

Gets the current corner radius for the tape.

Link copied to clipboard

Gets the current paint style for the tape image.

Link copied to clipboard
open override val invalidateTick: Int

The invalidate tick used to trigger re-rendering of the component.

Link copied to clipboard
open override val isMultiTouched: Boolean

Checks if multi-touch mode is active.

Link copied to clipboard
Link copied to clipboard

Gets the current alpha value for selected tape items.

Link copied to clipboard

Gets a map of selected tape items.

Link copied to clipboard

Gets a copy of the list of all tape items.

Link copied to clipboard
open override val touchEvent: ToolTouchEvent

The touch event handler for the tape.

Functions

Link copied to clipboard
fun addTapeItem(value: TapeItem)

Adds a new tape item to the list of tape items.

Link copied to clipboard

Selects or deselects a tape item based on the given point.

Link copied to clipboard

Updates the corner radius for the tape.

Link copied to clipboard
open override fun updateInvalidateTick()

Updates the invalidate tick to trigger a re-render.

Link copied to clipboard

Updates the multi-touch state of the controller.

Link copied to clipboard

Updates the alpha value for selected tape items.

Link copied to clipboard

Updates the color of the tape.

Link copied to clipboard

Updates the color of the tape image.

Link copied to clipboard

Updates the paint style for the tape image.

Link copied to clipboard

Updates the stroke width of the tape image.

Link copied to clipboard

Updates the paint style for the tape.

Link copied to clipboard

Updates the stroke width of the tape.