pub struct AppConfig {
pub title: String,
pub size: (u32, u32),
pub vsync: bool,
pub headless: bool,
pub fullscreen: bool,
pub resizable: bool,
pub show_cursor: bool,
pub intercept_close_request: bool,
}Expand description
game window configuration
Fields
title: Stringthe window title (only visible on native target)
size: (u32, u32)the window/canvas size in pixels
vsync: boolsync frames with screen frequency (can only be disabled on native target)
headless: boolstart the program without actually creating a window, for test purposes
fullscreen: boolstart in full screen (native target only)
resizable: boolwhether user can resize the window (native target only)
show_cursor: boolwhether the mouse cursor is visible while in the window
intercept_close_request: boolwhether clicking on the window close button exits the program or sends a CloseRequested event
Implementations
Auto Trait Implementations
impl RefUnwindSafe for AppConfig
impl Send for AppConfig
impl Sync for AppConfig
impl Unpin for AppConfig
impl UnwindSafe for AppConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more