pub struct Settings {
pub default_font: Font,
pub default_text_size: Pixels,
pub antialiasing: Option<Antialiasing>,
pub vsync: bool,
}Expand description
The settings of a renderer.
Fields§
§default_font: FontThe default Font to use.
default_text_size: PixelsThe default size of text.
By default, it will be set to 16.0.
antialiasing: Option<Antialiasing>The antialiasing strategy that will be used for triangle primitives.
By default, it is None.
vsync: boolWhether or not to synchronize frames.
By default, it is true.
Trait Implementations§
impl Copy for Settings
impl StructuralPartialEq for Settings
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
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