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

#include <dispatcher_private.hpp>

Static Public Member Functions

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 33 of file dispatcher_private.hpp.

Member Function Documentation

◆ has_handler()

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

A helper to test whether dispatcher has an handler for a certain event.

Parameters
dispatcherThe dispatcher whose signal queue is used.
queue_typeThe type of event to look for.
eventThe event to get the signal for.
Returns
Whether or not the handler is found.

Definition at line 110 of file dispatcher_private.hpp.

References IMPLEMENT_RUNTIME_EVENT_SIGNAL_CHECK, gui2::event::is_general_event(), and gui2::event::dispatcher::signal_queue_.

Referenced by gui2::event::dispatcher::has_event().


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