Writing from scratch a new sdl widget would take a lot of time so I've looked for existing projects.

There are many sdl widget but most of them are in c++: