21 #include "../../SDL_internal.h"
22 #include "../../main/haiku/SDL_BApp.h"
24 #if SDL_VIDEO_DRIVER_HAIKU
44 #define HAIKU_StartTextInput NULL
45 #define HAIKU_StopTextInput NULL
46 #define HAIKU_SetTextInputRect NULL
53 HAIKU_CreateDevice(
int devindex)
100 device->shape_driver.ResizeWindowShape =
NULL;
103 device->GL_LoadLibrary = HAIKU_GL_LoadLibrary;
104 device->GL_GetProcAddress = HAIKU_GL_GetProcAddress;
105 device->GL_UnloadLibrary = HAIKU_GL_UnloadLibrary;
106 device->GL_CreateContext = HAIKU_GL_CreateContext;
107 device->GL_MakeCurrent = HAIKU_GL_MakeCurrent;
108 device->GL_SetSwapInterval = HAIKU_GL_SetSwapInterval;
109 device->GL_GetSwapInterval = HAIKU_GL_GetSwapInterval;
110 device->GL_SwapWindow = HAIKU_GL_SwapWindow;
111 device->GL_DeleteContext = HAIKU_GL_DeleteContext;
114 device->StartTextInput = HAIKU_StartTextInput;
115 device->StopTextInput = HAIKU_StopTextInput;
116 device->SetTextInputRect = HAIKU_SetTextInputRect;
128 "haiku",
"Haiku graphics",
144 show = (cur || !mouse->
focus);
146 if (be_app->IsCursorHidden())
147 be_app->ShowCursor();
149 if (!be_app->IsCursorHidden())
150 be_app->HideCursor();
155 static void HAIKU_MouseInit(
_THIS)
178 HAIKU_MouseInit(
_this);
199 extern "C" {
int HAIKU_OpenURL(
const char *url); }
200 int HAIKU_OpenURL(
const char *url)
203 const status_t rc = burl.OpenWithPreferredApplication(
false);
204 return (rc == B_NO_ERROR) ? 0 :
SDL_SetError(
"URL open failed (err=%d)", (
int) rc);
char * HAIKU_GetClipboardText(_THIS)
int HAIKU_SetClipboardText(_THIS, const char *text)
SDL_bool HAIKU_HasClipboardText(_THIS)
void HAIKU_PumpEvents(_THIS)
int HAIKU_CreateWindowFramebuffer(_THIS, SDL_Window *window, Uint32 *format, void **pixels, int *pitch)
int HAIKU_UpdateWindowFramebuffer(_THIS, SDL_Window *window, const SDL_Rect *rects, int numrects)
void HAIKU_DestroyWindowFramebuffer(_THIS, SDL_Window *window)
void HAIKU_InitOSKeymap(void)
int HAIKU_QuitModes(_THIS)
int HAIKU_InitModes(_THIS)
void HAIKU_GetDisplayModes(_THIS, SDL_VideoDisplay *display)
int HAIKU_SetDisplayMode(_THIS, SDL_VideoDisplay *display, SDL_DisplayMode *mode)
int HAIKU_GetDisplayBounds(_THIS, SDL_VideoDisplay *display, SDL_Rect *rect)
void HAIKU_DeleteDevice(_THIS)
void HAIKU_VideoQuit(_THIS)
int HAIKU_VideoInit(_THIS)
void HAIKU_SetWindowIcon(_THIS, SDL_Window *window, SDL_Surface *icon)
SDL_bool HAIKU_GetWindowWMInfo(_THIS, SDL_Window *window, struct SDL_SysWMinfo *info)
void HAIKU_SetWindowGrab(_THIS, SDL_Window *window, SDL_bool grabbed)
void HAIKU_ShowWindow(_THIS, SDL_Window *window)
void HAIKU_SetWindowFullscreen(_THIS, SDL_Window *window, SDL_VideoDisplay *display, SDL_bool fullscreen)
int HAIKU_CreateWindowFrom(_THIS, SDL_Window *window, const void *data)
void HAIKU_SetWindowSize(_THIS, SDL_Window *window)
int HAIKU_CreateWindow(_THIS, SDL_Window *window)
void HAIKU_RestoreWindow(_THIS, SDL_Window *window)
int HAIKU_GetWindowGammaRamp(_THIS, SDL_Window *window, Uint16 *ramp)
int HAIKU_SetWindowGammaRamp(_THIS, SDL_Window *window, const Uint16 *ramp)
void HAIKU_HideWindow(_THIS, SDL_Window *window)
void HAIKU_SetWindowPosition(_THIS, SDL_Window *window)
void HAIKU_DestroyWindow(_THIS, SDL_Window *window)
void HAIKU_RaiseWindow(_THIS, SDL_Window *window)
void HAIKU_SetWindowTitle(_THIS, SDL_Window *window)
void HAIKU_SetWindowBordered(_THIS, SDL_Window *window, SDL_bool bordered)
void HAIKU_MaximizeWindow(_THIS, SDL_Window *window)
void HAIKU_MinimizeWindow(_THIS, SDL_Window *window)
void HAIKU_SetWindowResizable(_THIS, SDL_Window *window, SDL_bool resizable)
SDL_Mouse * SDL_GetMouse(void)
VideoBootStrap HAIKU_bootstrap
static SDL_VideoDevice * _this
static SDL_AudioDeviceID device
int(* ShowCursor)(SDL_Cursor *cursor)