QtBase  v6.3.1
Static Public Attributes | List of all members
QtPrivate::QBindableInterfaceForProperty< QObjectCompatProperty< Class, Ty, Offset, Setter, Signal, Getter >, std::void_t< Class > > Class Template Reference

#include <qproperty_p.h>

Collaboration diagram for QtPrivate::QBindableInterfaceForProperty< QObjectCompatProperty< Class, Ty, Offset, Setter, Signal, Getter >, std::void_t< Class > >:
Collaboration graph
[legend]

Static Public Attributes

static constexpr QBindableInterface iface
 

Detailed Description

template<typename Class, typename Ty, auto Offset, auto Setter, auto Signal, auto Getter>
class QtPrivate::QBindableInterfaceForProperty< QObjectCompatProperty< Class, Ty, Offset, Setter, Signal, Getter >, std::void_t< Class > >

Definition at line 678 of file qproperty_p.h.

Member Data Documentation

◆ iface

template<typename Class , typename Ty , auto Offset, auto Setter, auto Signal, auto Getter>
constexpr QBindableInterface QtPrivate::QBindableInterfaceForProperty< QObjectCompatProperty< Class, Ty, Offset, Setter, Signal, Getter >, std::void_t< Class > >::iface
staticconstexpr
Initial value:
= {
[](const QUntypedPropertyData *d, void *value) -> void
{ *static_cast<T*>(value) = Property::getPropertyValue(d); },
[](QUntypedPropertyData *d, const void *value) -> void
{
(static_cast<Property *>(d)->owner()->*Setter)(*static_cast<const T*>(value));
},
{ return static_cast<const Property *>(d)->binding(); },
{ return static_cast<Property *>(d)->setBinding(static_cast<const QPropertyBinding<T> &>(binding)); },
{ return Qt::makePropertyBinding([d]() -> T { return Property::getPropertyValue(d); }, location); },
[](const QUntypedPropertyData *d, QPropertyObserver *observer) -> void
{ observer->setSource(static_cast<const Property *>(d)->bindingData()); },
[]() { return QMetaType::fromType<T>(); }
}
#define value
[5]
auto makePropertyBinding(Functor &&f, const QPropertyBindingSourceLocation &location=QT_PROPERTY_DEFAULT_BINDING_LOCATION, std::enable_if_t< std::is_invocable_v< Functor >> *=nullptr)
Definition: qproperty.h:222
EGLOutputLayerEXT EGLint EGLAttrib value
GLint location
Definition: main.cpp:38

Definition at line 684 of file qproperty_p.h.


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