Skip to main content

Crate rlvgl_core

Crate rlvgl_core 

Source
Expand description

Core runtime types and utilities for the rlvgl UI toolkit.

This crate exposes the building blocks used by higher-level widgets and platform backends. It is intended to be usable in no_std environments and therefore avoids allocations where possible.

Widgets are organized into a tree of WidgetNode values which receive Events and draw themselves via a Renderer implementation.

Note: Event and Renderer are externally supplied types, not defined in this crate.

Re-exports§

pub use plugins::canvas;canvas
pub use plugins::fatfs;fatfs
pub use plugins::fontdue;fontdue
pub use plugins::gif;gif
pub use plugins::apng;apng
pub use plugins::jpeg;jpeg
pub use plugins::lottie;lottie
pub use plugins::nes;nes
pub use plugins::pinyin;pinyin
pub use plugins::png;png
pub use plugins::qrcode;qrcode

Modules§

anim
Tick-driven tween/animation system (deterministic, no wall clock). Tick-driven tween/animation system (ANIM initiative).
animation
Animation primitives: easing, looping, and legacy wall-clock animators.
application
Application trait for self-contained rlvgl applications.
assetfs
Asset path, handle, registry, cache, and source implementations.
bitmap_font
Minimal bitmap font for no_std text rendering.
cmd
Graphics-language layer: structured drawing commands as data. Graphics-language layer: structured drawing commands as data, separable from execution.
draw
Drawing helpers for rounded rectangles and borders. Drawing helpers that compose crate::renderer::Renderer calls to produce rounded rectangles and borders without extending the renderer trait.
edit
Shared edit-state machine (buffer, caret, mutation gates) promoted from rlvgl-ui so that rlvgl-widgets can depend on it without a crate cycle (LPAR-14 §5.C). Shared edit-state machine promoted from rlvgl-ui (LPAR-14 §5.C).
event
Basic UI events used for widgets.
focus
Focus traversal and group policy for the LPAR-04 event/focus runtime. Focus traversal and group policy for the LPAR-04 event/focus runtime.
font
Backend-neutral font metrics, shaping, and greedy wrapping. Backend-neutral font metrics, shaping, and greedy LTR wrapping.
fsfs
Asset loading interfaces for filesystem-backed content.
icon_bitmap
1-bit bitmap icons (folder, file) rendered at font height. 1-bit bitmap icons for the file browser.
image
Image descriptors, blit options, and cache handles. Image descriptor, blit option, and cache-handle primitives.
interface
Traits for hardware abstraction (Display, Input, Time).
invalidation
Shared invalidation planner and present-plan types (LPAR-03). Shared invalidation planner and present-plan types (LPAR-03).
layout
LPAR-10 layout substrate: Dimension, flex/grid engines, LayoutState, and layout pass. LPAR-10 layout substrate: Dimension, flex/grid engines, LayoutState, LayoutPass, and LayoutStyle.
mask
LPAR-08 alpha mask primitives and coverage combinators. Alpha mask primitives for LPAR-08 draw coverage composition.
object
LVGL-parity object metadata and tree helpers. LVGL-parity object metadata and tree helpers.
object_anim
Node-resident object animations; see object_anim::ObjectAnims. Node-resident object animations (LPAR-06 §6).
observer
LPAR-15 value-binding Subject<T> — orthogonal to the LPAR-04 event system. Value-binding Subject<T> for deterministic observer notifications.
packed_font
Variable-width packed font renderer (grayscale anti-aliased). Variable-width packed font renderer for no_std.
plugins
Plugins for optional media formats and UI integrations.
property
LPAR-15 typed property accessor: PropertyValue enum and the Queryable trait. Typed property accessor model for widget introspection.
raster
Anti-aliased rasterization kernels (OBB and helpers) usable by both software and hardware-accelerated Renderer implementations. Anti-aliased rasterization kernels.
renderer
Rendering interface used by widgets.
scroll
LPAR-05 scroll runtime: scroll state, controller, and snap logic. LPAR-05 scroll runtime: state, controller, and snap logic.
style
Visual appearance attributes applied to widgets.
style_cascade
LPAR-07 style cascade substrate: Part, Selector, StylePatch, StyleState, and resolution. LPAR-07 style cascade substrate: Part, Selector, StylePatch, StyleState, InheritedContext, and top-down cascade resolution.
theme
Theme trait and basic implementations.
timer
Tick-driven timer registry; see timer::Timers. Tick-driven timer registry — no_std + alloc, no wall clock (LPAR-06 §5).
widget
Basic widget traits and geometry types.

Structs§

WidgetNode
Node in the widget hierarchy.