Expand description
Derive macros for Plushie widget development.
-
PlushieEnum: Make an enum usable as a widget property type. Variants become snake_case strings on the wire. -
WidgetEvent: Declare widget events as an enum for typed emission viaEventResult::emit_event(). -
WidgetCommand: Declare widget commands as an enum for typed construction viaCommand::widget(). -
WidgetProps: Define your widget’s properties as a struct and get typed extraction from the widget tree. -
PlushieWidget: Generatetype_namesandfresh_for_sessionfor simple stateless widgets. -
widget!: Function-like macro for declaring a custom widget in a single invocation. Generates the struct, builder,From<_> for TreeNodeconversion, and a build-time metadata const.
Macros§
- widget
- Declare a custom Plushie widget in one shot.
Derive Macros§
- Plushie
Enum - Make an enum usable as a widget property type.
- Plushie
Widget - Generate
type_namesandfresh_for_sessionfor aPlushieWidgetimpl, and re-declare the impl block with those methods injected. - 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.