C
SafeRenderer::QSafeEventPosition Class
class SafeRenderer::QSafeEventPositionThe QSafeEventPosition class is obsolete from Qt Safe Renderer 2.0 onwards. More...
| Header: | #include <QSafeEventPosition> |
| Since: | QtSafeRenderer 1.0 |
| Inherits: | SafeRenderer::QSafeEvent |
| Status: | Deprecated |
This class is deprecated. We strongly advise against using it in new code.
Public Functions
| SafeRenderer::quint32 | itemId() const |
| void | setItemId(const SafeRenderer::quint32 valueArg) |
| void | setX(const SafeRenderer::quint32 valueArg) |
| void | setY(const SafeRenderer::quint32 valueArg) |
| SafeRenderer::quint32 | x() const |
| SafeRenderer::quint32 | y() const |
Detailed Description
Use QML states instead for changing event and positions. For more information, see Important Concepts in Qt Quick - States, Transitions and Animations.
The QSafeEventPosition class changes the item position.
Member Function Documentation
SafeRenderer::quint32 QSafeEventPosition::itemId() const
Returns event's item id.
See also setItemId().
void QSafeEventPosition::setItemId(const SafeRenderer::quint32 valueArg)
Sets the item id.
valueArg is the hash of the safe item's objectName in QML.
In case of a failure, the following exception will be thrown:
| Exception | Id | Description |
|---|---|---|
| SafeRenderer::QSafeEventException | SafeRenderer::QSafeEventException::OutOfBounds | The offset of the data goes out of the reserved memory area. |
See also itemId().
void QSafeEventPosition::setX(const SafeRenderer::quint32 valueArg)
Sets the item's x-coordinate to valueArg.
In case of a failure, the following exception will be thrown:
| Exception | Id | Description |
|---|---|---|
| SafeRenderer::QSafeEventException | SafeRenderer::QSafeEventException::OutOfBounds | The offset of the data goes out of the reserved memory area. |
See also x().
void QSafeEventPosition::setY(const SafeRenderer::quint32 valueArg)
Sets the item's y-coordinate to valueArg.
In case of a failure, the following exception will be thrown:
| Exception | Id | Description |
|---|---|---|
| SafeRenderer::QSafeEventException | SafeRenderer::QSafeEventException::OutOfBounds | The offset of the data goes out of the reserved memory area. |
See also y().
SafeRenderer::quint32 QSafeEventPosition::x() const
Returns the x-coordinate.
See also setX().
SafeRenderer::quint32 QSafeEventPosition::y() const
Returns the y-coordinate.
See also setY().
Available under certain Qt licenses.
Find out more.