pub fn button<'a, C: ContentCx<'a>>(
cx: &mut C,
id: impl Into<WidgetId>,
rect: Rect,
view: &ButtonView<'_>,
settings: &ButtonSettings,
)Expand description
Register and draw a button.
This is the one-call convenience the deleted level-2
the old L2 register helper used to be, over Widgets instead of
app context (design §6.4). Hover and press come from cx’s
VisualView; view.disabled forces the disabled colours. A click is
not consumed here — the app reads VisualView::clicked.