NkLayoutRowTemplate
A more powerful way to lay out rows is to use the template mechanism available. By calling NkLayoutRowTemplateBegin(), it's possible to set the template for all rows that follow. Column sizing is defined using one of three template functions. Firstly, NkLayoutRowTemplatePushStatic() specifies that widgets in this column should be of a fixed width. NkLayoutRowTemplatePushDynamic(), like the definition of dynamic allocation without templates, will split the row width among dynamic columns (this could be as little as 0 if no space is available). Finally, there's an additional call to the NkLayoutRowTemplatePushVariable()function; this will ensure that widgets get their minimum required space and will take up any extra space ...
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