Skip to main content

mkapk_core/
lib.rs

1//! Core types for the plugin GUI framework: geometry, color, paint commands,
2//! widget tree, layout, events, animation, and accessibility metadata.
3#![no_std]
4#![deny(unsafe_code)]
5
6extern crate alloc;
7
8pub mod accessibility;
9pub mod animation;
10pub mod color;
11pub mod event;
12pub mod geometry;
13pub mod layout;
14pub mod paint;
15pub mod transform;
16pub mod tree;
17pub mod units;
18pub mod widget;
19
20#[cfg(feature = "gpu-surface")]
21pub mod widgets;
22
23pub use accessibility::{AccessibilityNode, AccessibilityTree, Role, State};
24pub use animation::{
25    Animatable, Animation, AnimationController, AnimationCurve, AnimationEvent, AnimationId,
26    AnimationState, AnimationTick,
27};
28pub use color::{BLACK, BLUE, Color, GREEN, RED, TRANSPARENT, WHITE};
29pub use event::{
30    Event, EventDispatcher, EventResponse, KeyCode, KeyEvent, Modifiers, MouseButton, MouseEvent,
31    PointerEvent,
32};
33pub use geometry::{Insets, Insetsf, Point, Pointf, Rect, Rectf, Size, Sizef};
34pub use layout::{Alignment, LayoutBox, LayoutDirection, LayoutEngine, LayoutNode, LayoutResult};
35pub use paint::{ColorStop, CommandList, ImageId, PaintCommand, RenderBackend, TextLayoutId};
36pub use transform::Transform;
37pub use tree::{TraverseOrder, Tree};
38pub use units::{Dp, Px};
39pub use widget::{LayoutConstraints, Widget, WidgetId, downcast_widget_mut, downcast_widget_ref};
40
41#[cfg(feature = "gpu-surface")]
42pub use widgets::gpu_surface::{D3D11Context, GpuContext, GpuSurface, MetalContext};