Expand description
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
. - Display
Refresh - 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.
- Draw
Buffer - A buffer of size
N
representingN
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.
- Core
Error - Internal LVGL error.
- Display
Error - 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
- Pointer
Event - Events sent only by pointer-like input devices (e.g. mouse or touchpad)
- Text
Align
Traits§
- Native
Object - 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.