pub struct WindowControlsOverlayConfigBuilder { /* private fields */ }Expand description
Builder for WindowControlsOverlayConfig.
Implementations§
Source§impl WindowControlsOverlayConfigBuilder
impl WindowControlsOverlayConfigBuilder
Sourcepub fn show_css<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn show_css<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Whether the title bar CSS should be shown when emulating the Window Controls Overlay.
Sourcepub fn selected_platform<VALUE: Into<String>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn selected_platform<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
Selected platforms to show the overlay.
Sourcepub fn theme_color<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn theme_color<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The theme color defined in app manifest.
Sourcepub fn build(
&self,
) -> Result<WindowControlsOverlayConfig, WindowControlsOverlayConfigBuilderError>
pub fn build( &self, ) -> Result<WindowControlsOverlayConfig, WindowControlsOverlayConfigBuilderError>
Trait Implementations§
Source§impl Clone for WindowControlsOverlayConfigBuilder
impl Clone for WindowControlsOverlayConfigBuilder
Source§fn clone(&self) -> WindowControlsOverlayConfigBuilder
fn clone(&self) -> WindowControlsOverlayConfigBuilder
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for WindowControlsOverlayConfigBuilder
impl RefUnwindSafe for WindowControlsOverlayConfigBuilder
impl Send for WindowControlsOverlayConfigBuilder
impl Sync for WindowControlsOverlayConfigBuilder
impl Unpin for WindowControlsOverlayConfigBuilder
impl UnsafeUnpin for WindowControlsOverlayConfigBuilder
impl UnwindSafe for WindowControlsOverlayConfigBuilder
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