Skip to main content

euv_example/
lib.rs

1//! euv-example
2//!
3//! Cross-platform native showcase application built with euv and euv-ui,
4//! demonstrating fine-grained reactivity, multi-mode rendering, window settings,
5//! 17 design schemes, virtualized lists, and overlays.
6
7mod app;
8mod pages;
9mod state;
10
11#[cfg(test)]
12#[path = "../tests/mod.rs"]
13mod tests;
14
15pub use {app::*, pages::*, state::*};
16
17#[cfg(debug_assertions)]
18use euv_automation::AI_SCHEMA_PROTOCOL_VERSION;
19#[cfg(test)]
20use euv_automation::{
21    AiAction, AiAnomalyKind, AiLayoutAnomaly, AiRuntimeSnapshot, AiSchemaRequest, AiSchemaResponse,
22    UiAnomalyAuditConfig, UiAnomalyAuditor, UiAnomalyReport, UiAnomalySeverity,
23};
24#[cfg(any(debug_assertions, test))]
25use euv_automation::{AiAppHooks, AiSchemaProtocol, Value};
26use std::{
27    cell::{Cell, RefCell},
28    f32::consts::PI,
29    rc::Rc,
30};
31#[cfg(target_arch = "wasm32")]
32use std::{
33    cell::{Ref, RefMut},
34    mem::take,
35};
36#[cfg(not(target_arch = "wasm32"))]
37use std::{
38    fs,
39    io::{Error, Read, Write},
40    net::{SocketAddr, TcpListener},
41    path::{Path, PathBuf},
42    sync::Arc,
43    thread::spawn,
44    time::Instant,
45};
46use {
47    euv::{PointerEvent, *},
48    euv_automation::DevAutomationBridge,
49    euv_ui::*,
50    lombok_macros::{Data, Getter},
51};
52#[cfg(target_arch = "wasm32")]
53use {
54    js_sys::{Function, Object, Reflect, global},
55    wasm_bindgen::{JsCast, JsValue, closure::Closure, prelude::wasm_bindgen},
56    web_sys::{
57        Document, DomRect, Element, Event, EventTarget, HtmlCanvasElement, HtmlElement,
58        KeyboardEvent, MediaQueryList, Performance, WheelEvent, Window, window,
59    },
60};