SDL_CLIPBOARDCLEANUPCALLBACK(3type)

✨ SDL_ClipboardCleanupCallback ✨

okay so bestie, welcome to the SDL3 DATATYPES corner of the man pages πŸ’… this one is a lil typedef from the SDL3 crew and it's literally just a callback. no cap.


🌸 NAME 🌸

SDL_ClipboardCleanupCallback β€” the callback function that gets called when the clipboard is cleared, or when new data is set. it's giving "cleanup crew but make it clipboard" 🧹✨


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <SDL3/SDL_clipboard.h>

typedef void (SDLCALL *SDL_ClipboardCleanupCallback)(void *userdata);

copy that exactly, bestie, every character matters πŸ”₯


πŸŽ€ FUNCTION PARAMETERS πŸŽ€

  • userdata β€” a pointer to the provided user data. yes, it's just your lil pointer. it gets passed right back to you, main character energy 🫢

⭐ AVAILABILITY ⭐

this one is available since SDL 3.2.0. so if you're on something older… not me finding out the hard way 😭


πŸ‘‘ SEE ALSO πŸ‘‘


and that's the whole vibe, fr fr. stay iconic, keep your callbacks clean, and may your clipboard always be exactly what you expect πŸ’–

this page came from the Simple Directmedia Layer girlies, SDL 3.4.18 edition, and it's the SDL_ClipboardCleanupCallback(3type) page β€” mwah, periodt πŸ’…πŸŽ€

πŸ“¦ where this page comes from