xoreos  0.0.5
Classes | Namespaces | Typedefs | Enumerations
types.h File Reference

Basic event types. More...

#include <stdexcept>
#include "src/common/error.h"
#include <boost/function.hpp>
#include <boost/shared_ptr.hpp>
#include "src/common/fallthrough.h"
#include <SDL_events.h>
Include dependency graph for types.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Events::MainThreadFunctor< T >
 A functor for a function that needs to be called in the main thread. More...
 
struct  Events::MainThreadFunctor< void >
 Template specialization for a MainThreadFunctor returning void. More...
 

Namespaces

 Events
 

Typedefs

typedef SDL_Event Events::Event
 
typedef boost::function< void()> Events::MainThreadCallerFunctor
 

Enumerations

enum  Events::EventType {
  Events::kEventKeyDown = SDL_KEYDOWN, Events::kEventKeyUp = SDL_KEYUP, Events::kEventMouseMove = SDL_MOUSEMOTION, Events::kEventMouseDown = SDL_MOUSEBUTTONDOWN,
  Events::kEventMouseUp = SDL_MOUSEBUTTONUP, Events::kEventMouseWheel = SDL_MOUSEWHEEL, Events::kEventTextInput = SDL_TEXTINPUT, Events::kEventQuit = SDL_QUIT,
  Events::kEventWindow = SDL_WINDOWEVENT, Events::kEventUserMIN = SDL_USEREVENT - 1, Events::kEventITC = SDL_USEREVENT, Events::kEventUserMAX = SDL_LASTEVENT
}
 Custom event types. More...
 
enum  Events::EventWindowType {
  Events::kEventWindowResized = SDL_WINDOWEVENT_RESIZED, Events::kEventWindowSizeChanged = SDL_WINDOWEVENT_SIZE_CHANGED, Events::kEventWindowMinimized = SDL_WINDOWEVENT_MINIMIZED, Events::kEventWindowMaximized = SDL_WINDOWEVENT_MAXIMIZED,
  Events::kEventWindowRestored = SDL_WINDOWEVENT_RESTORED
}
 Sub events for kEventWindow. More...
 
enum  Events::ITCEvent {
  Events::kITCEventSync = 0, Events::kITCEventCallInMainThread, Events::kITCEventRebuildGLContainer, Events::kITCEventDestroyGLContainer,
  Events::kITCEventMAX
}
 Specific type of the inter-thread communication. More...
 
enum  Events::Key {
  Events::kKeyUnknown = SDLK_UNKNOWN, Events::kKeyReturn = SDLK_RETURN, Events::kKeyEscape = SDLK_ESCAPE, Events::kKeyBackspace = SDLK_BACKSPACE,
  Events::kKeyTab = SDLK_TAB, Events::kKeySpace = SDLK_SPACE, Events::kKeyExclaim = SDLK_EXCLAIM, Events::kKeyQuoteDbl = SDLK_QUOTEDBL,
  Events::kKeyHash = SDLK_HASH, Events::kKeyPercent = SDLK_PERCENT, Events::kKeyDollar = SDLK_DOLLAR, Events::kKeyAmpersand = SDLK_AMPERSAND,
  Events::kKeyQuote = SDLK_QUOTE, Events::kKeyLeftParen = SDLK_LEFTPAREN, Events::kKeyRightParen = SDLK_RIGHTPAREN, Events::kKeyAsterisk = SDLK_ASTERISK,
  Events::kKeyPlus = SDLK_PLUS, Events::kKeyComma = SDLK_COMMA, Events::kKeyMinus = SDLK_MINUS, Events::kKeyPeriod = SDLK_PERIOD,
  Events::kKeySlash = SDLK_SLASH, Events::kKey0 = SDLK_0, Events::kKey1 = SDLK_1, Events::kKey2 = SDLK_2,
  Events::kKey3 = SDLK_3, Events::kKey4 = SDLK_4, Events::kKey5 = SDLK_5, Events::kKey6 = SDLK_6,
  Events::kKey7 = SDLK_7, Events::kKey8 = SDLK_8, Events::kKey9 = SDLK_9, Events::kKeyColon = SDLK_COLON,
  Events::kKeySemicolon = SDLK_SEMICOLON, Events::kKeyLess = SDLK_LESS, Events::kKeyEquals = SDLK_EQUALS, Events::kKeyGreater = SDLK_GREATER,
  Events::kKeyQuestion = SDLK_QUESTION, Events::kKeyAt = SDLK_AT, Events::kKeyCapsLock = SDLK_CAPSLOCK, Events::kKeyF1 = SDLK_F1,
  Events::kKeyF2 = SDLK_F2, Events::kKeyF3 = SDLK_F3, Events::kKeyF4 = SDLK_F4, Events::kKeyF5 = SDLK_F5,
  Events::kKeyF6 = SDLK_F6, Events::kKeyF7 = SDLK_F7, Events::kKeyF8 = SDLK_F8, Events::kKeyF9 = SDLK_F9,
  Events::kKeyF10 = SDLK_F10, Events::kKeyF11 = SDLK_F11, Events::kKeyF12 = SDLK_F12, Events::kKeyPrintScreen = SDLK_PRINTSCREEN,
  Events::kKeyScrollLock = SDLK_SCROLLLOCK, Events::kKeyPause = SDLK_PAUSE, Events::kKeyInsert = SDLK_INSERT, Events::kKeyHome = SDLK_HOME,
  Events::kKeyPageUp = SDLK_PAGEUP, Events::kKeyDelete = SDLK_DELETE, Events::kKeyEnd = SDLK_END, Events::kKeyPageDown = SDLK_PAGEDOWN,
  Events::kKeyRight = SDLK_RIGHT, Events::kKeyLeft = SDLK_LEFT, Events::kKeyDown = SDLK_DOWN, Events::kKeyUp = SDLK_UP,
  Events::kKeyNumLockClear = SDLK_NUMLOCKCLEAR, Events::kKeyKPDivide = SDLK_KP_DIVIDE, Events::kKeyKPMultiply = SDLK_KP_MULTIPLY, Events::kKeyKPMinus = SDLK_KP_MINUS,
  Events::kKeyKPPlus = SDLK_KP_PLUS, Events::kKeyKPEnter = SDLK_KP_ENTER, Events::kKeyKP1 = SDLK_KP_1, Events::kKeyKP2 = SDLK_KP_2,
  Events::kKeyKP3 = SDLK_KP_3, Events::kKeyKP4 = SDLK_KP_4, Events::kKeyKP5 = SDLK_KP_5, Events::kKeyKP6 = SDLK_KP_6,
  Events::kKeyKP7 = SDLK_KP_7, Events::kKeyKP8 = SDLK_KP_8, Events::kKeyKP9 = SDLK_KP_9, Events::kKeyKP0 = SDLK_KP_0,
  Events::kKeyKPPeriod = SDLK_KP_PERIOD, Events::kKeyApplication = SDLK_APPLICATION, Events::kKeyPower = SDLK_POWER, Events::kKeyKPEquals = SDLK_KP_EQUALS,
  Events::kKeyF13 = SDLK_F13, Events::kKeyF14 = SDLK_F14, Events::kKeyF15 = SDLK_F15, Events::kKeyF16 = SDLK_F16,
  Events::kKeyF17 = SDLK_F17, Events::kKeyF18 = SDLK_F18, Events::kKeyF19 = SDLK_F19, Events::kKeyF20 = SDLK_F20,
  Events::kKeyF21 = SDLK_F21, Events::kKeyF22 = SDLK_F22, Events::kKeyF23 = SDLK_F23, Events::kKeyF24 = SDLK_F24,
  Events::kKeyExecute = SDLK_EXECUTE, Events::kKeyHelp = SDLK_HELP, Events::kKeyMenu = SDLK_MENU, Events::kKeySelect = SDLK_SELECT,
  Events::kKeyStop = SDLK_STOP, Events::kKeyAgain = SDLK_AGAIN, Events::kKeyUndo = SDLK_UNDO, Events::kKeyCut = SDLK_CUT,
  Events::kKeyCopy = SDLK_COPY, Events::kKeyPaste = SDLK_PASTE, Events::kKeyFind = SDLK_FIND, Events::kKeyMute = SDLK_MUTE,
  Events::kKeyVolumeUp = SDLK_VOLUMEUP, Events::kKeyVolumeDown = SDLK_VOLUMEDOWN, Events::kKeyKPComma = SDLK_KP_COMMA, Events::kKeyKPEqualsAs400 = SDLK_KP_EQUALSAS400,
  Events::kKeyAltErase = SDLK_ALTERASE, Events::kKeySysReq = SDLK_SYSREQ, Events::kKeyCancel = SDLK_CANCEL, Events::kKeyClear = SDLK_CLEAR,
  Events::kKeyPrior = SDLK_PRIOR, Events::kKeyReturn2 = SDLK_RETURN2, Events::kKeySeparator = SDLK_SEPARATOR, Events::kKeyOut = SDLK_OUT,
  Events::kKeyOper = SDLK_OPER, Events::kKeyClearAgain = SDLK_CLEARAGAIN, Events::kKeyCRSel = SDLK_CRSEL, Events::kKeyExSel = SDLK_EXSEL,
  Events::kKeyKP00 = SDLK_KP_00, Events::kKeyKP000 = SDLK_KP_000, Events::kKeyThousandsSeperator = SDLK_THOUSANDSSEPARATOR, Events::kKeyDecimalSeperator = SDLK_DECIMALSEPARATOR,
  Events::kKeyCurrencyUnit = SDLK_CURRENCYUNIT, Events::kKeyCurrencySubUnit = SDLK_CURRENCYSUBUNIT, Events::kKeyKPLeftParen = SDLK_KP_LEFTPAREN, Events::kKeyKPRightParen = SDLK_KP_RIGHTPAREN,
  Events::kKeyKPLeftBrace = SDLK_KP_LEFTBRACE, Events::kKeyKPRightBrace = SDLK_KP_RIGHTBRACE, Events::kKeyKPTab = SDLK_KP_TAB, Events::kKeyKPBackspace = SDLK_KP_BACKSPACE,
  Events::kKeyKPA = SDLK_KP_A, Events::kKeyKPB = SDLK_KP_B, Events::kKeyKPC = SDLK_KP_C, Events::kKeyKPD = SDLK_KP_D,
  Events::kKeyKPE = SDLK_KP_E, Events::kKeyKPF = SDLK_KP_F, Events::kKeyKPXor = SDLK_KP_XOR, Events::kKeyKPPower = SDLK_KP_POWER,
  Events::kKeyKPPercent = SDLK_KP_PERCENT, Events::kKeyKPLess = SDLK_KP_LESS, Events::kKeyKPGreater = SDLK_KP_GREATER, Events::kKeyKPAmpersand = SDLK_KP_AMPERSAND,
  Events::kKeyKPDblAmpersand = SDLK_KP_DBLAMPERSAND, Events::kKeyKPVerticalBar = SDLK_KP_VERTICALBAR, Events::kKeyKPDblVerticalBar = SDLK_KP_DBLVERTICALBAR, Events::kKeyKPColon = SDLK_KP_COLON,
  Events::kKeyKPHash = SDLK_KP_HASH, Events::kKeyKPSpace = SDLK_KP_SPACE, Events::kKeyKPAt = SDLK_KP_AT, Events::kKeyKPExclam = SDLK_KP_EXCLAM,
  Events::kKeyKPMemStore = SDLK_KP_MEMSTORE, Events::kKeyKPMemRecall = SDLK_KP_MEMRECALL, Events::kKeyKPMemClear = SDLK_KP_MEMCLEAR, Events::kKeyKPMemAdd = SDLK_KP_MEMADD,
  Events::kKeyKPMemSubtract = SDLK_KP_MEMSUBTRACT, Events::kKeyKPMemMultiply = SDLK_KP_MEMMULTIPLY, Events::kKeyKPMemDivide = SDLK_KP_MEMDIVIDE, Events::kKeyKPPlusMinus = SDLK_KP_PLUSMINUS,
  Events::kKeyKPClear = SDLK_KP_CLEAR, Events::kKeyKPClearEntry = SDLK_KP_CLEARENTRY, Events::kKeyKPBinary = SDLK_KP_BINARY, Events::kKeyKPOctal = SDLK_KP_OCTAL,
  Events::kKeyKPDecimal = SDLK_KP_DECIMAL, Events::kKeyKPHexadecimal = SDLK_KP_HEXADECIMAL, Events::kKeyLeftCtrl = SDLK_LCTRL, Events::kKeyLeftShift = SDLK_LSHIFT,
  Events::kKeyLeftAlt = SDLK_LALT, Events::kKeyLeftGui = SDLK_LGUI, Events::kKeyRightCtrl = SDLK_RCTRL, Events::kKeyRightShift = SDLK_RSHIFT,
  Events::kKeyRightAlt = SDLK_RALT, Events::kKeyRightGui = SDLK_RGUI, Events::kKeyMode = SDLK_MODE, Events::kKeyAudioNext = SDLK_AUDIONEXT,
  Events::kKeyAudioPrev = SDLK_AUDIOPREV, Events::kKeyAudioStop = SDLK_AUDIOSTOP, Events::kKeyAudioPlay = SDLK_AUDIOPLAY, Events::kKeyAudioMute = SDLK_AUDIOMUTE,
  Events::kKeyMediaSelect = SDLK_MEDIASELECT, Events::kKeyWWW = SDLK_WWW, Events::kKeyMail = SDLK_MAIL, Events::kKeyCalculator = SDLK_CALCULATOR,
  Events::kKeyComputer = SDLK_COMPUTER, Events::kKeyACSearch = SDLK_AC_SEARCH, Events::kKeyACHome = SDLK_AC_HOME, Events::kKeyACBack = SDLK_AC_BACK,
  Events::kKeyACForward = SDLK_AC_FORWARD, Events::kKeyACStop = SDLK_AC_STOP, Events::kKeyACRefresh = SDLK_AC_REFRESH, Events::kKeyACBookmarks = SDLK_AC_BOOKMARKS,
  Events::kKeyBrightnessDown = SDLK_BRIGHTNESSDOWN, Events::kKeyBrightnessUp = SDLK_BRIGHTNESSUP, Events::kKeyDisplaySwitch = SDLK_DISPLAYSWITCH, Events::kKeyKbdIllUmToggle = SDLK_KBDILLUMTOGGLE,
  Events::kKeyKbdIllUmDown = SDLK_KBDILLUMDOWN, Events::kKeyKbdIllUmUp = SDLK_KBDILLUMUP, Events::kKeyEject = SDLK_EJECT, Events::kKeySleep = SDLK_SLEEP
}
 

Detailed Description

Basic event types.

Definition in file types.h.