Framework for gui libraries in oop languages