[][src]Struct alacritty::config::window::WindowConfig

pub struct WindowConfig {
    pub position: Option<Delta<i32>>,
    pub decorations: Decorations,
    pub startup_mode: StartupMode,
    pub embed: Option<c_ulong>,
    pub gtk_theme_variant: Option<String>,
    pub dynamic_padding: bool,
    pub dynamic_title: bool,
    pub title: String,
    pub class: Class,
    padding: Delta<u8>,
    dimensions: Dimensions,
}

Fields

position: Option<Delta<i32>>

Initial position.

decorations: Decorations

Draw the window with title bar / borders.

startup_mode: StartupMode

Startup mode.

embed: Option<c_ulong>

XEmbed parent.

gtk_theme_variant: Option<String>

GTK theme variant.

dynamic_padding: bool

Spread out additional padding evenly.

dynamic_title: bool

Use dynamic title.

title: String

Window title.

class: Class

Window class.

padding: Delta<u8>

Pixel padding.

dimensions: Dimensions

Initial dimensions.

Implementations

impl WindowConfig[src]

pub fn dimensions(&self) -> Option<Dimensions>[src]

pub fn padding(&self, dpr: f64) -> (f32, f32)[src]

pub fn fullscreen(&self) -> Option<Fullscreen>[src]

pub fn maximized(&self) -> bool[src]

Trait Implementations

impl Clone for WindowConfig[src]

impl Debug for WindowConfig[src]

impl Default for WindowConfig[src]

impl<'de> Deserialize<'de> for WindowConfig[src]

impl Eq for WindowConfig[src]

impl PartialEq<WindowConfig> for WindowConfig[src]

impl StructuralEq for WindowConfig[src]

impl StructuralPartialEq for WindowConfig[src]

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

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.