The Battle for Wesnoth  1.17.10+dev
Static Public Member Functions | List of all members
gui2::event::dispatcher_implementation Struct Reference

#include <dispatcher_private.hpp>

Static Public Member Functions

template<event_category C>
static auto & event_signal (dispatcher &dispatcher, const ui_event event)
 Returns the appropriate signal queue for an event by category. More...
 
static bool has_handler (dispatcher &dispatcher, const dispatcher::event_queue_type queue_type, ui_event event)
 A helper to test whether dispatcher has an handler for a certain event. More...
 

Detailed Description

Definition at line 29 of file dispatcher_private.hpp.

Member Function Documentation

◆ event_signal()

template<event_category C>
static auto& gui2::event::dispatcher_implementation::event_signal ( dispatcher dispatcher,
const ui_event  event 
)
inlinestatic

Returns the appropriate signal queue for an event by category.

Template Parameters
CFor example, general.
Parameters
dispatcherThe dispatcher whose signal queue is used.
eventThe event to get the signal for.
Returns
The signal of the type dispatcher::signal_type<T>

Definition at line 41 of file dispatcher_private.hpp.

References gui2::event::dispatcher::get_signal_queue().

◆ has_handler()

static bool gui2::event::dispatcher_implementation::has_handler ( dispatcher dispatcher,
const dispatcher::event_queue_type  queue_type,
ui_event  event 
)
inlinestatic

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