Skip to main content

uzor_core/
lib.rs

1//! uzor - Platform-agnostic headless UI engine
2//!
3//! This crate provides a headless UI framework for:
4//! - Geometry calculation and layout
5//! - Input handling and interaction detection
6//! - Widget state management
7//! - Platform abstraction
8//!
9//! Rendering is delegated to platform-specific implementations.
10
11pub mod animation;
12pub mod containers;
13pub mod context;
14pub mod input;
15pub mod layout;
16pub mod platform;
17pub mod state;
18pub mod types;
19pub mod widgets;
20
21pub use context::{Context, ButtonResponse};
22
23// Re-export commonly used types
24pub use animation::AnimationCoordinator;
25pub use types::{IconId, Rect, WidgetId, WidgetState};
26pub use input::{InputState, InputCoordinator, LayerId, ScopedRegion};
27pub use widgets::{IconButtonConfig, IconButtonResponse};
28
29// Re-export all 9 widget type enums at top level
30pub use widgets::{
31    ButtonType, ContainerType, PopupType,
32    PanelType, ToolbarVariant, SidebarVariant, ModalVariant,
33    OverlayType, TextInputType, DropdownType, SliderType, ToastType,
34};