#[non_exhaustive]pub enum PropagationPhase {
None,
Capture,
Bubble,
Target,
}
Expand description
Describes the stage at which events are fed into a EventController
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
Events are not delivered.
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
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
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§
Source§impl Clone for PropagationPhase
impl Clone for PropagationPhase
Source§fn clone(&self) -> PropagationPhase
fn clone(&self) -> PropagationPhase
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PropagationPhase
impl Debug for PropagationPhase
Source§impl From<PropagationPhase> for Value
impl From<PropagationPhase> for Value
Source§fn from(v: PropagationPhase) -> Self
fn from(v: PropagationPhase) -> Self
Converts to this type from the input type.
Source§impl<'a> FromValue<'a> for PropagationPhase
impl<'a> FromValue<'a> for PropagationPhase
Source§type Checker = GenericValueTypeChecker<PropagationPhase>
type Checker = GenericValueTypeChecker<PropagationPhase>
Value type checker.
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moreSource§impl HasParamSpec for PropagationPhase
impl HasParamSpec for PropagationPhase
type ParamSpec = ParamSpecEnum
Source§type SetValue = PropagationPhase
type SetValue = PropagationPhase
Preferred value to be used as setter for the associated ParamSpec.
type BuilderFn = fn(_: &str, _: PropagationPhase) -> ParamSpecEnumBuilder<'_, PropagationPhase>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for PropagationPhase
impl Hash for PropagationPhase
Source§impl Ord for PropagationPhase
impl Ord for PropagationPhase
Source§fn cmp(&self, other: &PropagationPhase) -> Ordering
fn cmp(&self, other: &PropagationPhase) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PropagationPhase
impl PartialEq for PropagationPhase
Source§impl PartialOrd for PropagationPhase
impl PartialOrd for PropagationPhase
Source§impl StaticType for PropagationPhase
impl StaticType for PropagationPhase
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.Source§impl ToValue for PropagationPhase
impl ToValue for PropagationPhase
Source§impl ValueType for PropagationPhase
impl ValueType for PropagationPhase
Source§type Type = PropagationPhase
type Type = PropagationPhase
Type to get the
Type
from. Read moreimpl Copy for PropagationPhase
impl Eq for PropagationPhase
impl StructuralPartialEq for PropagationPhase
Auto Trait Implementations§
impl Freeze for PropagationPhase
impl RefUnwindSafe for PropagationPhase
impl Send for PropagationPhase
impl Sync for PropagationPhase
impl Unpin for PropagationPhase
impl UnwindSafe for PropagationPhase
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
Source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
Source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
Source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.