Struct gdk::Event [−][src]
pub struct Event(_);
Expand description
A generic GDK event.
Implementations
Set the event handler.
The callback handler
is called for each event. If None
, event
handling is disabled.
v3_20
only.v3_20
only.v3_22
only.v3_22
only.v3_22
only.v3_22
only.Returns the event type.
Returns whether the event was sent explicitly.
Tries to downcast to a specific event type.
Tries to downcast to a specific event type.
Tries to downcast to a specific event type.
Trait Implementations
Performs the conversion.
Performs the conversion.
Safety Read more
Safety Read more
Safety Read more
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
.
Transfer: none. Read more
Auto Trait Implementations
impl RefUnwindSafe for Event
impl UnwindSafe for Event
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<'a, T, C> FromValueOptional<'a> for T where
C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError>,
T: FromValue<'a, Checker = C>,