mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-24 11:58:32 +00:00
Color button doesn't use ColorFormat :/
This commit is contained in:
parent
ad6a5ada1b
commit
6695f613df
@ -413,19 +413,6 @@ impl<'ui, 'p> ColorButton<'ui, 'p> {
|
|||||||
);
|
);
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
/// Sets the formatting style of color components.
|
|
||||||
#[inline]
|
|
||||||
pub fn format(mut self, format: ColorFormat) -> Self {
|
|
||||||
self.flags.set(
|
|
||||||
ImGuiColorEditFlags::Uint8,
|
|
||||||
format == ColorFormat::U8,
|
|
||||||
);
|
|
||||||
self.flags.set(
|
|
||||||
ImGuiColorEditFlags::Float,
|
|
||||||
format == ColorFormat::Float,
|
|
||||||
);
|
|
||||||
self
|
|
||||||
}
|
|
||||||
/// Sets the button size.
|
/// Sets the button size.
|
||||||
///
|
///
|
||||||
/// Use 0.0 for width and/or height to use the default size.
|
/// Use 0.0 for width and/or height to use the default size.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user