Skip to main content

Crate kova_native_core

Crate kova_native_core 

Source
Expand description

Foundation types for Kova Native.

kova-native-core has no knowledge of windows, GPUs or layout. It provides the vocabulary shared by every other crate: geometry, colors and fills, identifiers, cheap strings, durations, dirty flags and the fine-grained reactive runtime that drives invalidation, plus UI-thread timers and async tasks.

Re-exports§

pub use color::Color;
pub use color::ColorStop;
pub use color::Fill;
pub use color::LinearGradient;
pub use color::hsla;
pub use color::linear_gradient;
pub use color::rgb;
pub use color::rgba;
pub use dirty::Dirty;
pub use error::KovaError;
pub use error::KovaResult;
pub use geometry::Bounds;
pub use geometry::Corners;
pub use geometry::Edges;
pub use geometry::Point;
pub use geometry::Size;
pub use geometry::Transform2D;
pub use geometry::bounds;
pub use geometry::point;
pub use geometry::size;
pub use id::ElementId;
pub use id::ImageId;
pub use reactive::Memo;
pub use reactive::Observer;
pub use reactive::Owner;
pub use reactive::Signal;
pub use reactive::batch;
pub use reactive::effect;
pub use reactive::memo;
pub use reactive::on_cleanup;
pub use reactive::signal;
pub use reactive::untrack;
pub use shared_string::SharedString;
pub use time::DurationExt;

Modules§

color
Colors and fills.
dirty
Dirty tracking flags used by the element tree to do minimal work per frame.
error
Error type shared by all Kova Native crates.
geometry
2D geometry primitives used throughout Kova Native.
id
Identifiers for elements and resources.
reactive
Fine-grained reactive state.
shared_string
Cheaply clonable immutable strings.
task
Async tasks on the UI thread.
time
Time helpers: 180.ms(), 1.5.secs().
timer
UI-thread timers and the frame clock.

Macros§

unique_id
Defines a process-unique id newtype backed by an atomic counter.

Structs§

Duration
A Duration type to represent a span of time, typically used for system timeouts.
Instant
A measurement of a monotonically nondecreasing clock. Opaque and useful only with Duration.