Re-exports§
pub use events::GestureState;pub use events::KeyCode;pub use events::KeyModifiers;pub use events::MouseButton;pub use events::PointerData;pub use events::WidgetEvent;pub use events::DOUBLE_TAP_TIMEOUT_MS;pub use events::LONG_PRESS_TIMEOUT_MS;pub use events::TOUCH_SLOP;pub use geometry::Axis;pub use geometry::Color;pub use geometry::Point;pub use geometry::RRectDef;pub use geometry::Rect;pub use geometry::Size;pub use geometry::Transform2D;pub use animation::tick_animation;pub use animation::AnimationController;pub use animation::AnimationStatus;pub use animation::Curve;pub use animation::Repeat;pub use animation::TickOutcome;pub use cache_stats::CacheInvalidationReason;pub use cache_stats::CacheStats;pub use composition::resolve_layer_compositions;pub use composition::Affine2D;pub use composition::ClipShape;pub use composition::CompositionScratch;pub use composition::LayerComposition;pub use element::paint_frame;pub use element::Element;pub use element::ElementTree;pub use element::FramePaint;pub use element::Layer;pub use element::LayerPaint;pub use element::LayerTree;pub use element::OverlayHandle;pub use error_boundary::ErrorBoundaryRenderObject;pub use error_boundary::ErrorBoundaryState;pub use error_boundary::ErrorBoundaryWidget;pub use error_boundary::FallbackBuilder;pub use error_boundary::PanicStateWidget;pub use error_boundary::PanicWidget;pub use form::FormState;pub use form::SubmitState;pub use gesture::DoubleTapGestureRecognizer;pub use gesture::GestureArena;pub use gesture::GestureRecognizer;pub use gesture::PanGestureRecognizer;pub use gesture::TapGestureRecognizer;pub use grapheme::byte_to_grapheme_col;pub use grapheme::floor_grapheme_boundary;pub use grapheme::grapheme_byte_offsets;pub use grapheme::grapheme_col_to_byte;pub use grapheme::grapheme_count;pub use grapheme::next_grapheme_boundary;pub use grapheme::prev_grapheme_boundary;pub use id::ElementId;pub use id::LayerId;pub use id::RenderObjectId;pub use image::BoxFit;pub use image::ImageData;pub use inherited::BuildContext;pub use inherited::InheritedWidget;pub use live::LiveHandle;pub use live::LiveOutcome;pub use live::LivePhase;pub use live::LiveReason;pub use live::LiveSession;pub use load::LoadState;pub use load::LoadStatus;pub use paint::effect_flags;pub use paint::LayerEffect;pub use paint::PaintCommand;pub use paint::PaintList;pub use paint::PendingTexture;pub use paint::TextureFrameMeta;pub use property::Lerp;pub use property::PropertyTrack;pub use property::Spring;pub use property::SpringTrack;pub use property::Track;pub use query::MutationState;pub use query::QueryKey;pub use query::QueryPhase;pub use query::QueryState;pub use query::QueryTicket;pub use reactive::any_signal_epoch;pub use reactive::batch;pub use reactive::enter_subscriber;pub use reactive::exit_subscriber;pub use reactive::mark_dirty;pub use reactive::new_signal_id;pub use reactive::new_subscriber_id;pub use reactive::peek_dependency_count;pub use reactive::take_any_signal_set;pub use reactive::take_dirty;pub use reactive::untracked;pub use reactive::with_subscriber;pub use reactive::Effect;pub use reactive::HostSubscriber;pub use reactive::Memo;pub use reactive::Signal;pub use reactive::SignalId;pub use reactive::SubscriberId;pub use render_object::BoxConstraints;pub use render_object::ClipRRectRenderObject;pub use render_object::ColumnRenderObject;pub use render_object::LayerProxyRenderObject;pub use render_object::LayoutContext;pub use render_object::OpacityRenderObject;pub use render_object::PaddingRenderObject;pub use render_object::PositionedRenderObject;pub use render_object::RRectRenderObject;pub use render_object::RenderObject;pub use render_object::StackRenderObject;pub use render_object::StateApply;pub use render_object::TransformRenderObject;pub use semantics::LiveRegion;pub use semantics::SemanticsData;pub use semantics::SemanticsNumericValue;pub use semantics::SemanticsRole;pub use semantics::VirtualSemanticItem;pub use semantics::VirtualTextRun;pub use semantics::WidgetSemantics;pub use text_edit::delete_after;pub use text_edit::delete_before;pub use text_edit::delete_selection;pub use text_edit::move_selection;pub use text_edit::replace_selection;pub use text_edit::PreeditState;pub use text_edit::TextBuffer;pub use text_edit::TextEdit;pub use text_edit::TextMove;pub use text_edit::TextSelection;pub use widget::children_equivalent;pub use widget::optional_child_equivalent;pub use widget::RRectWidget;pub use widget::StackWidget;pub use widget::State;pub use widget::StatefulWidget;pub use widget::TooltipPlacement;pub use widget::Widget;pub use widget::WidgetNode;pub use clipboard::ClipboardHandle;pub use clipboard::ClipboardImage;pub use clipboard::ClipboardProvider;pub use clipboard::NoopClipboard;
Modules§
- animation
- 动画系统 —— 原 mgui-animation crate,已合入 mgui-core
- arena
- cache_
stats - GPU layer cache 可观测契约(0.6 M3 / DT-06)。
- clipboard
- 剪贴板抽象 — 纯 trait + 可克隆句柄,无第三方依赖、无 unsafe。
- composition
- Layer 合成数学 — GPU 与 CPU 软件光栅器共用。
- devtools_
trace - Devtools 环形缓冲基础设施:push / peek / clear / enabled 开关 / 共享单调时钟。
- element
- 简化版 Element 树 — 阶段 3
- error_
boundary - 阶段 4-A4:ErrorBoundary — 子树 build panic 隔离
- event_
log - DT-01 事件与焦点日志:环形缓冲记录事件路由、焦点转移、命中链、消费者。
- events
- 核心事件类型 —— 原 mgui-events crate,已合入 mgui-core
- form
- 表单校验的纯状态机(无 UI / 无响应式依赖)。
- frame
- 框架级帧管线:统一所有宿主的 CPU 帧顺序。
- frame_
timeline - DT-03 统一帧时间线:把 CPU frame pipeline / GPU timestamp query 与 任意扩展轨道对齐到同一条单调时间轴。
- geometry
- 几何类型 —— 原 mgui-geometry crate,已合入 mgui-core
- gesture
- 手势系统(设计文档 § 15)
- grapheme
- Grapheme cluster 边界工具 —— 编辑器/输入框的选择、删除、左右移动共用同一套边界。
- id
- image
- 图片基础设施(阶段 6:图片渲染)
- inherited
- 阶段 4-A:InheritedWidget + BuildContext
- inspect
- 只读 introspection — 供 Inspector / 诊断工具读取 Element、Layer 与 bounds。
- layout
- 布局 Widget & RenderObject
- live
live_only临时呈现事务(0.5 M1)。- load
- 异步数据状态约定:
Loading / Ready / Error(+ 带旧数据的Refreshing)。 - paint
- 绘制命令 + Layer 效果 —— 原 mgui-paint crate,已合入 mgui-core
- property
- 属性轨道(独立属性动画一期)—— 呈现值轨道,不经过 Signal / rebuild。
- query
- 异步 query/mutation 的纯状态机(无执行器、无线程、无 wgpu/winit 依赖)。
- reactive
- 响应式系统 —— 原 mgui-reactive crate,已合入 mgui-core
- render_
object - RenderObject 子系统
- semantics
- 语义层 — 平台无关的无障碍抽象
- text_
edit - 共用文本编辑契约 —— buffer / selection / preedit 的单一语义来源。
- theme
- 阶段 4-A:Theme + Direction — 第一个 InheritedWidget 用例
- widget
- Widget 子系统
Traits§
- Key
- Key used to access stored values in a slot map.