|
xentara-workbench-plugin v1.0.1
The Xentara Workbench Plugin Framework
|
A callback for changes to a property. More...
#include <xentara/workbench/bindings/PropertyChangedCallback.hpp>
Classes | |
| class | FullVisitor |
| class | NonNullVisitor |
| class | SimpleVisitor |
Public Member Functions | |
| PropertyChangedCallback ()=default | |
| Default constructor. | |
| PropertyChangedCallback (std::nullptr_t) | |
| Default constructor. | |
| template<std::invocable Callback> requires (!std::invocable<Callback, Action, std::size_t>) | |
| PropertyChangedCallback (Callback &&callback) | |
| Constructor for a simple callback. | |
| template<std::invocable< Action, std::size_t > Callback> | |
| PropertyChangedCallback (Callback &&callback) | |
| Constructor for a full callback. | |
| operator bool () const noexcept | |
| Check whether a callback has been set. | |
| auto | operator() () const -> void |
| Calls the callback signalling a value change. | |
| auto | operator() (Action action, std::size_t index={}) const -> void |
| Calls the callback signalling an arbitrary change. | |
A callback for changes to a property.
|
default |
Default constructor.
| xentara::workbench::bindings::PropertyChangedCallback::PropertyChangedCallback | ( | std::nullptr_t | ) |
Default constructor.
| xentara::workbench::bindings::PropertyChangedCallback::PropertyChangedCallback | ( | Callback && | callback | ) |
Constructor for a simple callback.
| xentara::workbench::bindings::PropertyChangedCallback::PropertyChangedCallback | ( | Callback && | callback | ) |
Constructor for a full callback.
|
explicitnoexcept |
Check whether a callback has been set.
| auto xentara::workbench::bindings::PropertyChangedCallback::operator() | ( | ) | const -> void |
Calls the callback signalling a value change.
| std::bad_function_call | No callback has been set |
| Rethrows | any exception thrown by the callback |
| auto xentara::workbench::bindings::PropertyChangedCallback::operator() | ( | Action | action, |
| std::size_t | index = {} |
||
| ) | const -> void |
Calls the callback signalling an arbitrary change.
| std::bad_function_call | No callback has been set |
| Rethrows | any exception thrown by the callback |