The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Public Attributes | List of all members
events::context Class Reference

#include <events.hpp>

Public Member Functions

 context ()
 ~context ()
 context (const context &)=delete
void add_handler (sdl_handler *ptr)
bool remove_handler (sdl_handler *ptr)
void cycle_focus ()
void set_focus (const sdl_handler *ptr)
void add_staging_handlers ()

Public Attributes

handler_list handlers
handler_list::iterator focused_handler
std::vector< sdl_handler * > staging_handlers

Detailed Description

Definition at line 39 of file events.hpp.

Constructor & Destructor Documentation

events::context::context ( )

Definition at line 42 of file events.hpp.

events::context::~context ( )

Definition at line 167 of file events.cpp.

References h, and handlers.

events::context::context ( const context )

Member Function Documentation

void events::context::add_handler ( sdl_handler ptr)

Definition at line 64 of file events.cpp.

References staging_handlers.

Referenced by events::sdl_handler::join().

void events::context::add_staging_handlers ( )

Definition at line 161 of file events.cpp.

References handlers, and staging_handlers.

void events::context::cycle_focus ( )

Definition at line 120 of file events.cpp.

References focused_handler, and handlers.

Referenced by remove_handler().

bool events::context::remove_handler ( sdl_handler ptr)
void events::context::set_focus ( const sdl_handler ptr)

Definition at line 153 of file events.cpp.

References gui2::event::find(), focused_handler, handlers, and i.

Member Data Documentation

handler_list::iterator events::context::focused_handler

Definition at line 60 of file events.hpp.

Referenced by cycle_focus(), remove_handler(), and set_focus().

handler_list events::context::handlers
std::vector<sdl_handler*> events::context::staging_handlers

Definition at line 61 of file events.hpp.

Referenced by add_handler(), add_staging_handlers(), and remove_handler().

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