Struct alacritty::config::window::WindowConfig
source · pub struct WindowConfig {Show 13 fields
pub position: Option<Delta<i32>>,
pub decorations: Decorations,
pub startup_mode: StartupMode,
pub embed: Option<u32>,
pub dynamic_padding: bool,
pub dynamic_title: bool,
pub identity: Identity,
pub opacity: Percentage,
pub blur: bool,
pub resize_increments: bool,
padding: Delta<u16>,
dimensions: Dimensions,
decorations_theme_variant: Option<Theme>,
}
Fields§
§position: Option<Delta<i32>>
Initial position.
decorations: Decorations
Draw the window with title bar / borders.
startup_mode: StartupMode
Startup mode.
embed: Option<u32>
XEmbed parent.
dynamic_padding: bool
Spread out additional padding evenly.
dynamic_title: bool
Use dynamic title.
identity: Identity
Information to identify a particular window.
opacity: Percentage
Background opacity from 0.0 to 1.0.
blur: bool
Request blur behind the window.
resize_increments: bool
Resize increments.
padding: Delta<u16>
Pixel padding.
dimensions: Dimensions
Initial dimensions.
decorations_theme_variant: Option<Theme>
System decorations theme variant.
Implementations§
source§impl WindowConfig
impl WindowConfig
pub fn dimensions(&self) -> Option<Dimensions>
pub fn padding(&self, scale_factor: f32) -> (f32, f32)
pub fn fullscreen(&self) -> Option<Fullscreen>
pub fn maximized(&self) -> bool
pub fn theme(&self) -> Option<WinitTheme>
Trait Implementations§
source§impl Clone for WindowConfig
impl Clone for WindowConfig
source§fn clone(&self) -> WindowConfig
fn clone(&self) -> WindowConfig
Returns a copy 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 WindowConfig
impl Debug for WindowConfig
source§impl Default for WindowConfig
impl Default for WindowConfig
source§impl<'de> Deserialize<'de> for WindowConfig
impl<'de> Deserialize<'de> for WindowConfig
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for WindowConfig
impl PartialEq for WindowConfig
source§fn eq(&self, other: &WindowConfig) -> bool
fn eq(&self, other: &WindowConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'de> SerdeReplace for WindowConfig
impl<'de> SerdeReplace for WindowConfig
impl StructuralPartialEq for WindowConfig
Auto Trait Implementations§
impl RefUnwindSafe for WindowConfig
impl Send for WindowConfig
impl Sync for WindowConfig
impl Unpin for WindowConfig
impl UnwindSafe for WindowConfig
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
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.