Rewrite of gWidgets API for simplified GUI construction