Enum Class WindowMode

All Implemented Interfaces:
Serializable, Comparable<WindowMode>, Constable

public enum WindowMode extends Enum<WindowMode>
Window display mode used when launching the application.

These modes control whether the sketch runs in a fixed window or fullscreen, and if fullscreen is used, which display configuration is targeted.

  • Enum Constant Details

    • WINDOWED

      public static final WindowMode WINDOWED
      Standard fixed-size window.
    • FULLSCREEN_PREF

      public static final WindowMode FULLSCREEN_PREF
      Fullscreen on the system's preferred (default) display.
    • FULLSCREEN_DISPLAY

      public static final WindowMode FULLSCREEN_DISPLAY
      Fullscreen on a specific display.

      The display number is provided separately (1-based).

    • FULLSCREEN_SPAN

      public static final WindowMode FULLSCREEN_SPAN
      Fullscreen spanned across all available displays.

      Usually not recommended unless you want multi-monitor wall display and have a beefy computer.

  • Method Details

    • values

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