Enum Class GuiCanvasPolicy

java.lang.Object
java.lang.Enum<GuiCanvasPolicy>
com.render.api.gui.GuiCanvasPolicy
All Implemented Interfaces:
Serializable, Comparable<GuiCanvasPolicy>, Constable

public enum GuiCanvasPolicy extends Enum<GuiCanvasPolicy>
Selects the logical canvas of a managed GuiView.
  • Enum Constant Details

    • FIXED_DESIGN

      public static final GuiCanvasPolicy FIXED_DESIGN
      Uniformly fits a centered 1920 by 1080 canvas, preserving the original managed-view mapping.
    • ADAPTIVE_DESIGN

      public static final GuiCanvasPolicy 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

      public static GuiCanvasPolicy[] 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

      public static GuiCanvasPolicy valueOf(String name)
      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 name
      NullPointerException - if the argument is null