pub struct EguiWindow<A: App> {
pub window: WindowContext,
/* private fields */
}Expand description
Handles an egui-baseview application
Fields§
§window: WindowContextImplementations§
Source§impl<A: App> EguiWindow<A>
impl<A: App> EguiWindow<A>
Sourcepub fn create(settings: EguiWindowSettings, app: A) -> Result<Window, Error>
pub fn create(settings: EguiWindowSettings, app: A) -> Result<Window, Error>
Open a new window.
settings- The settings of the window.app- The application to run.
Sourcepub fn create_with_host(
settings: EguiWindowSettings,
app: A,
host: Option<Host>,
) -> Result<Window, Error>
pub fn create_with_host( settings: EguiWindowSettings, app: A, host: Option<Host>, ) -> Result<Window, Error>
Open a new window.
settings- The settings of the window.app- The application to run.host- The baseview ‘Host’ callbacks.
Trait Implementations§
Source§impl<A: App> WindowHandler for EguiWindow<A>
impl<A: App> WindowHandler for EguiWindow<A>
Source§fn on_frame(&self) -> Result<(), HandlerError>
fn on_frame(&self) -> Result<(), HandlerError>
Requests the handler to draw a new frame. Read more
Source§fn resized(&self, new_size: WindowSize) -> Result<(), HandlerError>
fn resized(&self, new_size: WindowSize) -> Result<(), HandlerError>
Informs the handler that the window has been resized. Read more
fn on_event(&self, event: Event) -> EventStatus
Auto Trait Implementations§
impl<A> !Freeze for EguiWindow<A>
impl<A> !RefUnwindSafe for EguiWindow<A>
impl<A> !Send for EguiWindow<A>
impl<A> !Sync for EguiWindow<A>
impl<A> !UnwindSafe for EguiWindow<A>
impl<A> Unpin for EguiWindow<A>where
A: Unpin,
impl<A> UnsafeUnpin for EguiWindow<A>where
A: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more