Struct egui::widgets::Checkbox[][src]

pub struct Checkbox<'a> { /* fields omitted */ }
Expand description

Boolean on/off control with text label.

Usually you’d use Ui::checkbox instead.

// These are equivalent:
ui.checkbox(&mut my_bool, "Checked");
ui.add(egui::Checkbox::new(&mut my_bool, "Checked"));

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

Allocate space, interact, paint, and return a Response. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.