BitmapWidget

open class BitmapWidget @JvmOverloads constructor(bitmap: Bitmap, originalPosition: WidgetPosition = WidgetPosition { verticalAlignment = WidgetPosition.Vertical.TOP horizontalAlignment = WidgetPosition.Horizontal.LEFT offsetX = 0f offsetY = 0f }) : Widget

Widget displaying bitmap within specified position and margins.

Parameters

bitmap

bitmap used to draw widget

originalPosition

position of widget

Constructors

Link copied to clipboard
fun BitmapWidget(bitmap: Bitmap, position: WidgetPosition = WidgetPosition( vertical = WidgetPosition.Vertical.TOP, horizontal = WidgetPosition.Horizontal.LEFT, ), marginX: Float = 0.0f, marginY: Float = 0.0f)

The deprecated constructor for BitmapWidget.

Link copied to clipboard
fun BitmapWidget(bitmap: Bitmap, position: WidgetPosition = WidgetPosition( vertical = WidgetPosition.Vertical.TOP, horizontal = WidgetPosition.Horizontal.LEFT, ), marginX: Float = 0.0f)

The deprecated constructor for BitmapWidget.

Link copied to clipboard
fun BitmapWidget(bitmap: Bitmap, originalPosition: WidgetPosition = WidgetPosition { verticalAlignment = WidgetPosition.Vertical.TOP horizontalAlignment = WidgetPosition.Horizontal.LEFT offsetX = 0f offsetY = 0f })

Functions

Link copied to clipboard
open override fun getPosition(): WidgetPosition

Get the current position of the widget.

Link copied to clipboard
open override fun getRotation(): Float

Get absolute rotation of widget in degrees.

Link copied to clipboard
open override fun setPosition(widgetPosition: WidgetPosition)

Update the widget to the new position.

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

Set the absolute rotation of widget in degrees.

Link copied to clipboard
fun updateBitmap(bitmap: Bitmap)

Update bitmap widget uses.

Inheritors

Link copied to clipboard
Link copied to clipboard