[][src]Trait winit::platform::windows::WindowBuilderExtWindows

pub trait WindowBuilderExtWindows {
    pub fn with_parent_window(self, parent: HWND) -> WindowBuilder;
pub fn with_taskbar_icon(self, taskbar_icon: Option<Icon>) -> WindowBuilder;
pub fn with_no_redirection_bitmap(self, flag: bool) -> WindowBuilder;
pub fn with_drag_and_drop(self, flag: bool) -> WindowBuilder;
pub fn with_theme(self, theme: Option<Theme>) -> WindowBuilder; }

Additional methods on WindowBuilder that are specific to Windows.

Required methods

pub fn with_parent_window(self, parent: HWND) -> WindowBuilder[src]

Sets a parent to the window to be created.

pub fn with_taskbar_icon(self, taskbar_icon: Option<Icon>) -> WindowBuilder[src]

This sets ICON_BIG. A good ceiling here is 256x256.

pub fn with_no_redirection_bitmap(self, flag: bool) -> WindowBuilder[src]

This sets WS_EX_NOREDIRECTIONBITMAP.

pub fn with_drag_and_drop(self, flag: bool) -> WindowBuilder[src]

Enables or disables drag and drop support (enabled by default). Will interfere with other crates that use multi-threaded COM API (CoInitializeEx with COINIT_MULTITHREADED instead of COINIT_APARTMENTTHREADED) on the same thread. Note that winit may still attempt to initialize COM API regardless of this option. Currently only fullscreen mode does that, but there may be more in the future. If you need COM API with COINIT_MULTITHREADED you must initialize it before calling any winit functions. See https://docs.microsoft.com/en-us/windows/win32/api/objbase/nf-objbase-coinitialize#remarks for more information.

pub fn with_theme(self, theme: Option<Theme>) -> WindowBuilder[src]

Forces a theme or uses the system settings if None was provided.

Loading content...

Implementors

impl WindowBuilderExtWindows for WindowBuilder[src]

Loading content...