Deprecate old ::with functions from bitflags structs

This commit is contained in:
Joonas Javanainen 2017-02-14 19:51:58 +02:00
parent 4e9a3fa5bd
commit 0b4837db64
No known key found for this signature in database
GPG Key ID: D39CCA5CB19B9179
2 changed files with 6 additions and 0 deletions

View File

@ -19,6 +19,9 @@
- `Window::always_vertical_scollbar` (typo)
- `igPushStyleVavrVec` (typo)
- `ImGuiInputTextFlags::with`
- `ImGuiTreeNodeFlags::with`
- `ImGuiWindowFlags::with`
## [0.0.10] - 2016-08-09

View File

@ -183,6 +183,7 @@ bitflags!(
);
impl ImGuiWindowFlags {
#[deprecated(since = "0.0.11")]
#[inline]
pub fn with(self, mask: ImGuiWindowFlags, value: bool) -> ImGuiWindowFlags {
if value {
@ -228,6 +229,7 @@ bitflags!(
);
impl ImGuiInputTextFlags {
#[deprecated(since = "0.0.11")]
#[inline]
pub fn with(self, mask: ImGuiInputTextFlags, value: bool) -> ImGuiInputTextFlags {
if value {
@ -267,6 +269,7 @@ bitflags!(
);
impl ImGuiTreeNodeFlags {
#[deprecated(since = "0.0.11")]
#[inline]
pub fn with(self, mask: ImGuiTreeNodeFlags, value: bool) -> ImGuiTreeNodeFlags {
if value {