mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-11 13:38:35 +00:00
Deprecate old ::with functions from bitflags structs
This commit is contained in:
parent
4e9a3fa5bd
commit
0b4837db64
@ -19,6 +19,9 @@
|
||||
|
||||
- `Window::always_vertical_scollbar` (typo)
|
||||
- `igPushStyleVavrVec` (typo)
|
||||
- `ImGuiInputTextFlags::with`
|
||||
- `ImGuiTreeNodeFlags::with`
|
||||
- `ImGuiWindowFlags::with`
|
||||
|
||||
## [0.0.10] - 2016-08-09
|
||||
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user