pub struct WindowOpt {
pub dim: WindowDim,
pub num_samples: Option<u32>,
}👎Deprecated: luminance-windowing is not maintained anymore; please directly use the platform crates from now on
Expand description
Different window options.
Feel free to look at the different methods available to tweak the options. You may want to start
with default(), though.
Fields§
§dim: WindowDim👎Deprecated: luminance-windowing is not maintained anymore; please directly use the platform crates from now on
Dimension of the window.
num_samples: Option<u32>👎Deprecated: luminance-windowing is not maintained anymore; please directly use the platform crates from now on
Number of samples for multisampling.
None means no multisampling.
Implementations§
Source§impl WindowOpt
impl WindowOpt
Sourcepub fn set_dim(self, dim: WindowDim) -> Self
👎Deprecated: luminance-windowing is not maintained anymore; please directly use the platform crates from now on
pub fn set_dim(self, dim: WindowDim) -> Self
Set the dimension of the window.
Sourcepub fn dim(&self) -> &WindowDim
👎Deprecated: luminance-windowing is not maintained anymore; please directly use the platform crates from now on
pub fn dim(&self) -> &WindowDim
Get the dimension of the window.
Sourcepub fn set_num_samples<S>(self, num_samples: S) -> Self
👎Deprecated: luminance-windowing is not maintained anymore; please directly use the platform crates from now on
pub fn set_num_samples<S>(self, num_samples: S) -> Self
Set the number of samples to use for multisampling.
Pass None to disable multisampling.
Sourcepub fn num_samples(&self) -> &Option<u32>
👎Deprecated: luminance-windowing is not maintained anymore; please directly use the platform crates from now on
pub fn num_samples(&self) -> &Option<u32>
Get the number of samples to use in multisampling, if any.
Trait Implementations§
impl Copy for WindowOpt
impl Eq for WindowOpt
impl StructuralPartialEq for WindowOpt
Auto Trait Implementations§
impl Freeze for WindowOpt
impl RefUnwindSafe for WindowOpt
impl Send for WindowOpt
impl Sync for WindowOpt
impl Unpin for WindowOpt
impl UnwindSafe for WindowOpt
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