mirror of https://github.com/libsdl-org/SDL
Sync SDL wiki -> header
This commit is contained in:
parent
ac5b9bc4ee
commit
c49faabb6d
|
@ -89,7 +89,7 @@ extern DECLSPEC SDL_bool SDLCALL SDL_HasClipboardText(void);
|
||||||
* \returns 0 on success or a negative error code on failure; call
|
* \returns 0 on success or a negative error code on failure; call
|
||||||
* SDL_GetError() for more information.
|
* SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.25.0.
|
* \since This function is available since SDL 2.26.0.
|
||||||
*
|
*
|
||||||
* \sa SDL_GetPrimarySelectionText
|
* \sa SDL_GetPrimarySelectionText
|
||||||
* \sa SDL_HasPrimarySelectionText
|
* \sa SDL_HasPrimarySelectionText
|
||||||
|
@ -97,17 +97,18 @@ extern DECLSPEC SDL_bool SDLCALL SDL_HasClipboardText(void);
|
||||||
extern DECLSPEC int SDLCALL SDL_SetPrimarySelectionText(const char *text);
|
extern DECLSPEC int SDLCALL SDL_SetPrimarySelectionText(const char *text);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get UTF-8 text from the primary selection, which must be freed with SDL_free().
|
* Get UTF-8 text from the primary selection, which must be freed with
|
||||||
|
* SDL_free().
|
||||||
*
|
*
|
||||||
* This functions returns empty string if there was not enough memory left for
|
* This functions returns empty string if there was not enough memory left for
|
||||||
* a copy of the primary selection's content.
|
* a copy of the primary selection's content.
|
||||||
*
|
*
|
||||||
* \returns the primary selection text on success or an empty string on failure;
|
* \returns the primary selection text on success or an empty string on
|
||||||
* call SDL_GetError() for more information. Caller must call SDL_free()
|
* failure; call SDL_GetError() for more information. Caller must
|
||||||
* on the returned pointer when done with it (even if there was an
|
* call SDL_free() on the returned pointer when done with it (even if
|
||||||
* error).
|
* there was an error).
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.25.0.
|
* \since This function is available since SDL 2.26.0.
|
||||||
*
|
*
|
||||||
* \sa SDL_HasPrimarySelectionText
|
* \sa SDL_HasPrimarySelectionText
|
||||||
* \sa SDL_SetPrimarySelectionText
|
* \sa SDL_SetPrimarySelectionText
|
||||||
|
@ -118,10 +119,10 @@ extern DECLSPEC char * SDLCALL SDL_GetPrimarySelectionText(void);
|
||||||
* Query whether the primary selection exists and contains a non-empty text
|
* Query whether the primary selection exists and contains a non-empty text
|
||||||
* string.
|
* string.
|
||||||
*
|
*
|
||||||
* \returns SDL_TRUE if the primary selection has text, or SDL_FALSE if it does
|
* \returns SDL_TRUE if the primary selection has text, or SDL_FALSE if it
|
||||||
* not.
|
* does not.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.25.0.
|
* \since This function is available since SDL 2.26.0.
|
||||||
*
|
*
|
||||||
* \sa SDL_GetPrimarySelectionText
|
* \sa SDL_GetPrimarySelectionText
|
||||||
* \sa SDL_SetPrimarySelectionText
|
* \sa SDL_SetPrimarySelectionText
|
||||||
|
|
Loading…
Reference in New Issue