Win32PlatformOptions
struct · ferroui-win32 · v0.5.0
struct Win32PlatformOptions
Platform-specific options which apply to Windows.
Members
overlay_popupsrendering_modecomposition_modewin_ui_composition_backdrop_corner_radiusshould_render_on_ui_threadwgl_profilescustom_platform_graphicsdpi_awarenessgraphics_adapter_selection_callback
overlay_popups
overlay_popups: bool
Embeds popups to the window when set to true. The default value is false.
rendering_mode
rendering_mode: Vec<Win32RenderingMode>
Gets or sets Win32 rendering mode priority. The first available mode is used; the default is ANGLE EGL with a software fallback.
composition_mode
composition_mode: Vec<Win32CompositionMode>
Gets or sets Win32 composition mode priority. The first available mode is used.
win_ui_composition_backdrop_corner_radius
win_ui_composition_backdrop_corner_radius: Option<f32>
When composition_mode is set to
Win32CompositionMode::WinUIComposition, create rounded corner
blur brushes. If set to None the brushes will be created using
default settings (sharp corners).
should_render_on_ui_thread
should_render_on_ui_thread: bool
Render directly on the UI thread instead of using a dedicated render thread. This can be usable if your device don't have multiple cores to begin with. This setting is false by default.
wgl_profiles
wgl_profiles: Vec<ferroui_opengl::GlVersion>
Windows OpenGL profiles used when
rendering_mode is set to
Win32RenderingMode::Wgl. This setting is 4.0 and 3.2 by default.
custom_platform_graphics
custom_platform_graphics: Option<std::sync::Arc<dyn IPlatformGraphics>>
Provides a way to use a custom-implemented graphics context such as
a custom ISkiaGpu. When this property is set,
rendering_mode is ignored and
composition_mode only accepts null or
Win32CompositionMode::RedirectionSurface.
dpi_awareness
dpi_awareness: Win32DpiAwareness
Gets or sets the application's DPI awareness.
graphics_adapter_selection_callback
graphics_adapter_selection_callback: Option<std::rc::Rc<dyn Fn(&[ferroui_base::platform::PlatformGraphicsDeviceAdapterDescription]) -> i32>>
Provides a callback to select a graphics adapter (with the DirectX and Vulkan rendering modes).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedIUnknownImplClassDefaultsErasedDestructorIntoEitherCloneDefault
Availability
Extracted for aarch64-apple-darwin, x86_64-pc-windows-msvc. Cargo features are listed in the crate index.