Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QQuickSprite Class Reference

#include <qquicksprite_p.h>

Inheritance diagram for QQuickSprite:
Collaboration diagram for QQuickSprite:

Public Slots

void setSource (QUrl arg)
void setFrameHeight (int arg)
void setFrameWidth (int arg)
void setReverse (bool arg)
void setFrames (int arg)
void setFrameCount (int arg)
void setFrameX (int arg)
void setFrameY (int arg)
void setFrameRate (qreal arg)
void setFrameRateVariation (qreal arg)
void setFrameDuration (int arg)
void setFrameDurationVariation (int arg)
void setFrameSync (bool arg)
Public Slots inherited from QQuickStochasticState
void setDuration (int arg)
void setName (const QString &arg)
void setTo (const QVariantMap &arg)
void setDurationVariation (int arg)
void setRandomStart (bool arg)
Public Slots inherited from QObject
void deleteLater ()
 \threadsafe

Signals

void sourceChanged (QUrl arg)
void frameHeightChanged (int arg)
void frameWidthChanged (int arg)
void reverseChanged (bool arg)
void frameCountChanged (int arg)
void frameXChanged (int arg)
void frameYChanged (int arg)
void frameRateChanged (qreal arg)
void frameRateVariationChanged (qreal arg)
void frameDurationChanged (int arg)
void frameDurationVariationChanged (int arg)
void frameSyncChanged (bool arg)
Signals inherited from QQuickStochasticState
void durationChanged (int arg)
void nameChanged (const QString &arg)
void toChanged (const QVariantMap &arg)
void durationVariationChanged (int arg)
void entered ()
void randomStartChanged (bool arg)
Signals inherited from QObject
void destroyed (QObject *=nullptr)
 This signal is emitted immediately before the object obj is destroyed, after any instances of QPointer have been notified, and cannot be blocked.
void objectNameChanged (const QString &objectName, QPrivateSignal)
 This signal is emitted after the object's name has been changed.

Public Member Functions

 QQuickSprite (QObject *parent=nullptr)
 ~QQuickSprite () override
QUrl source () const
int frameHeight () const
int frameWidth () const
bool reverse () const
int frames () const
int frameCount () const
int frameX () const
int frameY () const
void resetFrameRate ()
qreal frameRate () const
qreal frameRateVariation () const
void resetFrameDuration ()
int frameDuration () const
int frameDurationVariation () const
int variedDuration () const override
bool frameSync () const
void setDevicePixelRatio (qreal dpr)
qreal devicePixelRatio () const
Public Member Functions inherited from QQuickStochasticState
 QQuickStochasticState (QObject *parent=nullptr)
int duration () const
QString name () const
QVariantMap to () const
int durationVariation () const
bool randomStart () const
Public Member Functions inherited from QObject
Q_INVOKABLE QObject (QObject *parent=nullptr)
 Constructs an object with parent object parent.
virtual ~QObject ()
 Destroys the object, deleting all its child objects.
virtual bool event (QEvent *event)
 This virtual function receives events to an object and should return true if the event e was recognized and processed.
virtual bool eventFilter (QObject *watched, QEvent *event)
 Filters events if this object has been installed as an event filter for the watched object.
QString objectName () const
Q_WEAK_OVERLOAD void setObjectName (const QString &name)
 Sets the object's name to name.
void setObjectName (QAnyStringView name)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
QBindable< QStringbindableObjectName ()
bool isWidgetType () const
 Returns true if the object is a widget; otherwise returns false.
bool isWindowType () const
 Returns true if the object is a window; otherwise returns false.
bool isQuickItemType () const
 Returns true if the object is a QQuickItem; otherwise returns false.
bool isQmlObjectType () const
 Returns whether the object has been created by the QML engine or ownership has been explicitly set via QJSEngine::setObjectOwnership().
bool signalsBlocked () const noexcept
 Returns true if signals are blocked; otherwise returns false.
bool blockSignals (bool b) noexcept
 If block is true, signals emitted by this object are blocked (i.e., emitting a signal will not invoke anything connected to it).
QThreadthread () const
 Returns the thread in which the object lives.
bool moveToThread (QThread *thread QT6_DECL_NEW_OVERLOAD_TAIL)
 Changes the thread affinity for this object and its children and returns true on success.
int startTimer (int interval, Qt::TimerType timerType=Qt::CoarseTimer)
 This is an overloaded function that will start a timer of type timerType and a timeout of interval milliseconds.
int startTimer (std::chrono::nanoseconds time, Qt::TimerType timerType=Qt::CoarseTimer)
void killTimer (int id)
 Kills the timer with timer identifier, id.
void killTimer (Qt::TimerId id)
template<typename T>
findChild (QAnyStringView aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 Returns the child of this object that can be cast into type T and that is called name, or \nullptr if there is no such object.
template<typename T>
QList< T > findChildren (QAnyStringView aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 Returns all children of this object with the given name that can be cast to type T, or an empty list if there are no such objects.
template<typename T>
findChild (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
template<typename T>
QList< T > findChildren (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
const QObjectListchildren () const
 Returns a list of child objects.
void setParent (QObject *parent)
 Makes the object a child of parent.
void installEventFilter (QObject *filterObj)
 Installs an event filter filterObj on this object.
void removeEventFilter (QObject *obj)
 Removes an event filter object obj from this object.
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
bool disconnect (const char *signal=nullptr, const QObject *receiver=nullptr, const char *member=nullptr) const
bool disconnect (const QObject *receiver, const char *member=nullptr) const
void dumpObjectTree () const
 Dumps a tree of children to the debug output.
void dumpObjectInfo () const
 Dumps information about signal connections, etc.
bool setProperty (const char *name, const QVariant &value)
 Sets the value of the object's name property to value.
bool setProperty (const char *name, QVariant &&value)
QVariant property (const char *name) const
 Returns the value of the object's name property.
QList< QByteArraydynamicPropertyNames () const
QBindingStoragebindingStorage ()
const QBindingStoragebindingStorage () const
QObjectparent () const
 Returns a pointer to the parent object.
bool inherits (const char *classname) const
 Returns true if this object is an instance of a class that inherits className or a QObject subclass that inherits className; otherwise returns false.

Properties

QUrl source
bool reverse
bool frameSync
int frames
int frameCount
int frameHeight
int frameWidth
int frameX
int frameY
qreal frameRate
qreal frameRateVariation
int frameDuration
int frameDurationVariation
Properties inherited from QQuickStochasticState
int duration
int durationVariation
bool randomStart
QVariantMap to
QString name
Properties inherited from QObject
QString objectName
 the name of this object

Friends

class QQuickImageParticle
class QQuickAnimatedSprite
class QQuickSpriteEngine
class QQuickStochasticEngine

Additional Inherited Members

Static Public Member Functions inherited from QObject
static QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 \threadsafe
static QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
template<typename Func1, typename Func2>
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::ContextTypeForFunctor< Func2 >::ContextType *context, Func2 &&slot, Qt::ConnectionType type=Qt::AutoConnection)
template<typename Func1, typename Func2>
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, Func2 &&slot)
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 \threadsafe
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
static bool disconnect (const QMetaObject::Connection &)
 Disconnect a connection.
template<typename Func1, typename Func2>
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiver, Func2 slot)
template<typename Func1>
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *receiver, void **zero)
Protected Member Functions inherited from QObject
QObjectsender () const
 Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; otherwise it returns \nullptr.
int senderSignalIndex () const
int receivers (const char *signal) const
 Returns the number of receivers connected to the signal.
bool isSignalConnected (const QMetaMethod &signal) const
virtual void timerEvent (QTimerEvent *event)
 This event handler can be reimplemented in a subclass to receive timer events for the object.
virtual void childEvent (QChildEvent *event)
 This event handler can be reimplemented in a subclass to receive child events.
virtual void customEvent (QEvent *event)
 This event handler can be reimplemented in a subclass to receive custom events.
virtual void connectNotify (const QMetaMethod &signal)
virtual void disconnectNotify (const QMetaMethod &signal)
 QObject (QObjectPrivate &dd, QObject *parent=nullptr)
Protected Attributes inherited from QObject
QScopedPointer< QObjectDatad_ptr

Detailed Description

Definition at line 34 of file qquicksprite_p.h.

Constructor & Destructor Documentation

◆ QQuickSprite()

QQuickSprite::QQuickSprite ( QObject * parent = nullptr)
explicit

Definition at line 175 of file qquicksprite.cpp.

◆ ~QQuickSprite()

QQuickSprite::~QQuickSprite ( )
override

Definition at line 197 of file qquicksprite.cpp.

Member Function Documentation

◆ devicePixelRatio()

qreal QQuickSprite::devicePixelRatio ( ) const
inline

Definition at line 143 of file qquicksprite_p.h.

◆ frameCount()

int QQuickSprite::frameCount ( ) const
inline

Definition at line 86 of file qquicksprite_p.h.

◆ frameCountChanged

void QQuickSprite::frameCountChanged ( int arg)
signal

◆ frameDuration()

int QQuickSprite::frameDuration ( ) const
inline

Definition at line 121 of file qquicksprite_p.h.

◆ frameDurationChanged

void QQuickSprite::frameDurationChanged ( int arg)
signal

◆ frameDurationVariation()

int QQuickSprite::frameDurationVariation ( ) const
inline

Definition at line 126 of file qquicksprite_p.h.

◆ frameDurationVariationChanged

void QQuickSprite::frameDurationVariationChanged ( int arg)
signal

◆ frameHeight()

int QQuickSprite::frameHeight ( ) const
inline

Definition at line 66 of file qquicksprite_p.h.

◆ frameHeightChanged

void QQuickSprite::frameHeightChanged ( int arg)
signal

◆ frameRate()

qreal QQuickSprite::frameRate ( ) const
inline

Definition at line 106 of file qquicksprite_p.h.

◆ frameRateChanged

void QQuickSprite::frameRateChanged ( qreal arg)
signal

◆ frameRateVariation()

qreal QQuickSprite::frameRateVariation ( ) const
inline

Definition at line 111 of file qquicksprite_p.h.

◆ frameRateVariationChanged

void QQuickSprite::frameRateVariationChanged ( qreal arg)
signal

◆ frames()

int QQuickSprite::frames ( ) const
inline

Definition at line 81 of file qquicksprite_p.h.

◆ frameSync()

bool QQuickSprite::frameSync ( ) const
inline

Definition at line 133 of file qquicksprite_p.h.

◆ frameSyncChanged

void QQuickSprite::frameSyncChanged ( bool arg)
signal

◆ frameWidth()

int QQuickSprite::frameWidth ( ) const
inline

Definition at line 71 of file qquicksprite_p.h.

◆ frameWidthChanged

void QQuickSprite::frameWidthChanged ( int arg)
signal

◆ frameX()

int QQuickSprite::frameX ( ) const
inline

Definition at line 91 of file qquicksprite_p.h.

◆ frameXChanged

void QQuickSprite::frameXChanged ( int arg)
signal

◆ frameY()

int QQuickSprite::frameY ( ) const
inline

Definition at line 96 of file qquicksprite_p.h.

◆ frameYChanged

void QQuickSprite::frameYChanged ( int arg)
signal

◆ resetFrameDuration()

void QQuickSprite::resetFrameDuration ( )
inline

Definition at line 116 of file qquicksprite_p.h.

◆ resetFrameRate()

void QQuickSprite::resetFrameRate ( )
inline

Definition at line 101 of file qquicksprite_p.h.

◆ reverse()

bool QQuickSprite::reverse ( ) const
inline

Definition at line 76 of file qquicksprite_p.h.

◆ reverseChanged

void QQuickSprite::reverseChanged ( bool arg)
signal

◆ setDevicePixelRatio()

void QQuickSprite::setDevicePixelRatio ( qreal dpr)
inline

Definition at line 138 of file qquicksprite_p.h.

◆ setFrameCount

void QQuickSprite::setFrameCount ( int arg)
inlineslot

Definition at line 215 of file qquicksprite_p.h.

◆ setFrameDuration

void QQuickSprite::setFrameDuration ( int arg)
inlineslot

Definition at line 255 of file qquicksprite_p.h.

◆ setFrameDurationVariation

void QQuickSprite::setFrameDurationVariation ( int arg)
inlineslot

Definition at line 263 of file qquicksprite_p.h.

◆ setFrameHeight

void QQuickSprite::setFrameHeight ( int arg)
inlineslot

Definition at line 185 of file qquicksprite_p.h.

◆ setFrameRate

void QQuickSprite::setFrameRate ( qreal arg)
inlineslot

Definition at line 239 of file qquicksprite_p.h.

◆ setFrameRateVariation

void QQuickSprite::setFrameRateVariation ( qreal arg)
inlineslot

Definition at line 247 of file qquicksprite_p.h.

◆ setFrames

void QQuickSprite::setFrames ( int arg)
inlineslot

Definition at line 209 of file qquicksprite_p.h.

◆ setFrameSync

void QQuickSprite::setFrameSync ( bool arg)
inlineslot

Definition at line 271 of file qquicksprite_p.h.

◆ setFrameWidth

void QQuickSprite::setFrameWidth ( int arg)
inlineslot

Definition at line 193 of file qquicksprite_p.h.

◆ setFrameX

void QQuickSprite::setFrameX ( int arg)
inlineslot

Definition at line 223 of file qquicksprite_p.h.

◆ setFrameY

void QQuickSprite::setFrameY ( int arg)
inlineslot

Definition at line 231 of file qquicksprite_p.h.

◆ setReverse

void QQuickSprite::setReverse ( bool arg)
inlineslot

Definition at line 201 of file qquicksprite_p.h.

◆ setSource

void QQuickSprite::setSource ( QUrl arg)
inlineslot

Definition at line 176 of file qquicksprite_p.h.

◆ source()

QUrl QQuickSprite::source ( ) const
inline

Definition at line 61 of file qquicksprite_p.h.

◆ sourceChanged

void QQuickSprite::sourceChanged ( QUrl arg)
signal

◆ variedDuration()

int QQuickSprite::variedDuration ( ) const
overridevirtual

Reimplemented from QQuickStochasticState.

Definition at line 201 of file qquicksprite.cpp.

◆ QQuickAnimatedSprite

friend class QQuickAnimatedSprite
friend

Definition at line 285 of file qquicksprite_p.h.

◆ QQuickImageParticle

friend class QQuickImageParticle
friend

Definition at line 283 of file qquicksprite_p.h.

◆ QQuickSpriteEngine

friend class QQuickSpriteEngine
friend

Definition at line 286 of file qquicksprite_p.h.

◆ QQuickStochasticEngine

friend class QQuickStochasticEngine
friend

Definition at line 287 of file qquicksprite_p.h.

Property Documentation

◆ frameCount

int QQuickSprite::frameCount
readwrite

Definition at line 42 of file qquicksprite_p.h.

◆ frameDuration

int QQuickSprite::frameDuration
readwrite

Definition at line 52 of file qquicksprite_p.h.

◆ frameDurationVariation

int QQuickSprite::frameDurationVariation
readwrite

Definition at line 53 of file qquicksprite_p.h.

◆ frameHeight

int QQuickSprite::frameHeight
readwrite

Definition at line 45 of file qquicksprite_p.h.

◆ frameRate

qreal QQuickSprite::frameRate
readwrite

Definition at line 50 of file qquicksprite_p.h.

◆ frameRateVariation

qreal QQuickSprite::frameRateVariation
readwrite

Definition at line 51 of file qquicksprite_p.h.

◆ frames

int QQuickSprite::frames
readwrite

Definition at line 41 of file qquicksprite_p.h.

◆ frameSync

bool QQuickSprite::frameSync
readwrite

Definition at line 40 of file qquicksprite_p.h.

◆ frameWidth

int QQuickSprite::frameWidth
readwrite

Definition at line 46 of file qquicksprite_p.h.

◆ frameX

int QQuickSprite::frameX
readwrite

Definition at line 47 of file qquicksprite_p.h.

◆ frameY

int QQuickSprite::frameY
readwrite

Definition at line 48 of file qquicksprite_p.h.

◆ reverse

bool QQuickSprite::reverse
readwrite

Definition at line 39 of file qquicksprite_p.h.

◆ source

QUrl QQuickSprite::source
readwrite

Definition at line 37 of file qquicksprite_p.h.


The documentation for this class was generated from the following files: