I wrote a simple sortable list depending on ofxGui.

One can add ofxToggles and ofxLabels to lists and sort them via drag&drop. If an item is dropped outside of the list, it gets removed. If an item gets moved or removed, an event is called.

There is a simple example and a more advanced example syncing a list of shapes and parameters with the sortable list.

It is tested on Ubuntu with the current openFrameworks git version. This is my first addon and its pretty rare that anyone reads my code, so please tell me if somethings missing or wrong.


1 Like