Skip to content

Commit

Permalink
get egui context (#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
paul2t committed Jan 17, 2024
1 parent 2bb2bcd commit cccdef0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/gui/egui_gui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ impl GUI {
}
}

///
/// Get the egui context.
///
pub fn context(&self) -> &egui::Context {
&self.egui_context
}

///
/// Initialises a new frame of the GUI and handles events.
/// Construct the GUI (Add panels, widgets etc.) using the [egui::Context] in the callback function.
Expand Down

0 comments on commit cccdef0

Please sign in to comment.