Class Lease

Class Documentation

class Lease

Declaration: final

Scoped keyboard-focus ownership.

Releasing an old owner cannot clear a newer focus request, including one using the same target ID. Move/release on any thread with exclusive access to this handle. Retains only routing state, not the widget/adapter. Release clears focus without restoring older requests.

Public Functions

Lease() = default
~Lease()
Lease(Lease &&other) noexcept
Lease &operator=(Lease &&other) noexcept
Lease(const Lease&) = delete
Lease &operator=(const Lease&) = delete
void reset() noexcept
bool owns_focus() const

Declaration: [[nodiscard]]

inline TargetId target() const

Declaration: [[nodiscard]]

inline std::uint64_t epoch() const

Declaration: [[nodiscard]]