Enum Class Overflow

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

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

Defines how content overflowing a given area should be handled.

This is used in Widget.setOverflow(Overflow). The Gtk.Widget:overflow property is modeled after the CSS overflow property, but implements it only partially.

  • Enum Constant Details

    • VISIBLE

      public static final Overflow VISIBLE
      No change is applied. Content is drawn at the specified position.
    • HIDDEN

      public static final Overflow HIDDEN
      Content is clipped to the bounds of the area. Content outside the area is not drawn and cannot be interacted with.
  • Method Details

    • values

      public static Overflow[] 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 Overflow 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
    • of

      public static Overflow of(int value)
      Create a new Overflow for the provided value
      Parameters:
      value - the enum value
      Returns:
      the enum for the provided value
    • getValue

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

      public static Overflow of(MemorySegment address)
      Create a new Overflow for the value in the provided memory address.
      Parameters:
      address - the memory address holding a enum value
      Returns:
      the enum for the value in the provided memory address
    • getType

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