FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Win32PlatformOptions

    struct · ferroui-win32 · v0.5.0

    struct Win32PlatformOptions
    

    Platform-specific options which apply to Windows.

    View source

    Members

    overlay_popups

    overlay_popups: bool
    

    Embeds popups to the window when set to true. The default value is false.

    Source

    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.

    Source

    composition_mode

    composition_mode: Vec<Win32CompositionMode>
    

    Gets or sets Win32 composition mode priority. The first available mode is used.

    Source

    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).

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    dpi_awareness

    dpi_awareness: Win32DpiAwareness
    

    Gets or sets the application's DPI awareness.

    Source

    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).

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • IUnknownImpl
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Clone
    • Default

    Availability

    Extracted for aarch64-apple-darwin, x86_64-pc-windows-msvc. Cargo features are listed in the crate index.