mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-25 20:38:36 +00:00
fixed up tests
This commit is contained in:
parent
074c40e927
commit
cfb9a671ec
@ -426,8 +426,8 @@ impl Ui {
|
|||||||
/// // or you could call
|
/// // or you could call
|
||||||
/// // if you want to let it drop on its own, name it `_wt`.
|
/// // if you want to let it drop on its own, name it `_wt`.
|
||||||
/// // never name it `_`, as this will drop it *immediately*.
|
/// // never name it `_`, as this will drop it *immediately*.
|
||||||
/// wt.unwrap().end();
|
/// wt.end();
|
||||||
/// }
|
/// };
|
||||||
/// ```
|
/// ```
|
||||||
pub fn window<Label: AsRef<str>>(&self, name: Label) -> Window<'_, '_, Label> {
|
pub fn window<Label: AsRef<str>>(&self, name: Label) -> Window<'_, '_, Label> {
|
||||||
Window::new(self, name)
|
Window::new(self, name)
|
||||||
|
|||||||
@ -418,7 +418,7 @@ impl<'ui> Ui {
|
|||||||
/// for num in 0..10 {
|
/// for num in 0..10 {
|
||||||
/// // And now we add the loop number to the stack too,
|
/// // And now we add the loop number to the stack too,
|
||||||
/// // to make our buttons unique within this window.
|
/// // to make our buttons unique within this window.
|
||||||
/// let _id = ui.push_id(num);
|
/// let _id = ui.push_id_usize(num);
|
||||||
/// if ui.button("Click!") {
|
/// if ui.button("Click!") {
|
||||||
/// println!("Button {} clicked", num);
|
/// println!("Button {} clicked", num);
|
||||||
/// }
|
/// }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user