pub struct CandlOptions { /* private fields */ }Expand description
Window options
This type is an extract from luminance-windowing
Implementations§
Source§impl CandlOptions
impl CandlOptions
Sourcepub fn cursor_mode(&self) -> CursorMode
pub fn cursor_mode(&self) -> CursorMode
get the cursor current visiblity
Sourcepub fn set_cursor_mode(self, cursor_mode: CursorMode) -> Self
pub fn set_cursor_mode(self, cursor_mode: CursorMode) -> Self
choose the cursor visibility
Sourcepub fn decorations(&self) -> bool
pub fn decorations(&self) -> bool
get the window current decoration status (default true)
Sourcepub fn set_decorations(self, decorations: bool) -> Self
pub fn set_decorations(self, decorations: bool) -> Self
set if the window use decoration
Sourcepub fn set_maw_size(self, max_size: Option<(u32, u32)>) -> Self
pub fn set_maw_size(self, max_size: Option<(u32, u32)>) -> Self
set the maximal size of the window
Sourcepub fn set_min_size(self, min_size: Option<(u32, u32)>) -> Self
pub fn set_min_size(self, min_size: Option<(u32, u32)>) -> Self
set the minimal size of the window
Sourcepub fn set_on_top(self, on_top: bool) -> Self
pub fn set_on_top(self, on_top: bool) -> Self
set if the window is always on top or not
Sourcepub fn set_samples<S: Into<Option<u32>>>(self, samples: S) -> Self
pub fn set_samples<S: Into<Option<u32>>>(self, samples: S) -> Self
choose the number of samples for multisampling
Sourcepub fn transparent(&self) -> bool
pub fn transparent(&self) -> bool
get if the window can be transparent (default false)
Sourcepub fn set_transparent(self, transparent: bool) -> Self
pub fn set_transparent(self, transparent: bool) -> Self
set the window transparency
Trait Implementations§
Source§impl Clone for CandlOptions
impl Clone for CandlOptions
Source§fn clone(&self) -> CandlOptions
fn clone(&self) -> CandlOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CandlOptions
impl Debug for CandlOptions
Source§impl Default for CandlOptions
impl Default for CandlOptions
Source§impl PartialEq for CandlOptions
impl PartialEq for CandlOptions
impl Copy for CandlOptions
impl Eq for CandlOptions
impl StructuralPartialEq for CandlOptions
Auto Trait Implementations§
impl Freeze for CandlOptions
impl RefUnwindSafe for CandlOptions
impl Send for CandlOptions
impl Sync for CandlOptions
impl Unpin for CandlOptions
impl UnsafeUnpin for CandlOptions
impl UnwindSafe for CandlOptions
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