NkLayoutRow
The easiest approach to layout is to start a new row using NkLayoutRowDynamic() or NkLayoutRowStatic(). Both functions specify the number of cells in the row. The difference between the two is that the dynamic row allocation will split all of the space between the cells and resize them all as the window or container changes size. With a static arrangement, the sizes of all cells will remain the same irrespective of the container size. Widgets added after a row is started will append to the row, until it's full; if further widgets are appended, then a new row will be created for the new widgets. This continues until NkLayoutRowEnd() is called, or a different row configuration is started using one of these alternative functions. ...
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