Package io.gitlab.embedSoft.lvglKt.drivers

Types

Link copied to clipboard
expect class Display

Represents a physical display device (eg a Touchscreen).

actual class Display
actual class Display
Link copied to clipboard
expect object FrameBuffer

Covers all functionality with the Frame Buffer display backend.

actual object FrameBuffer
actual object FrameBuffer
Link copied to clipboard
expect class Theme

Represents a collection of styles that are applied to a display.

actual class Theme
actual class Theme
Link copied to clipboard
expect class ThemeCallback : Closable

Represents a theme callback.

actual class ThemeCallback : Closable
actual class ThemeCallback : Closable

Functions

Link copied to clipboard
expect fun DisplayDriver.register(): Display

Register an initialized display driver. Automatically set the first display as active.

actual fun DisplayDriver.register(): Display
actual fun DisplayDriver.register(): Display
Link copied to clipboard
expect fun scalePixels(pixels: Short): Short

Scale the given number of pixels (a distance or size) relative to a 160 DPI display considering the DPI of the default display. It ensures that e.g. lv_dpx(100) will have the same physical size regardless to the DPI of the display.

actual fun scalePixels(pixels: Short): Short
actual fun scalePixels(pixels: Short): Short
toDisplay
Link copied to clipboard
fun CPointer<lv_disp_t>?.toDisplay(): Display
fun CPointer<lv_disp_t>?.toDisplay(): Display
toTheme
Link copied to clipboard
fun CPointer<lv_theme_t>?.toTheme(): Theme
fun CPointer<lv_theme_t>?.toTheme(): Theme