Expand description
Core types and protocol for Plushie.
This crate contains the shared data types used by both the Plushie SDK and the renderer. It has no iced dependency, making it suitable for wire-mode apps, FFI bindings, and tooling that doesn’t need the full rendering stack.
Re-exports§
pub use diagnostic::Diagnostic;pub use diagnostic::DiagnosticKind;pub use event_type::EventType;pub use key::EffectKind;pub use key::InteractAction;pub use key::Key;pub use key::KeyPress;pub use key::MouseButton;pub use key::PointerKind;pub use scoped_id::ScopedId;pub use selector::MAX_SELECTOR_SEARCH_DEPTH;pub use selector::Selector;pub use spec::CommandSpec;pub use spec::EventSpec;pub use spec::PayloadSpec;pub use spec::ValueType;pub use spec::WidgetCommandEncode;pub use types::FromNode;pub use types::PlushieType;pub use types::WidgetEventEncode;pub use widget_builder::WidgetBuilder;
Modules§
- animation
- Declarative animation descriptor types.
- codec_
safety - Wire-codec safety checks shared across the Rust SDK and the renderer-side widget SDK.
- diagnostic
- Typed diagnostic variants emitted from tree normalization, widget validation, and runtime bookkeeping.
- diagnostics
- Diagnostic emission hook.
- event_
type - Widget event type classification.
- key
- Keyboard key types with forgiving string parsing.
- ops
- Renderer operations and supporting types.
- outgoing_
message - Typed outgoing wire protocol messages (SDK -> renderer).
- pointer
- Typed pointer event data for the wire protocol.
- protocol
- Wire protocol types for host-renderer communication.
- scoped_
id - Structured representation of a scoped widget ID.
- selector
- Widget selector for automation and tree search.
- settings
- Application and window configuration.
- spec
- Payload specifications for events and commands.
- tree_
walk - Composable tree walker.
- types
- Shared property types for Plushie.
- widget_
builder - Builder for constructing widget placeholder nodes with typed properties.
Macros§
- widget
- Declare a custom Plushie widget in one shot.
Constants§
- BUILTIN_
TYPE_ NAMES - Sorted list of every built-in widget type name reserved by the stock renderer’s iced widget set.
Derive Macros§
- Plushie
Enum - Make an enum usable as a widget property type.
- Widget
Command - Typed command declarations for widget operations.
- Widget
Event - Typed event declarations for composite widgets.
- Widget
Props - Define your widget’s properties and get typed extraction.