Package limn.backend

Enum Class WindowStyle

java.lang.Object
java.lang.Enum<WindowStyle>
limn.backend.WindowStyle
All Implemented Interfaces:
Serializable, Comparable<WindowStyle>, Constable

public enum WindowStyle extends Enum<WindowStyle>
Visual framing of a window.
  • DECORATED: the OS draws the title bar and border; opaque (native windows are not translucent).
  • UNDECORATED_OPAQUE: borderless, opaque framebuffer (a solid card; e.g. a plain popup).
  • UNDECORATED_TRANSLUCENT: borderless with a transparent framebuffer, so pixels with alpha < 1 composite over the desktop (rounded corners, translucent panels; e.g. a combo popup or a glassy dialog).
  • Enum Constant Details

    • DECORATED

      public static final WindowStyle DECORATED
    • UNDECORATED_OPAQUE

      public static final WindowStyle UNDECORATED_OPAQUE
    • UNDECORATED_TRANSLUCENT

      public static final WindowStyle UNDECORATED_TRANSLUCENT
  • Method Details

    • values

      public static WindowStyle[] 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 WindowStyle 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
    • decorated

      public boolean decorated()
      Returns:
      whether the OS draws the window frame
    • transparent

      public boolean transparent()
      Returns:
      whether the framebuffer is transparent (alpha composites over the desktop)