Crate lvgl

Source
Expand description

githubcrates-iodocs-rs


LVGL bindings for Rust. A powerful and easy-to-use embedded GUI with many widgets, advanced visual effects, and low memory footprint. This crate is compatible with #![no_std] environments by default.

Modules§

drivers
Logic for interoperability with the lv_drivers project.
font
LVGL font handling logic and helper structures.
input_device
Input driver logic and handling
obj
Native LVGL objects
style
Styling for LVGL objects and widgets
widgets
Widget-specific features

Macros§

lv_drv_disp_drm
lv_drv_disp_fbdev
lv_drv_disp_gc9a01
lv_drv_disp_gtk
lv_drv_disp_ili9341
lv_drv_disp_r61581
lv_drv_disp_sdl
lv_drv_disp_sharp_mip
lv_drv_disp_ssd1963
lv_drv_disp_st7565
lv_drv_disp_uc1610
lv_drv_input_ad_touch
lv_drv_input_ft5406ee8
lv_drv_input_pointer_evdev
lv_drv_input_pointer_gtk
lv_drv_input_pointer_sdl
lv_drv_input_xpt2046

Structs§

Area
Represents a sub-area of the display that is being updated.
Color
An LVGL color. Equivalent to lv_color_t.
Display
An LVGL-registered display. Equivalent to an lv_disp_t.
DisplayRefresh
An update to the display information, contains the area that is being updated and the color of the pixels that need to be updated. The colors are represented in a contiguous array.
DrawBuffer
A buffer of size N representing N pixels. N can be smaller than the entire number of pixels on the screen, in which case the screen will be drawn to multiple times per frame.
Obj
Generic LVGL object.

Enums§

Align
Possible LVGL alignments for widgets.
Animation
Boolean for determining whether animations are enabled.
CoreError
Internal LVGL error.
DisplayError
Error in interacting with a Display.
Event
Events are triggered in LVGL when something happens which might be interesting to the user, e.g. if an object:
LvError
Generic LVGL error. All other errors can be coerced into it.
Part
PointerEvent
Events sent only by pointer-like input devices (e.g. mouse or touchpad)
TextAlign

Traits§

NativeObject
Represents a native LVGL object.
Widget
A wrapper for all LVGL common operations on generic objects.

Functions§

event_send
Directly send an event to a specific widget.
task_handler
Calls the LVGL timer handler. This function should be called periodically.
tick_inc
Runs an LVGL tick lasting a given core::time::Duration. This function should be called periodically.

Type Aliases§

LvResult