pub struct AppConfig {
pub viewport: Size,
pub scale: f32,
pub clear_color: Color,
pub repaint: RepaintMode,
}Expand description
The settings an App starts with.
Fields§
§viewport: SizeThe size of the window in logical pixels.
scale: f32The number of physical pixels per logical pixel.
clear_color: ColorThe color a renderer fills the surface with before it replays the display list.
repaint: RepaintModeHow much of the surface each frame repaints.
Trait Implementations§
Auto Trait Implementations§
impl Forget for AppConfig
impl Freeze for AppConfig
impl Move 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