Atrinik Client 2.5
Functions
toolkit/clipboard.c File Reference
#include <global.h>
#include <SDL_syswm.h>

Go to the source code of this file.

Functions

int clipboard_init ()
int clipboard_set (const char *str)
char * clipboard_get ()

Detailed Description

Implements clipboard handling.

Based on the works of Sam Lantinga (SDL_scrap) and Eric Wing (SDL_Clipboard).

Author:
Alex Tokar

Definition in file clipboard.c.


Function Documentation

char* clipboard_get ( )

Get the contents of the clipboard.

Returns:
Clipboard contents, must be freed. May be NULL in case of failure to acquire the clipboard contents.

Definition at line 261 of file clipboard.c.

int clipboard_init ( )

Initializes the clipboard

Returns:
1 on success, 0 on failure.

Definition at line 115 of file clipboard.c.

int clipboard_set ( const char *  str)

Set the contents of the clipboard.

Parameters:
strString to set contents of the clipboard to.
Returns:
1 on success, 0 on failure.

Definition at line 160 of file clipboard.c.