AUI Framework  master
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
ADataBindingDefault< View, FieldType > Struct Template Reference

Defines how View handles properties of FieldType type. More...

#include <AUI/Util/ADataBinding.h>

Static Public Member Functions#

static void setup (const _< View > &view)
 Called then view linked with field.
 
static auto property (const _< View > &view)
 Returns property definition for FieldType.
 
static ASignal< FieldType >View::* getGetter ()
 Returns getter for ADataBinding (deprecated)
 

Static Public Attributes#

static void(View::*)(const FieldType &v) getSetter ()
 Returns setter for ADataBinding (deprecated)
 

Detailed Description#

template<typename View, typename FieldType>
struct ADataBindingDefault< View, FieldType >

Example specialization:

template<>
struct ADataBindingDefault<ALabel, AString> {
public:
    static auto property(const _<ALabel>& view) { return view->text(); }
};
Represents a simple single-line text display view.
Definition ALabel.h:23
Represents a Unicode character string.
Definition AString.h:38
An std::weak_ptr with AUI extensions.
Definition SharedPtrTypes.h:179
Defines how View handles properties of FieldType type.
Definition ADataBinding.h:37
static auto property(const _< View > &view)
Returns property definition for FieldType.
Definition ADataBinding.h:49

Member Function Documentation#

◆ property()#

template<typename View, typename FieldType>
static auto ADataBindingDefault< View, FieldType >::property ( const _< View > & view)
inlinestatic
Parameters
viewview to return property of

◆ setup()#

template<typename View, typename FieldType>
static void ADataBindingDefault< View, FieldType >::setup ( const _< View > & view)
inlinestatic
Parameters
viewview to link with