Bitmap Widget
open class BitmapWidget @JvmOverloads constructor(bitmap: Bitmap, position: WidgetPosition) : Widget
Content copied to clipboard
Widget displaying bitmap within specified position and margins.
Parameters
bitmap
bitmap used to draw widget
position
position of widget
Constructors
BitmapWidget
Link copied to clipboard
Content copied to clipboard
The deprecated constructor for BitmapWidget.
BitmapWidget
Link copied to clipboard
Content copied to clipboard
The deprecated constructor for BitmapWidget.
BitmapWidget
Link copied to clipboard
fun BitmapWidget(bitmap: Bitmap, position: WidgetPosition = WidgetPosition {
verticalAlignment = WidgetPosition.Vertical.TOP
horizontalAlignment = WidgetPosition.Horizontal.LEFT
offsetX = 0f
offsetY = 0f
})
Content copied to clipboard
Functions
get Position
Link copied to clipboard
Get the current position of the widget.
get Rotation
Link copied to clipboard
Get absolute rotation of widget in degrees.
set Position
Link copied to clipboard
Update the widget to the new position.
set Rotation
Link copied to clipboard
Set the absolute rotation of widget in degrees.
set Translation
Link copied to clipboard
Content copied to clipboard
Set the translation of the widget in pixels, relative to it's current position.
update Bitmap
Link copied to clipboard
Update bitmap widget uses.