Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::ui::detail::QuitCommand Struct Reference

Exact overload-selection target for a bare short command in existing callback templates. More...

#include <quit_command.hpp>

Public Types

using Function = void (*)(std::source_location)
 Source-location-aware short command signature used for exact overload selection.

Public Member Functions

 QuitCommand (Function command, std::source_location origin=std::source_location::current()) noexcept
void operator() () const
 Invoke the selected short command with its retained registration origin.

Public Attributes

Function command
 Exact source-location-aware command target.
std::source_location origin
 Original registration site, never an invocation-internal location.

Detailed Description

Exact overload-selection target for a bare short command in existing callback templates.

Constructor & Destructor Documentation

◆ QuitCommand()

portals::ui::detail::QuitCommand::QuitCommand ( Function command,
std::source_location origin = std::source_location::current() )
inlinenoexcept
Parameters
commandExact short command; no default arguments survive a function pointer.
originImplicit conversion site, replaced by an explicit registration origin when supplied.

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