Helper class for describing types.
More...
#include <Coherent/UI/Binding/Binder.h>
Helper class for describing types.
Bind a base class.
- Parameters
-
object | pointer to the base part of the object |
- Returns
- reference to the same object to allow chaining calls
template<typename Base >
TypeDescription& Coherent::UI::TypeDescription::BaseClass |
( |
const Base * |
object | ) |
|
|
inline |
Bind a base class.
- Parameters
-
object | pointer to the base part of the object |
- Returns
- reference to the same object to allow chaining calls
template<typename Member >
TypeDescription & Coherent::UI::TypeDescription::Property |
( |
const char * |
name, |
|
|
Member |
member |
|
) |
| |
Bind a member property.
- Parameters
-
name | name of the property (this string is NOT copied and must be alive till the view is closed) |
member | pointer to member of the class that the property represents |
- Returns
- reference to the same object to allow chaining calls
template<typename Getter , typename Setter >
TypeDescription & Coherent::UI::TypeDescription::Property |
( |
const char * |
name, |
|
|
Getter |
getter, |
|
|
Setter |
setter |
|
) |
| |
Bind a member property.
- Parameters
-
name | name of the property (this string is NOT copied and must be alive till the view is closed) |
getter | pointer to getter method of the class that the property represents |
setter | pointer to setter method of the class that the property represents |
- Returns
- reference to the same object to allow chaining calls
template<typename Getter >
TypeDescription & Coherent::UI::TypeDescription::PropertyReadOnly |
( |
const char * |
name, |
|
|
Getter |
getter |
|
) |
| |
Bind a read-only member property.
- Parameters
-
name | name of the property (this string is NOT copied and must be alive till the view is closed) |
getter | pointer to getter method of the class that the property represents |
- Returns
- reference to the same object to allow chaining calls