frus-core 0.5.0

frus — shared foundation types (geometry, colour)
Documentation
//! `frus-core` — the fundamental types shared by the whole framework.
//!
//! This crate holds **no logic**: only data types (geometry, colour) with no
//! dependency on rendering or on any platform. It is the common foundation for
//! `frus-gpu`, `frus-layout` and the rest, which keeps those layers from
//! duplicating types or coupling to one another.

#![deny(missing_docs)]

// The README's example is compiled and run by `cargo test --doc`, so it cannot rot.
#[cfg(doctest)]
#[doc = include_str!("../README.md")]
pub struct ReadmeDoctests;

pub mod animation;
mod color;
mod colors;
mod decoration;
mod decoration_image;
mod device;
mod filter;
mod geometry;
mod gradient;
mod hct;
mod image;
mod path;
mod platform;
mod responsive;
mod scene;
mod semantics;
mod shape;
mod text_style;

pub use animation::{
    Animatable, Animation, AnimationController, BouncingScrollSimulation, ClampedSimulation,
    ClampingScrollSimulation, Curve, Curved, FrictionSimulation, Lerp, PolynomialFit, Simulation,
    SpringDescription, SpringSimulation, Status, Tolerance, Tween, TweenSequence, Velocity,
    VelocityEstimate, VelocityStrategy, VelocityTracker, BOUNCING_DRAG, BOUNCING_FLING_WEIGHTS,
    CLAMPING_FRICTION, DESKTOP_FLING_WEIGHTS, MAX_SPRING_TRANSFER_VELOCITY,
};
pub use color::{surface_tint_opacity, Color};
pub use colors::{Colors, MaterialColor};
pub use decoration::{
    paint_elevation, Border, BorderDirectional, BorderRadius, BorderRadiusDirectional, BoxBorder,
    BoxDecoration, BoxShadow, BoxShape,
};
pub use decoration_image::{
    apply_box_fit, DecorationImage, FittedSizes, ImagePiece, ImageRepeat, MAX_IMAGE_TILES,
};
pub use device::{ButtonEdge, Cutout, DeviceFrame, DeviceInsets, DeviceProfile, SideButton};
pub use filter::{
    Backdrop, BlendMode, ColorFilter, FractionalMask, ImageFilter, LayerFilter, MaskShader,
    ShaderMask,
};
pub use geometry::{
    fits, Affine, Alignment, AlignmentDirectional, AlignmentGeometry, Insets, InsetsDirectional,
    InsetsGeometry, Point, Rect, Size, TextDirection, WindowInsets,
};
pub use gradient::{tile, Gradient, LinearGradient, RadialGradient, SweepGradient, TileMode};
pub use hct::{Hct, TonalPalette};
pub use image::{
    cached, cached_at, decoded_at, fetched, fetched_at, forget_cached_images,
    forget_fetched_images, image_cache_budget, image_cache_bytes, image_fetcher, images_in_flight,
    set_image_cache_budget, set_image_fetcher, trim_image_caches, BoxFit, DecodeSize, Fetched,
    ImageData, ImageFetcher, ImageHandle, DEFAULT_IMAGE_CACHE_BYTES,
};
pub use path::{FillRule, Path, PathVerb, Stroke, StrokeCap};
pub use platform::{
    __set_detected_target_platform, debug_default_target_platform_override,
    default_target_platform, set_debug_default_target_platform_override, Platform, TargetPlatform,
    IS_WEB,
};
pub use responsive::{Orientation, SizeClass};
pub use scene::{
    BlurStyle, ClipShape, GradientRamp, LayerTransform, PathGradient, Primitive, RampShape, Scene,
    TextBlock,
};
pub use semantics::{Role, SemanticsProperties, Toggled};
pub use shape::{BorderSide, ShapeBorder};
pub use text_style::{
    install_text_scale, text_scale, with_text_scale, FontFamily, FontWeight, ResolvedTextStyle,
    TextAlign, TextDecoration, TextOverflow, TextRun, TextScaleGuard, TextSpan, TextStyle,
    DEFAULT_LINE_HEIGHT, DEFAULT_TEXT_SIZE,
};