Have you checked this: https://github.com/andlabs/libui/blob/master/examples/contro... ?
Have you checked this: https://github.com/andlabs/libui/blob/master/examples/contro... ?
Secondly, exams code can get outdated just as much as human documentation. I've lost count of the number of times I've gone to compile example code only to find it doesn't work because of API changes or such like. I've also had example code crash my whole machine because it effectively created a fork bomb (thanks Microsoft for that one!)
So the arguement of example code Vs documentation isn't a mutually exclusive one.
In fact the main open source project I'm working on automatically generates it's documentation to help ensure its accuracy - and I know for a fact that I'm not the only person to do this.
Give me an example over documentation any day.
This is usually how I work. I only look for the documentation when it does not work.