Enum Class ConnectFlags

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

@Generated("org.javagi.JavaGI") public enum ConnectFlags extends Enum<ConnectFlags> implements Enumeration
The connection flags are used to specify the behaviour of a signal's connection.
  • Enum Constant Details

    • DEFAULT

      public static final ConnectFlags DEFAULT
      Default behaviour (no special flags). Since: 2.74
    • AFTER

      public static final ConnectFlags AFTER
      If set, the handler should be called after the default handler of the signal. Normally, the handler is called before the default handler.
    • SWAPPED

      public static final ConnectFlags SWAPPED
      If set, the instance and data should be swapped when calling the handler; see g_signal_connect_swapped() for an example.
  • Method Details

    • values

      public static ConnectFlags[] 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 ConnectFlags 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<ConnectFlags> of(int flags)
      Create a new EnumSet<ConnectFlags> for the provided bitfield
      Parameters:
      flags - the ConnectFlags bitfield
      Returns:
      the EnumSet for the provided bitfield
    • of

      public static Set<ConnectFlags> of(MemorySegment address)
      Create a new EnumSet<ConnectFlags> 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