pub struct BackendConfig {
pub is_opengl: bool,
pub opengl_config: Option<OpenGlConfig>,
pub transparent: Option<bool>,
}
Expand description
Intended to provide a common struct which all window backends accept as their configuration. To set size/position/title etc.. just use the windowbackend trait functions after you created the window. This struct is primarily intended for settings which are to be specified before creating a window like opengl or transparency etc..
Fields§
§is_opengl: bool
true by default
opengl_config: Option<OpenGlConfig>
§transparent: Option<bool>
Trait Implementations§
Source§impl Clone for BackendConfig
impl Clone for BackendConfig
Source§fn clone(&self) -> BackendConfig
fn clone(&self) -> BackendConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BackendConfig
impl Debug for BackendConfig
Auto Trait Implementations§
impl Freeze for BackendConfig
impl RefUnwindSafe for BackendConfig
impl Send for BackendConfig
impl Sync for BackendConfig
impl Unpin for BackendConfig
impl UnwindSafe for BackendConfig
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