pub struct WindowPlugin<W: WindowRunner> {
pub config: WindowConfig,
/* private fields */
}Expand description
Plugin that creates the platform window and installs it as a runner.
On build it:
- Creates the window via
WindowProvider::create. - Inserts a
WindowResourcecontaining the handle and exposed value. - Sets the app runner to
W::run, which drives the frame loop.
Fields§
§config: WindowConfigImplementations§
Source§impl<W> WindowPlugin<W>where
W: WindowRunner,
impl<W> WindowPlugin<W>where
W: WindowRunner,
pub fn new(config: WindowConfig) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<W> Freeze for WindowPlugin<W>
impl<W> RefUnwindSafe for WindowPlugin<W>where
W: RefUnwindSafe,
impl<W> Send for WindowPlugin<W>where
W: Send,
impl<W> Sync for WindowPlugin<W>where
W: Sync,
impl<W> Unpin for WindowPlugin<W>where
W: Unpin,
impl<W> UnsafeUnpin for WindowPlugin<W>
impl<W> UnwindSafe for WindowPlugin<W>where
W: UnwindSafe,
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