Wiki Page Content

Differences between revisions 1 and 2
Revision 1 as of 2011-04-13 21:00:22
Size: 948
Editor: SheenaSmith
Comment: create page - 4/8 05af1b9ff46d
Revision 2 as of 2011-04-15 17:14:49
Size: 755
Editor: SheenaSmith
Comment: update content - w/ Sam; remove draft
Deletions are marked like this. Additions are marked like this.
Line 16: Line 16:
||'''text'''||the desired text|| ||'''text'''||the text to store in the clipboard||
Line 19: Line 19:
Returns 0 on success,,, or a negative error code on failure; call [[SDL_GetError]]() for more information,,.

<<Color2(green,I don't think it returns a negative error code on failure but I haven't come up with a better general description yet. This one may not have a failure value (other than empty string?).)>>
Returns 0 on success, or a negative error code on failure; call [[SDL_GetError]]() for more information.

DRAFT

SDL_SetClipboardText

Use this function to put UTF-8 text into the clipboard.

Syntax

int SDL_SetClipboardText(const char* text)

Function Parameters

text

the text to store in the clipboard

Return Value

Returns 0 on success, or a negative error code on failure; call SDL_GetError() for more information.

Code Examples

You can add your code example here

Remarks

You can add useful comments here


CategoryAPI, CategoryClipboard

None: SDL_SetClipboardText (last edited 2014-01-09 00:47:19 by urkle)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit