Path: blob/main/system/include/SDL/SDL_clipboard.h
6169 views
/*1Simple DirectMedia Layer2Copyright (C) 1997-2011 Sam Lantinga <[email protected]>34This software is provided 'as-is', without any express or implied5warranty. In no event will the authors be held liable for any damages6arising from the use of this software.78Permission is granted to anyone to use this software for any purpose,9including commercial applications, and to alter it and redistribute it10freely, subject to the following restrictions:11121. The origin of this software must not be misrepresented; you must not13claim that you wrote the original software. If you use this software14in a product, an acknowledgment in the product documentation would be15appreciated but is not required.162. Altered source versions must be plainly marked as such, and must not be17misrepresented as being the original software.183. This notice may not be removed or altered from any source distribution.19*/2021/**22* \file SDL_clipboard.h23*24* Include file for SDL clipboard handling25*/2627#ifndef _SDL_clipboard_h28#define _SDL_clipboard_h2930#include "SDL_stdinc.h"3132#include "begin_code.h"33/* Set up for C function definitions, even when using C++ */34#ifdef __cplusplus35/* *INDENT-OFF* */36extern "C" {37/* *INDENT-ON* */38#endif3940/* Function prototypes */4142/**43* \brief Put UTF-8 text into the clipboard44*45* \sa SDL_GetClipboardText()46*/47extern DECLSPEC int SDLCALL SDL_SetClipboardText(const char *text);4849/**50* \brief Get UTF-8 text from the clipboard, which must be freed with SDL_free()51*52* \sa SDL_SetClipboardText()53*/54extern DECLSPEC char * SDLCALL SDL_GetClipboardText(void);5556/**57* \brief Returns whether the clipboard has text58*59* \sa SDL_GetClipboardText()60*/61extern DECLSPEC SDL_bool SDLCALL SDL_HasClipboardText(void);626364/* Ends C function definitions when using C++ */65#ifdef __cplusplus66/* *INDENT-OFF* */67}68/* *INDENT-ON* */69#endif70#include "close_code.h"7172#endif /* _SDL_clipboard_h */7374/* vi: set ts=4 sw=4 expandtab: */757677