Struct qt_gui::QPointingDeviceUniqueId
source · #[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
.
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
impl QPointingDeviceUniqueId
sourcepub unsafe fn copy_from(
&self,
other: impl CastInto<Ref<QPointingDeviceUniqueId>>
) -> Ref<QPointingDeviceUniqueId>
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)
.
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.
sourcepub unsafe fn from_numeric_id(id: i64) -> CppBox<QPointingDeviceUniqueId>
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)
.
Constructs a unique pointer ID from numeric ID id.
sourcepub unsafe fn is_valid(&self) -> bool
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
.
Returns whether this unique pointer ID is valid, that is, it represents an actual pointer.
sourcepub unsafe fn new() -> CppBox<QPointingDeviceUniqueId>
pub unsafe fn new() -> CppBox<QPointingDeviceUniqueId>
Constructs an invalid unique pointer ID.
Calls C++ function: [constructor] void QPointingDeviceUniqueId::QPointingDeviceUniqueId()
.
Constructs an invalid unique pointer ID.
sourcepub unsafe fn new_copy(
other: impl CastInto<Ref<QPointingDeviceUniqueId>>
) -> CppBox<QPointingDeviceUniqueId>
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)
.
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.
sourcepub unsafe fn numeric_id(&self) -> i64
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
.
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().
sourcepub unsafe fn static_meta_object() -> Ref<QMetaObject>
pub unsafe fn static_meta_object() -> Ref<QMetaObject>
Returns a reference to the staticMetaObject
field.
Trait Implementations§
source§impl CppDeletable for QPointingDeviceUniqueId
impl CppDeletable for QPointingDeviceUniqueId
source§unsafe fn delete(&self)
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()
.
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
impl PartialEq<Ref<QPointingDeviceUniqueId>> for QPointingDeviceUniqueId
source§fn eq(&self, rhs: &Ref<QPointingDeviceUniqueId>) -> bool
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().