Enum glfw::WindowHint[src]

pub enum WindowHint {
    RedBits(u32),
    GreenBits(u32),
    BlueBits(u32),
    AlphaBits(u32),
    DepthBits(u32),
    StencilBits(u32),
    AccumRedBits(u32),
    AccumGreenBits(u32),
    AccumBlueBits(u32),
    AccumAlphaBits(u32),
    AuxBuffers(u32),
    Stereo(bool),
    Samples(u32),
    SRgbCapable(bool),
    RefreshRate(u32),
    ClientApi(ClientApi),
    ContextVersionMajor(u32),
    ContextVersionMinor(u32),
    ContextVersion(u32, u32),
    ContextRobustness(ContextRobustness),
    OpenglForwardCompat(bool),
    OpenglDebugContext(bool),
    OpenglProfile(OpenGlProfile),
    Resizable(bool),
    Visible(bool),
    Decorated(bool),
}

Window hints that can be set using the window_hint function.

Variants

RedBits

Specifies the desired bit depth of the red component of the default framebuffer.

GreenBits

Specifies the desired bit depth of the green component of the default framebuffer.

BlueBits

Specifies the desired bit depth of the blue component of the default framebuffer.

AlphaBits

Specifies the desired bit depth of the alpha component of the default framebuffer.

DepthBits

Specifies the desired bit depth of the depth component of the default framebuffer.

StencilBits

Specifies the desired bit depth of the stencil component of the default framebuffer.

AccumRedBits

Specifies the desired bit depth of the red component of the accumulation framebuffer.

AccumGreenBits

Specifies the desired bit depth of the green component of the accumulation framebuffer.

AccumBlueBits

Specifies the desired bit depth of the blue component of the accumulation framebuffer.

AccumAlphaBits

Specifies the desired bit depth of the alpha component of the accumulation framebuffer.

AuxBuffers

Specifies the desired number of auxiliary buffers.

Stereo

Specifies whether to use stereoscopic rendering.

Samples

Specifies the desired number of samples to use for multisampling. Zero disables multisampling.

SRgbCapable

Specifies whether the framebuffer should be sRGB capable.

RefreshRate

Specifies the desired refresh rate for full screen windows. If set to zero, the highest available refresh rate will be used.

This hint is ignored for windowed mode windows.

ClientApi

Specifies which ClientApi to create the context for.

ContextVersionMajor

Specifies the major client API version that the created context must be compatible with.

Window creation will fail if the resulting OpenGL version is less than the one requested.

ContextVersionMinor

Specifies the minor client API version that the created context must be compatible with.

Window creation will fail if the resulting OpenGL version is less than the one requested.

ContextVersion

Specifies the client API version that the created context must be compatible with. This is the same as successive calls to window_hint function with the ContextVersionMajor and ContextVersionMinor hints.

Window creation will fail if the resulting OpenGL version is less than the one requested.

If ContextVersion(1, 0) is requested, most drivers will provide the highest available context.

ContextRobustness

Specifies the ContextRobustness strategy to be used.

OpenglForwardCompat

Specifies whether the OpenGL context should be forward-compatible, i.e. one where all functionality deprecated in the requested version of OpenGL is removed. This may only be used if the requested OpenGL version is 3.0 or above.

If another client API is requested, this hint is ignored.

OpenglDebugContext

Specifies whether to create a debug OpenGL context, which may have additional error and performance issue reporting functionality.

If another client API is requested, this hint is ignored.

OpenglProfile

Specifies which OpenGL profile to create the context for. If requesting an OpenGL version below 3.2, OpenGlAnyProfile must be used.

If another client API is requested, this hint is ignored.

Resizable

Specifies whether the window will be resizable by the user. Even if this is set to false, the window can still be resized using the Window::set_size function.

This hint is ignored for fullscreen windows.

Visible

Specifies whether the window will be visible on creation.

This hint is ignored for fullscreen windows.

Decorated

Specifies whether the window will have platform-specific decorations such as a border, a close widget, etc.

This hint is ignored for full screen windows.