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) -> AppConfig
pub fn width(self, v: u32) -> AppConfig
pub fn height(self, v: u32) -> AppConfig
pub fn fullscreen(self, v: bool) -> AppConfig
pub fn maximized(self, v: bool) -> AppConfig
pub fn vsync(self, v: bool) -> AppConfig
pub fn decorations(self, v: bool) -> AppConfig
pub fn transparent(self, v: bool) -> AppConfig
pub fn double_buffer(self, v: Option<bool>) -> AppConfig
pub fn hardware_acceleration(self, v: Option<bool>) -> AppConfig
pub fn refresh_on_event(self, v: bool) -> AppConfig
pub fn color(self, v: impl Into<[f32; 4]>) -> AppConfig
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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere
T: Default,
fn initialize() -> T
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().