pub struct AppConfig {
pub title: String,
pub width: u32,
pub height: u32,
pub fullscreen: bool,
pub maximized: bool,
pub vsync: bool,
pub decorations: bool,
pub transparent: bool,
pub double_buffer: Option<bool>,
pub hardware_acceleration: Option<bool>,
pub refresh_on_event: bool,
pub color: [f32; 4],
}
Fields§
§title: String
§width: u32
§height: u32
§fullscreen: bool
§maximized: bool
§vsync: bool
§decorations: bool
§transparent: bool
§double_buffer: Option<bool>
§hardware_acceleration: Option<bool>
§refresh_on_event: bool
§color: [f32; 4]
Implementations§
Source§impl AppConfig
impl AppConfig
pub fn title(self, v: impl ToString) -> Self
pub fn width(self, v: u32) -> Self
pub fn height(self, v: u32) -> Self
pub fn fullscreen(self, v: bool) -> Self
pub fn maximized(self, v: bool) -> Self
pub fn vsync(self, v: bool) -> Self
pub fn decorations(self, v: bool) -> Self
pub fn transparent(self, v: bool) -> Self
pub fn double_buffer(self, v: Option<bool>) -> Self
pub fn hardware_acceleration(self, v: Option<bool>) -> Self
pub fn refresh_on_event(self, v: bool) -> Self
pub fn color(self, v: impl Into<[f32; 4]>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AppConfig
impl RefUnwindSafe for AppConfig
impl Send for AppConfig
impl Sync for AppConfig
impl Unpin for AppConfig
impl UnwindSafe for AppConfig
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