Enum gtk::PropagationPhase 
source · [−]#[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
None
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.
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
sourceimpl Clone for PropagationPhase
 
impl Clone for PropagationPhase
sourcefn clone(&self) -> PropagationPhase
 
fn clone(&self) -> PropagationPhase
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
 
const fn clone_from(&mut self, source: &Self)
source. Read moresourceimpl Debug for PropagationPhase
 
impl Debug for PropagationPhase
sourceimpl Display for PropagationPhase
 
impl Display for PropagationPhase
sourceimpl<'a> FromValue<'a> for PropagationPhase
 
impl<'a> FromValue<'a> for PropagationPhase
type Checker = GenericValueTypeChecker<PropagationPhase>
type Checker = GenericValueTypeChecker<PropagationPhase>
sourceunsafe fn from_value(value: &'a Value) -> Self
 
unsafe fn from_value(value: &'a Value) -> Self
Value. Read moresourceimpl Hash for PropagationPhase
 
impl Hash for PropagationPhase
sourceimpl Ord for PropagationPhase
 
impl Ord for PropagationPhase
sourcefn cmp(&self, other: &PropagationPhase) -> Ordering
 
fn cmp(&self, other: &PropagationPhase) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Self
 
const fn max(self, other: Self) -> Self
1.21.0 · sourceconst fn min(self, other: Self) -> Self
 
const fn min(self, other: Self) -> Self
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
    Self: PartialOrd<Self>,
 
const fn clamp(self, min: Self, max: Self) -> Selfwhere
    Self: PartialOrd<Self>,
sourceimpl PartialEq<PropagationPhase> for PropagationPhase
 
impl PartialEq<PropagationPhase> for PropagationPhase
sourcefn eq(&self, other: &PropagationPhase) -> bool
 
fn eq(&self, other: &PropagationPhase) -> bool
sourceimpl PartialOrd<PropagationPhase> for PropagationPhase
 
impl PartialOrd<PropagationPhase> for PropagationPhase
sourcefn partial_cmp(&self, other: &PropagationPhase) -> Option<Ordering>
 
fn partial_cmp(&self, other: &PropagationPhase) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
 
const fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresourceimpl StaticType for PropagationPhase
 
impl StaticType for PropagationPhase
sourcefn static_type() -> Type
 
fn static_type() -> Type
Self.sourceimpl ToValue for PropagationPhase
 
impl ToValue for PropagationPhase
sourceimpl ValueType for PropagationPhase
 
impl ValueType for PropagationPhase
type Type = PropagationPhase
type Type = PropagationPhase
Type from. Read moreimpl Copy for PropagationPhase
impl Eq for PropagationPhase
impl StructuralEq for PropagationPhase
impl StructuralPartialEq for PropagationPhase
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
sourceimpl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
sourceimpl<T> StaticTypeExt for Twhere
    T: StaticType,
 
impl<T> StaticTypeExt for Twhere
    T: StaticType,
sourcefn ensure_type()
 
fn ensure_type()
sourceimpl<T> ToClosureReturnValue for Twhere
    T: ToValue,
 
impl<T> ToClosureReturnValue for Twhere
    T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
sourceimpl<T> ToSendValue for Twhere
    T: Send + ToValue + ?Sized,
 
impl<T> ToSendValue for Twhere
    T: Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
 
fn to_send_value(&self) -> SendValue
SendValue clone of self.