Skip to main content

Crate graphics

Crate graphics 

Source

Re-exports§

pub use theme::RenderingMode;
pub use lvgl_rust;

Modules§

appearance
Per-user appearance preferences: theme and screen brightness. Record layouts and preset IDs are stable on disk; version 1 records, which have no brightness, still load at full brightness, and a saved brightness outside the allowed range is clamped on load instead of rejecting the record.
call
The graphics call executor: one service behind every way a program reaches the UI.
fonts
headless_screen
A screen device that validates flushes without presenting pixels.
invalidation
Attribution of invalidated areas, for rendering telemetry.
lvgl
macros
palette
stubs
symbol
theme
Xila’s integration of the shared lvgl_theme_shadcn theme.

Macros§

lock

Structs§

Area
Inclusive rectangular drawing area defined by two corner Points.
Buffer
An LVGL draw buffer: len pixels in the rendering colour format, aligned to DRAW_BUFFER_ALIGNMENT.
ClassWrapper
ColorARGB8888
ColorRGB565
ColorRGB888
ColorRGBA8888
Display
Event
An event a window queued for one of its objects.
FilePicker
GET_BRIGHTNESS
GET_RESOLUTION
GraphicsGuard
Holds the process-wide graphics lock. Use Self::with_lvgl to run operations that need a session. A guard can move between threads, and only one thread can use it at a time.
Input
InputData
Logo
A logo that deletes its LVGL object on drop.
LogoArmPose
Visual state of one arm in an animated logo.
LogoPose
Per-piece animation state, stored inline in the logo object.
Manager
OwnedWindow
The single owner of a Window: it deletes the window when dropped.
Point
A 2D coordinate or resolution (x, y) in screen pixels.
SET_BRIGHTNESS
SET_DRAWING_AREA
ScreenSnapshot
An owned RGBA8888 copy of the active screen.
ScreenshotDimensions
ScreenshotRequest
UiButton
UiElement
A bounded, pointer-free description of one LVGL object.
UiStyle
UiTreeSnapshot
One bounded UI-tree snapshot and whether additional objects were omitted.
WAS_RESIZED
WRITE_SCREENSHOT_TO_PATH
Window
An LVGL object that queues the events of its widgets for one consumer.

Enums§

Error
EventKind
FilePickerMode
FilePickerStatus
InputKind
Key
LogoStyle
How the arms and the center square are painted.
State

Constants§

BRIGHTNESS_FULL
Full backlight brightness, the level of every screen at start-up.
BRIGHTNESS_OFF
Brightness level that turns the backlight off.
DRAW_BUFFER_ALIGNMENT
Alignment of the start of a draw buffer, in bytes. LVGL refuses buffers that are not aligned to LV_DRAW_BUF_ALIGN (include/lv_conf.h), which must not exceed this.
SCREENSHOT_PATH_MAX_BYTES
SCREEN_SNAPSHOT_MAX_PIXELS
Maximum active-screen area accepted by crate::Manager::capture_screen.
UI_TREE_MAX_DEPTH
UI_TREE_MAX_ELEMENTS
Bounds for UI tree snapshots. These limits keep diagnostics safe on small targets.
WINDOW_EVENT_QUEUE_CAPACITY
Regular event slots. A pending close request uses a separate slot.

Functions§

ffi_manager
Resolve the graphics capability at an FFI callback boundary.
get_file_picker_class
get_minimal_buffer_size
get_recommended_buffer_size
initialize
initialize_with_input_devices
Initialize graphics with zero or more physical input devices. Graphics-owned virtual pointer and keypad devices are always installed for subsystem input.
set_ffi_manager
Register the manager used by C/wasm callbacks that cannot carry Rust references.
try_ffi_manager
Return the graphics capability when initialized, without panicking during startup.

Type Aliases§

Color
RenderingColor
Result