SDL
2.0
|
#include <SDL_BApp.h>
Public Member Functions | |
SDL_BApp (const char *signature) | |
virtual | ~SDL_BApp () |
virtual void | MessageReceived (BMessage *message) |
int32 | GetID (SDL_Window *win) |
void | ClearID (SDL_BWin *bwin) |
SDL_Window * | GetSDLWindow (int32 winID) |
void | SetCurrentContext (BGLView *newContext) |
Private Member Functions | |
void | _HandleBasicWindowEvent (BMessage *msg, int32 sdlEventType) |
void | _HandleMouseMove (BMessage *msg) |
void | _HandleMouseButton (BMessage *msg) |
void | _HandleMouseWheel (BMessage *msg) |
void | _HandleKey (BMessage *msg) |
void | _HandleMouseFocus (BMessage *msg) |
void | _HandleKeyboardFocus (BMessage *msg) |
void | _HandleWindowMoved (BMessage *msg) |
void | _HandleWindowResized (BMessage *msg) |
bool | _GetWinID (BMessage *msg, int32 *winID) |
void | _SetSDLWindow (SDL_Window *win, int32 winID) |
int32 | _GetNumWindowSlots () |
void | _PopBackWindow () |
void | _PushBackWindow (SDL_Window *win) |
Private Attributes | |
std::vector< SDL_Window * > | _window_map |
BGLView * | _current_context |
Definition at line 81 of file SDL_BApp.h.
|
inline |
|
inlinevirtual |
Definition at line 91 of file SDL_BApp.h.
|
inlineprivate |
|
inlineprivate |
Definition at line 365 of file SDL_BApp.h.
Referenced by _HandleBasicWindowEvent(), _HandleKeyboardFocus(), _HandleMouseButton(), _HandleMouseFocus(), _HandleMouseMove(), _HandleMouseWheel(), _HandleWindowMoved(), and _HandleWindowResized().
|
inlineprivate |
Definition at line 207 of file SDL_BApp.h.
References _GetWinID(), GetSDLWindow(), and SDL_SendWindowEvent().
Referenced by MessageReceived().
|
inlineprivate |
Definition at line 267 of file SDL_BApp.h.
References BE_GetKeyState(), BE_GetScancodeFromBeKey(), BE_SetKeyState(), SDL_EventState, SDL_memcpy, SDL_PRESSED, SDL_QUERY, SDL_SendKeyboardKey(), SDL_SendKeyboardText(), SDL_TEXTINPUT, SDL_TEXTINPUTEVENT_TEXT_SIZE, SDL_zero, state, and text.
Referenced by MessageReceived().
|
inlineprivate |
Definition at line 314 of file SDL_BApp.h.
References _GetWinID(), GetSDLWindow(), NULL, SDL_GetKeyboardFocus, and SDL_SetKeyboardFocus().
Referenced by MessageReceived().
|
inlineprivate |
Definition at line 237 of file SDL_BApp.h.
References _GetWinID(), button, GetSDLWindow(), SDL_SendMouseButton(), and state.
Referenced by MessageReceived().
|
inlineprivate |
Definition at line 295 of file SDL_BApp.h.
References _GetWinID(), GetSDLWindow(), NULL, SDL_GetMouseFocus, and SDL_SetMouseFocus().
Referenced by MessageReceived().
|
inlineprivate |
Definition at line 219 of file SDL_BApp.h.
References _GetWinID(), BE_UpdateWindowFramebuffer(), GetSDLWindow(), NULL, and SDL_SendMouseMotion().
Referenced by MessageReceived().
|
inlineprivate |
Definition at line 252 of file SDL_BApp.h.
References _GetWinID(), GetSDLWindow(), SDL_MOUSEWHEEL_NORMAL, and SDL_SendMouseWheel().
Referenced by MessageReceived().
|
inlineprivate |
Definition at line 333 of file SDL_BApp.h.
References _GetWinID(), GetSDLWindow(), SDL_SendWindowEvent(), and SDL_WINDOWEVENT_MOVED.
Referenced by MessageReceived().
|
inlineprivate |
Definition at line 349 of file SDL_BApp.h.
References _GetWinID(), GetSDLWindow(), SDL_SendWindowEvent(), and SDL_WINDOWEVENT_RESIZED.
Referenced by MessageReceived().
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inline |
Definition at line 167 of file SDL_BApp.h.
References _GetNumWindowSlots(), _PushBackWindow(), _SetSDLWindow(), ClearID(), GetSDLWindow(), i, and NULL.
|
inline |
Definition at line 191 of file SDL_BApp.h.
References _window_map.
Referenced by _HandleBasicWindowEvent(), _HandleKeyboardFocus(), _HandleMouseButton(), _HandleMouseFocus(), _HandleMouseMove(), _HandleMouseWheel(), _HandleWindowMoved(), _HandleWindowResized(), and GetID().
|
inlinevirtual |
Definition at line 97 of file SDL_BApp.h.
References _HandleBasicWindowEvent(), _HandleKey(), _HandleKeyboardFocus(), _HandleMouseButton(), _HandleMouseFocus(), _HandleMouseMove(), _HandleMouseWheel(), _HandleWindowMoved(), _HandleWindowResized(), BAPP_HIDE, BAPP_KEY, BAPP_KEYBOARD_FOCUS, BAPP_MAXIMIZE, BAPP_MINIMIZE, BAPP_MOUSE_BUTTON, BAPP_MOUSE_FOCUS, BAPP_MOUSE_MOVED, BAPP_MOUSE_WHEEL, BAPP_REPAINT, BAPP_SCREEN_CHANGED, BAPP_SHOW, BAPP_WINDOW_CLOSE_REQUESTED, BAPP_WINDOW_MOVED, BAPP_WINDOW_RESIZED, SDL_WINDOWEVENT_CLOSE, SDL_WINDOWEVENT_EXPOSED, SDL_WINDOWEVENT_HIDDEN, SDL_WINDOWEVENT_MAXIMIZED, SDL_WINDOWEVENT_MINIMIZED, and SDL_WINDOWEVENT_SHOWN.
|
inline |
|
private |
Definition at line 395 of file SDL_BApp.h.
Referenced by SDL_BApp(), and SetCurrentContext().
|
private |
Definition at line 392 of file SDL_BApp.h.
Referenced by _GetNumWindowSlots(), _PopBackWindow(), _PushBackWindow(), _SetSDLWindow(), and GetSDLWindow().