Skip to content

Commit

Permalink
Ability to fetch current frame.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nhlest committed Nov 23, 2023
1 parent 8b2722d commit 8939e65
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions imgui/src/context.rs
Expand Up @@ -538,6 +538,10 @@ impl Context {
self.new_frame()
}

pub fn current_frame(&mut self) -> &mut Ui {
&mut self.ui
}

/// Starts a new frame and returns an `Ui` instance for constructing a user interface.
#[doc(alias = "NewFame")]
pub fn new_frame(&mut self) -> &mut Ui {
Expand Down

0 comments on commit 8939e65

Please sign in to comment.