Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Not a serious attempt but I prototyped a single header library for macos and will attempt to make it work on windows too

example: https://pbs.twimg.com/media/EuQ-6vzXUAca_Ph?format=jpg&name=... (ignore the fact the UI goes from bottom to top, that will be fixed)

A cross platform gui library needs to have consistent layout across all platforms so it has uses basic flexbox layout algorithm instead of the native macos constraint system, I think this turns out better anyway because flexbox is a lot simpler in my mind. It decouples the layout algorithm from the UI code so you don't need to rerun your whole UI whenever the window changes size. It uses pure c++ native calls instead of objective-c which is kind of crazy but the library user never needs to interact with it



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: