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

Owning semantic command, usable without terminal input. More...

#include <action.hpp>

Public Member Functions

constexpr bool operator== (const ActionEvent &other) const noexcept
 Compare semantic command intent, preserving the original equality contract.

Public Attributes

Action action {}
 Command identity.
InputModifiers modifiers {}
 Selection and other modifier intent.
ClickSource source {ClickSource::PROGRAMMATIC}
 Preserved origin when translating keyboard input.
KeyAction keyAction {KeyAction::PRESS}
 Observed keyboard phase; independent of semantic action equality.

Detailed Description

Owning semantic command, usable without terminal input.

Member Function Documentation

◆ operator==()

bool portals::ActionEvent::operator== ( const ActionEvent & other) const
inlineconstexprnoexcept

Compare semantic command intent, preserving the original equality contract.

Parameters
otherCommand and modifier value to compare; source annotation is inspected separately.
Returns
True when action and modifiers are equal, regardless of observed source or keyboard phase.

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