Making graphical interfaces from geometric primitives

Zhentao Li

Instead of using one of the existing GUI toolkits (such as GTK or QT), we want to build graphical interfaces from only circles, lines and text (and input events). Through a prototype demo, we explore how a library for this task could work. Our demo makes use of a language written in a Parsing Expression Grammar and the corresponding (modified) packrat parser to handle input events and track states. Eventually, we'd like to blurs the line between the editor and edited and have a single continuous program from toolkit to editor to interface.