User experience
Using a single API does not guarantee consistency across multiple operating systems. The toolkits used may have different layout defaults, with different padding or alignment, for example. The andlabs UI (and the underlying andlabs libui) API is designed to provide an application that's as close to the OS defaults as possible. If you have specific requirements that should be met regarding the user interface appearance (other than the style), such as layout or alignment, you may need to write special code. Using Go's approach to build tags and load different code for different operating systems, you can adapt your code to behave slightly differently on different platforms.
If we look at the previous hello world example, we ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access