pub struct AppOutput {
pub quit: bool,
pub window_size: Option<Vec2>,
pub window_title: Option<String>,
pub decorated: Option<bool>,
pub drag_window: bool,
}
Expand description
Action that can be taken by the user app.
Fields
quit: bool
Set to true
to stop the app.
This does nothing for web apps.
window_size: Option<Vec2>
Set to some size to resize the outer window (e.g. glium window) to this size.
window_title: Option<String>
Set to some string to rename the outer window (e.g. glium window) to this title.
decorated: Option<bool>
Set to some bool to change window decorations.
drag_window: bool
Set to true to drag window while primary mouse button is down.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AppOutput
impl Send for AppOutput
impl Sync for AppOutput
impl Unpin for AppOutput
impl UnwindSafe for AppOutput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more