[]Struct gdk::DeviceTool

pub struct DeviceTool(_, _);

Feature: v3_22

Implementations

impl DeviceTool[src]

pub fn get_hardware_id(&self) -> u64[src]

Gets the hardware ID of this tool, or 0 if it's not known. When non-zero, the identificator is unique for the given tool model, meaning that two identical tools will share the same hardware_id, but will have different serial numbers (see DeviceTool::get_serial).

This is a more concrete (and device specific) method to identify a DeviceTool than DeviceTool::get_tool_type, as a tablet may support multiple devices with the same DeviceToolType, but having different hardware identificators.

Feature: v3_22

Returns

The hardware identificator of this tool.

pub fn get_serial(&self) -> u64[src]

Gets the serial of this tool, this value can be used to identify a physical tool (eg. a tablet pen) across program executions.

Feature: v3_22

Returns

The serial ID for this tool

pub fn get_tool_type(&self) -> DeviceToolType[src]

Gets the DeviceToolType of the tool.

Feature: v3_22

Returns

The physical type for this tool. This can be used to figure out what sort of pen is being used, such as an airbrush or a pencil.

pub fn get_property_axes(&self) -> AxisFlags[src]

pub fn get_property_hardware_id(&self) -> u64[src]

pub fn get_property_serial(&self) -> u64[src]

pub fn get_property_tool_type(&self) -> DeviceToolType[src]

Trait Implementations

impl Clone for DeviceTool

impl Debug for DeviceTool

impl Display for DeviceTool[src]

impl Eq for DeviceTool

impl Hash for DeviceTool

impl Ord for DeviceTool

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

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

impl StaticType for DeviceTool

Auto Trait Implementations

impl RefUnwindSafe for DeviceTool

impl !Send for DeviceTool

impl !Sync for DeviceTool

impl Unpin for DeviceTool

impl UnwindSafe for DeviceTool

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.