Subversion Repositories

?revision_form?Rev ?revision_input??revision_submit??revision_endform?

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3 magnus 1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
<html><head>
3
<title>liboop: oop_tcl_new(), oop_tcl_delete()</title>
4
<link rel="stylesheet" type="text/css" href="style.css">
5
</head><body>
6
 
7
<h2>oop_tcl_new(), oop_tcl_delete()</h2>
8
 
9
<pre>
10
#include &lt;oop.h&gt;
11
#include &lt;oop-tcl.h&gt;
12
 
13
oop_source *oop_tcl_new();
14
void oop_tcl_delete();
15
</pre>
16
 
17
<h3>Description.</h3>
18
 
19
<dl>
20
<dt><b>oop_tcl_new</b>
21
<dd>Create a liboop source which uses the
22
<a href="http://www.purl.org/tcl/home/man/tcl8.3.2/TclLib/DoOneEvent.htm">Tcl
23
event loop</a> for events.  There is only one such event loop, so this
24
function is global.  You may call it multiple times; it will return the same
25
event source, but keep count of the number of users.<p>
26
 
27
Events will be dispatched when the Tcl event loop is run, either directly
28
via Tcl_DoOneEvent() or indirectly via Tk_MainLoop().  Unfortunately, there
29
is no way to stop the Tcl event loop, so return values from event handlers
30
are ignored.<p>
31
 
32
<dt><b>oop_tcl_delete</b>
33
<dd>Delete the liboop source created with oop_tcl_new().  This decrements the
34
count of users; when oop_tcl_delete has been called as many times as
35
oop_tcl_new, the event source is removed.<p>
36
</dl>
37
 
38
<hr><a href="ref">liboop reference</a></body></html>