Skip to main content

set_display_rendering_mode

Function set_display_rendering_mode 

Source
pub unsafe fn set_display_rendering_mode(
    display: *mut lv_display_t,
    mode: RenderingMode,
) -> Result<()>
Expand description

Select the rendering mode of the theme on display.

The mode is shared by every display. Objects created from now on follow it, and so do the objects that display already shows: leaving light mode gives them back the theme’s look.

§Safety

display must be live and the caller must hold the LVGL lock.