[−][src]Struct candelabre_windowing::CandlOptions
Window options
This type is an extract from luminance-windowing
Methods
impl CandlOptions
[src]
pub fn cursor_mode(&self) -> CursorMode
[src]
get the cursor current visiblity
pub fn set_cursor_mode(self, cursor_mode: CursorMode) -> Self
[src]
choose the cursor visibility
pub fn decorations(&self) -> bool
[src]
get the window current decoration status (default true)
pub fn set_decorations(self, decorations: bool) -> Self
[src]
set if the window use decoration
pub fn max_size(&self) -> Option<(u32, u32)>
[src]
get the maximal size, if set, or none otherwise
pub fn set_maw_size(self, max_size: Option<(u32, u32)>) -> Self
[src]
set the maximal size of the window
pub fn min_size(&self) -> Option<(u32, u32)>
[src]
get the minimal size, if set, or none otherwise
pub fn set_min_size(self, min_size: Option<(u32, u32)>) -> Self
[src]
set the minimal size of the window
pub fn on_top(&self) -> bool
[src]
get if the window must be always on top, or not
pub fn set_on_top(self, on_top: bool) -> Self
[src]
set if the window is always on top or not
pub fn samples(&self) -> Option<u32>
[src]
get the number of samples for multisampling
pub fn set_samples<S: Into<Option<u32>>>(self, samples: S) -> Self
[src]
choose the number of samples for multisampling
pub fn transparent(&self) -> bool
[src]
get if the window can be transparent (default false)
pub fn set_transparent(self, transparent: bool) -> Self
[src]
set the window transparency
pub fn vsync(&self) -> bool
[src]
get actual vsync configuration
pub fn set_vsync(self, vsync: bool) -> Self
[src]
set the vsync (false by default)
Trait Implementations
impl Clone for CandlOptions
[src]
fn clone(&self) -> CandlOptions
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for CandlOptions
[src]
impl Debug for CandlOptions
[src]
impl Default for CandlOptions
[src]
impl Eq for CandlOptions
[src]
impl PartialEq<CandlOptions> for CandlOptions
[src]
fn eq(&self, other: &CandlOptions) -> bool
[src]
fn ne(&self, other: &CandlOptions) -> bool
[src]
impl StructuralEq for CandlOptions
[src]
impl StructuralPartialEq for CandlOptions
[src]
Auto Trait Implementations
impl RefUnwindSafe for CandlOptions
impl Send for CandlOptions
impl Sync for CandlOptions
impl Unpin for CandlOptions
impl UnwindSafe for CandlOptions
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,