euv-core 0.53.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
/// Native action kind for tactile haptic feedback.
pub const NATIVE_ACTION_HAPTIC: &str = "haptic";
/// Native action kind for OS notifications.
pub const NATIVE_ACTION_NOTIFY: &str = "notify";
/// Native action kind for Dynamic Island / Live Activity updates.
pub const NATIVE_ACTION_ISLAND: &str = "island";
/// Native action kind for OS runtime permission prompts.
pub const NATIVE_ACTION_PERMISSION: &str = "permission";
/// Native action kind for immersive fullscreen toggling.
pub const NATIVE_ACTION_FULLSCREEN: &str = "fullscreen";
/// Native action kind for custom URI protocol registration confirmation.
pub const NATIVE_ACTION_PROTOCOL: &str = "protocol";
/// Native action kind for OS soft-keyboard / IME visibility synchronization.
pub const NATIVE_ACTION_IME: &str = "ime";
/// Native action kind for displaying a brief bottom system toast / snackbar prompt.
pub const NATIVE_ACTION_TOAST: &str = "toast";
/// Native action kind for requesting graceful OS application termination (e.g. Android `Activity.finish()`).
pub const NATIVE_ACTION_EXIT: &str = "exit";
/// Native action kind for reading or writing the host OS system clipboard.
pub const NATIVE_ACTION_CLIPBOARD: &str = "clipboard";
/// Native action kind for opening an external `http://` or `https://` URL in the system browser.
pub const NATIVE_ACTION_OPEN_URL: &str = "open_url";
/// Native action kind for presenting or dismissing an embedded bottom-sheet WebView.
pub const NATIVE_ACTION_WEBVIEW: &str = "webview";
/// Action verb closing an active native bottom-sheet WebView.
pub const WEBVIEW_ACTION_CLOSE: &str = "close";
/// Action verb synchronizing an active native bottom-sheet WebView viewport geometry and opacity.
pub const WEBVIEW_ACTION_FRAME: &str = "frame";
/// Action verb reloading the active webpage inside a native bottom-sheet WebView.
pub const WEBVIEW_ACTION_RELOAD: &str = "reload";

/// Native clipboard action verb for writing UTF-8 text to the host system clipboard.
pub(crate) const CLIPBOARD_ACTION_WRITE: &str = "write";
/// Required HTTPS scheme prefix for validated external URLs.
pub(crate) const URL_SCHEME_HTTPS: &str = "https://";
/// Allowed HTTP scheme prefix for validated external URLs.
pub(crate) const URL_SCHEME_HTTP: &str = "http://";
/// Environment flag disabling native OS browser spawning in headless runs.
#[cfg(not(target_arch = "wasm32"))]
pub(crate) const ENV_EUV_HEADLESS: &str = "EUV_HEADLESS";
/// macOS command opening an external URL in the default browser.
#[cfg(target_os = "macos")]
pub(crate) const OS_CMD_OPEN: &str = "open";
/// Linux command opening an external URL in the default browser.
#[cfg(target_os = "linux")]
pub(crate) const OS_CMD_XDG_OPEN: &str = "xdg-open";
/// Windows shell command executable used to launch external URLs.
#[cfg(target_os = "windows")]
pub(crate) const OS_CMD_WIN_SHELL: &str = "cmd";
/// Windows shell switch running a single command string.
#[cfg(target_os = "windows")]
pub(crate) const OS_CMD_WIN_EXEC: &str = "/C";
/// Windows shell built-in launching the default browser for a URL.
#[cfg(target_os = "windows")]
pub(crate) const OS_CMD_WIN_START: &str = "start";
/// Native HarmonyOS system share API descriptor.
pub(crate) const SHARE_API_HARMONY: &str = "ohos.kit.ShareKit.systemShare";
/// Native Wearable companion share API descriptor.
pub(crate) const SHARE_API_WEARABLE: &str = "wearable.companion.share";
/// Native MiniApp unified share API descriptor.
pub(crate) const SHARE_API_MINIAPP: &str = "miniapp.onShareAppMessage";
/// Native QuickApp unified share API descriptor.
pub(crate) const SHARE_API_QUICKAPP: &str = "@system.share";
/// Native Terminal stdout/OSC52 share descriptor.
pub(crate) const SHARE_API_TERMINAL: &str = "terminal.stdout";
/// Case-insensitive dark appearance substring matched against Linux desktop theme hints.
pub(crate) const THEME_HINT_DARK_MARKER: &str = "dark";
/// Case-insensitive light appearance substring matched against Linux desktop theme hints.
pub(crate) const THEME_HINT_LIGHT_MARKER: &str = "light";
/// Objective-C class name for `NSPasteboard` used for bidirectional macOS clipboard reads.
#[cfg(target_os = "macos")]
pub(crate) const CAP_OBJC_CLS_NS_PASTEBOARD: &str = "NSPasteboard\0";
/// Objective-C selector for `generalPasteboard` on `NSPasteboard`.
#[cfg(target_os = "macos")]
pub(crate) const CAP_OBJC_SEL_GENERAL_PASTEBOARD: &str = "generalPasteboard\0";
/// Objective-C selector for `stringForType:` on `NSPasteboard`.
#[cfg(target_os = "macos")]
pub(crate) const CAP_OBJC_SEL_STRING_FOR_TYPE: &str = "stringForType:\0";
/// Objective-C selector for `UTF8String` on `NSString`.
#[cfg(target_os = "macos")]
pub(crate) const CAP_OBJC_SEL_UTF8_STRING: &str = "UTF8String\0";
/// Modern UTI identifier for UTF-8 plain text on macOS `NSPasteboard`.
#[cfg(target_os = "macos")]
pub(crate) const CAP_PASTEBOARD_TYPE_UTF8: &str = "public.utf8-plain-text";
/// Legacy `NSStringPboardType` identifier fallback for macOS `NSPasteboard` reads.
#[cfg(target_os = "macos")]
pub(crate) const CAP_PASTEBOARD_TYPE_LEGACY: &str = "NSStringPboardType";
/// Win32 clipboard format identifier `CF_UNICODETEXT` (`13`).
#[cfg(target_os = "windows")]
pub(crate) const WIN32_CF_UNICODETEXT: u32 = 13;
/// Win32 global memory allocation flag `GMEM_MOVEABLE` (`0x0002`).
#[cfg(target_os = "windows")]
pub(crate) const WIN32_GMEM_MOVEABLE: u32 = 0x0002;
/// Win32 registry root key `HKEY_CURRENT_USER` (`0x80000001`).
#[cfg(target_os = "windows")]
pub(crate) const WIN32_HKEY_CURRENT_USER: isize = 0x8000_0001_u32 as isize;
/// Win32 registry flag `RRF_RT_REG_DWORD` (`0x00000010`).
#[cfg(target_os = "windows")]
pub(crate) const WIN32_RRF_RT_REG_DWORD: u32 = 0x0000_0010;
/// Win32 registry subkey storing Windows light/dark theme preferences.
#[cfg(target_os = "windows")]
pub(crate) const WIN32_REG_THEME_SUBKEY: &str =
    "Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize";
/// Win32 registry DWORD value indicating whether Windows apps use light theme (`0` = Dark).
#[cfg(target_os = "windows")]
pub(crate) const WIN32_REG_APPS_USE_LIGHT_THEME: &str = "AppsUseLightTheme";
/// Linux Wayland display environment variable.
#[cfg(target_os = "linux")]
pub(crate) const ENV_WAYLAND_DISPLAY: &str = "WAYLAND_DISPLAY";
/// Linux X11 display environment variable.
#[cfg(target_os = "linux")]
pub(crate) const ENV_X11_DISPLAY: &str = "DISPLAY";
/// Linux GTK theme override environment variable.
#[cfg(target_os = "linux")]
pub(crate) const ENV_GTK_THEME: &str = "GTK_THEME";
/// Terminal/desktop color foreground-background hint environment variable.
#[cfg(target_os = "linux")]
pub(crate) const ENV_COLORFGBG: &str = "COLORFGBG";
/// Wayland clipboard write executable.
#[cfg(target_os = "linux")]
pub(crate) const LINUX_CMD_WL_COPY: &str = "wl-copy";
/// Wayland clipboard read executable.
#[cfg(target_os = "linux")]
pub(crate) const LINUX_CMD_WL_PASTE: &str = "wl-paste";
/// Wayland clipboard paste flag avoiding trailing newline injection.
#[cfg(target_os = "linux")]
pub(crate) const LINUX_ARG_NO_NEWLINE: &str = "--no-newline";
/// X11 clipboard utility `xclip`.
#[cfg(target_os = "linux")]
pub(crate) const LINUX_CMD_XCLIP: &str = "xclip";
/// X11 `xclip` selection flag.
#[cfg(target_os = "linux")]
pub(crate) const LINUX_ARG_SELECTION: &str = "-selection";
/// X11 `xclip` selection target `clipboard`.
#[cfg(target_os = "linux")]
pub(crate) const LINUX_ARG_CLIPBOARD: &str = "clipboard";
/// X11 clipboard utility `xsel`.
#[cfg(target_os = "linux")]
pub(crate) const LINUX_CMD_XSEL: &str = "xsel";
/// X11 `xsel` clipboard flag.
#[cfg(target_os = "linux")]
pub(crate) const LINUX_ARG_XSEL_CLIPBOARD: &str = "--clipboard";
/// X11 `xsel` input flag.
#[cfg(target_os = "linux")]
pub(crate) const LINUX_ARG_XSEL_INPUT: &str = "--input";
/// X11 `xsel` output flag.
#[cfg(target_os = "linux")]
pub(crate) const LINUX_ARG_XSEL_OUTPUT: &str = "--output";
/// GNOME desktop settings query command.
#[cfg(target_os = "linux")]
pub(crate) const LINUX_CMD_GSETTINGS: &str = "gsettings";
/// GNOME interface schema queried for system dark-mode preference.
#[cfg(target_os = "linux")]
pub(crate) const LINUX_GSETTINGS_SCHEMA: &str = "org.gnome.desktop.interface";
/// GNOME color-scheme key (`prefer-dark` / `default`).
#[cfg(target_os = "linux")]
pub(crate) const LINUX_GSETTINGS_COLOR_SCHEME: &str = "color-scheme";
/// GNOME gtk-theme fallback key.
#[cfg(target_os = "linux")]
pub(crate) const LINUX_GSETTINGS_GTK_THEME: &str = "gtk-theme";