23 #if SDL_VIDEO_DRIVER_BWINDOW
28 #include <TypeConstants.h>
32 #include "../SDL_sysvideo.h"
39 BMessage *clip =
NULL;
40 if(be_clipboard->Lock()) {
41 be_clipboard->Clear();
42 if((clip = be_clipboard->Data())) {
44 ssize_t asciiLength = 0;
45 for(; text[asciiLength] != 0; ++asciiLength) {}
46 clip->AddData(
"text/plain", B_MIME_TYPE, &text, asciiLength);
47 be_clipboard->Commit();
49 be_clipboard->Unlock();
55 BMessage *clip =
NULL;
56 const char *text =
NULL;
59 if(be_clipboard->Lock()) {
60 if((clip = be_clipboard->Data())) {
62 clip->FindData(
"text/plain", B_MIME_TYPE, (
const void**)&text,
65 be_clipboard->Unlock();
67 be_clipboard->Unlock();
DECLSPEC void *SDLCALL SDL_calloc(size_t nmemb, size_t size)
DECLSPEC void SDLCALL SDL_free(void *mem)
static SDL_VideoDevice * _this
DECLSPEC char *SDLCALL SDL_strdup(const char *str)
DECLSPEC size_t SDLCALL SDL_strlcpy(char *dst, const char *src, size_t maxlen)
char * BE_GetClipboardText(_THIS)
int BE_SetClipboardText(_THIS, const char *text)
SDL_bool BE_HasClipboardText(_THIS)