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
QQmlPropertyBindingBase Class Reference

#include <qqmlpropertybindingbase_p.h>

Inheritance diagram for QQmlPropertyBindingBase:
Collaboration diagram for QQmlPropertyBindingBase:

Public Types

enum class  HasBoundFunction : bool { No = false , Yes = true }
enum class  IsUndefined : bool { No = false , Yes = true }
enum class  BindingKind : quint8 { JavaScript = 0 , PropertyToProperty = 1 }
Public Types inherited from QPropertyBindingPrivate
enum  NotificationState : bool { Delayed , Sent }

Public Member Functions

BindingKind bindingKind () const
bool isUndefined () const
Public Member Functions inherited from QPropertyBindingPrivate
bool isUpdating ()
void setSticky (bool keep=true)
bool isSticky ()
void scheduleNotify ()
 QPropertyBindingPrivate (QMetaType metaType, const QtPrivate::BindingFunctionVTable *vtable, const QPropertyBindingSourceLocation &location, bool isQQmlPropertyBinding=false)
 ~QPropertyBindingPrivate ()
void setProperty (QUntypedPropertyData *propertyPtr)
void setStaticObserver (QtPrivate::QPropertyObserverCallback callback, QtPrivate::QPropertyBindingWrapper bindingWrapper)
void prependObserver (QPropertyObserverPointer observer)
QPropertyObserverPointer takeObservers ()
void clearDependencyObservers ()
Q_ALWAYS_INLINE QPropertyObserverPointer allocateDependencyObserver ()
QPropertyObserverPointer allocateDependencyObserver_slow ()
QPropertyBindingSourceLocation sourceLocation () const
QPropertyBindingError bindingError () const
QMetaType valueMetaType () const
void unlinkAndDeref ()
bool evaluateRecursive (PendingBindingObserverList &bindingObservers, QBindingStatus *status=nullptr)
Q_ALWAYS_INLINE bool evaluateRecursive_inline (PendingBindingObserverList &bindingObservers, QBindingStatus *status)
void notifyNonRecursive (const PendingBindingObserverList &bindingObservers)
NotificationState notifyNonRecursive ()
void setError (QPropertyBindingError &&e)
void detachFromProperty ()
bool hasCustomVTable () const
bool isQmlBinding () const
Public Member Functions inherited from QtPrivate::RefCounted
int refCount () const
void addRef ()
bool deref ()

Protected Member Functions

 QQmlPropertyBindingBase (QObject *target, QQmlPropertyIndex targetIndex, QMetaType targetMetaType, const QtPrivate::BindingFunctionVTable *vtable, BindingKind bindingKind, HasBoundFunction hasBoundFunction=HasBoundFunction::No)
QObjecttarget () const
QQmlPropertyIndex targetIndex () const
bool hasBoundFunction () const
void setIsUndefined (bool isUndefined)

Additional Inherited Members

Static Public Member Functions inherited from QPropertyBindingPrivate
static constexpr size_t getSizeEnsuringAlignment ()
static QPropertyBindingPrivateget (const QUntypedPropertyBinding &binding)
static QUntypedPropertyBinding makeUntyped (QPropertyBindingPrivate *d)
static QPropertyBindingPrivatecurrentlyEvaluatingBinding ()
static void destroyAndFreeMemory (QPropertyBindingPrivate *priv)
Public Attributes inherited from QPropertyBindingPrivate
size_t dependencyObserverCount = 0
Protected Types inherited from QPropertyBindingPrivate
using DeclarativeErrorCallback = void(*)(QPropertyBindingPrivate *)
Protected Attributes inherited from QPropertyBindingPrivate
QUntypedPropertyDatapropertyDataPtr = nullptr
union { 
   QPropertyBindingSourceLocation   location 
   struct { 
      std::byte   declarativeExtraData [sizeof(QPropertyBindingSourceLocation)
         - sizeof(DeclarativeErrorCallback)] 
      DeclarativeErrorCallback   errorCallBack 
   } 
}; 

Detailed Description

Definition at line 26 of file qqmlpropertybindingbase_p.h.

Member Enumeration Documentation

◆ BindingKind

Enumerator
JavaScript 
PropertyToProperty 

Definition at line 39 of file qqmlpropertybindingbase_p.h.

◆ HasBoundFunction

Enumerator
No 
Yes 

Definition at line 29 of file qqmlpropertybindingbase_p.h.

◆ IsUndefined

enum class QQmlPropertyBindingBase::IsUndefined : bool
strong
Enumerator
No 
Yes 

Definition at line 34 of file qqmlpropertybindingbase_p.h.

Constructor & Destructor Documentation

◆ QQmlPropertyBindingBase()

QQmlPropertyBindingBase::QQmlPropertyBindingBase ( QObject * target,
QQmlPropertyIndex targetIndex,
QMetaType targetMetaType,
const QtPrivate::BindingFunctionVTable * vtable,
BindingKind bindingKind,
HasBoundFunction hasBoundFunction = HasBoundFunction::No )
inlineprotected

Definition at line 49 of file qqmlpropertybindingbase_p.h.

Member Function Documentation

◆ bindingKind()

BindingKind QQmlPropertyBindingBase::bindingKind ( ) const
inline

Definition at line 44 of file qqmlpropertybindingbase_p.h.

◆ hasBoundFunction()

bool QQmlPropertyBindingBase::hasBoundFunction ( ) const
inlineprotected

Definition at line 67 of file qqmlpropertybindingbase_p.h.

◆ isUndefined()

bool QQmlPropertyBindingBase::isUndefined ( ) const
inline

Definition at line 46 of file qqmlpropertybindingbase_p.h.

◆ setIsUndefined()

void QQmlPropertyBindingBase::setIsUndefined ( bool isUndefined)
inlineprotected

Definition at line 72 of file qqmlpropertybindingbase_p.h.

◆ target()

QObject * QQmlPropertyBindingBase::target ( ) const
inlineprotected

Definition at line 63 of file qqmlpropertybindingbase_p.h.

◆ targetIndex()

QQmlPropertyIndex QQmlPropertyBindingBase::targetIndex ( ) const
inlineprotected

Definition at line 65 of file qqmlpropertybindingbase_p.h.


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