#[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.6.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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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
.