BitmapWidget

open class BitmapWidget @JvmOverloads constructor(bitmap: Bitmap, position: WidgetPosition, marginX: Float, marginY: Float) : Widget

Widget displaying bitmap within specified position and margins.

Parameters

bitmap

bitmap used to draw widget

position

position of widget

marginX

horizontal margin in pixels

marginY

vertical margin in pixels

Constructors

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

Functions

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

Set absolute rotation of widget in angles.

setTranslation
Link copied to clipboard
open override fun setTranslation(translationX: Float, translationY: Float)

Set absolute translation of widget in pixels.

updateBitmap
Link copied to clipboard
fun updateBitmap(bitmap: Bitmap)

Update bitmap widget uses.

Inheritors

CompassWidget
Link copied to clipboard
LogoWidget
Link copied to clipboard