[−][src]Struct qt_gui::QPointingDeviceUniqueId
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.
Methods
impl QPointingDeviceUniqueId
[src]
pub unsafe fn copy_from(
&mut self,
other: impl CastInto<Ref<QPointingDeviceUniqueId>>
) -> MutRef<QPointingDeviceUniqueId>
[src]
&mut self,
other: impl CastInto<Ref<QPointingDeviceUniqueId>>
) -> MutRef<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.
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)
.
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
.
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()
.
Constructs an invalid unique pointer ID.
pub unsafe fn new_copy(
other: impl CastInto<Ref<QPointingDeviceUniqueId>>
) -> CppBox<QPointingDeviceUniqueId>
[src]
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.
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
.
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(&mut 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()
.
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().
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for QPointingDeviceUniqueId
impl Send for QPointingDeviceUniqueId
impl Sync for QPointingDeviceUniqueId
impl Unpin for QPointingDeviceUniqueId
impl UnwindSafe for QPointingDeviceUniqueId
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
unsafe fn static_upcast_mut(ptr: MutPtr<T>) -> MutPtr<T>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,