The Battle for Wesnoth  1.13.4+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 Struct Reference

#include <events.hpp>

Public Member Functions

 context ()
 
void add_handler (sdl_handler *ptr)
 
bool remove_handler (sdl_handler *ptr)
 
int cycle_focus ()
 
void set_focus (const sdl_handler *ptr)
 
void delete_handler_index (size_t handler)
 

Public Attributes

std::vector< sdl_handler * > handlers
 
int focused_handler
 

Detailed Description

Definition at line 36 of file events.hpp.

Constructor & Destructor Documentation

events::context::context ( )
inline

Definition at line 38 of file events.hpp.

Member Function Documentation

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

Definition at line 44 of file events.cpp.

References handlers.

Referenced by events::sdl_handler::join(), and events::sdl_handler::join_global().

int events::context::cycle_focus ( )

Definition at line 93 of file events.cpp.

References focused_handler, handlers, and i.

Referenced by remove_handler().

void events::context::delete_handler_index ( size_t  handler)

Definition at line 49 of file events.cpp.

References focused_handler, gui2::event::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 110 of file events.cpp.

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

Member Data Documentation

int events::context::focused_handler

Definition at line 50 of file events.hpp.

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

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

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