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

One owning multi-stroke alternative, without action or held-key state. More...

#include <shortcut.hpp>

Public Member Functions

 ShortcutSequence ()
 Construct empty storage; debug iterator proxy allocation may throw.
 ShortcutSequence (std::initializer_list< key::Chord > chords)
 ShortcutSequence (const ShortcutSequence &other)=default
 ShortcutSequence (ShortcutSequence &&other)
ShortcutSequence & operator= (const ShortcutSequence &other)=default
ShortcutSequence & operator= (ShortcutSequence &&other) noexcept

Public Attributes

std::vector< key::Chord > strokes
 Owned ordered strokes with exact semantic modifiers.

Detailed Description

One owning multi-stroke alternative, without action or held-key state.

Constructor & Destructor Documentation

◆ ShortcutSequence() [1/3]

portals::ShortcutSequence::ShortcutSequence ( std::initializer_list< key::Chord > chords)
inlineexplicit
Parameters
chordsOrdered strokes copied for this alternative; validation requires at least two.

◆ ShortcutSequence() [2/3]

portals::ShortcutSequence::ShortcutSequence ( const ShortcutSequence & other)
default
Parameters
otherStrokes copied without borrowing caller storage.

◆ ShortcutSequence() [3/3]

portals::ShortcutSequence::ShortcutSequence ( ShortcutSequence && other)
inline
Parameters
otherStrokes transferred inside the caller's checked allocation boundary.

Member Function Documentation

◆ operator=() [1/2]

ShortcutSequence & portals::ShortcutSequence::operator= ( const ShortcutSequence & other)
default
Parameters
otherStrokes copied into this sequence.
Returns
This value; allocation failures propagate to the checked caller.

◆ operator=() [2/2]

ShortcutSequence & portals::ShortcutSequence::operator= ( ShortcutSequence && other)
inlinenoexcept
Parameters
otherStrokes exchanged without invoking a debug-vector move.
Returns
This sequence; both values remain valid.

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