incular-core 0.1.0

Platform-independent foundation types for Incular
Documentation
//! Renderer- and platform-independent primitives shared by Incular.

mod arena;
mod context;
mod geometry;
pub mod hot_reload;
/// Platform-neutral input event values and the standardized keyboard
/// vocabulary. `Key` remains the logical keyboard key inside this module;
/// the crate root re-exports it as [`KeyboardKey`] to avoid colliding with the
/// retained widget-key trait.
pub mod input;
mod key;
pub mod reactivity;
mod restoration;
mod widget;

pub use arena::{Arena, ArenaId};
pub use context::{BuildContext, ConsumerId, ContextGuard, DependencySnapshot};
pub use geometry::{
    ChangeImpact, Color, DirtyFlags, HslColor, HsvColor, Invalidation, Lerp, Offset, Rect, Size,
    Transform, finite_non_negative, finite_or_zero,
};
pub use input::{
    BACK_POINTER_BUTTON, Code, FORWARD_POINTER_BUTTON, ImeEvent, InputEvent, Key as KeyboardKey,
    KeyState, KeyboardEvent, Location, Modifiers, NamedKey, NormalizedPressure,
    PRIMARY_POINTER_BUTTON, PointerDeviceKind, PointerPhase, PointerSampleMetadata,
    SECONDARY_POINTER_BUTTON, StylusMetadata, StylusOrientation, TERTIARY_POINTER_BUTTON,
    TrackpadGesture, TrackpadGestureKind, TrackpadGesturePhase, WindowResizeDirection,
    additional_pointer_button_mask,
};
pub use key::{Key, KeyHandle, KeyId, KeyObject, LocalKey, StringKey, UniqueKey, ValueKey};
pub use restoration::{RestorationBackend, RestorationKey, RestorationKeyError, RestorationScope};
pub use widget::{BuildableWidget, Widget};