Package dev.prozilla.pine.core
Enum Class WindowHint
- All Implemented Interfaces:
IntEnum,Serializable,Comparable<WindowHint>,Constable
Window hints can be set before the creation of a window and context and can affect the window itself, the framebuffer or the context.
Some hints are platform specific. These are always valid to set on any platform, but they will only affect their specific platform. Other platforms will ignore them.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSpecifies whether the fullscreen window will automatically iconify and restore the previous video mode on input focus loss.Specifies whether the cursor should be centered over newly created fullscreen windows.Specifies whether the windowed mode window will have window decorations such as border, a close widget, etc.Specifies whether the window framebuffer will be transparent.Specifies whether the windowed mode window will be floating above other regular windows, also called always-on-top.Specifies whether the window will be given input focus when shown.Specifies whether the windowed mode window will be given input focus when created.Specifies whether the OpenGL context should be forward-compatible.Specifies which OpenGL profile to create the context for.Specifies the major version of the OpenGL context.Specifies the minor version of the OpenGL context.Specifies whether the windowed mode window will be maximized when created.Specifies whether the windowed mode window will be resizable by the user.Specifies whether to use full resolution framebuffers on retina displays.Specifies whether the window should be resized based on the monitor content scale.Specifies whether the windowed mode window will be initially visible. -
Method Summary
Modifier and TypeMethodDescriptionintgetValue()Returns the integer value of this instance.static booleanisValid(int value) Checks if a given value is a valid value for a GLFW window hint.static WindowHintReturns the enum constant of this class with the specified name.static WindowHint[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface dev.prozilla.pine.common.IntEnum
toProperty
-
Enum Constant Details
-
DECORATED
Specifies whether the windowed mode window will have window decorations such as border, a close widget, etc. -
VISIBLE
Specifies whether the windowed mode window will be initially visible. -
ENABLE_TRANSPARENT_FRAMEBUFFER
Specifies whether the window framebuffer will be transparent. -
RESIZABLE
Specifies whether the windowed mode window will be resizable by the user. -
FOCUSED
Specifies whether the windowed mode window will be given input focus when created. -
AUTO_ICONIFY
Specifies whether the fullscreen window will automatically iconify and restore the previous video mode on input focus loss. -
FLOATING
Specifies whether the windowed mode window will be floating above other regular windows, also called always-on-top. -
MAXIMIZED
Specifies whether the windowed mode window will be maximized when created. -
CENTER_CURSOR
Specifies whether the cursor should be centered over newly created fullscreen windows. -
FOCUS_ON_SHOW
Specifies whether the window will be given input focus when shown. -
SCALE_TO_MONITOR
Specifies whether the window should be resized based on the monitor content scale. -
GL_VERSION_MAJOR
Specifies the major version of the OpenGL context. -
GL_VERSION_MINOR
Specifies the minor version of the OpenGL context. -
GL_FORWARD_COMPATIBLE
Specifies whether the OpenGL context should be forward-compatible. -
GL_PROFILE
Specifies which OpenGL profile to create the context for. -
RETINA_FRAMEBUFFER
Specifies whether to use full resolution framebuffers on retina displays.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public int getValue()Description copied from interface:IntEnumReturns the integer value of this instance. -
isValid
public static boolean isValid(int value) Checks if a given value is a valid value for a GLFW window hint.- Parameters:
value- Value to test- Returns:
- True if the value is a valid value
-