Enum Class PropagationPhase

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

@Generated("org.javagi.JavaGI") public enum PropagationPhase extends Enum<PropagationPhase> implements Enumeration
Describes the stage at which events are fed into a EventController.
  • Enum Constant Details

    • NONE

      public static final PropagationPhase NONE
      Events are not delivered.
    • CAPTURE

      public static final PropagationPhase CAPTURE
      Events are delivered in the capture phase. The capture phase happens before the bubble phase, runs from the toplevel down to the event widget. This option should only be used on containers that might possibly handle events before their children do.
    • BUBBLE

      public static final PropagationPhase BUBBLE
      Events are delivered in the bubble phase. The bubble phase happens after the capture phase, and before the default handlers are run. This phase runs from the event widget, up to the toplevel.
    • TARGET

      public static final PropagationPhase TARGET
      Events are delivered in the default widget event handlers, note that widget implementations must chain up on button, motion, touch and grab broken handlers for controllers in this phase to be run.
  • Method Details

    • values

      public static PropagationPhase[] 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 PropagationPhase 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 PropagationPhase of(int value)
      Create a new PropagationPhase 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 PropagationPhase of(MemorySegment address)
      Create a new PropagationPhase 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 PropagationPhase class.
      Returns:
      the GType