FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CompositionGlContextOptions

    struct · ferroui-opengl · v0.5.0

    struct CompositionGlContextOptions
    

    Options for creating an OpenGL context that draws into the surfaces of a compositor.

    View source

    Members

    new

    fn new() -> Self
    

    Source

    gl_profiles

    fn gl_profiles(self: &Self) -> Option<&[GlVersion]>
    

    The preferred OpenGL profiles and versions for the created context, in the order of preference. When none, the defaults of the rendering backend are used.

    Source

    set_gl_profiles

    fn set_gl_profiles(self: &mut Self, value: Option<Vec<GlVersion>>)
    

    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
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Clone
    • Debug
    • Default
    • StructuralPartialEq
    • PartialEq

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.