PropagationPhase

public extension PropagationPhase
  • Cast constructor, converting any binary integer to a PropagationPhase.

    Declaration

    Swift

    @inlinable
    init!<I>(_ raw: I) where I : BinaryInteger

    Parameters

    raw

    The raw integer value to initialise the enum from

  • Events are not delivered.

    Declaration

    Swift

    static let none: GtkPropagationPhase
  • 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.

    Declaration

    Swift

    static let capture: GtkPropagationPhase
  • 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.

    Declaration

    Swift

    static let bubble: GtkPropagationPhase
  • 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.

    Declaration

    Swift

    static let target: GtkPropagationPhase