Wt::SDLEvent Class Reference

#include <sdlevent.h>

Inherits Wt::Singleton< DERIVED >< Wt::SDLEvent >, and Wt::Enum< CHILD >< Wt::SDLEvent >.

List of all members.

Public Types

typedef void(*) SDLEventHandler (const SDL_Event *event)

Public Member Functions

SDLEventHandleroperator[] (int event_type)
 register event handler
const SDLEventHandleroperator[] (int event_type) const
 get current handler

Static Public Member Functions

static void push (SDL_Event *event)
 pushes an SDL event to SDL stack
static void handle (const SDL_Event *event)
 handle the event
static void wait ()
 handle all events so far

Static Public Attributes

static const Member None = SDL_NOEVENT
static const Member Active = SDL_ACTIVEEVENT
static const Member KeyDown = SDL_KEYDOWN
static const Member KeyUp = SDL_KEYUP
static const Member MouseMotion = SDL_MOUSEMOTION
static const Member MouseButtonDown = SDL_MOUSEBUTTONDOWN
static const Member MouseButtonUp = SDL_MOUSEBUTTONUP
static const Member JoyAxisMotion = SDL_JOYAXISMOTION
static const Member JoyBallMotion = SDL_JOYBALLMOTION
static const Member JoyHatMotion = SDL_JOYHATMOTION
static const Member JoyButtonDown = SDL_JOYBUTTONDOWN
static const Member JoyButtonUp = SDL_JOYBUTTONUP
static const Member Quit = SDL_QUIT
static const Member SysWM = SDL_SYSWMEVENT
static const Member VideoResize = SDL_VIDEORESIZE
static const Member VideoExpose = SDL_VIDEOEXPOSE
static const Member Time = SDL_USEREVENT
static const Member Audio
static const Member Net
static const Member User = SDL_USEREVENT + 3
static const Member NumEvents = SDL_NUMEVENTS
 we can't exceed this

Protected Member Functions

 SDLEvent ()
 ~SDLEvent ()


class Singleton< SDLEvent >

Member Typedef Documentation

typedef void(*) Wt::SDLEvent::SDLEventHandler(const SDL_Event *event)

Constructor & Destructor Documentation

Wt::SDLEvent::SDLEvent (  )  [protected]

Wt::SDLEvent::~SDLEvent (  )  [protected]

Member Function Documentation

void Wt::SDLEvent::handle ( const SDL_Event *  event  )  [static]

handle the event

const SDLEvent::SDLEventHandler & Wt::SDLEvent::operator[] ( int  event_type  )  const

get current handler

SDLEvent::SDLEventHandler & Wt::SDLEvent::operator[] ( int  event_type  ) 

register event handler

void Wt::SDLEvent::push ( SDL_Event *  event  )  [static]

pushes an SDL event to SDL stack

void Wt::SDLEvent::wait (  )  [static]

handle all events so far

Friends And Related Function Documentation

friend class Singleton< SDLEvent > [friend]

Member Data Documentation

const SDLEvent::Member Wt::SDLEvent::Active = SDL_ACTIVEEVENT [static]

const SDLEvent::Member Wt::SDLEvent::Audio [static]

const SDLEvent::Member Wt::SDLEvent::JoyAxisMotion = SDL_JOYAXISMOTION [static]

const SDLEvent::Member Wt::SDLEvent::JoyBallMotion = SDL_JOYBALLMOTION [static]

const SDLEvent::Member Wt::SDLEvent::JoyButtonDown = SDL_JOYBUTTONDOWN [static]

const SDLEvent::Member Wt::SDLEvent::JoyButtonUp = SDL_JOYBUTTONUP [static]

const SDLEvent::Member Wt::SDLEvent::JoyHatMotion = SDL_JOYHATMOTION [static]

const SDLEvent::Member Wt::SDLEvent::KeyDown = SDL_KEYDOWN [static]

const SDLEvent::Member Wt::SDLEvent::KeyUp = SDL_KEYUP [static]

const SDLEvent::Member Wt::SDLEvent::MouseButtonDown = SDL_MOUSEBUTTONDOWN [static]

const SDLEvent::Member Wt::SDLEvent::MouseButtonUp = SDL_MOUSEBUTTONUP [static]

const SDLEvent::Member Wt::SDLEvent::MouseMotion = SDL_MOUSEMOTION [static]

const SDLEvent::Member Wt::SDLEvent::Net [static]

const SDLEvent::Member Wt::SDLEvent::None = SDL_NOEVENT [static]

const SDLEvent::Member Wt::SDLEvent::NumEvents = SDL_NUMEVENTS [static]

we can't exceed this

const SDLEvent::Member Wt::SDLEvent::Quit = SDL_QUIT [static]

const SDLEvent::Member Wt::SDLEvent::SysWM = SDL_SYSWMEVENT [static]

const SDLEvent::Member Wt::SDLEvent::Time = SDL_USEREVENT [static]

const SDLEvent::Member Wt::SDLEvent::User = SDL_USEREVENT + 3 [static]

const SDLEvent::Member Wt::SDLEvent::VideoExpose = SDL_VIDEOEXPOSE [static]

const SDLEvent::Member Wt::SDLEvent::VideoResize = SDL_VIDEORESIZE [static]

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

Generated Fri Jul 28 19:22:38 2006.
Copyright © 1998-2003 by the respective authors.

This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.