pub struct Builder { /* private fields */ }
Expand description
Builder for creating new Window
with desired parameters.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn dimensions(&mut self, width: f64, height: f64) -> &mut Self
pub fn dimensions(&mut self, width: f64, height: f64) -> &mut Self
Set the size of the viewport (the resolution) in logical pixels. That is the dpi setting affects the amount of pixels used but the window will take up the same amount of space regardless of dpi. Defaults to 1024x768.
sourcepub fn fullscreen(&mut self, option: bool) -> &mut Self
pub fn fullscreen(&mut self, option: bool) -> &mut Self
Whether enable fullscreen mode or not. Defauls to false
.
sourcepub fn multisampling(&mut self, option: u16) -> &mut Self
pub fn multisampling(&mut self, option: u16) -> &mut Self
Sets the multisampling level to request. A value of 0
indicates that multisampling must
not be enabled. Must be the power of 2. Defaults to 0
.
sourcepub fn shader_directory<P: Into<PathBuf>>(&mut self, option: P) -> &mut Self
pub fn shader_directory<P: Into<PathBuf>>(&mut self, option: P) -> &mut Self
Specifies the user shader directory.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
Sets
value
as a parameter of self
.