Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::ui::ct::detail::Click< Id, Callback > Struct Template Reference

Runtime callback storage; captures transfer to the existing managed binding. More...

#include <ui_static.hpp>

Public Member Functions

template<class T>
auto apply (Description< T > recipe)

Public Attributes

Callback value
 Owning activation action, never evaluated during constant construction.

Static Public Attributes

static constexpr auto ID = Id
 Required static target identity.
static constexpr auto KIND = AdapterKind::CLICK
 Duplicate checking category.

Detailed Description

template<Literal Id, class Callback>
struct portals::ui::ct::detail::Click< Id, Callback >

Runtime callback storage; captures transfer to the existing managed binding.

Template Parameters
IdRequired nonempty identity.
CallbackExisting compact ManagedAction callable.

Member Function Documentation

◆ apply()

template<Literal Id, class Callback>
template<class T>
auto portals::ui::ct::detail::Click< Id, Callback >::apply ( Description< T > recipe)
inline
Template Parameters
TExisting widget type at the matching identity.
Parameters
recipeConsuming existing runtime recipe.
Returns
Recipe with the existing onClick setup; a non-Button target fails compilation.

The documentation for this struct was generated from the following file: