mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-13 06:28:36 +00:00
Add set_color_edit_options
This commit is contained in:
parent
97fa401fa4
commit
c718bce60d
@ -670,6 +670,14 @@ impl<'ui> Ui<'ui> {
|
||||
) -> ColorButton<'ui, 'p> {
|
||||
ColorButton::new(self, desc_id, color.into())
|
||||
}
|
||||
/// Initialize current options (generally on application startup) if you want to select a
|
||||
/// default format, picker type, etc. Users will be able to change many settings, unless you
|
||||
/// use .options(false) in your widget builders.
|
||||
pub fn set_color_edit_options(&self, flags: ImGuiColorEditFlags) {
|
||||
unsafe {
|
||||
sys::igSetColorEditOptions(flags);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Widgets: Trees
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user