Add set_color_edit_options

This commit is contained in:
Joonas Javanainen 2017-11-04 12:18:09 +02:00
parent 97fa401fa4
commit c718bce60d
No known key found for this signature in database
GPG Key ID: D39CCA5CB19B9179

View File

@ -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