Skip to main content

Crate mgui_core

Crate mgui_core 

Source

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 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 gesture::DoubleTapGestureRecognizer;
pub use gesture::GestureArena;
pub use gesture::GestureRecognizer;
pub use gesture::PanGestureRecognizer;
pub use gesture::TapGestureRecognizer;
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 paint::effect_flags;
pub use paint::LayerEffect;
pub use paint::PaintCommand;
pub use paint::PaintList;
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::take_any_signal_set;
pub use reactive::take_dirty;
pub use reactive::untracked;
pub use reactive::Effect;
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 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::ClipboardProvider;
pub use clipboard::NoopClipboard;

Modules§

animation
动画系统 —— 原 mgui-animation crate,已合入 mgui-core
arena
clipboard
T1-4:剪贴板抽象 — 纯 trait,无依赖无 unsafe
composition
Layer 合成数学 — GPU 与 CPU 软件光栅器共用。
element
简化版 Element 树 — 阶段 3
error_boundary
阶段 4-A4:ErrorBoundary — 子树 build panic 隔离
events
核心事件类型 —— 原 mgui-events crate,已合入 mgui-core
frame
框架级帧管线:统一所有宿主的 CPU 帧顺序。
geometry
几何类型 —— 原 mgui-geometry crate,已合入 mgui-core
gesture
手势系统(设计文档 § 15)
id
image
图片基础设施(阶段 6:图片渲染)
inherited
阶段 4-A:InheritedWidget + BuildContext
inspect
只读 introspection — 供 Inspector / 诊断工具读取 Element、Layer 与 bounds。
layout
布局 Widget & RenderObject
paint
绘制命令 + Layer 效果 —— 原 mgui-paint crate,已合入 mgui-core
reactive
响应式系统 —— 原 mgui-reactive crate,已合入 mgui-core
render_object
RenderObject 子系统
semantics
语义层 — 平台无关的无障碍抽象
theme
阶段 4-A:Theme + Direction — 第一个 InheritedWidget 用例
widget
Widget 子系统

Traits§

Key
Key used to access stored values in a slot map.