Skip to main content

toggle

Function toggle 

Source
pub fn toggle<'a, C: ContentCx<'a>>(
    cx: &mut C,
    id: impl Into<WidgetId>,
    rect: Rect,
    view: &ToggleView<'_>,
    settings: &ToggleSettings,
    kind: &ToggleRenderKind<'_>,
)
Expand description

Register and draw a toggle. Disabled comes from view.disabled.