pub struct WinOSWindowConfig { /* private fields */ }Implementations§
Source§impl WinOSWindowConfig
impl WinOSWindowConfig
Sourcepub fn corner_preference(self, corner_preference: WinOsCornerPreference) -> Self
pub fn corner_preference(self, corner_preference: WinOsCornerPreference) -> Self
Sets the preferred style of the window corners.
Supported starting with Windows 11 Build 22000.
Sourcepub fn set_enable(self, set_enable: bool) -> Self
pub fn set_enable(self, set_enable: bool) -> Self
Enables or disables mouse and keyboard input to the specified window.
A window must be enabled before it can be activated.
If an application has create a modal dialog box by disabling its owner window
(as described in [WindowAttributesExtWindows::with_owner_window]), the application must
enable the owner window before destroying the dialog box.
Otherwise, another window will receive the keyboard focus and be activated.
If a child window is disabled, it is ignored when the system tries to determine which window should receive mouse messages.
For more information, see https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-enablewindow#remarks and https://docs.microsoft.com/en-us/windows/win32/winmsg/window-features#disabled-windows.
Sourcepub fn set_skip_taskbar(self, set_skip_taskbar: bool) -> Self
pub fn set_skip_taskbar(self, set_skip_taskbar: bool) -> Self
Whether to show or hide the window icon in the taskbar.
Sourcepub fn set_system_backdrop(self, set_system_backdrop: WinOsBackdropType) -> Self
pub fn set_system_backdrop(self, set_system_backdrop: WinOsBackdropType) -> Self
Sets system-drawn backdrop type.
Requires Windows 11 build 22523+.
Sourcepub fn set_border_color(self, set_border_color: Color) -> Self
pub fn set_border_color(self, set_border_color: Color) -> Self
Sets the color of the window border.
Supported starting with Windows 11 Build 22000.
Sourcepub fn set_title_background_color(
self,
set_title_background_color: Color,
) -> Self
pub fn set_title_background_color( self, set_title_background_color: Color, ) -> Self
Sets the background color of the title bar.
Supported starting with Windows 11 Build 22000.
Sourcepub fn set_title_text_color(self, set_title_text_color: Color) -> Self
pub fn set_title_text_color(self, set_title_text_color: Color) -> Self
Sets the color of the window title.
Supported starting with Windows 11 Build 22000.
Trait Implementations§
Source§impl Clone for WinOSWindowConfig
impl Clone for WinOSWindowConfig
Source§fn clone(&self) -> WinOSWindowConfig
fn clone(&self) -> WinOSWindowConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WinOSWindowConfig
impl Debug for WinOSWindowConfig
Auto Trait Implementations§
impl Freeze for WinOSWindowConfig
impl RefUnwindSafe for WinOSWindowConfig
impl Send for WinOSWindowConfig
impl Sync for WinOSWindowConfig
impl Unpin for WinOSWindowConfig
impl UnwindSafe for WinOSWindowConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more