pub struct DecorationConfig {
pub title_bar_height: u32,
pub border_width: u32,
pub title_bg_focused: u32,
pub title_bg_unfocused: u32,
pub title_text_color: u32,
pub border_focused: u32,
pub border_unfocused: u32,
pub button_size: u32,
pub button_padding: u32,
}Expand description
Window decoration rendering configuration.
Fields§
§title_bar_height: u32Title bar height in pixels.
border_width: u32Border width in pixels.
title_bg_focused: u32Title bar background color (focused): ARGB packed as 0xAARRGGBB.
title_bg_unfocused: u32Title bar background color (unfocused): ARGB packed as 0xAARRGGBB.
title_text_color: u32Title text color: ARGB packed as 0xAARRGGBB.
border_focused: u32Border color (focused): ARGB packed as 0xAARRGGBB.
border_unfocused: u32Border color (unfocused): ARGB packed as 0xAARRGGBB.
Button size in pixels (close/maximize/minimize).
Padding between title text and buttons.
Implementations§
Source§impl DecorationConfig
impl DecorationConfig
Sourcepub fn default_config() -> Self
pub fn default_config() -> Self
Default decoration configuration matching the existing desktop style.
Trait Implementations§
Source§impl Clone for DecorationConfig
impl Clone for DecorationConfig
Source§fn clone(&self) -> DecorationConfig
fn clone(&self) -> DecorationConfig
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DecorationConfig
impl Debug for DecorationConfig
Source§impl Default for DecorationConfig
impl Default for DecorationConfig
impl Copy for DecorationConfig
Auto Trait Implementations§
impl Freeze for DecorationConfig
impl RefUnwindSafe for DecorationConfig
impl Send for DecorationConfig
impl Sync for DecorationConfig
impl Unpin for DecorationConfig
impl UnwindSafe for DecorationConfig
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)