From f54fae81f19a78802e48dffdef5249a4b8167a7d Mon Sep 17 00:00:00 2001 From: Joonas Javanainen Date: Thu, 2 Nov 2017 22:05:57 +0200 Subject: [PATCH] Deprecate Window::bg_alpha in preparation for 1.52 --- CHANGELOG.markdown | 1 + src/window.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.markdown b/CHANGELOG.markdown index ec011af..b4a3f3a 100644 --- a/CHANGELOG.markdown +++ b/CHANGELOG.markdown @@ -17,6 +17,7 @@ - Non-namespaced flags - Various imgui-sys things that were deprecated in imgui/cimgui 1.51 +- `Window::bg_alpha`. Push a color change with `with_color_var` instead ## [0.0.16] - 2017-10-26 diff --git a/src/window.rs b/src/window.rs index ec7cb7c..355939f 100644 --- a/src/window.rs +++ b/src/window.rs @@ -48,6 +48,8 @@ impl<'ui, 'p> Window<'ui, 'p> { self.opened = Some(opened); self } + #[deprecated(since = "0.0.17", + note = "please use with_color_var and ImGuiCol::WindowBg instead")] #[inline] pub fn bg_alpha(mut self, bg_alpha: f32) -> Self { self.bg_alpha = bg_alpha;