AUI Framework  develop
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 >

Defines how View handles properties of FieldType type.

Example specialization:

template<>
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:37
An std::weak_ptr with AUI extensions.
Definition SharedPtrTypes.h:178
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

Returns property definition for FieldType.

Parameters
viewview to return property of

◆ setup()

template<typename View, typename FieldType>
static void ADataBindingDefault< View, FieldType >::setup ( const _< View > & view)
inlinestatic

Called then view linked with field.

Parameters
viewview to link with

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