euv-example 0.47.1

Cross-platform native showcase application demonstrating euv fine-grained reactivity, multi-mode rendering, window controls, and euv-ui components.
Documentation
use super::*;

pub(crate) const WATER_TITLE: &str = "Gyroscope Liquid Water Studio";
pub(crate) const WATER_SUBTITLE: &str = "Real-time SI Position-Based Fluids liquid water driven by 6-DOF device motion, virtual rotation, and edge-to-edge fullscreen.";
pub(crate) const WATER_VESSEL_TITLE: &str = "Interactive Liquid Vessel";
pub(crate) const WATER_VESSEL_SUB: &str = "Incompressible PBF water (ρ = 1000 kg/m³), Beer-Lambert optical absorption, Fresnel reflections & buoyant bodies.";
pub(crate) const WATER_CONTROLS_HINT: &str = "Drag inside vessel to stir · A/D or Left/Right: Tilt · W/S or Up/Down: Pitch · Space: Shake · R: Reset";
pub(crate) const WATER_SENSOR_CARD_TITLE: &str = "Sensor Mode & Calibration";
pub(crate) const WATER_SENSOR_CARD_SUB: &str = "Automatically consumes hardware gyroscope & accelerometer when active, or interactive virtual tilt on desktop.";
pub(crate) const WATER_STATUS_HARDWARE_IMU: &str = "Hardware IMU Active";
pub(crate) const WATER_STATUS_VIRTUAL_TILT: &str = "Interactive Virtual Tilt";
pub(crate) const BTN_WATER_ENABLE_SENSOR: &str = "Enable Motion Sensors";
pub(crate) const WATER_MOTION_CARD_TITLE: &str = "Device Rotation & Motion Simulator";
pub(crate) const WATER_MOTION_CARD_SUB: &str = "Rotate the vessel or inject linear acceleration impulses to test real-time sloshing on desktop.";
pub(crate) const WATER_KEYBOARD_HINT: &str =
    "Keyboard: A/D or Left/Right to tilt · Space to shake · R to reset";
pub(crate) const WATER_PHYSICS_CARD_TITLE: &str = "Physical Parameters";
pub(crate) const WATER_PHYSICS_CARD_SUB: &str =
    "Tune volume fill, SI dynamic viscosity, and Archimedes buoyant bodies live.";
pub(crate) const WATER_TELEMETRY_CARD_TITLE: &str = "Real-Time Physics Telemetry";
pub(crate) const WATER_TELEMETRY_CARD_SUB: &str = "Live SI gravity vector, roll tilt, particle & micro-bubble counts, kinetic energy, and frame timings.";
pub(crate) const BTN_WATER_FULLSCREEN: &str = "Fullscreen";
pub(crate) const BTN_WATER_EXIT_FS: &str = "Exit Fullscreen";
pub(crate) const BTN_WATER_ROTATE_90: &str = "Rotate 90°";
pub(crate) const BTN_WATER_SHAKE: &str = "Shake";
pub(crate) const BTN_WATER_RESET: &str = "Reset Water";
pub(crate) const BTN_WATER_FS_RESET: &str = "Reset";
pub(crate) const BTN_WATER_TILT_LEFT: &str = "Tilt Left -30°";
pub(crate) const BTN_WATER_LEVEL: &str = "Level 0°";
pub(crate) const BTN_WATER_TILT_RIGHT: &str = "Tilt Right +30°";
pub(crate) const BTN_WATER_ROT_CW: &str = "Rotate 90° CW";
pub(crate) const BTN_WATER_ROT_CCW: &str = "Rotate 90° CCW";
pub(crate) const BTN_WATER_FLIP_180: &str = "Flip 180°";
pub(crate) const BTN_WATER_SHAKE_IMPULSE: &str = "Shake Impulse";
pub(crate) const WATER_FIELD_VISCOSITY: &str = "Viscosity Preset";
pub(crate) const WATER_VISC_PURE_WATER: &str = "Water 1.0 mPa·s";
pub(crate) const WATER_VISC_LIGHT_OIL: &str = "Light Oil";
pub(crate) const WATER_VISC_HONEY: &str = "Honey";
pub(crate) const WATER_SWITCH_BUOYANT: &str = "Buoyant Objects (Orb & Ice Cube)";
pub(crate) const WATER_FS_OVERLAY_NAME: &str = "WaterFullscreenPortal";
pub(crate) const WATER_FS_TITLE: &str = "Gyroscope Liquid Water";
pub(crate) const WATER_FILL_MIN_PCT: f32 = 25.0;
pub(crate) const WATER_FILL_MAX_PCT: f32 = 80.0;
pub(crate) const WATER_TILT_30_RAD: f32 = PI / 6.0;
pub(crate) const WATER_ROT_90_RAD: f32 = PI * 0.5;
pub(crate) const WATER_SHAKE_AX_MPS2: f32 = 24.0;
pub(crate) const WATER_SHAKE_AY_MPS2: f32 = -15.0;
pub(crate) const WATER_STEP_DT: f32 = 1.0 / 60.0;
pub(crate) const WATER_VISC_SCALE_WATER: f32 = 1.0;
pub(crate) const WATER_VISC_SCALE_OIL: f32 = 2.6;
pub(crate) const WATER_VISC_SCALE_HONEY: f32 = 5.5;
pub(crate) const WATER_TENSION_WATER: f32 = 1.0;
pub(crate) const WATER_TENSION_OIL: f32 = 0.75;
pub(crate) const WATER_TENSION_HONEY: f32 = 1.15;
pub(crate) const WATER_FS_EXIT_ICON_SIZE: f32 = 14.0;
pub(crate) const WATER_FS_PILL_RADIUS: f32 = 999.0;
pub(crate) const WATER_FS_BG_HEX: u32 = 0x060D1A;
pub(crate) const WATER_FS_TEXT_HEX: u32 = 0xFAFAFA;