pub struct CrossingEvent(_);
Expand description
An event caused by a pointing device moving between surfaces.
Extracts the notify detail from a crossing event.
the notify detail of self
Checks if the self
surface is the focus surface.
true
if the surface is the focus surface
Extracts the crossing mode from a crossing event.
the mode of self
Extract the axis value for a particular axis use from
an event structure.
the axis use to look for
true
if the specified axis was found, otherwise false
location to store the value found
Returns the device of an event.
a Device
Retrieves the display associated to the self
.
a Display
Retrieves the type of the event.
a Event
Type
Retrieves the history of the device that self
is for, as a list of
time and coordinates.
The history includes positions that are not delivered as separate events
to the application because they occurred in the same frame as self
.
Note that only motion and scroll events record history, and motion
events do it only if one of the mouse buttons is down.
an
array of time and coordinates
Returns the modifier state field of an event.
the modifier state of self
Returns whether this event is an ‘emulated’ pointer event.
Emulated pointer events typically originate from a touch events.
true
if this event is emulated
Extract the event surface relative x/y coordinates from an event.
location to put event surface x coordinate
location to put event surface y coordinate
Returns the seat that originated the event.
a Seat
.
Extracts the surface associated with an event.
The Surface
associated with the event
Returns the timestamp of self
.
Not all events have timestamps. In that case, this function
returns GDK_CURRENT_TIME
.
timestamp field from self
Returns whether a Event
should trigger a context menu,
according to platform conventions.
The right mouse button typically triggers context menus.
This function should always be used instead of simply checking for
event->button == GDK_BUTTON_SECONDARY
.
true
if the event should trigger a context menu.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
The resulting type after dereferencing.
Formats the value using the given formatter. Read more
Returns the type identifier of Self
.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String
. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.