Skip to main content

velox_engine/
lib.rs

1//! # Velox Core
2//!
3//! 跨平台桌面、移动端与 WebAssembly 轻量 UI 引擎内核。
4//!
5//! 提供:
6//! - 帧级瞬态内存管理(`ScratchArena`、`SmallVec`、`StrRef`、`fmt!`);
7//! - 状态槽位与局部重绘边界(`PodPool`、`Handle<T>`、`View`、`Widget`);
8//! - `div()` + Tailwind 风格 24 字节紧凑样式构建器(`Style`、`Styled`);
9//! - `i16` 四步一维解耦线性弹性布局求解器(`Two-Pass Axis Solver`);
10//! - 跨帧过渡动画插值池(`MotionCache`)与定长 8 槽位脏矩形合并器(`DamageTracker`);
11//! - 跨平台窗口与事件层([`platform`]:`testing`、`wayland`、`winit`、`mobile`、`web`);
12//! - 双渲染器层([`renderers`]:内置多核 `software` 与默认 `gpu` 自研轻量级 `wgpu` 2D SDF 渲染器)。
13
14pub mod a11y;
15pub mod app;
16pub mod arena;
17pub mod async_rt;
18pub mod damage;
19pub mod devtools;
20pub mod display;
21pub mod element;
22pub mod engine;
23pub mod i18n;
24pub mod image_pipeline;
25pub mod keymap;
26pub mod motion;
27pub mod paint;
28pub mod platform;
29pub mod pod;
30pub mod prelude;
31pub mod renderers;
32pub mod sdf;
33pub mod signal;
34pub mod solver;
35pub mod style;
36pub mod style_ext;
37pub mod svg;
38pub mod text_rich;
39pub mod theme;
40pub mod vector_canvas;
41
42pub use engine::{GestureConfig, VeloxEngine, MAX_DRAW_OPS, MAX_HIT_REGIONS};
43pub use renderers::software as raster;
44pub use signal::{batch, computed, computed_eq, effect, signal, Computed, Effect, Signal};
45pub use theme::{CoreTheme, Theme};