[tekui-devel] tekui: Application: added Window argument to addCoroutine; Windo...

Timm S. Mueller tmueller at schulze-mueller.de
Sat Oct 11 22:28:39 CEST 2008


details:   http://hg.teklib.org/tekui/rev/0c7c984b2b3f
changeset: 28:0c7c984b2b3f
user:      Timm S. Mueller <tmueller at schulze-mueller.de>
date:      Sat Oct 11 20:54:48 2008 +0200
description:
Application: added Window argument to addCoroutine; Window: added
addInterval()/remInterval() and IntervalNestCount; Pagegroup: children are now
connected and set up all the time, only show()/hide() are still invoked when
pages are flipped

diffs (truncated from 699 to 100 lines):

diff -r bbada43fbb66 -r 0c7c984b2b3f doc/manual.html
--- a/doc/manual.html	Fri Oct 10 16:54:06 2008 +0200
+++ b/doc/manual.html	Sat Oct 11 20:54:48 2008 +0200
@@ -174,9 +174,6 @@
 								<li>
 									<a href="#tek.ui.class.theme">Theme</a> 
 								</li>
-								<li>
-									<a href="#tek.ui.layout.default">Layout</a> 
-								</li>
 							</ul>
 						</blockquote>
 					</li>
@@ -192,9 +189,6 @@
 					</li>
 					<li>
 						<a href="#tek.lib.debug">debug</a> 
-					</li>
-					<li>
-						<a href="#tek.lib.region">Region</a> 
 					</li>
 					<li>
 						<a href="#tek.ui">ui</a> 
@@ -624,7 +618,7 @@
 			</p>
 			<hr />
 		</div>
-		<div class="node"><h2><a name="tek.ui.class.application" id="tek.ui.class.application">Application (v8.0)</a></h2>
+		<div class="node"><h2><a name="tek.ui.class.application" id="tek.ui.class.application">Application (v9.0)</a></h2>
 			<div class="definition"><dfn>LINEAGE</dfn>
 				<blockquote>
 					<p>
@@ -837,13 +831,17 @@
 			</p>
 			<hr />
 		</div>
-		<div class="node"><h3><a name="Application:suspend" id="Application:suspend"><code>Application:suspend()</code></a></h3>
-			<p>
-				Suspends the caller (which must be running in a
-				coroutine previously registered using <a href="#Application:addCoroutine"><code>Application:addCoroutine()</code></a>) until
-				it is getting rescheduled by the application. This gives the application
-				an opportunity to service all pending messages and updates before the
-				coroutine is continued.
+		<div class="node"><h3><a name="Application:suspend" id="Application:suspend"><code>Application:suspend([window])</code></a></h3>
+			<p>
+				Suspends the caller (which must be running
+				in a coroutine) until it is getting rescheduled by the application.
+				Coroutines can use this as a cooperation point, which gives the
+				application an opportunity to service all pending messages and updates.
+				If no argument is given, the application returns to the caller as quickly
+				as possible. If an optional <code>window</code> is specified, the coroutine is put
+				to sleep until something happens in the application, or an interval timer
+				event is present at the window (i.e. the suspended coroutine is
+				rescheduled after no longer than 1/50th of a second).
 			</p>
 			<hr />
 		</div>
@@ -1135,7 +1133,7 @@
 			</p>
 			<hr />
 		</div>
-		<div class="node"><h2><a name="tek.ui.class.gauge" id="tek.ui.class.gauge">Gauge (v4.3)</a></h2>
+		<div class="node"><h2><a name="tek.ui.class.gauge" id="tek.ui.class.gauge">Gauge (v4.4)</a></h2>
 			<div class="definition"><dfn>LINEAGE</dfn>
 				<blockquote>
 					<p>
@@ -1496,7 +1494,7 @@
 			</p>
 			<hr />
 		</div>
-		<div class="node"><h2><a name="tek.ui.class.pagegroup" id="tek.ui.class.pagegroup">PageGroup (v8.0)</a></h2>
+		<div class="node"><h2><a name="tek.ui.class.pagegroup" id="tek.ui.class.pagegroup">PageGroup (v8.2)</a></h2>
 			<div class="definition"><dfn>LINEAGE</dfn>
 				<blockquote>
 					<p>
@@ -2634,7 +2632,7 @@
 			</p>
 			<hr />
 		</div>
-		<div class="node"><h2><a name="tek.ui.class.area" id="tek.ui.class.area">Area (v14.1)</a></h2>
+		<div class="node"><h2><a name="tek.ui.class.area" id="tek.ui.class.area">Area (v14.2)</a></h2>
 			<div class="definition"><dfn>LINEAGE</dfn>
 				<blockquote>
 					<p>
@@ -4845,7 +4843,7 @@
 			</p>
 			<hr />
 		</div>
-		<div class="node"><h2><a name="tek.ui.class.window" id="tek.ui.class.window">Window (v7.6)</a></h2>
+		<div class="node"><h2><a name="tek.ui.class.window" id="tek.ui.class.window">Window (v8.0)</a></h2>
 			<div class="definition"><dfn>LINEAGE</dfn>
 				<blockquote>
 					<p>
@@ -4973,6 +4971,9 @@
 							<a href="#Window:addInputHandler"><code>Window:addInputHandler()</code></a> - Adds an input handler to the window
 						</li>
 						<li style="list-style-type: none">
+							<a href="#Window:addInterval"><code>Window:addInterval()</code></a> - Adds an interval timer to the window
+						</li>
+						<li style="list-style-type: none">


More information about the tekui-devel mailing list