Struct three_d::GUI [−][src]
pub struct GUI { /* fields omitted */ }
Expand description
Integration of egui, an immediate mode GUI.
Implementations
impl GUI
[src]
impl GUI
[src]pub fn update<F: FnOnce(&CtxRef)>(
&mut self,
frame_input: &mut FrameInput,
callback: F
) -> Result<bool, Error>
[src]
pub fn update<F: FnOnce(&CtxRef)>(
&mut self,
frame_input: &mut FrameInput,
callback: F
) -> Result<bool, Error>
[src]Initialises a new frame of the GUI and handles events. Construct the GUI (Add panels, widgets etc.) using the egui::CtxRef in the callback function. This function returns whether or not the GUI has changed, ie. if it consumes any events, and therefore needs to be rendered again.