Skip to main content

kova_native_core/
lib.rs

1//! Foundation types for Kova Native.
2//!
3//! `kova-native-core` has no knowledge of windows, GPUs or layout. It provides the
4//! vocabulary shared by every other crate: geometry, colors and fills,
5//! identifiers, cheap strings, durations, dirty flags and the fine-grained
6//! reactive runtime that drives invalidation, plus UI-thread timers and
7//! async tasks.
8
9pub mod color;
10pub mod dirty;
11pub mod error;
12pub mod geometry;
13pub mod id;
14pub mod reactive;
15pub mod shared_string;
16pub mod task;
17pub mod time;
18pub mod timer;
19
20pub use color::{Color, ColorStop, Fill, LinearGradient, hsla, linear_gradient, rgb, rgba};
21pub use dirty::Dirty;
22pub use error::{KovaError, KovaResult};
23pub use geometry::{Bounds, Corners, Edges, Point, Size, Transform2D, bounds, point, size};
24pub use id::{ElementId, ImageId};
25pub use reactive::{
26    Memo, Observer, Owner, Signal, batch, effect, memo, on_cleanup, signal, untrack,
27};
28pub use shared_string::SharedString;
29pub use time::{Duration, DurationExt, Instant};