Function SDL_SetPrimarySelectionText
pub unsafe extern "C" fn SDL_SetPrimarySelectionText(
text: *const i8,
) -> i32
Available on crate feature
dep_sdl2
only.Expand description
Put UTF-8 text into the primary selection.
\param text the text to store in the primary selection \returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.
\since This function is available since SDL 2.26.0.
\sa SDL_GetPrimarySelectionText \sa SDL_HasPrimarySelectionText