LaserPointerController

The controller responsible for managing laser pointer actions, including touch events, paint settings, and laser path state.

Parameters

defaultPaint

The default paint used for drawing the Laser Pointer.

Properties

Link copied to clipboard
open override val invalidateTick: Int

The invalidate tick used to trigger re-rendering.

Link copied to clipboard
open override val isMultiTouched: Boolean

Gets whether the laser pointer is in a multi-touch state.

Link copied to clipboard

Gets a copy of the laser path list.

Link copied to clipboard

Gets the current paint style.

Link copied to clipboard
open override val touchEvent: ToolTouchEvent

The touch event handler for the laser pointer.

Functions

Link copied to clipboard
fun addLaserPath(value: Path)

Adds a new laser path to the path list.

Link copied to clipboard

Clears all the laser paths.

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 laser pointer.

Link copied to clipboard

Updates the color of the laser pointer.

Link copied to clipboard

Updates the paint style for the laser pointer.

Link copied to clipboard

Updates the stroke width of the laser pointer.