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 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.