Expand description
Tappable rectangle with a label that emits a Message on release.
Click semantics: press registers on TouchPhase::Down (sets
pressed = true, no message), message fires on TouchPhase::Up if
pressed is still set. The runtime rehydrates pressed each frame
from pressed_at: Option<Point> via mark_pressed,
so the press persists visually across the Down/Up gesture and
drag-off-to-cancel works.
Styling is resolved through the theme’s ButtonCatalog using the
widget’s ButtonClass (variant) and current Status (state).
.class(ButtonClass::Suggested) for primary actions,
.class(ButtonClass::Destructive) for delete/cancel, etc.
Structs§
- Button
- Tappable button with a label.