pub struct EguiManager {
pub context: Context,
pub winit_state: State,
}Expand description
Manager for egui state and rendering.
Fields§
§context: ContextThe egui context.
winit_state: Statewinit integration state.
Implementations§
Source§impl EguiManager
impl EguiManager
Sourcepub fn new(
_device: &Device,
_output_format: TextureFormat,
window: &Window,
scale_factor: f32,
) -> Self
pub fn new( _device: &Device, _output_format: TextureFormat, window: &Window, scale_factor: f32, ) -> Self
Creates a new egui manager.
Sourcepub fn wants_pointer_input(&self) -> bool
pub fn wants_pointer_input(&self) -> bool
Returns true if egui wants pointer input.
Sourcepub fn wants_keyboard_input(&self) -> bool
pub fn wants_keyboard_input(&self) -> bool
Returns true if egui wants keyboard input.
Sourcepub fn begin_frame(&mut self, window: &Window)
pub fn begin_frame(&mut self, window: &Window)
Begins a new egui frame.
Sourcepub fn end_frame(&mut self) -> FullOutput
pub fn end_frame(&mut self) -> FullOutput
Ends the current frame and returns the output.
Auto Trait Implementations§
impl Freeze for EguiManager
impl !RefUnwindSafe for EguiManager
impl Send for EguiManager
impl !Sync for EguiManager
impl Unpin for EguiManager
impl UnsafeUnpin for EguiManager
impl !UnwindSafe for EguiManager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.