[]Struct gtk::GestureStylus

pub struct GestureStylus(_, _);

GestureStylus is a Gesture implementation specific to stylus input. The provided signals just provide the basic information

Feature: v3_24

Implements

GestureSingleExt, GestureExt, EventControllerExt, glib::object::ObjectExt, GestureStylusExtManual

Implementations

impl GestureStylus[src]

pub fn new<P: IsA<Widget>>(widget: &P) -> GestureStylus[src]

Creates a new GestureStylus.

Feature: v3_24

widget

a Widget

Returns

a newly created stylus gesture

pub fn get_axis(&self, axis: AxisUse) -> Option<f64>[src]

Returns the current value for the requested axis. This function must be called from either the GestureStylus:down, GestureStylus:motion, GestureStylus:up or GestureStylus:proximity signals.

Feature: v3_24

axis

requested device axis

value

return location for the axis value

Returns

true if there is a current value for the axis

pub fn get_device_tool(&self) -> Option<DeviceTool>[src]

Returns the gdk::DeviceTool currently driving input through this gesture. This function must be called from either the GestureStylus::down, GestureStylus::motion, GestureStylus::up or GestureStylus::proximity signal handlers.

Feature: v3_24

Returns

The current stylus tool

pub fn connect_down<F: Fn(&GestureStylus, f64, f64) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_motion<F: Fn(&GestureStylus, f64, f64) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_proximity<F: Fn(&GestureStylus, f64, f64) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_up<F: Fn(&GestureStylus, f64, f64) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

Trait Implementations

impl Clone for GestureStylus

impl Debug for GestureStylus

impl Display for GestureStylus[src]

impl Eq for GestureStylus

impl Hash for GestureStylus

impl IsA<EventController> for GestureStylus

impl IsA<Gesture> for GestureStylus

impl IsA<GestureSingle> for GestureStylus

impl Ord for GestureStylus

impl<T: ObjectType> PartialEq<T> for GestureStylus

impl<T: ObjectType> PartialOrd<T> for GestureStylus

impl StaticType for GestureStylus

Auto Trait Implementations

impl RefUnwindSafe for GestureStylus

impl !Send for GestureStylus

impl !Sync for GestureStylus

impl Unpin for GestureStylus

impl UnwindSafe for GestureStylus

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 

impl<T> Cast for T where
    T: ObjectType, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ObjectExt for T where
    T: ObjectType, 

impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<Array>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.