euv-core 0.46.0

Core cross-platform runtime for euv featuring arena-based fine-grained reactivity, deterministic layout, flat scene graph, multi-mode rendering, and direct OS platform adapters.
Documentation
/// Major smartwatch and wrist wearable vendor ecosystems unified under EUV.
#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub enum WearableVendor {
    /// Google Wear OS (Pixel Watch, Samsung Galaxy Watch, TicWatch, OnePlus Watch).
    #[default]
    WearOs,
    /// Apple watchOS (Apple Watch Series, Ultra, SE).
    WatchOs,
    /// Huawei HarmonyOS Watch (Watch GT, Ultimate, Fit).
    HarmonyWatch,
    /// Xiaomi HyperOS / Vela Watch (NuttX Vela / Watch S / Band Pro).
    HyperOsVela,
    /// OPPO ColorOS Watch / dual-engine wearable.
    OppoColorOsWatch,
    /// vivo BlueOS Watch.
    VivoBlueOsWatch,
    /// Garmin Connect IQ smartwatches.
    GarminConnectIq,
    /// Amazfit / Huami Zepp OS smartwatches.
    AmazfitZeppOs,
    /// Generic third-party round/squircle/rectangular wrist wearable.
    GenericWearable,
}

/// Physical screen geometry of a smartwatch or fitness band display.
#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub enum WearableShape {
    /// Circular watch dial requiring inscribed square safe-area clearance.
    #[default]
    Round,
    /// Rounded-corner square display (e.g. Apple Watch, Watch Fit, Amazfit GTS).
    Squircle,
    /// Tall narrow rectangular display (fitness bands and rectangular watches).
    Rectangular,
}

/// Power and presentation lifecycle state for wearable Always-On Display (AOD).
#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub enum WearableAmbientMode {
    /// Full-power interactive mode with active touch, crown input, and normal refresh pacing.
    #[default]
    Interactive,
    /// Low-power Always-On Display (AOD) ambient mode throttled to burn-in-safe 1Hz updates.
    AlwaysOnAmbient,
    /// Display fully off / wrist lowered with zero CPU/GPU frame pumping.
    ScreenOff,
}

/// Target semantic mapping mode for rotary crown or rotating bezel detent input.
#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub enum WearableCrownMode {
    /// Translates crown rotation into standard vertical `WindowEvent::Scroll` deltas.
    #[default]
    Scroll,
    /// Translates each whole crown detent into focus navigation (`Tab` / `Shift+Tab`).
    FocusStep,
    /// Translates each whole crown detent into discrete arrow step keys (`ArrowDown` / `ArrowUp`).
    DirectionalStep,
}

/// Physical wrist and hardware button gestures normalized across smartwatch vendors.
#[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub enum WearableHardwareGesture {
    /// User raised wrist to view the watch, waking from ambient/off to interactive mode.
    WristRaise,
    /// User lowered wrist away from view, transitioning to AOD ambient or screen-off freeze.
    WristLower,
    /// User covered the watch face with their palm, immediately silencing and freezing the display.
    PalmCover,
    /// One-handed double pinch / double tap finger gesture activating the focused control.
    DoublePinch,
    /// Hardware side/back button press mapped to standard `SystemEvent::BackPressed` / `KeyCode::Back`.
    SideButtonPress,
    /// Hardware side/crown button long press yielding focus to the OS launcher or power overlay.
    SideButtonLongPress,
}