SDL_Clipboard API Prototype/Proposal

Cross-platform copy & paste support comes up once in a blue moon on the SDL mailing list.
Sam Lantinga (the main author of SDL) implemented a demo piece called SDL_scrap some years ago. Several years ago, I tried the code and decided to modify it because it didn't meet my needs.
First, it completely lacked a native Mac OS X implementation, so I implemented that.
Second, Sam's demo relied on inventing custom types for clipboards so it was useless for sharing data between other applications that didn't use SDL_scrap. For example, if I wanted to copy/paste text with Notepad.exe or an image with MS Paint , this was impossible because SDL_Scrap didn't leverage native known types in the underlying clipboard implementations.



View Comments