#[repr(C)]
pub struct QPointingDeviceUniqueId { /* private fields */ }
Expand description

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.

Implementations§

source§

impl QPointingDeviceUniqueId

source

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

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.

source

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

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.

source

pub unsafe fn is_valid(&self) -> bool

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.

source

pub unsafe fn new() -> CppBox<QPointingDeviceUniqueId>

Constructs an invalid unique pointer ID.

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

C++ documentation:

Constructs an invalid unique pointer ID.

source

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

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.

source

pub unsafe fn numeric_id(&self) -> i64

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().

source

pub unsafe fn static_meta_object() -> Ref<QMetaObject>

Returns a reference to the staticMetaObject field.

Trait Implementations§

source§

impl CppDeletable for QPointingDeviceUniqueId

source§

unsafe fn delete(&self)

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.

source§

impl PartialEq<Ref<QPointingDeviceUniqueId>> for QPointingDeviceUniqueId

source§

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

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().

1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

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

source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

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> StaticUpcast<T> for T

source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
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.