Expand description
Public runtime API types shared across Pax crates, user components, and platform backends.
Most names are reexported at the crate root for compatibility, while their source modules provide the browsing ontology used by the generated API docs.
Re-exports§
pub use async_runtime::AsyncError;pub use async_runtime::AsyncLimits;pub use async_runtime::AsyncScope;pub use async_runtime::Closed;pub use async_runtime::Completion;pub use async_runtime::GuardedPublisher;pub use async_runtime::TaskControl;pub use async_runtime::TaskOutcome;pub use async_runtime::TaskStatus;pub use async_runtime::TrySendError;pub use async_runtime::UiSender;pub use async_runtime::UiSubscription;pub use application_shutdown::ShutdownComplete;pub use application_shutdown::ShutdownTicket;pub use application::AppClosed;pub use application::AppContext;pub use application::AppOptions;pub use application::AppPhase;pub use application::AppResult;pub use application::InitContext;pub use application::StopReason;pub use application::HOST_MESSAGE_LIMIT;pub use pax_value::numeric::Numeric;pub use pax_value::CoercionRules;pub use pax_value::ImplToFromPaxAny;pub use pax_value::PaxValue;pub use pax_value::ToPaxValue;pub use pax_value::functions;pub use pax_value::functions::register_function;pub use pax_value::functions::Functions;pub use pax_value::functions::HelperFunctions;pub use properties::LocalProperty;pub use properties::Property;pub use properties::PropertyBinding;pub use properties::PropertyGraph;pub use properties::Published;pub use paste;pub use pax_message::serde;pub use animation::*;pub use color::*;pub use drawing::*;pub use events::*;pub use layout::*;pub use platform::*;pub use rendering::*;pub use store::*;pub use transform::*;pub use unit_value::*;pub use variables::*;
Modules§
- animation
- Animation primitives: interpolation, easing curves, transition queues, and timelines. See also: properties.ease_to and properties.ease_to_later.
- application
- Root initialization and application lifetime, independent of any async executor.
- application_
shutdown - Retained asynchronous resource cleanup with UI-thread ownership and host wakeups.
- async_
runtime - Executor-neutral task lifetimes and bounded delivery to the UI thread.
- color
- Color and opacity types used by Pax style properties and render backends.
- constants
- Compiler-facing type and property spelling constants.
- cursor
- drawing
- Vector drawing primitives: paths, fills, strokes, caps, and gradients.
- events
- Event payloads and cancellation wrappers passed to Pax event handlers.
- http_
api - Shared request and response types for Pax’s public HTTP service.
- layout
- Layout units, axes, and common properties shared by renderable nodes.
- math
- pax_
value - platform
- Platform, viewport, and coordinate-space marker types.
- properties
- refcell_
debug - reflection
- rendering
- Rendering backend contracts and helpers for drawing Pax scene content.
- serde
- Serde
- store
- Typed stores owned by mounted nodes and discovered through
NodeContext. - transform
- Rotation and 2D transform types used by layout and rendering.
- unit_
value - Normalized unit-domain values.
- variables
- LocalProperty adapters that expose runtime values to expression scopes.
Macros§
- borrow
- borrow_
mut - impl_
default_ coercion_ rule - Implements coercion by converting the selected
PaxValuevariant’s contents. The optional third argument opts intoCoercionRules::is_identity_roundtrip; omit it unless the type satisfies that method’s exact, side-effect-free contract. - impl_
to_ pax_ value - use_
RefCell
Structs§
- Accel
Interrupt Args - Device acceleration payload, in meters per second squared.
- Added
Layer Args - Chassis acknowledgement that render layers were added.
- AnyCreate
Patch - Common creation payload shared by native element families.
- Apple
Liquid Glass Patch - Apple-specific native liquid-glass effect payload.
- Browser
Config Interrupt Args - Browser capability flags discovered by the web chassis.
- Button
Patch - Create/update patch for a native button.
- Chassis
Resize Request Args - Chassis response containing measured native control bounds.
- Checkbox
Patch - Create/update patch for a native checkbox.
- Checkbox
Style Message - Style payload shared by checkbox-like controls.
- Click
Interrupt Args - Click interrupt payload.
- Context
Menu Interrupt Args - Context-menu interrupt payload.
- Double
Click Interrupt Args - Double-click interrupt payload.
- Drop
File Args - File-drop interrupt payload.
- Dropdown
Patch - Create/update patch for a native dropdown/select element.
- Event
Blocker Patch - Create/update patch for a native hit-test blocker with an optional solid background.
- Focus
Interrupt Args - Focus interrupt marker payload.
- Form
Button Click Args - Native button click payload.
- Form
Checkbox Toggle Args - Checkbox state-change interrupt payload.
- Form
Dropdown Change Args - Dropdown selection-change payload.
- Form
Radio List Change Args - Radio-list selection-change payload.
- Form
Slider Change Args - Slider value-change payload.
- Form
Textbox Change Args - Textbox committed-value change payload.
- Form
Textbox Input Args - Textbox in-progress input payload.
- Frame
Patch - Create/update patch for a native frame host.
- Glass
Surface Patch - Create/update patch for a materialized native liquid-glass surface.
- Gyro
Interrupt Args - Device orientation payload, in degrees.
- Image
Data Args - Image-load payload carrying image metadata without a byte pointer.
- Image
Patch - Image-load request sent to the chassis.
- Image
Pointer Args - Image-load payload carrying a pointer to chassis-owned image bytes.
- Interrupt
Buffer - Raw FFI buffer containing serialized interrupts.
- KeyDown
Interrupt Args - Key-down interrupt payload.
- KeyPress
Interrupt Args - Key-press interrupt payload.
- KeyUp
Interrupt Args - Key-up interrupt payload.
- Layer
Surface Screenshot Data - Completed screenshot bytes for one physical surface within a logical canvas layer.
- Link
Style Message - Serializable style payload for link text.
- Local
Font Message - Local bundled font payload.
- Mask
Path Patch - One vector coverage path entry for a native occlusion mask.
- Message
Queue - Serializable batch of native messages emitted for one runtime tick.
- Mouse
Down Interrupt Args - Mouse-down interrupt payload.
- Mouse
Move Interrupt Args - Mouse-move interrupt payload.
- Mouse
OutInterrupt Args - Mouse-out interrupt payload.
- Mouse
Over Interrupt Args - Mouse-over interrupt payload.
- Mouse
UpInterrupt Args - Mouse-up interrupt payload.
- Native
Cull Patch - Advisory native-view residency changes from the shared geometry index. The macOS host retains models and view instances, and may keep a cold view attached to preserve editing, selection, overflow, or accessibility.
- Native
Image Patch - Create/update patch for a native image element.
- Native
Mask Patch - Create/update patch for a native occlusion mask surface.
- Native
Message Queue - Raw FFI buffer containing serialized native messages.
- Navigation
Patch - Request for the chassis to navigate to a URL.
- Photo
Picker Asset Args - Selected image metadata and optional copied bytes from a native photo picker.
- Photo
Picker Interrupt Args - Native photo picker completion payload.
- Photo
Picker Patch - Create/update patch for a transparent native photo picker hit target.
- Radio
List Patch - Create/update patch for a native radio list.
- Render
Surface Update Args - Browser notification that a retained render surface must be reconfigured.
- Route
Change Interrupt Args - Canonical route-location payload pushed from chassis state into the runtime.
- Safe
Area Insets - Insets of the platform’s safe rectangle, in logical window pixels.
- Screenshot
Data - Completed screenshot bytes returned by the chassis.
- Screenshot
Patch - Request to capture a screenshot from the chassis.
- Scroll
Interrupt Args - Location-targeted scroll delta payload.
- Scroller
Patch - Create/update patch for a native/browser-owned scroller.
- Scroller
Position Interrupt Args - Native scroller position payload, including optional presentation offsets.
- Select
Start Args - Selection-start interrupt marker payload.
- SetCursor
Patch - Request for the chassis to update cursor style.
- Slider
Patch - Create/update patch for a native slider.
- System
Font Message - System font family payload.
- TapInterrupt
Args - Single-touch tap payload normalized to window coordinates.
- Text
Input Args - Raw text input payload delivered by a native text control.
- Text
Measurement Response Args - Chassis response to an engine-authored native text measurement request.
- Text
Patch - Create/update patch for native or browser-managed text.
- Text
Style Message - Serializable text style payload shared with chassis text renderers.
- Textbox
Patch - Create/update patch for a native textbox.
- Touch
Cancel Interrupt Args - Touch-cancel interrupt payload.
- Touch
EndInterrupt Args - Touch-end interrupt payload.
- Touch
Message - One touch point in a multi-touch interrupt.
- Touch
Move Interrupt Args - Touch-move interrupt payload.
- Touch
Start Interrupt Args - Touch-start interrupt payload.
- Viewport
Resize Args - Layout viewport resize payload for the root app surface.
- Visual
Viewport Update Args - Browser visual viewport payload for page-scroll-backed root scrollers.
- WebFont
Message - Web font payload, including family and source URL.
- Wheel
Interrupt Args - Wheel interrupt payload.
- Youtube
Video Patch - Create/update patch for an embedded YouTube video.
Enums§
- Color
Message - Serializable color payload for native/chassis messages.
- Font
Patch - Serializable font selection payload.
- Font
Style Message - Serializable font-style value.
- Font
Weight Message - Serializable font-weight value.
- Image
Load Interrupt Args - Image-load response, either by pointer or copied metadata.
- Modifier
KeyMessage - Normalized keyboard modifier identifier.
- Mouse
Button Message - Normalized mouse button identifier.
- Native
Interrupt - Events and data packets sent from the chassis back into the Pax runtime.
- Native
Message - Messages emitted by the runtime to create, update, delete, or configure native/chassis resources.
- Text
Align Horizontal Message - Serializable horizontal text alignment.
- Text
Align Vertical Message - Serializable vertical text alignment.