Struct widgetry::widgets::toggle::Toggle [−][src]
Fields
enabled: bool
btn: Button
other_btn: Button
Implementations
impl Toggle
[src]
impl Toggle
[src]pub fn new_widget(enabled: bool, false_btn: Button, true_btn: Button) -> Widget
[src]
pub fn switch<MK: Into<Option<MultiKey>>>(
ctx: &EventCtx<'_>,
label: &str,
hotkey: MK,
enabled: bool
) -> Widget
[src]
ctx: &EventCtx<'_>,
label: &str,
hotkey: MK,
enabled: bool
) -> Widget
pub fn checkbox<MK: Into<Option<MultiKey>>>(
ctx: &EventCtx<'_>,
label: &str,
hotkey: MK,
enabled: bool
) -> Widget
[src]
ctx: &EventCtx<'_>,
label: &str,
hotkey: MK,
enabled: bool
) -> Widget
pub fn custom_checkbox<MK: Into<Option<MultiKey>>>(
ctx: &EventCtx<'_>,
action: &str,
spans: Vec<TextSpan>,
hotkey: MK,
enabled: bool
) -> Widget
[src]
ctx: &EventCtx<'_>,
action: &str,
spans: Vec<TextSpan>,
hotkey: MK,
enabled: bool
) -> Widget
pub fn colored_checkbox(
ctx: &EventCtx<'_>,
label: &str,
color: Color,
enabled: bool
) -> Widget
[src]
ctx: &EventCtx<'_>,
label: &str,
color: Color,
enabled: bool
) -> Widget
pub fn choice<MK: Into<Option<MultiKey>>>(
ctx: &EventCtx<'_>,
action: &str,
left_label: &str,
right_label: &str,
hotkey: MK,
enabled: bool
) -> Widget
[src]
ctx: &EventCtx<'_>,
action: &str,
left_label: &str,
right_label: &str,
hotkey: MK,
enabled: bool
) -> Widget
Trait Implementations
impl WidgetImpl for Toggle
[src]
impl WidgetImpl for Toggle
[src]