[][src]Module imgui_ext::checkbox

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

]result

Structs

CheckboxParams

Structure generated by the annoration.

Traits

Checkbox

Trait for types that can be represented with a checkbox.