events.hpp File Reference

#include "SDL.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.

Namespaces

namespace  events

Classes

class  events::handler
struct  events::event_context
struct  events::pump_info
class  events::pump_monitor
class  input_blocker

Defines

#define DOUBLE_CLICK_EVENT   SDL_USEREVENT
#define HOVER_EVENT   (SDL_USEREVENT + 1)
#define HOVER_REMOVE_POPUP_EVENT   (SDL_USEREVENT + 2)
#define INPUT_MASK

Typedefs

typedef std::vector
< events::handler * > 
handler_vector

Functions

void events::focus_handler (const handler *ptr)
void events::cycle_focus ()
bool events::has_focus (const handler *hand, const SDL_Event *event)
void events::pump ()
int events::discard (Uint32 event_mask)
void events::raise_process_event ()
void events::raise_draw_event ()
void events::raise_volatile_draw_event ()
void events::raise_volatile_undraw_event ()
void events::raise_help_string_event (int mousex, int mousey)


Define Documentation

#define DOUBLE_CLICK_EVENT   SDL_USEREVENT

Definition at line 22 of file events.hpp.

Referenced by mp::gamebrowser::handle_event(), gui::menu::handle_event(), and events::pump().

#define HOVER_EVENT   (SDL_USEREVENT + 1)

Definition at line 23 of file events.hpp.

Referenced by gui2::tevent_handler::handle_event(), and gui2::hover_callback().

#define HOVER_REMOVE_POPUP_EVENT   (SDL_USEREVENT + 2)

Definition at line 24 of file events.hpp.

Referenced by gui2::tevent_handler::handle_event(), and gui2::popup_callback().

#define INPUT_MASK

Value:

(SDL_EVENTMASK(SDL_KEYDOWN)|\
                           SDL_EVENTMASK(SDL_KEYUP)|\
                           SDL_EVENTMASK(SDL_MOUSEBUTTONDOWN)|\
                           SDL_EVENTMASK(SDL_MOUSEBUTTONUP)|\
                           SDL_EVENTMASK(SDL_JOYBUTTONDOWN)|\
                           SDL_EVENTMASK(SDL_JOYBUTTONUP))

Definition at line 113 of file events.hpp.

Referenced by events::pump(), and input_blocker::~input_blocker().


Typedef Documentation

typedef std::vector<events::handler*> handler_vector

Definition at line 111 of file events.hpp.


Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs