imgGetClipboardImage function image

Pointer<SdlSurface> imgGetClipboardImage()

Get the image currently in the clipboard.

When done with the returned surface, the app should dispose of it with a call to SDL_DestroySurface().

\returns a new SDL surface, or NULL if no supported image is available.

\since This function is available since SDL_image 3.4.0.

extern SDL_DECLSPEC SDL_Surface * SDLCALL IMG_GetClipboardImage(void)

Implementation

Pointer<SdlSurface> imgGetClipboardImage() {
  final imgGetClipboardImageLookupFunction = _libImage
      .lookupFunction<
        Pointer<SdlSurface> Function(),
        Pointer<SdlSurface> Function()
      >('IMG_GetClipboardImage');
  return imgGetClipboardImageLookupFunction();
}