Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
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 > >:

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 732 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>(); }
}
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:212
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLint location

Definition at line 738 of file qproperty_p.h.


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