GGPropertyFn class
#include <GGUI/Public/DataSource.h>
Custom value cell: [=](UI& ui, const FieldInfo& field) { ... }.
Stored by the grid, so capture by value. Returning void handles every field; returning bool, false falls back to the registered editor.
Constructors, destructors, conversion operators
- GGPropertyFn() defaulted
- None: every field gets its registered editor.
-
template<typename TFn>GGPropertyFn(TFn fn)
- Calls
fnfor each field's value cell. - operator bool() const explicit
- Whether it has a function.
Public functions
- auto SameAs(const GGPropertyFn& other) const -> bool
- Whether it is the same function with byte-identical captures.
- auto operator()(UI& ui, const FieldInfo& field) const -> bool
- True if it built the field's value cell.