Sdl2

expect object Sdl2

Covers all functionality with the SDL 2 display backend.

actual object Sdl2

Functions

Link copied to clipboard
expect fun createDisplay(enableDblBuffer: Boolean): Triple<DisplayDrawBuffer, DisplayDriver, Display>

Creates a display (includes the display buffer and driver) for output via the SDL 2 backend.

actual fun createDisplay(enableDblBuffer: Boolean): Triple<DisplayDrawBuffer, DisplayDriver, Display>
Link copied to clipboard
expect fun createDisplayDriver(drawBuf: DisplayDrawBuffer, init: DisplayDriver.() -> Unit): DisplayDriver

Creates the display driver that uses the SDL 2 display backend.

actual fun createDisplayDriver(drawBuf: DisplayDrawBuffer, init: DisplayDriver.() -> Unit): DisplayDriver
Link copied to clipboard
expect fun flush(displayDriver: DisplayDriver, area: Area, color: Color)

Refreshes the display via SDL 2.

actual fun flush(displayDriver: DisplayDriver, area: Area, color: Color)
Link copied to clipboard
expect fun initHal(enableDblBuffer: Boolean): Triple<DisplayDrawBuffer, DisplayDriver, Display>

Initializes the HAL (Hardware Abstraction Layer) for LVGL. It is strongly recommended that this function is used since it automates many tasks. Remember to call io.gitlab.embedSoft.lvglKt.core.initLvgl before using this function.

actual fun initHal(enableDblBuffer: Boolean): Triple<DisplayDrawBuffer, DisplayDriver, Display>