Expand description
Strata: Universal High-Performance Frontend Engine & Framework in Pure Rust.
§Examples
use strata::prelude::*;
let counter = Signal::new(10);
counter.set(25);
assert_eq!(counter.get(), 25);Re-exports§
pub use low_level::LowLevelRenderer;pub use low_level::OffscreenBuffer;pub use low_level::RawSurfaceHandle;pub use mcp_bridge::default_dev_socket_path;pub use mcp_bridge::start_mcp_dev_listener;pub use runtime::app;pub use runtime::app;pub use runtime::launch;pub use runtime::launch;pub use runtime::launch_auto;pub use runtime::launch_headless;pub use runtime::launch_headless_pump;pub use runtime::launch_window;pub use runtime::launch_with_config;pub use runtime::launch_with_events;pub use runtime::launch_with_frame;pub use runtime::queue_edit_command;pub use runtime::AppFrameInfo;pub use runtime::AppLifecycleHooks;pub use runtime::AppRuntime;pub use runtime::DynamicTextBinding;pub use runtime::EditCommand;pub use runtime::FrameOutcome;pub use runtime::FrameProfile;pub use runtime::FrameProfileRecord;pub use runtime::KeyDispatchResult;pub use runtime::MatchMode;pub use runtime::NodeQuery;pub use runtime::PerfPercentileStats;pub use runtime::PerfProfileSummary;pub use runtime::PointerDownAction;pub use runtime::PointerMoveAction;pub use runtime::PointerUpAction;pub use runtime::ProfilingAllocator;pub use runtime::RebuildReason;pub use runtime::ReconcileStats;pub use runtime::StrataApp;pub use runtime::StrataAppBuilder;pub use runtime::launch_gtk;pub use runtime::launch_gtk_with_events;pub use runtime::launch_gtk_with_frame;pub use runtime::launch_wayland;pub use runtime::launch_wayland_with_events;pub use runtime::launch_x11;pub use runtime::launch_x11_with_events;pub use view_transition::ViewTransitionManager;pub use view_transition::ViewTransitionSnapshot;pub use strata_a11y;pub use strata_a11y as a11y;pub use strata_dom;pub use strata_dom as dom;pub use strata_gpu_path as gpu_path;pub use strata_js;pub use strata_js as js;pub use strata_layout as layout;pub use strata_platform as platform;pub use strata_primitives as primitives;pub use strata_render as render;pub use strata_storage as storage;pub use strata_style as style;pub use strata_vfs as fs;pub use strata_web_api as web_api;pub use strata_device as device;pub use strata_audio as audio;
Modules§
- dialog
- Cross-platform native OS dialogs (file pickers, folder selectors, and message boxes).
- low_
level - Low-level direct engine driver and hardware surface APIs.
- mcp_
bridge - Model Context Protocol (MCP) Dev Bridge and In-Process IPC Dispatcher.
- prelude
- runtime
- Live Application Runtime Orchestrator connecting RSX Blueprints, Style Cascade, Layout, and Rendering.
- vibrancy
- Operating system window vibrancy, frosted-glass blurs, and backdrop composition.
- view_
transition - CSS View Transitions Module Level 1 & Level 2 snapshot and morphing engine.
Macros§
- dynamic
- Dynamic JavaScript object/array constructor macro.
- rsx
- Declarative JSX/HTML-in-Rust templating macro.
Structs§
- Hover
Tooltip Style - Visual styling and positioning configuration for native hover tooltips
(
titleand button/imagealtattributes). - Window
Config - Configuration used when creating or reconfiguring a platform window.
Enums§
- Programmatic
Scroll Command - Queued programmatic scroll operation executed by
AppRuntime.
Functions§
- get_
scroll_ offset - Returns the live
(scroll_left, scroll_top)offset for the scrollable container with DOMid. - gtk_
begin_ window_ drag - Starts a window-manager move for the current press. When the window is maximized it is first restored and repositioned so the pointer keeps its proportional place on the title strip.
- gtk_
close - Closes the current native GTK desktop window immediately.
- gtk_
current_ modifiers - Returns the currently active keyboard modifier flags.
- gtk_
get_ clipboard_ text - Reads current system clipboard text content via GTK.
- gtk_
is_ closing - Returns true if the native GTK window is in the process of closing.
- gtk_
is_ maximized - Returns true while the native GTK window is maximized.
- gtk_
minimize - Minimizes the current native GTK desktop window.
- gtk_
set_ clipboard_ text - Sets current system clipboard text content via GTK.
- gtk_
toggle_ maximize - Toggles maximize / restore state on the current native GTK desktop window. Returns true if the window is now maximized, false otherwise.
- register_
universal_ io_ bridges - Installs cycle-free runtime sensor provider bridges connecting enabled
crates/io/*subsystems (strata-audioA-weighted SPL andstrata-hardwareBLE Heart Rate0x180D) intostrata-devicereactive sensor hooks (use_ambient_spl,use_heart_rate). - scroll_
into_ view - Programmatically scrolls the nearest scrollable ancestor of
target_idso the target element is visible. - scroll_
to - Programmatically scrolls a scrollable container with DOM
idto(x, y)in pixels. - scroll_
to_ bottom - Programmatically scrolls a scrollable container with DOM
idto its maximum vertical extent. - scroll_
to_ top - Programmatically scrolls a scrollable container with DOM
idto the top (scroll_y = 0).
Attribute Macros§
- component
- Declares a Strata functional component with fine-grained reactivity and JSX prop builder.
Derive Macros§
- Reactive
Store - Alias for #[derive(Store)].
- Store
- Derives a companion
<StructName>Storewhere each field is an independent atomicSignal<T>.