Enum gtk::PropagationPhase [−][src]
#[non_exhaustive] pub enum PropagationPhase { None, Capture, Bubble, Target, // some variants omitted }
Expand description
Describes the stage at which events are fed into a EventController
.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Events are not delivered automatically. Those can be
manually fed through EventControllerExt::handle_event()
. This should
only be used when full control about when, or whether the controller
handles the event is needed.
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.
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.
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.
Trait Implementations
type Checker = GenericValueTypeChecker<Self>
type Checker = GenericValueTypeChecker<Self>
Value type checker.
Get the contained value from a Value
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Returns the type identifier of Self
.
Auto Trait Implementations
impl RefUnwindSafe for PropagationPhase
impl Send for PropagationPhase
impl Sync for PropagationPhase
impl Unpin for PropagationPhase
impl UnwindSafe for PropagationPhase
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns a SendValue
clone of self
.