Skip to main content

Crate rosace_core

Crate rosace_core 

Source

Re-exports§

pub use app::App;
pub use app_lifecycle::app_lifecycle;
pub use app_lifecycle::set_app_lifecycle;
pub use app_lifecycle::use_app_lifecycle;
pub use app_lifecycle::LifecycleState;
pub use child_container::ChildContainer;
pub use component::Component;
pub use context::Context;
pub use element::Element;
pub use element::NativeElement;
pub use element::ComponentElement;
pub use element::TextElement;
pub use element::WidgetPayload;
pub use error::RosaceError;
pub use error::RosaceResult;
pub use error_boundary::ErrorBoundary;
pub use ime_hint::ime_cursor_area;
pub use ime_hint::keyboard_type;
pub use ime_hint::set_ime_cursor_area;
pub use ime_hint::set_keyboard_type;
pub use ime_hint::KeyboardType;
pub use media_query::use_media_query;
pub use media_query::set_media_query;
pub use media_query::MediaQuery;
pub use persist::persist_backend;
pub use persist::set_persist_backend;
pub use persist::PersistBackend;
pub use persist::PersistValue;
pub use platform::use_platform;
pub use platform::set_platform;
pub use platform::Platform;
pub use render_object::AxisBound;
pub use render_object::Canvas;
pub use render_object::Constraints;
pub use render_object::RenderObject;
pub use safe_area::use_safe_area;
pub use safe_area::set_safe_area;
pub use safe_area::SafeArea;
pub use semantic_node::Role;
pub use semantic_node::SemanticNode;
pub use types::Key;

Modules§

app
app_lifecycle
App lifecycle state (D042, built by D110/Phase 29): a GlobalAtom<LifecycleState> + use_app_lifecycle() hook.
asset
Cross-platform asset resolution (A6). One place that maps a logical asset name ("logo.png") to loadable bytes, so ImageWidget::asset, FontCache::from_asset, and any future theme-from-asset loader all agree on where assets live — and so hot-reload has a single cache to invalidate.
child_container
component
context
element
error
error_boundary
ime_hint
IME candidate-window anchor (D116 Step 6): a GlobalAtom<Option<Rect>> reporting the focused editable’s caret rect for the platform layer to forward to winit::window::Window::set_ime_cursor_area.
lifecycle
media_query
Global “environment” query provider: use_media_query() and set_media_query() (D126) — mirrors safe_area.rs exactly, same reasoning: the platform layer measures an OS-level environment value once and publishes it here, so widgets read it as ordinary state instead of every widget branching on platform.
persist
Atom persistence seams (D008 tiers, implemented by D114/D121 — Phase 31 Step 2).
platform
Global platform provider: use_platform() and set_platform() (D105).
render_object
safe_area
Global safe-area inset provider: use_safe_area() and set_safe_area().
semantic_node
shader
Shader uniform trait (D109/Phase 27).
types

Structs§

AtomId
Re-exports of shared geometric and identity types from rosace-trace. Unique identifier for an atom instance.
ComponentId
Re-exports of shared geometric and identity types from rosace-trace. Unique identifier for a component instance in the tree.
Location
Re-exports of shared geometric and identity types from rosace-trace. Source location captured at a trace emit site.
Point
Re-exports of shared geometric and identity types from rosace-trace. 2D point in logical pixels.
Rect
Re-exports of shared geometric and identity types from rosace-trace. Axis-aligned rectangle in logical pixels.
Size
Re-exports of shared geometric and identity types from rosace-trace. 2D size in logical pixels.