21#include "../../SDL_internal.h"
23#if SDL_VIDEO_DRIVER_COCOA
26#include "../../events/SDL_clipboardevents_c.h"
33 NSPasteboard *pasteboard;
34 NSString *
format = NSPasteboardTypeString;
36 pasteboard = [NSPasteboard generalPasteboard];
37 data->clipboard_count = [pasteboard declareTypes:[NSArray arrayWithObject:
format] owner:nil];
38 [pasteboard setString:[NSString stringWithUTF8String:
text] forType:
format];
47 NSPasteboard *pasteboard;
48 NSString *
format = NSPasteboardTypeString;
52 pasteboard = [NSPasteboard generalPasteboard];
53 available = [pasteboard availableTypeFromArray:[NSArray arrayWithObject:format]];
58 string = [pasteboard stringForType:format];
62 utf8 = [string UTF8String];
88 NSPasteboard *pasteboard;
91 pasteboard = [NSPasteboard generalPasteboard];
92 count = [pasteboard changeCount];
94 if (
data->clipboard_count) {
int SDL_SendClipboardUpdate(void)
void Cocoa_CheckClipboardUpdate(struct SDL_VideoData *data)
char * Cocoa_GetClipboardText(_THIS)
int Cocoa_SetClipboardText(_THIS, const char *text)
SDL_bool Cocoa_HasClipboardText(_THIS)
GLuint GLuint GLsizei count
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
GLsizei const GLchar *const * string
static SDL_VideoDevice * _this
static char text[MAX_TEXT_LENGTH]