Enum Class GuiCanvasPolicy
- All Implemented Interfaces:
Serializable, Comparable<GuiCanvasPolicy>, Constable
Selects the logical canvas of a managed
GuiView.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFills the GUI surface with a canvas whose height is 1080 and whose width follows the actual GUI aspect ratio.Uniformly fits a centered 1920 by 1080 canvas, preserving the original managed-view mapping. -
Method Summary
Modifier and TypeMethodDescriptionstatic GuiCanvasPolicyReturns the enum constant of this class with the specified name.static GuiCanvasPolicy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FIXED_DESIGN
Uniformly fits a centered 1920 by 1080 canvas, preserving the original managed-view mapping. -
ADAPTIVE_DESIGN
Fills the GUI surface with a canvas whose height is 1080 and whose width follows the actual GUI aspect ratio. Design pixels scale uniformly by GUI height / 1080; there is no letterboxing or translation.
-
-
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
-