#include <SDL_BApp.h>
Definition at line 81 of file SDL_BApp.h.
◆ SDL_BApp()
SDL_BApp::SDL_BApp |
( |
const char * |
signature | ) |
|
|
inline |
◆ ~SDL_BApp()
virtual SDL_BApp::~SDL_BApp |
( |
| ) |
|
|
inlinevirtual |
◆ _GetNumWindowSlots()
int32 SDL_BApp::_GetNumWindowSlots |
( |
| ) |
|
|
inlineprivate |
◆ _GetWinID()
bool SDL_BApp::_GetWinID |
( |
BMessage * |
msg, |
|
|
int32 * |
winID |
|
) |
| |
|
inlineprivate |
◆ _HandleBasicWindowEvent()
void SDL_BApp::_HandleBasicWindowEvent |
( |
BMessage * |
msg, |
|
|
int32 |
sdlEventType |
|
) |
| |
|
inlineprivate |
◆ _HandleKey()
void SDL_BApp::_HandleKey |
( |
BMessage * |
msg | ) |
|
|
inlineprivate |
Definition at line 267 of file SDL_BApp.h.
268 int32 scancode,
state;
270 msg->FindInt32(
"key-state", &
state) != B_OK ||
271 msg->FindInt32(
"key-scancode", &scancode) != B_OK
286 if (msg->FindData(
"key-utf8", B_INT8_TYPE, (
const void**)&keyUtf8, &
count) == B_OK) {
References HAIKU_GetKeyState(), HAIKU_GetScancodeFromBeKey(), HAIKU_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().
◆ _HandleKeyboardFocus()
void SDL_BApp::_HandleKeyboardFocus |
( |
BMessage * |
msg | ) |
|
|
inlineprivate |
◆ _HandleMouseButton()
void SDL_BApp::_HandleMouseButton |
( |
BMessage * |
msg | ) |
|
|
inlineprivate |
◆ _HandleMouseFocus()
void SDL_BApp::_HandleMouseFocus |
( |
BMessage * |
msg | ) |
|
|
inlineprivate |
◆ _HandleMouseMove()
void SDL_BApp::_HandleMouseMove |
( |
BMessage * |
msg | ) |
|
|
inlineprivate |
◆ _HandleMouseWheel()
void SDL_BApp::_HandleMouseWheel |
( |
BMessage * |
msg | ) |
|
|
inlineprivate |
◆ _HandleWindowMoved()
void SDL_BApp::_HandleWindowMoved |
( |
BMessage * |
msg | ) |
|
|
inlineprivate |
◆ _HandleWindowResized()
void SDL_BApp::_HandleWindowResized |
( |
BMessage * |
msg | ) |
|
|
inlineprivate |
◆ _PopBackWindow()
void SDL_BApp::_PopBackWindow |
( |
| ) |
|
|
inlineprivate |
◆ _PushBackWindow()
◆ _SetSDLWindow()
◆ ClearID()
◆ GetID()
◆ GetSDLWindow()
◆ MessageReceived()
virtual void SDL_BApp::MessageReceived |
( |
BMessage * |
message | ) |
|
|
inlinevirtual |
Definition at line 97 of file SDL_BApp.h.
161 BApplication::MessageReceived(
message);
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.
◆ SetCurrentContext()
void SDL_BApp::SetCurrentContext |
( |
BGLView * |
newContext | ) |
|
|
inline |
◆ _current_context
BGLView* SDL_BApp::_current_context |
|
private |
◆ _window_map
The documentation for this class was generated from the following file:
void _HandleMouseFocus(BMessage *msg)
void _HandleBasicWindowEvent(BMessage *msg, int32 sdlEventType)
int32 _GetNumWindowSlots()
bool _GetWinID(BMessage *msg, int32 *winID)
void _HandleMouseWheel(BMessage *msg)
void _HandleWindowMoved(BMessage *msg)
GLuint GLsizei const GLchar * message
int8 HAIKU_GetKeyState(int32 bkey)
GLuint GLuint GLsizei count
void _SetSDLWindow(SDL_Window *win, int32 winID)
void SDL_SetKeyboardFocus(SDL_Window *window)
void _HandleKeyboardFocus(BMessage *msg)
GLfloat GLfloat GLfloat GLfloat h
void SDL_SetMouseFocus(SDL_Window *window)
int SDL_SendKeyboardKey(Uint8 state, SDL_Scancode scancode)
void _PushBackWindow(SDL_Window *win)
The type used to identify a window.
#define SDL_GetKeyboardFocus
int SDL_SendKeyboardText(const char *text)
std::vector< SDL_Window * > _window_map
GLint GLint GLint GLint GLint x
void HAIKU_SetKeyState(int32 bkey, int8 state)
SDL_Scancode HAIKU_GetScancodeFromBeKey(int32 bkey)
int SDL_SendMouseMotion(SDL_Window *window, SDL_MouseID mouseID, int relative, int x, int y)
void _HandleKey(BMessage *msg)
static char text[MAX_TEXT_LENGTH]
int HAIKU_UpdateWindowFramebuffer(_THIS, SDL_Window *window, const SDL_Rect *rects, int numrects)
SDL_Window * GetSDLWindow(int32 winID)
GLint GLint GLint GLint GLint GLint y
BGLView * _current_context
int SDL_SendMouseWheel(SDL_Window *window, SDL_MouseID mouseID, float x, float y, SDL_MouseWheelDirection direction)
#define SDL_TEXTINPUTEVENT_TEXT_SIZE
void _HandleMouseMove(BMessage *msg)
#define SDL_GetMouseFocus
void _HandleMouseButton(BMessage *msg)
int SDL_SendWindowEvent(SDL_Window *window, Uint8 windowevent, int data1, int data2)
void _HandleWindowResized(BMessage *msg)
return Display return Display Bool Bool int int int return Display XEvent Bool(*) XPointer return Display return Display Drawable _Xconst char unsigned int unsigned int return Display Pixmap Pixmap XColor XColor unsigned int unsigned int return Display _Xconst char char int char return Display Visual unsigned int int int char unsigned int unsigned int in i)
int SDL_SendMouseButton(SDL_Window *window, SDL_MouseID mouseID, Uint8 state, Uint8 button)
GLubyte GLubyte GLubyte GLubyte w