Enum gtk4::PropagationLimit
source · #[non_exhaustive]
pub enum PropagationLimit {
None,
SameNative,
}
Expand description
Describes limits of a EventController
for handling events
targeting other widgets.
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 handled regardless of what their target is.
SameNative
Events are only handled if their target
is in the same Native
as the event controllers widget. Note
that some event types have two targets (origin and destination).
Trait Implementations§
source§impl Clone for PropagationLimit
impl Clone for PropagationLimit
source§fn clone(&self) -> PropagationLimit
fn clone(&self) -> PropagationLimit
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 PropagationLimit
impl Debug for PropagationLimit
source§impl Display for PropagationLimit
impl Display for PropagationLimit
source§impl<'a> FromValue<'a> for PropagationLimit
impl<'a> FromValue<'a> for PropagationLimit
§type Checker = GenericValueTypeChecker<PropagationLimit>
type Checker = GenericValueTypeChecker<PropagationLimit>
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 Hash for PropagationLimit
impl Hash for PropagationLimit
source§impl Ord for PropagationLimit
impl Ord for PropagationLimit
source§fn cmp(&self, other: &PropagationLimit) -> Ordering
fn cmp(&self, other: &PropagationLimit) -> 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<PropagationLimit> for PropagationLimit
impl PartialEq<PropagationLimit> for PropagationLimit
source§fn eq(&self, other: &PropagationLimit) -> bool
fn eq(&self, other: &PropagationLimit) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<PropagationLimit> for PropagationLimit
impl PartialOrd<PropagationLimit> for PropagationLimit
source§fn partial_cmp(&self, other: &PropagationLimit) -> Option<Ordering>
fn partial_cmp(&self, other: &PropagationLimit) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl StaticType for PropagationLimit
impl StaticType for PropagationLimit
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl ToValue for PropagationLimit
impl ToValue for PropagationLimit
source§impl ValueType for PropagationLimit
impl ValueType for PropagationLimit
§type Type = PropagationLimit
type Type = PropagationLimit
Type to get the
Type
from. Read moreimpl Copy for PropagationLimit
impl Eq for PropagationLimit
impl StructuralEq for PropagationLimit
impl StructuralPartialEq for PropagationLimit
Auto Trait Implementations§
impl RefUnwindSafe for PropagationLimit
impl Send for PropagationLimit
impl Sync for PropagationLimit
impl Unpin for PropagationLimit
impl UnwindSafe for PropagationLimit
Blanket Implementations§
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> ToClosureReturnValue for Twhere
T: ToValue,
impl<T> ToClosureReturnValue for Twhere T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
source§impl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere T: Send + ToValue + ?Sized,
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.