mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-14 06:58:35 +00:00
removed my changelog
This commit is contained in:
parent
7e666e8463
commit
468d6c8a33
@ -51,11 +51,6 @@
|
||||
- The variants of `ColorEditInputMode` and `ColorEditDisplayMode` have been renamed to be CamelCase instead of upper case (e.g. `ColorEditFooMode::RGB` => `ColorEditFooMode::Rgb`).
|
||||
- However, this change is probably not breaking (in practice if not in theory) because const aliases using the old names are provided.
|
||||
|
||||
- Most tokens through the repository (eg. `WindowToken`, `TabBarToken`, `FontStackToken`, etc) now allow for permissive dropping -- i.e, you don't need to actually call the `.end()` method on them anymore. In exchange, these tokens have taken on a lifetime, which allows them to be safe.
|
||||
- `end()` no longer takes `Ui`. This is a breaking change, but hopefully should be trivial (and perhaps nice) for users to fix. Simply delete the parameters, or add a `_` before the token's binding name and allow it to be dropped on its own.
|
||||
|
||||
- `PopupModal`'s `new` was reworked so that it didn't take `Ui` until `build` was called. This is a breaking change if you were invoking it directly. Simply move your `ui` call to `build` or `begin`.
|
||||
|
||||
## [0.6.1] - 2020-12-16
|
||||
|
||||
- Support for winit 0.24.x
|
||||
|
||||
@ -29,7 +29,7 @@ pub use self::legacy::*;
|
||||
pub use self::list_clipper::ListClipper;
|
||||
pub use self::plothistogram::PlotHistogram;
|
||||
pub use self::plotlines::PlotLines;
|
||||
pub use self::popups::PopupModal;
|
||||
pub use self::popups::*;
|
||||
pub use self::render::draw_data::*;
|
||||
pub use self::render::renderer::*;
|
||||
pub use self::stacks::*;
|
||||
|
||||
@ -347,7 +347,6 @@ pub enum ItemFlag {
|
||||
ButtonRepeat(bool),
|
||||
}
|
||||
|
||||
/// Tracks a change pushed to the item width stack
|
||||
pub struct ItemWidthStackToken {
|
||||
_ctx: *const Context,
|
||||
}
|
||||
@ -407,7 +406,6 @@ create_token!(
|
||||
|
||||
impl IdStackToken<'_> {
|
||||
/// Pops a change from the ID stack
|
||||
#[deprecated = "deprecated in 0.7.0. Use `end` instead."]
|
||||
pub fn pop(self) {
|
||||
self.end()
|
||||
}
|
||||
@ -419,7 +417,7 @@ impl<'ui> Ui<'ui> {
|
||||
///
|
||||
/// Returns an `IdStackToken` that can be popped by calling `.end()`
|
||||
/// or by dropping manually.
|
||||
pub fn push_id<'a, I: Into<Id<'a>>>(&self, id: I) -> IdStackToken<'_> {
|
||||
pub fn push_id<'a, I: Into<Id<'a>>>(&self, id: I) -> IdStackToken<'ui> {
|
||||
let id = id.into();
|
||||
|
||||
unsafe {
|
||||
|
||||
@ -231,10 +231,9 @@ impl<'a> TreeNode<'a> {
|
||||
/// Pushes a tree node and starts appending to it.
|
||||
///
|
||||
/// Returns `Some(TreeNodeToken)` if the tree node is open. After content has been
|
||||
/// rendered, the token must be popped by calling `.pop()`.
|
||||
/// rendered, the token can be popped by calling `.pop()`.
|
||||
///
|
||||
/// Returns `None` if the tree node is not open and no content should be rendered.
|
||||
#[must_use]
|
||||
pub fn push<'ui>(self, ui: &Ui<'ui>) -> Option<TreeNodeToken<'ui>> {
|
||||
let open = unsafe {
|
||||
if self.opened_cond != Condition::Never {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user