Deprecate Window::bg_alpha in preparation for 1.52

This commit is contained in:
Joonas Javanainen 2017-11-02 22:05:57 +02:00
parent 907f9dbdeb
commit f54fae81f1
No known key found for this signature in database
GPG Key ID: D39CCA5CB19B9179
2 changed files with 3 additions and 0 deletions

View File

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

View File

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