pub struct WindowControlsOverlayConfig<'a> { /* private fields */ }Expand description
Configuration for Window Controls Overlay
Implementations§
Source§impl<'a> WindowControlsOverlayConfig<'a>
impl<'a> WindowControlsOverlayConfig<'a>
Sourcepub fn builder(
show_css: bool,
selected_platform: impl Into<Cow<'a, str>>,
theme_color: impl Into<Cow<'a, str>>,
) -> WindowControlsOverlayConfigBuilder<'a>
pub fn builder( show_css: bool, selected_platform: impl Into<Cow<'a, str>>, theme_color: impl Into<Cow<'a, str>>, ) -> WindowControlsOverlayConfigBuilder<'a>
Creates a builder for this type with the required parameters:
show_css: Whether the title bar CSS should be shown when emulating the Window Controls Overlay.selected_platform: Selected platforms to show the overlay.theme_color: The theme color defined in app manifest.
Sourcepub fn show_css(&self) -> bool
pub fn show_css(&self) -> bool
Whether the title bar CSS should be shown when emulating the Window Controls Overlay.
Sourcepub fn selected_platform(&self) -> &str
pub fn selected_platform(&self) -> &str
Selected platforms to show the overlay.
Sourcepub fn theme_color(&self) -> &str
pub fn theme_color(&self) -> &str
The theme color defined in app manifest.
Trait Implementations§
Source§impl<'a> Clone for WindowControlsOverlayConfig<'a>
impl<'a> Clone for WindowControlsOverlayConfig<'a>
Source§fn clone(&self) -> WindowControlsOverlayConfig<'a>
fn clone(&self) -> WindowControlsOverlayConfig<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for WindowControlsOverlayConfig<'a>
impl<'a> Debug for WindowControlsOverlayConfig<'a>
Source§impl<'a> Default for WindowControlsOverlayConfig<'a>
impl<'a> Default for WindowControlsOverlayConfig<'a>
Source§fn default() -> WindowControlsOverlayConfig<'a>
fn default() -> WindowControlsOverlayConfig<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for WindowControlsOverlayConfig<'a>
impl<'de, 'a> Deserialize<'de> for WindowControlsOverlayConfig<'a>
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
Auto Trait Implementations§
impl<'a> Freeze for WindowControlsOverlayConfig<'a>
impl<'a> RefUnwindSafe for WindowControlsOverlayConfig<'a>
impl<'a> Send for WindowControlsOverlayConfig<'a>
impl<'a> Sync for WindowControlsOverlayConfig<'a>
impl<'a> Unpin for WindowControlsOverlayConfig<'a>
impl<'a> UnsafeUnpin for WindowControlsOverlayConfig<'a>
impl<'a> UnwindSafe for WindowControlsOverlayConfig<'a>
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