graphics/: Windows can now be created in the hidden state. This can be used to clean up initial window presentation which may involve several steps. This makes those steps all invisible until nx[tk]_setvisibility() is called to make the windows visible.

This commit is contained in:
Gregory Nutt
2019-05-07 08:49:16 -06:00
parent 8cc0d2fc15
commit b05e940135
7 changed files with 77 additions and 42 deletions
+16 -4
View File
@@ -1497,8 +1497,14 @@ NXWINDOW nx_openwindow(NXHANDLE handle, uint8_t flags,
<dd>The handle returned by <a href="#nxconnectinstance"><code>nx_connect()</code></a>.
<dt><code>flags</code>
<dd>Optional flags.
Must be zero unless <code>CONFIG_NX_RAMBACKED</code> is enabled.
In that case, it may be zero or <code>NXBE_WINDOW_RAMBACKED</code>.
These include:
<ul>
<li><code>NXBE_WINDOW_RAMBACKED</code>: Creates a RAM backed window.
This option is only valid if <code>CONFIG_NX_RAMBACKED</code> is enabled.
</li>
<li><code>NXBE_WINDOW_HIDDEN</code>: The window is create in the HIDDEN state and can be made visible later with <code>nx_setvisibility()</code>.
</li>
</ul>
<dt><code>cb</code>
<dd>Callbacks used to process window events
<dt><code>arg</code>
@@ -2312,8 +2318,14 @@ NXTKWINDOW nxtk_openwindow(NXHANDLE handle, uint8_t flags,
<dd>The handle returned by <a href="#nxconnectinstance"><code>nx_connect()</code></a>.
<dt><code>flags</code>
<dd>Optional flags.
Must be zero unless <code>CONFIG_NX_RAMBACKED</code> is enabled.
In that case, it may be zero or <code>NXBE_WINDOW_RAMBACKED</code>.
These include:
<ul>
<li><code>NXBE_WINDOW_RAMBACKED</code>: Creates a RAM backed window.
This option is only valid if <code>CONFIG_NX_RAMBACKED</code> is enabled.
</li>
<li><code>NXBE_WINDOW_HIDDEN</code>: The window is create in the HIDDEN state and can be made visible later with <code>nxtk_setvisibility()</code>.
</li>
</ul>
<dt><code>cb</code>
<dd>Callbacks used to process window events
<dt><code>arg</code>