summaryrefslogtreecommitdiff
path: root/module/tkclient.m
diff options
context:
space:
mode:
authorCharles.Forsyth <devnull@localhost>2006-12-22 20:52:35 +0000
committerCharles.Forsyth <devnull@localhost>2006-12-22 20:52:35 +0000
commit46439007cf417cbd9ac8049bb4122c890097a0fa (patch)
tree6fdb25e5f3a2b6d5657eb23b35774b631d4d97e4 /module/tkclient.m
parent37da2899f40661e3e9631e497da8dc59b971cbd0 (diff)
20060303-partial
Diffstat (limited to 'module/tkclient.m')
-rw-r--r--module/tkclient.m26
1 files changed, 26 insertions, 0 deletions
diff --git a/module/tkclient.m b/module/tkclient.m
new file mode 100644
index 00000000..7a4d3b14
--- /dev/null
+++ b/module/tkclient.m
@@ -0,0 +1,26 @@
+Tkclient: module
+{
+ PATH: con "/dis/lib/tkclient.dis";
+
+ Resize,
+ Hide,
+ Help,
+ OK,
+ Popup, # XXX is this useful?
+ Plain: con 1 << iota;
+
+ Appl: con Resize | Hide;
+
+ init: fn();
+ makedrawcontext: fn(): ref Draw->Context;
+ toplevel: fn(ctxt: ref Draw->Context, topconfig: string,
+ title: string, buts: int): (ref Tk->Toplevel, chan of string);
+ onscreen: fn(top: ref Tk->Toplevel, how: string);
+ startinput: fn(top: ref Tk->Toplevel, devs: list of string);
+ wmctl: fn(top: ref Tk->Toplevel, request: string): string;
+ settitle: fn(top: ref Tk->Toplevel, name: string): string;
+ handler: fn(top: ref Tk->Toplevel, stop: chan of int);
+
+ snarfput: fn(buf: string);
+ snarfget: fn(): string;
+};