Expand description
checkbox(...)
docs.
§Optional fields
label
override widget label.catch
map
Applies a mapping function to&mut Self
(works the same as in the input example)
§Example
#[derive(imgui_ext::Gui)]
struct Checkboxes {
// All parameters are optional.
#[imgui(checkbox)]
turbo: bool,
// Optionally, you can override the label:
#[imgui(checkbox(label = "Checkbox!"))]
check: bool,
}
§Result
Structs§
- Checkbox
Params - Structure generated by the annoration.
Traits§
- Checkbox
- Trait for types that can be represented with a checkbox.