Struct gdk4::ProximityEvent
source · [−]#[repr(transparent)]pub struct ProximityEvent { /* private fields */ }
Implementations
sourceimpl ProximityEvent
impl ProximityEvent
Methods from Deref<Target = Event>
pub const NONE: Option<&'static Event> = None
pub fn axes(&self) -> Option<Vec<f64>>
pub fn axis(&self, axis_use: AxisUse) -> Option<f64>
pub fn device(&self) -> Option<Device>
pub fn device_tool(&self) -> Option<DeviceTool>
pub fn display(&self) -> Option<Display>
pub fn event_sequence(&self) -> EventSequence
pub fn event_type(&self) -> EventType
pub fn history(&self) -> Vec<TimeCoord>
pub fn modifier_state(&self) -> ModifierType
pub fn is_pointer_emulated(&self) -> bool
pub fn position(&self) -> Option<(f64, f64)>
pub fn seat(&self) -> Option<Seat>
pub fn surface(&self) -> Option<Surface>
pub fn time(&self) -> u32
pub fn is<T: EventKind>(&self) -> bool
pub fn type_(&self) -> Type
pub fn downcast_ref<T: EventKind>(&self) -> Option<&T>
pub fn angle(&self, event: impl AsRef<Event>) -> Option<f64>
pub fn center(&self, event: impl AsRef<Event>) -> Option<(f64, f64)>
pub fn distance(&self, event: impl AsRef<Event>) -> Option<f64>
Trait Implementations
sourceimpl AsRef<Event> for ProximityEvent
impl AsRef<Event> for ProximityEvent
sourceimpl Clone for ProximityEvent
impl Clone for ProximityEvent
sourceimpl Debug for ProximityEvent
impl Debug for ProximityEvent
sourceimpl Deref for ProximityEvent
impl Deref for ProximityEvent
sourceimpl Display for ProximityEvent
impl Display for ProximityEvent
sourceimpl EventKind for ProximityEvent
impl EventKind for ProximityEvent
fn event_types() -> &'static [EventType]
sourceimpl StaticType for ProximityEvent
impl StaticType for ProximityEvent
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
Auto Trait Implementations
impl RefUnwindSafe for ProximityEvent
impl !Send for ProximityEvent
impl !Sync for ProximityEvent
impl Unpin for ProximityEvent
impl UnwindSafe for ProximityEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> StaticTypeExt for T where
T: StaticType,
impl<T> StaticTypeExt for T where
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.