From 6695f613df9a55f5c8c9e09aaf2e64071cdcd796 Mon Sep 17 00:00:00 2001 From: Joonas Javanainen Date: Sun, 5 Nov 2017 21:42:55 +0200 Subject: [PATCH] Color button doesn't use ColorFormat :/ --- src/color_editors.rs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/color_editors.rs b/src/color_editors.rs index d5e602b..44c3297 100644 --- a/src/color_editors.rs +++ b/src/color_editors.rs @@ -413,19 +413,6 @@ impl<'ui, 'p> ColorButton<'ui, 'p> { ); 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. /// /// Use 0.0 for width and/or height to use the default size.