pub struct WindowConfig {
pub dimensions: Dimensions,
pub position: Option<Delta<i32>>,
pub padding: Delta<u8>,
pub decorations: Decorations,
pub dynamic_padding: bool,
pub title: String,
pub class: Class,
pub embed: Option<c_ulong>,
pub gtk_theme_variant: Option<String>,
pub start_maximized: Option<bool>,
/* private fields */
}
Fields§
§dimensions: Dimensions
Initial dimensions
position: Option<Delta<i32>>
Initial position
padding: Delta<u8>
Pixel padding
decorations: Decorations
Draw the window with title bar / borders
dynamic_padding: bool
Spread out additional padding evenly
title: String
Window title
class: Class
Window class
embed: Option<c_ulong>
XEmbed parent
gtk_theme_variant: Option<String>
GTK theme variant
start_maximized: Option<bool>
TODO: DEPRECATED
Implementations§
Source§impl WindowConfig
impl WindowConfig
pub fn startup_mode(&self) -> StartupMode
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§fn default() -> WindowConfig
fn default() -> WindowConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WindowConfigwhere
WindowConfig: Default,
impl<'de> Deserialize<'de> for WindowConfigwhere
WindowConfig: Default,
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
impl Eq for WindowConfig
impl StructuralPartialEq for WindowConfig
Auto Trait Implementations§
impl Freeze for WindowConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)