Enum Class ToplevelState

java.lang.Object
java.lang.Enum<ToplevelState>
org.gnome.gdk.ToplevelState
All Implemented Interfaces:
Serializable, Comparable<ToplevelState>, Constable, Enumeration

@Generated("org.javagi.JavaGI") public enum ToplevelState extends Enum<ToplevelState> implements Enumeration

Specifies the state of a toplevel surface.

On platforms that support information about individual edges, the TILED state will be set whenever any of the individual tiled states is set. On platforms that lack that support, the tiled state will give an indication of tiledness without any of the per-edge states being set.

  • Enum Constant Details

    • MINIMIZED

      public static final ToplevelState MINIMIZED
      the surface is minimized
    • MAXIMIZED

      public static final ToplevelState MAXIMIZED
      the surface is maximized
    • STICKY

      public static final ToplevelState STICKY
      the surface is sticky
    • FULLSCREEN

      public static final ToplevelState FULLSCREEN
      the surface is maximized without decorations
    • ABOVE

      public static final ToplevelState ABOVE
      the surface is kept above other surfaces
    • BELOW

      public static final ToplevelState BELOW
      the surface is kept below other surfaces
    • FOCUSED

      public static final ToplevelState FOCUSED
      the surface is presented as focused (with active decorations)
    • TILED

      public static final ToplevelState TILED
      the surface is in a tiled state
    • TOP_TILED

      public static final ToplevelState TOP_TILED
      whether the top edge is tiled
    • TOP_RESIZABLE

      public static final ToplevelState TOP_RESIZABLE
      whether the top edge is resizable
    • RIGHT_TILED

      public static final ToplevelState RIGHT_TILED
      whether the right edge is tiled
    • RIGHT_RESIZABLE

      public static final ToplevelState RIGHT_RESIZABLE
      whether the right edge is resizable
    • BOTTOM_TILED

      public static final ToplevelState BOTTOM_TILED
      whether the bottom edge is tiled
    • BOTTOM_RESIZABLE

      public static final ToplevelState BOTTOM_RESIZABLE
      whether the bottom edge is resizable
    • LEFT_TILED

      public static final ToplevelState LEFT_TILED
      whether the left edge is tiled
    • LEFT_RESIZABLE

      public static final ToplevelState LEFT_RESIZABLE
      whether the left edge is resizable
    • SUSPENDED

      public static final ToplevelState SUSPENDED
      The surface is not visible to the user.
      Since:
      4.12
  • Method Details

    • values

      public static ToplevelState[] 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 ToplevelState 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
    • getValue

      public int getValue()
      Get the numeric value of this enum
      Specified by:
      getValue in interface Enumeration
      Returns:
      the enum value
    • of

      public static Set<ToplevelState> of(int flags)
      Create a new EnumSet<ToplevelState> for the provided bitfield
      Parameters:
      flags - the ToplevelState bitfield
      Returns:
      the EnumSet for the provided bitfield
    • of

      public static Set<ToplevelState> of(MemorySegment address)
      Create a new EnumSet<ToplevelState> for the bitfield in the provided memory address.
      Parameters:
      address - the memory address holding a bitfield value
      Returns:
      the EnumSet for the bitfield in the provided memory address
    • getType

      public static @Nullable Type getType()
      Get the GType of the ToplevelState class.
      Returns:
      the GType