Enum glfw::WindowHint[][src]

pub enum WindowHint {
    RedBits(Option<u32>),
    GreenBits(Option<u32>),
    BlueBits(Option<u32>),
    AlphaBits(Option<u32>),
    DepthBits(Option<u32>),
    StencilBits(Option<u32>),
    AccumRedBits(Option<u32>),
    AccumGreenBits(Option<u32>),
    AccumBlueBits(Option<u32>),
    AccumAlphaBits(Option<u32>),
    AuxBuffers(Option<u32>),
    Stereo(bool),
    Samples(Option<u32>),
    SRgbCapable(bool),
    RefreshRate(Option<u32>),
    ClientApi(ClientApiHint),
    ContextVersionMajor(u32),
    ContextVersionMinor(u32),
    ContextVersion(u32u32),
    ContextRobustness(ContextRobustnessHint),
    OpenGlForwardCompat(bool),
    OpenGlDebugContext(bool),
    OpenGlProfile(OpenGlProfileHint),
    Resizable(bool),
    Visible(bool),
    Decorated(bool),
    AutoIconify(bool),
    Floating(bool),
    Focused(bool),
    ContextNoError(bool),
    ContextCreationApi(ContextCreationApi),
    ContextReleaseBehavior(ContextReleaseBehavior),
    DoubleBuffer(bool),
}

Window hints that can be set using the window_hint function.

Variants

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

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

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

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

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

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

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

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

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

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

Specifies the desired number of auxiliary buffers.

Specifies whether to use stereoscopic rendering.

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

Specifies whether the framebuffer should be sRGB capable.

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

This hint is ignored for windowed mode windows.

Specifies which ClientApi to create the context for.

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.

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.

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.

Specifies the ContextRobustness strategy to be used.

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.

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.

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.

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.

Specifies whether the window will be visible on creation.

This hint is ignored for fullscreen windows.

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.

Specifies whether the (full screen) window will automatically iconify and restore the previous video mode on input focus loss.

This hint is ignored for windowed mode windows.

Specifies whether the window will be floating above other regular windows, also called topmost or always-on-top.

This hint is ignored for full screen windows.

Specifies whether the windowed mode window will be given input focus when created.

This hint is ignored for full screen and initially hidden windows.

Specifies whether the OpenGL or OpenGL ES contexts do not emit errors, allowing for better performance in some situations.

Specifies which context creation API to use to create the context.

Specifies the behavior of the OpenGL pipeline when a context is transferred between threads

Specifies whether the framebuffer should be double buffered.

You nearly always want to use double buffering.

Note that setting this to false will make swap_buffers do nothing useful, and your scene will have to be displayed some other way.

Trait Implementations

impl Copy for WindowHint
[src]

impl Clone for WindowHint
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for WindowHint
[src]

impl PartialEq for WindowHint
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Ord for WindowHint
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl PartialOrd for WindowHint
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Hash for WindowHint
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for WindowHint
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for WindowHint

impl Sync for WindowHint