glfwSetWindowAttrib

Sets an attribute of the specified window.

This function sets the value of an attribute of the specified window.

The supported attributes are GLFW_DECORATED, GLFW_RESIZABLE, GLFW_FLOATING, GLFW_AUTO_ICONIFY and GLFW_FOCUS_ON_SHOW.

Some of these attributes are ignored for full screen windows. The new value will take effect if the window is later made windowed.

Some of these attributes are ignored for windowed mode windows. The new value will take effect if the window is later made full screen.

extern (C) @nogc nothrow __gshared
void
glfwSetWindowAttrib

Parameters

window GLFWwindow*

The window to set the attribute for.

attrib int

A supported window attribute.

value int

GLFW_TRUE or GLFW_FALSE.

Errors: Possible errors include @ref GLFW_NOT_INITIALIZED, @ref GLFW_INVALID_ENUM, @ref GLFW_INVALID_VALUE and @ref GLFW_PLATFORM_ERROR.

@remark Calling @ref glfwGetWindowAttrib will always return the latest value, even if that value is ignored by the current mode of the window.

Thread Safety

This function must only be called from the main thread.

@sa @ref window_attribs @sa @ref glfwGetWindowAttrib

Meta

Since

Added in version 3.3.

Ingroup: window