NkLayoutSpace
Lastly, the space layout offers full control over the positioning and size of the items in your Nuklear application. The layout is started and ended like the previous row-based layout; use NkLayoutSpaceBegin() to start a space-based layout and NkLayoutSpaceEnd() to finish the layout. Before each widget you wish to add to your interface, call the NkLayoutSpacePush() function, passing NkRect, which specifies the size and position for the next widget to be added.
As well as the layout control functions, there are a number of helper functions that use the NkLayoutSpace API prefix. The most useful is NkLayoutSpaceBounds()—if called within a space layout, it'll return the total space that's available to work within. This is important ...
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