Resizer

class Resizer(view: View, manageCursor: Boolean = true, var movable: Boolean = true, during: Resizer.Phase = EventBubbling) : PointerListener, PointerMotionListener

Utility for resizing/moving a View. It supports compass direction resizing and dragging.

Parameters

view

to be resized/moved

manageCursor

indicates whether the cursor should be updated by the Resizer

movable

indicates whether the Resizer will handle drag events to move view

during

Phase during which the Resizer is triggered. EventSinking allows the Resizer to get events before the View and its children

Constructors

Link copied to clipboard
constructor(view: View, manageCursor: Boolean = true, movable: Boolean = true, during: Resizer.Phase = EventBubbling)

Types

Link copied to clipboard

Event phase when a Resizer will trigger

Properties

Link copied to clipboard

Set of directions the Resizer will resize its View in.

Link copied to clipboard

Size of the resize zone when adjusting the View's width/height.

Link copied to clipboard
Link copied to clipboard

Determines whether pointer release events are consumed when the Resizer has done a drag.

Functions

Link copied to clipboard
open override fun dragged(event: PointerEvent)

Informs listener that the pointer has been dragged.

Link copied to clipboard
open override fun entered(event: PointerEvent)

Informs listener that the pointer has entered the source.

Link copied to clipboard
open override fun exited(event: PointerEvent)

Informs listener that the pointer has exited the source.

Link copied to clipboard
open override fun moved(event: PointerEvent)

Informs listener that the pointer has been moved while over the source.

Link copied to clipboard
open override fun pressed(event: PointerEvent)

Informs listener that the pointer was pressed.

Link copied to clipboard
open override fun released(event: PointerEvent)

Informs listener that the pointer was released.

Inherited functions

Link copied to clipboard
open fun clicked(event: PointerEvent)

Informs listener that the pointer was "clicked": pressed and released inside the same target.