Skip to main content

Crate plushie_core

Crate plushie_core 

Source
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§

PlushieEnum
Make an enum usable as a widget property type.
WidgetCommand
Typed command declarations for widget operations.
WidgetEvent
Typed event declarations for composite widgets.
WidgetProps
Define your widget’s properties and get typed extraction.