Skip to main content

Crate strata

Crate strata 

Source
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 mcp_bridge::default_dev_socket_path;
pub use mcp_bridge::start_mcp_dev_listener;
pub use benchmarks::BenchmarkHarness;
pub use benchmarks::BenchmarkReport;
pub use low_level::LowLevelRenderer;
pub use low_level::OffscreenBuffer;
pub use low_level::RawSurfaceHandle;
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::KeyDispatchResult;
pub use runtime::MatchMode;
pub use runtime::NodeQuery;
pub use runtime::PointerDownAction;
pub use runtime::PointerMoveAction;
pub use runtime::PointerUpAction;
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;

Modules§

benchmarks
Performance & Memory Footprint Benchmarking Suite.
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§

WindowConfig
Configuration used when creating or reconfiguring a platform window.

Enums§

ProgrammaticScrollCommand
Queued programmatic scroll operation executed by AppRuntime.

Functions§

get_scroll_offset
Returns the live (scroll_left, scroll_top) offset for the scrollable container with DOM id.
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.
scroll_into_view
Programmatically scrolls the nearest scrollable ancestor of target_id so the target element is visible.
scroll_to
Programmatically scrolls a scrollable container with DOM id to (x, y) in pixels.
scroll_to_bottom
Programmatically scrolls a scrollable container with DOM id to its maximum vertical extent.
scroll_to_top
Programmatically scrolls a scrollable container with DOM id to the top (scroll_y = 0).

Attribute Macros§

component
Declares a Strata functional component with fine-grained reactivity and JSX prop builder.

Derive Macros§

ReactiveStore
Alias for #[derive(Store)].
Store
Derives a companion <StructName>Store where each field is an independent atomic Signal<T>.