Struct gdk4::PadEvent

source ·
pub struct PadEvent { /* private fields */ }

Implementations§

source§

impl PadEvent

source

pub fn as_ptr(&self) -> *mut GdkPadEvent

Return the inner pointer to the underlying C value.

source

pub unsafe fn from_glib_ptr_borrow<'a>( ptr: *const *const GdkPadEvent ) -> &'a Self

Borrows the underlying C value.

source§

impl PadEvent

source

pub fn axis_value(&self) -> (u32, f64)

source

pub fn button(&self) -> u32

source

pub fn group_mode(&self) -> (u32, u32)

source§

impl PadEvent

source

pub fn upcast(self) -> Event

source

pub fn upcast_ref(&self) -> &Event

Methods from Deref<Target = Event>§

source

pub fn as_ptr(&self) -> *mut GdkEvent

Return the inner pointer to the underlying C value.

source

pub const NONE: Option<&'static Event> = None

source

pub fn axes(&self) -> Option<Vec<f64>>

source

pub fn axis(&self, axis_use: AxisUse) -> Option<f64>

source

pub fn device(&self) -> Option<Device>

source

pub fn device_tool(&self) -> Option<DeviceTool>

source

pub fn display(&self) -> Option<Display>

source

pub fn event_sequence(&self) -> EventSequence

source

pub fn event_type(&self) -> EventType

source

pub fn history(&self) -> Vec<TimeCoord>

source

pub fn modifier_state(&self) -> ModifierType

source

pub fn is_pointer_emulated(&self) -> bool

source

pub fn position(&self) -> Option<(f64, f64)>

source

pub fn seat(&self) -> Option<Seat>

source

pub fn surface(&self) -> Option<Surface>

source

pub fn time(&self) -> u32

source

pub fn triggers_context_menu(&self) -> bool

source

pub fn is<T: EventKind>(&self) -> bool

source

pub fn type_(&self) -> Type

source

pub fn downcast_ref<T: EventKind>(&self) -> Option<&T>

source

pub fn angle(&self, event: impl AsRef<Event>) -> Option<f64>

source

pub fn center(&self, event: impl AsRef<Event>) -> Option<(f64, f64)>

source

pub fn distance(&self, event: impl AsRef<Event>) -> Option<f64>

Trait Implementations§

source§

impl AsRef<Event> for PadEvent

source§

fn as_ref(&self) -> &Event

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for PadEvent

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for PadEvent

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Deref for PadEvent

§

type Target = Event

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl EventKind for PadEvent

source§

fn event_types() -> &'static [EventType]

source§

impl StaticType for PadEvent

source§

fn static_type() -> Type

Returns the type identifier of Self.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for T

source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for T

source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for T

source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for T

source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for T

source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for T

source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for T

source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for T

source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for T

source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for T

source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for T

source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for T

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> StaticTypeExt for T
where T: StaticType,

source§

fn ensure_type()

Ensures that the type has been registered with the type system.
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> TransparentType for T

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.