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

Owning click snapshot used by pipe callbacks; no widget or scene ownership. The callback borrows this value synchronously. A saved copy keeps the event and observing identity, but stopPropagation on that copy cannot affect the original delivery. Metadata is read-only throughout the chain. Copy construction creates a snapshot; assignment is unavailable because the original event fields cannot be replaced. More...

#include <controls.hpp>

Public Member Functions

 ClickParams (const ClickEvent &click)
void stopPropagation () noexcept
 Stop remaining callbacks of this activation; the button already consumes router bubbling.
void stop () noexcept
 Short alias for stopPropagation, affecting the same synchronous chain context.
bool propagationStopped () const noexcept

Public Attributes

const Node< Button > target
 Observing activated identity; may become stale after a callback.
const InputModifiers mods
 Original semantic modifiers, queryable with key tags.
const ClickSource source
 Actual admitted event origin.
const RoutedEvent event
 Owning original routed value; keyboard translation preserves its source.

Detailed Description

Owning click snapshot used by pipe callbacks; no widget or scene ownership. The callback borrows this value synchronously. A saved copy keeps the event and observing identity, but stopPropagation on that copy cannot affect the original delivery. Metadata is read-only throughout the chain. Copy construction creates a snapshot; assignment is unavailable because the original event fields cannot be replaced.

Constructor & Destructor Documentation

◆ ClickParams()

portals::ui::ClickParams::ClickParams ( const ClickEvent & click)
inlineexplicit
Parameters
clickOriginal owning router activation, copied into this synchronous chain context.

Member Function Documentation

◆ propagationStopped()

bool portals::ui::ClickParams::propagationStopped ( ) const
inlinenoexcept
Returns
Whether this particular synchronous chain context was stopped.

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