The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Namespaces | Macros | Typedefs | Functions
events.hpp File Reference
#include <SDL_events.h>
#include <SDL_version.h>
#include <vector>
Include dependency graph for events.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  events::context
 
class  events::sdl_handler
 
struct  events::event_context
 
struct  events::pump_info
 
class  events::pump_monitor
 

Namespaces

 events
 Handling of system events.
 

Macros

#define DOUBLE_CLICK_EVENT   SDL_USEREVENT
 
#define TIMER_EVENT   (SDL_USEREVENT + 1)
 
#define HOVER_REMOVE_POPUP_EVENT   (SDL_USEREVENT + 2)
 
#define DRAW_EVENT   (SDL_USEREVENT + 3)
 
#define CLOSE_WINDOW_EVENT   (SDL_USEREVENT + 4)
 
#define SHOW_HELPTIP_EVENT   (SDL_USEREVENT + 5)
 
#define DRAW_ALL_EVENT   (SDL_USEREVENT + 6)
 

Typedefs

typedef std::vector
< events::sdl_handler * > 
sdl_handler_vector
 

Functions

void events::focus_handler (const sdl_handler *ptr)
 
void events::cycle_focus ()
 
bool events::has_focus (const sdl_handler *hand, const SDL_Event *event)
 
void events::pump ()
 
void events::peek_for_resize ()
 
void events::raise_process_event ()
 
void events::raise_resize_event ()
 
void events::raise_draw_event ()
 
void events::raise_draw_all_event ()
 
void events::raise_volatile_draw_event ()
 
void events::raise_volatile_draw_all_event ()
 
void events::raise_volatile_undraw_event ()
 
void events::raise_help_string_event (int mousex, int mousey)
 
bool events::is_input (const SDL_Event &event)
 Is the event an input event? More...
 
void events::discard_input ()
 Discards all input events. More...
 

Macro Definition Documentation

#define CLOSE_WINDOW_EVENT   (SDL_USEREVENT + 4)

Definition at line 27 of file events.hpp.

Referenced by gui2::event::thandler::handle_event(), and gui2::twindow::show().

#define DOUBLE_CLICK_EVENT   SDL_USEREVENT
#define DRAW_ALL_EVENT   (SDL_USEREVENT + 6)
#define DRAW_EVENT   (SDL_USEREVENT + 3)
#define HOVER_REMOVE_POPUP_EVENT   (SDL_USEREVENT + 2)

Definition at line 25 of file events.hpp.

Referenced by gui2::event::thandler::handle_event().

#define SHOW_HELPTIP_EVENT   (SDL_USEREVENT + 5)

Definition at line 28 of file events.hpp.

Referenced by gui2::event::thandler::handle_event(), and events::remove_on_resize().

#define TIMER_EVENT   (SDL_USEREVENT + 1)

Definition at line 24 of file events.hpp.

Referenced by gui2::event::thandler::handle_event(), and gui2::timer_callback().

Typedef Documentation

typedef std::vector<events::sdl_handler*> sdl_handler_vector

Definition at line 163 of file events.hpp.