mirror of
https://github.com/Immediate-Mode-UI/Nuklear.git
synced 2026-11-30 16:48:10 +01:00
347 lines
24 KiB
HTML
347 lines
24 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
|
<meta name="generator" content="Doxygen 1.15.0"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>Nuklear: Layouting</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<script type="text/javascript" src="clipboard.js"></script>
|
|
<link href="navtree.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="navtreedata.js"></script>
|
|
<script type="text/javascript" src="navtree.js"></script>
|
|
<script type="text/javascript" src="cookie.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<script type="text/javascript">
|
|
$(function() { init_search(); });
|
|
</script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr id="projectrow">
|
|
<td id="projectalign">
|
|
<div id="projectname">Nuklear
|
|
</div>
|
|
<div id="projectbrief">Minimal-state, immediate-mode graphical user interface toolkit written in ANSI C.</div>
|
|
</td>
|
|
<td> <div id="MSearchBox" class="MSearchBoxInactive">
|
|
<span class="left">
|
|
<span id="MSearchSelect" class="search-icon" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()"><span class="search-icon-dropdown"></span></span>
|
|
<input type="text" id="MSearchField" value="" placeholder="Search" accesskey="S"
|
|
onfocus="searchBox.OnSearchFieldFocus(true)"
|
|
onblur="searchBox.OnSearchFieldFocus(false)"
|
|
onkeyup="searchBox.OnSearchFieldChange(event)"/>
|
|
</span><span class="right">
|
|
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><div id="MSearchCloseImg" class="close-icon"></div></a>
|
|
</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.15.0 -->
|
|
<script type="text/javascript">
|
|
var searchBox = new SearchBox("searchBox", "search/",'.html');
|
|
</script>
|
|
<script type="text/javascript">
|
|
$(function() { codefold.init(); });
|
|
</script>
|
|
</div><!-- top -->
|
|
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
|
<div id="nav-tree">
|
|
<div id="nav-tree-contents">
|
|
<div id="nav-sync" class="sync"></div>
|
|
</div>
|
|
</div>
|
|
<div id="splitbar" style="-moz-user-select:none;"
|
|
class="ui-resizable-handle">
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
$(function(){initNavTree('Layouting.html','',''); });
|
|
</script>
|
|
<div id="container">
|
|
<div id="doc-content">
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<div id="MSearchResults">
|
|
<div class="SRPage">
|
|
<div id="SRIndex">
|
|
<div id="SRResults"></div>
|
|
<div class="SRStatus" id="Loading">Loading...</div>
|
|
<div class="SRStatus" id="Searching">Searching...</div>
|
|
<div class="SRStatus" id="NoMatches">No Matches</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div><div class="header">
|
|
<div class="headertitle"><div class="title">Layouting </div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<div class="textblock"><p>Layouting in general describes placing widget inside a window with position and size.</p>
|
|
<p>While in this particular implementation there are five different APIs for layouting each with different trade offs between control and ease of use. <br />
|
|
<br />
|
|
</p>
|
|
<p>All layouting methods in this library are based around the concept of a row. A row has a height the window content grows by and a number of columns and each layouting method specifies how each widget is placed inside the row. After a row has been allocated by calling a layouting functions and then filled with widgets will advance an internal pointer over the allocated row. <br />
|
|
<br />
|
|
</p>
|
|
<p>To actually define a layout you just call the appropriate layouting function and each subsequent widget call will place the widget as specified. Important here is that if you define more widgets then columns defined inside the layout functions it will allocate the next row without you having to make another layouting call. <br />
|
|
<br />
|
|
</p>
|
|
<p>Biggest limitation with using all these APIs outside the <span class="tt">nk_layout_space_xxx</span> API is that you have to define the row height for each. However the row height often depends on the height of the font. <br />
|
|
<br />
|
|
</p>
|
|
<p>To fix that internally nuklear uses a minimum row height that is set to the height plus padding of currently active font and overwrites the row height value if zero. <br />
|
|
<br />
|
|
</p>
|
|
<p>If you manually want to change the minimum row height then use nk_layout_set_min_row_height, and use nk_layout_reset_min_row_height to reset it back to be derived from font height. <br />
|
|
<br />
|
|
</p>
|
|
<p>Also if you change the font in nuklear it will automatically change the minimum row height for you. This means if you change the font but still want a minimum row height smaller than the font you have to repush your value. <br />
|
|
<br />
|
|
</p>
|
|
<p>For actually more advanced UI I would even recommend using the <span class="tt">nk_layout_space_xxx</span> layouting method in combination with a cassowary constraint solver (there are some versions on github with permissive license model) to take over all control over widget layouting yourself. However for quick and dirty layouting using all the other layouting functions should be fine.</p>
|
|
<h1 class="doxsection"><a class="anchor" id="autotoc_md63"></a>
|
|
Usage</h1>
|
|
<ol type="1">
|
|
<li><p class="startli"><b>nk_layout_row_dynamic</b><br />
|
|
<br />
|
|
The easiest layouting function is <span class="tt">nk_layout_row_dynamic</span>. It provides each widgets with same horizontal space inside the row and dynamically grows if the owning window grows in width. So the number of columns dictates the size of each widget dynamically by formula:</p>
|
|
<div class="fragment"><div class="line">widget_width = (window_width - padding - spacing) * (1/column_count)</div>
|
|
</div><!-- fragment --><p class="startli">Just like all other layouting APIs if you define more widget than columns this library will allocate a new row and keep all layouting parameters previously defined.</p>
|
|
<div class="fragment"><div class="line"><span class="keywordflow">if</span> (nk_begin_xxx(...) {</div>
|
|
<div class="line"> <span class="comment">// first row with height: 30 composed of two widgets</span></div>
|
|
<div class="line"> nk_layout_row_dynamic(&ctx, 30, 2);</div>
|
|
<div class="line"> nk_widget(...);</div>
|
|
<div class="line"> nk_widget(...);</div>
|
|
<div class="line"> <span class="comment">//</span></div>
|
|
<div class="line"> <span class="comment">// second row with same parameter as defined above</span></div>
|
|
<div class="line"> nk_widget(...);</div>
|
|
<div class="line"> nk_widget(...);</div>
|
|
<div class="line"> <span class="comment">//</span></div>
|
|
<div class="line"> <span class="comment">// third row uses 0 for height which will use auto layouting</span></div>
|
|
<div class="line"> nk_layout_row_dynamic(&ctx, 0, 2);</div>
|
|
<div class="line"> nk_widget(...);</div>
|
|
<div class="line"> nk_widget(...);</div>
|
|
<div class="line">}</div>
|
|
<div class="line">nk_end(...);</div>
|
|
</div><!-- fragment --></li>
|
|
<li><p class="startli"><b>nk_layout_row_static</b><br />
|
|
<br />
|
|
Another easy layouting function is <span class="tt">nk_layout_row_static</span>. It provides each widget with same horizontal pixel width inside the row and does not grow if the owning window scales smaller or bigger.</p>
|
|
<div class="fragment"><div class="line"><span class="keywordflow">if</span> (nk_begin_xxx(...) {</div>
|
|
<div class="line"> <span class="comment">// first row with height: 30 composed of two widgets with width: 80</span></div>
|
|
<div class="line"> nk_layout_row_static(&ctx, 30, 80, 2);</div>
|
|
<div class="line"> nk_widget(...);</div>
|
|
<div class="line"> nk_widget(...);</div>
|
|
<div class="line"> <span class="comment">//</span></div>
|
|
<div class="line"> <span class="comment">// second row with same parameter as defined above</span></div>
|
|
<div class="line"> nk_widget(...);</div>
|
|
<div class="line"> nk_widget(...);</div>
|
|
<div class="line"> <span class="comment">//</span></div>
|
|
<div class="line"> <span class="comment">// third row uses 0 for height which will use auto layouting</span></div>
|
|
<div class="line"> nk_layout_row_static(&ctx, 0, 80, 2);</div>
|
|
<div class="line"> nk_widget(...);</div>
|
|
<div class="line"> nk_widget(...);</div>
|
|
<div class="line">}</div>
|
|
<div class="line">nk_end(...);</div>
|
|
</div><!-- fragment --></li>
|
|
<li><p class="startli"><b>nk_layout_row_xxx</b><br />
|
|
<br />
|
|
A little bit more advanced layouting API are functions <span class="tt">nk_layout_row_begin</span>, <span class="tt">nk_layout_row_push</span> and <span class="tt">nk_layout_row_end</span>. They allow to directly specify each column pixel or window ratio in a row. It supports either directly setting per column pixel width or widget window ratio but not both. Furthermore it is a immediate mode API so each value is directly pushed before calling a widget. Therefore the layout is not automatically repeating like the last two layouting functions.</p>
|
|
<div class="fragment"><div class="line"><span class="keywordflow">if</span> (nk_begin_xxx(...) {</div>
|
|
<div class="line"> <span class="comment">// first row with height: 25 composed of two widgets with width 60 and 40</span></div>
|
|
<div class="line"> nk_layout_row_begin(ctx, NK_STATIC, 25, 2);</div>
|
|
<div class="line"> nk_layout_row_push(ctx, 60);</div>
|
|
<div class="line"> nk_widget(...);</div>
|
|
<div class="line"> nk_layout_row_push(ctx, 40);</div>
|
|
<div class="line"> nk_widget(...);</div>
|
|
<div class="line"> nk_layout_row_end(ctx);</div>
|
|
<div class="line"> <span class="comment">//</span></div>
|
|
<div class="line"> <span class="comment">// second row with height: 25 composed of two widgets with window ratio 0.25 and 0.75</span></div>
|
|
<div class="line"> nk_layout_row_begin(ctx, NK_DYNAMIC, 25, 2);</div>
|
|
<div class="line"> nk_layout_row_push(ctx, 0.25f);</div>
|
|
<div class="line"> nk_widget(...);</div>
|
|
<div class="line"> nk_layout_row_push(ctx, 0.75f);</div>
|
|
<div class="line"> nk_widget(...);</div>
|
|
<div class="line"> nk_layout_row_end(ctx);</div>
|
|
<div class="line"> <span class="comment">//</span></div>
|
|
<div class="line"> <span class="comment">// third row with auto generated height: composed of two widgets with window ratio 0.25 and 0.75</span></div>
|
|
<div class="line"> nk_layout_row_begin(ctx, NK_DYNAMIC, 0, 2);</div>
|
|
<div class="line"> nk_layout_row_push(ctx, 0.25f);</div>
|
|
<div class="line"> nk_widget(...);</div>
|
|
<div class="line"> nk_layout_row_push(ctx, 0.75f);</div>
|
|
<div class="line"> nk_widget(...);</div>
|
|
<div class="line"> nk_layout_row_end(ctx);</div>
|
|
<div class="line">}</div>
|
|
<div class="line">nk_end(...);</div>
|
|
</div><!-- fragment --></li>
|
|
<li><p class="startli"><b>nk_layout_row</b><br />
|
|
<br />
|
|
The array counterpart to API nk_layout_row_xxx is the single nk_layout_row functions. Instead of pushing either pixel or window ratio for every widget it allows to define it by array. The trade of for less control is that <span class="tt">nk_layout_row</span> is automatically repeating. Otherwise the behavior is the same.</p>
|
|
<div class="fragment"><div class="line"><span class="keywordflow">if</span> (nk_begin_xxx(...) {</div>
|
|
<div class="line"> <span class="comment">// two rows with height: 30 composed of two widgets with width 60 and 40</span></div>
|
|
<div class="line"> <span class="keyword">const</span> <span class="keywordtype">float</span> ratio[] = {60,40};</div>
|
|
<div class="line"> nk_layout_row(ctx, NK_STATIC, 30, 2, ratio);</div>
|
|
<div class="line"> nk_widget(...);</div>
|
|
<div class="line"> nk_widget(...);</div>
|
|
<div class="line"> nk_widget(...);</div>
|
|
<div class="line"> nk_widget(...);</div>
|
|
<div class="line"> <span class="comment">//</span></div>
|
|
<div class="line"> <span class="comment">// two rows with height: 30 composed of two widgets with window ratio 0.25 and 0.75</span></div>
|
|
<div class="line"> <span class="keyword">const</span> <span class="keywordtype">float</span> ratio[] = {0.25, 0.75};</div>
|
|
<div class="line"> nk_layout_row(ctx, NK_DYNAMIC, 30, 2, ratio);</div>
|
|
<div class="line"> nk_widget(...);</div>
|
|
<div class="line"> nk_widget(...);</div>
|
|
<div class="line"> nk_widget(...);</div>
|
|
<div class="line"> nk_widget(...);</div>
|
|
<div class="line"> <span class="comment">//</span></div>
|
|
<div class="line"> <span class="comment">// two rows with auto generated height composed of two widgets with window ratio 0.25 and 0.75</span></div>
|
|
<div class="line"> <span class="keyword">const</span> <span class="keywordtype">float</span> ratio[] = {0.25, 0.75};</div>
|
|
<div class="line"> nk_layout_row(ctx, NK_DYNAMIC, 30, 2, ratio);</div>
|
|
<div class="line"> nk_widget(...);</div>
|
|
<div class="line"> nk_widget(...);</div>
|
|
<div class="line"> nk_widget(...);</div>
|
|
<div class="line"> nk_widget(...);</div>
|
|
<div class="line">}</div>
|
|
<div class="line">nk_end(...);</div>
|
|
</div><!-- fragment --></li>
|
|
<li><p class="startli"><b>nk_layout_row_template_xxx</b><br />
|
|
<br />
|
|
The most complex and second most flexible API is a simplified flexbox version without line wrapping and weights for dynamic widgets. It is an immediate mode API but unlike <span class="tt">nk_layout_row_xxx</span> it has auto repeat behavior and needs to be called before calling the templated widgets. The row template layout has three different per widget size specifier. The first one is the <span class="tt">nk_layout_row_template_push_static</span> with fixed widget pixel width. They do not grow if the row grows and will always stay the same. The second size specifier is <span class="tt">nk_layout_row_template_push_variable</span> which defines a minimum widget size but it also can grow if more space is available not taken by other widgets. Finally there are dynamic widgets with <span class="tt">nk_layout_row_template_push_dynamic</span> which are completely flexible and unlike variable widgets can even shrink to zero if not enough space is provided.</p>
|
|
<div class="fragment"><div class="line"><span class="keywordflow">if</span> (nk_begin_xxx(...) {</div>
|
|
<div class="line"> <span class="comment">// two rows with height: 30 composed of three widgets</span></div>
|
|
<div class="line"> nk_layout_row_template_begin(ctx, 30);</div>
|
|
<div class="line"> nk_layout_row_template_push_dynamic(ctx);</div>
|
|
<div class="line"> nk_layout_row_template_push_variable(ctx, 80);</div>
|
|
<div class="line"> nk_layout_row_template_push_static(ctx, 80);</div>
|
|
<div class="line"> nk_layout_row_template_end(ctx);</div>
|
|
<div class="line"> <span class="comment">//</span></div>
|
|
<div class="line"> <span class="comment">// first row</span></div>
|
|
<div class="line"> nk_widget(...); <span class="comment">// dynamic widget can go to zero if not enough space</span></div>
|
|
<div class="line"> nk_widget(...); <span class="comment">// variable widget with min 80 pixel but can grow bigger if enough space</span></div>
|
|
<div class="line"> nk_widget(...); <span class="comment">// static widget with fixed 80 pixel width</span></div>
|
|
<div class="line"> <span class="comment">//</span></div>
|
|
<div class="line"> <span class="comment">// second row same layout</span></div>
|
|
<div class="line"> nk_widget(...);</div>
|
|
<div class="line"> nk_widget(...);</div>
|
|
<div class="line"> nk_widget(...);</div>
|
|
<div class="line">}</div>
|
|
<div class="line">nk_end(...);</div>
|
|
</div><!-- fragment --></li>
|
|
<li><p class="startli"><b>nk_layout_space_xxx</b><br />
|
|
<br />
|
|
Finally the most flexible API directly allows you to place widgets inside the window. The space layout API is an immediate mode API which does not support row auto repeat and directly sets position and size of a widget. Position and size hereby can be either specified as ratio of allocated space or allocated space local position and pixel size. Since this API is quite powerful there are a number of utility functions to get the available space and convert between local allocated space and screen space.</p>
|
|
<div class="fragment"><div class="line"><span class="keywordflow">if</span> (nk_begin_xxx(...) {</div>
|
|
<div class="line"> <span class="comment">// static row with height: 500 (you can set column count to INT_MAX if you don't want to be bothered)</span></div>
|
|
<div class="line"> nk_layout_space_begin(ctx, NK_STATIC, 500, INT_MAX);</div>
|
|
<div class="line"> nk_layout_space_push(ctx, <a class="code hl_struct" href="structnk__rect.html">nk_rect</a>(0,0,150,200));</div>
|
|
<div class="line"> nk_widget(...);</div>
|
|
<div class="line"> nk_layout_space_push(ctx, <a class="code hl_struct" href="structnk__rect.html">nk_rect</a>(200,200,100,200));</div>
|
|
<div class="line"> nk_widget(...);</div>
|
|
<div class="line"> nk_layout_space_end(ctx);</div>
|
|
<div class="line"> <span class="comment">//</span></div>
|
|
<div class="line"> <span class="comment">// dynamic row with height: 500 (you can set column count to INT_MAX if you don't want to be bothered)</span></div>
|
|
<div class="line"> nk_layout_space_begin(ctx, NK_DYNAMIC, 500, INT_MAX);</div>
|
|
<div class="line"> nk_layout_space_push(ctx, <a class="code hl_struct" href="structnk__rect.html">nk_rect</a>(0.5,0.5,0.1,0.1));</div>
|
|
<div class="line"> nk_widget(...);</div>
|
|
<div class="line"> nk_layout_space_push(ctx, <a class="code hl_struct" href="structnk__rect.html">nk_rect</a>(0.7,0.6,0.1,0.1));</div>
|
|
<div class="line"> nk_widget(...);</div>
|
|
<div class="line">}</div>
|
|
<div class="line">nk_end(...);</div>
|
|
<div class="ttc" id="astructnk__rect_html"><div class="ttname"><a href="structnk__rect.html">nk_rect</a></div><div class="ttdef"><b>Definition</b> <a href="nuklear_8h_source.html#l00271">nuklear.h:271</a></div></div>
|
|
</div><!-- fragment --></li>
|
|
</ol>
|
|
<h1 class="doxsection"><a class="anchor" id="autotoc_md64"></a>
|
|
Reference</h1>
|
|
<table class="markdownTable">
|
|
<tr class="markdownTableHead">
|
|
<th class="markdownTableHeadNone">Function </th><th class="markdownTableHeadNone">Description </th></tr>
|
|
<tr class="markdownTableRowOdd">
|
|
<td class="markdownTableBodyNone">nk_layout_set_min_row_height </td><td class="markdownTableBodyNone">Set the currently used minimum row height to a specified value </td></tr>
|
|
<tr class="markdownTableRowEven">
|
|
<td class="markdownTableBodyNone">nk_layout_reset_min_row_height </td><td class="markdownTableBodyNone">Resets the currently used minimum row height to font height </td></tr>
|
|
<tr class="markdownTableRowOdd">
|
|
<td class="markdownTableBodyNone">nk_layout_widget_bounds </td><td class="markdownTableBodyNone">Calculates current width a static layout row can fit inside a window </td></tr>
|
|
<tr class="markdownTableRowEven">
|
|
<td class="markdownTableBodyNone">nk_layout_ratio_from_pixel </td><td class="markdownTableBodyNone">Utility functions to calculate window ratio from pixel size </td></tr>
|
|
<tr class="markdownTableRowOdd">
|
|
<td class="markdownTableBodyNone">nk_layout_row_dynamic </td><td class="markdownTableBodyNone">Current layout is divided into n same sized growing columns </td></tr>
|
|
<tr class="markdownTableRowEven">
|
|
<td class="markdownTableBodyNone">nk_layout_row_static </td><td class="markdownTableBodyNone">Current layout is divided into n same fixed sized columns </td></tr>
|
|
<tr class="markdownTableRowOdd">
|
|
<td class="markdownTableBodyNone">nk_layout_row_begin </td><td class="markdownTableBodyNone">Starts a new row with given height and number of columns </td></tr>
|
|
<tr class="markdownTableRowEven">
|
|
<td class="markdownTableBodyNone">nk_layout_row_push </td><td class="markdownTableBodyNone">Pushes another column with given size or window ratio </td></tr>
|
|
<tr class="markdownTableRowOdd">
|
|
<td class="markdownTableBodyNone">nk_layout_row_end </td><td class="markdownTableBodyNone">Finished previously started row </td></tr>
|
|
<tr class="markdownTableRowEven">
|
|
<td class="markdownTableBodyNone">nk_layout_row </td><td class="markdownTableBodyNone">Specifies row columns in array as either window ratio or size </td></tr>
|
|
<tr class="markdownTableRowOdd">
|
|
<td class="markdownTableBodyNone">nk_layout_row_template_begin </td><td class="markdownTableBodyNone">Begins the row template declaration </td></tr>
|
|
<tr class="markdownTableRowEven">
|
|
<td class="markdownTableBodyNone">nk_layout_row_template_push_dynamic </td><td class="markdownTableBodyNone">Adds a dynamic column that dynamically grows and can go to zero if not enough space </td></tr>
|
|
<tr class="markdownTableRowOdd">
|
|
<td class="markdownTableBodyNone">nk_layout_row_template_push_variable </td><td class="markdownTableBodyNone">Adds a variable column that dynamically grows but does not shrink below specified pixel width </td></tr>
|
|
<tr class="markdownTableRowEven">
|
|
<td class="markdownTableBodyNone">nk_layout_row_template_push_static </td><td class="markdownTableBodyNone">Adds a static column that does not grow and will always have the same size </td></tr>
|
|
<tr class="markdownTableRowOdd">
|
|
<td class="markdownTableBodyNone">nk_layout_row_template_end </td><td class="markdownTableBodyNone">Marks the end of the row template </td></tr>
|
|
<tr class="markdownTableRowEven">
|
|
<td class="markdownTableBodyNone">nk_layout_space_begin </td><td class="markdownTableBodyNone">Begins a new layouting space that allows to specify each widgets position and size </td></tr>
|
|
<tr class="markdownTableRowOdd">
|
|
<td class="markdownTableBodyNone">nk_layout_space_push </td><td class="markdownTableBodyNone">Pushes position and size of the next widget in own coordinate space either as pixel or ratio </td></tr>
|
|
<tr class="markdownTableRowEven">
|
|
<td class="markdownTableBodyNone">nk_layout_space_end </td><td class="markdownTableBodyNone">Marks the end of the layouting space </td></tr>
|
|
<tr class="markdownTableRowOdd">
|
|
<td class="markdownTableBodyNone">nk_layout_space_bounds </td><td class="markdownTableBodyNone">Callable after nk_layout_space_begin and returns total space allocated </td></tr>
|
|
<tr class="markdownTableRowEven">
|
|
<td class="markdownTableBodyNone">nk_layout_space_to_screen </td><td class="markdownTableBodyNone">Converts vector from nk_layout_space coordinate space into screen space </td></tr>
|
|
<tr class="markdownTableRowOdd">
|
|
<td class="markdownTableBodyNone">nk_layout_space_to_local </td><td class="markdownTableBodyNone">Converts vector from screen space into nk_layout_space coordinates </td></tr>
|
|
<tr class="markdownTableRowEven">
|
|
<td class="markdownTableBodyNone">nk_layout_space_rect_to_screen </td><td class="markdownTableBodyNone">Converts rectangle from nk_layout_space coordinate space into screen space </td></tr>
|
|
<tr class="markdownTableRowOdd">
|
|
<td class="markdownTableBodyNone">nk_layout_space_rect_to_local </td><td class="markdownTableBodyNone">Converts rectangle from screen space into nk_layout_space coordinates </td></tr>
|
|
</table>
|
|
</div></div><!-- contents -->
|
|
</div><!-- PageDoc -->
|
|
</div><!-- doc-content -->
|
|
<div id="page-nav" class="page-nav-panel">
|
|
<div id="page-nav-resize-handle"></div>
|
|
<div id="page-nav-tree">
|
|
<div id="page-nav-contents">
|
|
</div><!-- page-nav-contents -->
|
|
</div><!-- page-nav-tree -->
|
|
</div><!-- page-nav -->
|
|
</div><!-- container -->
|
|
<!-- start footer part -->
|
|
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
|
<ul>
|
|
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.15.0 </li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|