[][src]Struct candelabre_windowing::CandlOptions

pub struct CandlOptions { /* fields omitted */ }

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]

impl Copy for CandlOptions[src]

impl Debug for CandlOptions[src]

impl Default for CandlOptions[src]

fn default() -> Self[src]

Default:

Default options for a window, with cursor visible

impl Eq for CandlOptions[src]

impl PartialEq<CandlOptions> for CandlOptions[src]

impl StructuralEq for CandlOptions[src]

impl StructuralPartialEq for CandlOptions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.