Moontear GUI framework


Moontear GUI is aiming to be lightweight, optimized C++ framework for GUI design.

It is based on SDL2 / SDL2_Image / SDL2_ttf and its in early development. It uses CMake for a build system, so you should be able to build it on any linux distro with relative ease, and with some posix adapters, building it on Windows should not be too hard.

What is currently working:

  • Window management
  • Asynchronous, thread-safe update of widget attributes
  • Input event handling – Unicode┬átext support
  • Basic widgets implemented – Text (with TTF support), Image (with JPG and PNG support), Plot, Pixmap
  • RAII wrappers over SDL2 API


  • Embed resources directly into an executable
  • Animation of widget attributes with support for interpolation algorithms
  • Simple┬ástate machines with focus event propagation
  • JSON definition for widgets
  • Dropdown widget
  • List widget
  • Scrollbar widget
  • Button widget
  • Camera class to facilitate culling and zoom in / zoom out

A personal space