Bitmap Widget
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
original Position
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
Get the current position of the widget.
Link copied to clipboard
Get absolute rotation of widget in degrees.
Link copied to clipboard
Update the widget to the new position.
Link copied to clipboard
Set the absolute rotation of widget in degrees.
Link copied to clipboard
Update bitmap widget uses.