Struct egui_winit::Platform [−][src]
pub struct Platform { /* fields omitted */ }
Expand description
egui platform support for winit.
Implementations
impl Platform
[src]
impl Platform
[src]pub fn new(desc: PlatformDescriptor<'_>) -> Self
[src]
pub fn new(desc: PlatformDescriptor<'_>) -> Self
[src]Create a new Platform
.
pub fn handle_event<T>(&mut self, event: &Event<'_, T>) -> bool
[src]
pub fn handle_event<T>(&mut self, event: &Event<'_, T>) -> bool
[src]Handles winit events and passes them to egui.
pub fn begin_frame(&mut self)
[src]
pub fn begin_frame(&mut self)
[src]Starts a new frame.
Auto Trait Implementations
impl !RefUnwindSafe for Platform
impl Send for Platform
impl !Sync for Platform
impl Unpin for Platform
impl !UnwindSafe for Platform
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]