[][src]Struct qt_gui::QPointingDeviceUniqueId

#[repr(C)]pub struct QPointingDeviceUniqueId { /* fields omitted */ }

QPointingDeviceUniqueId identifies a unique object, such as a tagged token or stylus, which is used with a pointing device.

C++ class: QPointingDeviceUniqueId.

C++ documentation:

QPointingDeviceUniqueId identifies a unique object, such as a tagged token or stylus, which is used with a pointing device.

QPointingDeviceUniqueIds can be compared for equality, and can be used as keys in a QHash. You get access to the numerical ID via numericId(), if the device supports such IDs. For future extensions, though, you should not use that function, but compare objects of this type using the equality operator.

This class is a thin wrapper around an integer ID. You pass it into and out of functions by value.

This type actively prevents you from holding it in a QList, because doing so would be very inefficient. Use a QVector instead, which has the same API as QList, but more efficient storage.

Methods

impl QPointingDeviceUniqueId[src]

pub unsafe fn copy_from(
    &self,
    other: impl CastInto<Ref<QPointingDeviceUniqueId>>
) -> Ref<QPointingDeviceUniqueId>
[src]

QPointingDeviceUniqueId identifies a unique object, such as a tagged token or stylus, which is used with a pointing device.

Calls C++ function: QPointingDeviceUniqueId& QPointingDeviceUniqueId::operator=(const QPointingDeviceUniqueId& other).

C++ documentation:

QPointingDeviceUniqueId identifies a unique object, such as a tagged token or stylus, which is used with a pointing device.

QPointingDeviceUniqueIds can be compared for equality, and can be used as keys in a QHash. You get access to the numerical ID via numericId(), if the device supports such IDs. For future extensions, though, you should not use that function, but compare objects of this type using the equality operator.

This class is a thin wrapper around an integer ID. You pass it into and out of functions by value.

This type actively prevents you from holding it in a QList, because doing so would be very inefficient. Use a QVector instead, which has the same API as QList, but more efficient storage.

pub unsafe fn from_numeric_id(id: i64) -> CppBox<QPointingDeviceUniqueId>[src]

Constructs a unique pointer ID from numeric ID id.

Calls C++ function: static QPointingDeviceUniqueId QPointingDeviceUniqueId::fromNumericId(qint64 id).

C++ documentation:

Constructs a unique pointer ID from numeric ID id.

pub unsafe fn is_valid(&self) -> bool[src]

Returns whether this unique pointer ID is valid, that is, it represents an actual pointer.

Calls C++ function: bool QPointingDeviceUniqueId::isValid() const.

C++ documentation:

Returns whether this unique pointer ID is valid, that is, it represents an actual pointer.

pub unsafe fn new() -> CppBox<QPointingDeviceUniqueId>[src]

Constructs an invalid unique pointer ID.

Calls C++ function: [constructor] void QPointingDeviceUniqueId::QPointingDeviceUniqueId().

C++ documentation:

Constructs an invalid unique pointer ID.

pub unsafe fn new_copy(
    other: impl CastInto<Ref<QPointingDeviceUniqueId>>
) -> CppBox<QPointingDeviceUniqueId>
[src]

QPointingDeviceUniqueId identifies a unique object, such as a tagged token or stylus, which is used with a pointing device.

Calls C++ function: [constructor] void QPointingDeviceUniqueId::QPointingDeviceUniqueId(const QPointingDeviceUniqueId& other).

C++ documentation:

QPointingDeviceUniqueId identifies a unique object, such as a tagged token or stylus, which is used with a pointing device.

QPointingDeviceUniqueIds can be compared for equality, and can be used as keys in a QHash. You get access to the numerical ID via numericId(), if the device supports such IDs. For future extensions, though, you should not use that function, but compare objects of this type using the equality operator.

This class is a thin wrapper around an integer ID. You pass it into and out of functions by value.

This type actively prevents you from holding it in a QList, because doing so would be very inefficient. Use a QVector instead, which has the same API as QList, but more efficient storage.

pub unsafe fn numeric_id(&self) -> i64[src]

This property holds the numeric unique ID of the token represented by a touchpoint

Calls C++ function: qint64 QPointingDeviceUniqueId::numericId() const.

C++ documentation:

This property holds the numeric unique ID of the token represented by a touchpoint

If the device provides a numeric ID, isValid() returns true, and this property provides the numeric ID; otherwise it is -1.

You should not use the value of this property in portable code, but instead rely on equality to identify pointers.

Access functions:

qint64 numericId() const

See also isValid().

pub unsafe fn static_meta_object() -> Ref<QMetaObject>[src]

Returns a reference to the staticMetaObject field.

Trait Implementations

impl CppDeletable for QPointingDeviceUniqueId[src]

unsafe fn delete(&self)[src]

QPointingDeviceUniqueId identifies a unique object, such as a tagged token or stylus, which is used with a pointing device.

Calls C++ function: [destructor] void QPointingDeviceUniqueId::~QPointingDeviceUniqueId().

C++ documentation:

QPointingDeviceUniqueId identifies a unique object, such as a tagged token or stylus, which is used with a pointing device.

QPointingDeviceUniqueIds can be compared for equality, and can be used as keys in a QHash. You get access to the numerical ID via numericId(), if the device supports such IDs. For future extensions, though, you should not use that function, but compare objects of this type using the equality operator.

This class is a thin wrapper around an integer ID. You pass it into and out of functions by value.

This type actively prevents you from holding it in a QList, because doing so would be very inefficient. Use a QVector instead, which has the same API as QList, but more efficient storage.

impl PartialEq<Ref<QPointingDeviceUniqueId>> for QPointingDeviceUniqueId[src]

fn eq(&self, rhs: &Ref<QPointingDeviceUniqueId>) -> bool[src]

Returns true if page layout lhs is equal to page layout rhs, i.e. if all the attributes are exactly equal.

Calls C++ function: bool operator==(QPointingDeviceUniqueId lhs, QPointingDeviceUniqueId rhs).

Warning: no exact match found in C++ documentation. Below is the C++ documentation for bool operator==(const QPageLayout &lhs, const QPageLayout &rhs):

Returns true if page layout lhs is equal to page layout rhs, i.e. if all the attributes are exactly equal.

Note that this is a strict equality, especially for page size where the QPageSize ID, name and size must exactly match, and the margins where the units must match.

See also QPageLayout::isEquivalentTo().

Auto Trait Implementations

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<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

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

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

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

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.