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 display;
20pub mod element;
21pub mod engine;
22pub mod i18n;
23pub mod motion;
24pub mod platform;
25pub mod pod;
26pub mod prelude;
27pub mod renderers;
28pub mod sdf;
29pub mod signal;
30pub mod solver;
31pub mod style;
32pub mod style_ext;
33pub mod svg;
34pub mod theme;
35
36pub use engine::{GestureConfig, VeloxEngine, MAX_DRAW_OPS, MAX_HIT_REGIONS};
37pub use renderers::software as raster;
38pub use signal::{batch, computed, computed_eq, effect, signal, Computed, Effect, Signal};
39pub use theme::{CoreTheme, Theme};