mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-14 15:08:36 +00:00
Remove deprecated functions
This commit is contained in:
parent
fffff84f8b
commit
373801b9be
@ -2,6 +2,14 @@
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Removed
|
||||
|
||||
- `Window::always_vertical_scollbar` (typo)
|
||||
- `igPushStyleVavrVec` (typo)
|
||||
- `ImGuiInputTextFlags::with`
|
||||
- `ImGuiTreeNodeFlags::with`
|
||||
- `ImGuiWindowFlags::with`
|
||||
|
||||
## [0.0.11] - 2017-02-15
|
||||
|
||||
### Added
|
||||
|
||||
@ -195,18 +195,6 @@ bitflags!(
|
||||
}
|
||||
);
|
||||
|
||||
impl ImGuiWindowFlags {
|
||||
#[deprecated(since = "0.0.11")]
|
||||
#[inline]
|
||||
pub fn with(self, mask: ImGuiWindowFlags, value: bool) -> ImGuiWindowFlags {
|
||||
if value {
|
||||
self | mask
|
||||
} else {
|
||||
self - mask
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bitflags!(
|
||||
/// Condition flags
|
||||
#[repr(C)]
|
||||
@ -243,19 +231,6 @@ bitflags!(
|
||||
}
|
||||
);
|
||||
|
||||
impl ImGuiInputTextFlags {
|
||||
#[deprecated(since = "0.0.11")]
|
||||
#[inline]
|
||||
pub fn with(self, mask: ImGuiInputTextFlags, value: bool) -> ImGuiInputTextFlags {
|
||||
if value {
|
||||
self | mask
|
||||
} else {
|
||||
self - mask
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
bitflags!(
|
||||
/// Flags for selectables
|
||||
#[repr(C)]
|
||||
@ -285,18 +260,6 @@ bitflags!(
|
||||
}
|
||||
);
|
||||
|
||||
impl ImGuiTreeNodeFlags {
|
||||
#[deprecated(since = "0.0.11")]
|
||||
#[inline]
|
||||
pub fn with(self, mask: ImGuiTreeNodeFlags, value: bool) -> ImGuiTreeNodeFlags {
|
||||
if value {
|
||||
self | mask
|
||||
} else {
|
||||
self - mask
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub type ImGuiTextEditCallback =
|
||||
Option<extern "C" fn(data: *mut ImGuiTextEditCallbackData) -> c_int>;
|
||||
|
||||
@ -833,13 +796,6 @@ extern "C" {
|
||||
pub fn igGetColorU32Vec(col: *const ImVec4) -> ImU32;
|
||||
}
|
||||
|
||||
#[allow(non_snake_case)]
|
||||
#[deprecated(since = "0.0.11", note = "name has a typo, please use `igPushStyleVarVec` instead")]
|
||||
#[inline]
|
||||
pub unsafe fn igPushStyleVavrVec(idx: ImGuiStyleVar, val: ImVec2) {
|
||||
igPushStyleVarVec(idx, val);
|
||||
}
|
||||
|
||||
// Parameter stack (current window)
|
||||
extern "C" {
|
||||
pub fn igPushItemWidth(item_width: c_float);
|
||||
|
||||
@ -136,11 +136,6 @@ impl<'ui, 'p> Window<'ui, 'p> {
|
||||
self.flags.set(ImGuiWindowFlags_NoBringToFrontOnFocus, value);
|
||||
self
|
||||
}
|
||||
#[deprecated(since = "0.0.11", note = "name has a typo, please use `always_vertical_scrollbar` instead")]
|
||||
#[inline]
|
||||
pub fn always_vertical_scollbar(self, value: bool) -> Self {
|
||||
self.always_vertical_scrollbar(value)
|
||||
}
|
||||
#[inline]
|
||||
pub fn always_vertical_scrollbar(mut self, value: bool) -> Self {
|
||||
self.flags.set(ImGuiWindowFlags_AlwaysVerticalScrollbar, value);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user