Switch bool property observing the original Ref slot; never owns a widget or scene. No implicit boolean conversion exists: get() returns the authoritative checked bool.
More...
#include <ui_ref.hpp>
|
|
template<class> |
| class | Ref |
Switch bool property observing the original Ref slot; never owns a widget or scene. No implicit boolean conversion exists: get() returns the authoritative checked bool.
◆ get()
| std::expected< bool, ManagedError > portals::ui::CheckedProperty::get |
( |
| ) |
const |
|
inline |
- Returns
- Authoritative bool or exact affinity/lifetime/model failure; reads do not report.
◆ operator=() [1/2]
- Parameters
-
- Returns
- Owning observation carrying this exact receipt; ignored failures still reach onError. Uses checked() origin. Pins the slot before callbacks, without reusing a possibly destroyed proxy.
◆ operator=() [2/2]
Copy the source bool into this original destination; never rebind either proxy.
- Parameters
-
| source | Observing source read once before writing. |
- Returns
- Destination observation with exact receipt.
◆ result()
- Returns
- This returned assignment observation's exact receipt; INVALID_ARGUMENT before assignment. No scene access.
◆ set()
| std::expected< PropertyUpdate< bool >, ManagedError > portals::ui::CheckedProperty::set |
( |
bool | value, |
|
|
std::source_location | origin = std::source_location::current() ) |
|
inline |
- Parameters
-
| value | Replacement bool. |
| origin | Explicit mutation site. |
- Returns
- Exact Property receipt; errors also enter the existing collector as switch.checked.
The documentation for this class was generated from the following file: