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

marginX

horizontal margin in pixels

marginY

vertical margin in pixels

position

position of widget

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)
bitmap used to draw widget

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
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.
toString
Link copied to clipboard
open fun toString(): String
updateBitmap
Link copied to clipboard
fun updateBitmap(bitmap: Bitmap)
Update bitmap widget uses.

Inheritors

CompassWidget
Link copied to clipboard
LogoWidget
Link copied to clipboard