Skip to main content

euv_core/platform/wearable/
enum.rs

1/// Major smartwatch and wrist wearable vendor ecosystems unified under EUV.
2#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
3pub enum WearableVendor {
4    /// Google Wear OS (Pixel Watch, Samsung Galaxy Watch, TicWatch, OnePlus Watch).
5    #[default]
6    WearOs,
7    /// Apple watchOS (Apple Watch Series, Ultra, SE).
8    WatchOs,
9    /// Huawei HarmonyOS Watch (Watch GT, Ultimate, Fit).
10    HarmonyWatch,
11    /// Xiaomi HyperOS / Vela Watch (NuttX Vela / Watch S / Band Pro).
12    HyperOsVela,
13    /// OPPO ColorOS Watch / dual-engine wearable.
14    OppoColorOsWatch,
15    /// vivo BlueOS Watch.
16    VivoBlueOsWatch,
17    /// Garmin Connect IQ smartwatches.
18    GarminConnectIq,
19    /// Amazfit / Huami Zepp OS smartwatches.
20    AmazfitZeppOs,
21    /// Generic third-party round/squircle/rectangular wrist wearable.
22    GenericWearable,
23}
24
25/// Physical screen geometry of a smartwatch or fitness band display.
26#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
27pub enum WearableShape {
28    /// Circular watch dial requiring inscribed square safe-area clearance.
29    #[default]
30    Round,
31    /// Rounded-corner square display (e.g. Apple Watch, Watch Fit, Amazfit GTS).
32    Squircle,
33    /// Tall narrow rectangular display (fitness bands and rectangular watches).
34    Rectangular,
35}
36
37/// Power and presentation lifecycle state for wearable Always-On Display (AOD).
38#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
39pub enum WearableAmbientMode {
40    /// Full-power interactive mode with active touch, crown input, and normal refresh pacing.
41    #[default]
42    Interactive,
43    /// Low-power Always-On Display (AOD) ambient mode throttled to burn-in-safe 1Hz updates.
44    AlwaysOnAmbient,
45    /// Display fully off / wrist lowered with zero CPU/GPU frame pumping.
46    ScreenOff,
47}
48
49/// Target semantic mapping mode for rotary crown or rotating bezel detent input.
50#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
51pub enum WearableCrownMode {
52    /// Translates crown rotation into standard vertical `WindowEvent::Scroll` deltas.
53    #[default]
54    Scroll,
55    /// Translates each whole crown detent into focus navigation (`Tab` / `Shift+Tab`).
56    FocusStep,
57    /// Translates each whole crown detent into discrete arrow step keys (`ArrowDown` / `ArrowUp`).
58    DirectionalStep,
59}
60
61/// Physical wrist and hardware button gestures normalized across smartwatch vendors.
62#[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
63pub enum WearableHardwareGesture {
64    /// User raised wrist to view the watch, waking from ambient/off to interactive mode.
65    WristRaise,
66    /// User lowered wrist away from view, transitioning to AOD ambient or screen-off freeze.
67    WristLower,
68    /// User covered the watch face with their palm, immediately silencing and freezing the display.
69    PalmCover,
70    /// One-handed double pinch / double tap finger gesture activating the focused control.
71    DoublePinch,
72    /// Hardware side/back button press mapped to standard `SystemEvent::BackPressed` / `KeyCode::Back`.
73    SideButtonPress,
74    /// Hardware side/crown button long press yielding focus to the OS launcher or power overlay.
75    SideButtonLongPress,
76}