Arrow

An arrow ui element

You may adjust the arrow head length, arrow body width and length and the arrow direction

The arrow size is defined by its width and height using setWidth and setHeight

Supported transformations: Scale, Rotate, Translate

Constructors

Link copied to clipboard
constructor()
constructor(id: String)

Functions

Link copied to clipboard

Return the direction of the arrow

Link copied to clipboard
open override fun rotate(angleDegrees: Float): UIElement

Sets the rotation angle for the ui element

Link copied to clipboard
fun setArrowBodyInfo(length: Float, width: Float): Arrow

Define the arrow body width and length

Link copied to clipboard

Define the arrow head length

Link copied to clipboard
fun setDirection(direction: Direction): Arrow

Define the initial direction of the arrow