History

20110224-2351

forsyth committed 15 years ago

Commit 534c87e1 parent 2e4e7b45 files · +32 −11Browse files

Unified · Split

5 files
  1. libdraw/computil.c +1 −1
  2. man/1/wm +2 −2
  3. man/2/devpointer +27 −6
  4. man/2/draw-display +1 −1
  5. man/2/draw-screen +1 −1
libdraw/computil.c+1−1
@@ -2,7 +2,7 @@ · 1 unmodified line
2#include "draw.h"2#include "draw.h"
3 3
4/*4/*
5 * compressed data are seuences of byte codes. 5 * compressed data are sequences of byte codes.
6 * if the first byte b has the 0x80 bit set, the next (b^0x80)+1 bytes6 * if the first byte b has the 0x80 bit set, the next (b^0x80)+1 bytes
7 * are data. otherwise, it's two bytes specifying a previous string to repeat.7 * are data. otherwise, it's two bytes specifying a previous string to repeat.
8 */8 */
man/1/wm+2−2
@@ -26,12 +26,12 @@ does not provide any means for starting new applications; · 25 unmodified lines
26that facility must be provided by an auxilliary program,26that facility must be provided by an auxilliary program,
27.B wm/toolbar27.B wm/toolbar
28being one such example.28being one such example.
29.SS Control Inferface29.SS Control Interface
30.I Wm30.I Wm
31provides a control interface to programs running inside it31provides a control interface to programs running inside it
32through the32through the
33.B Wmcontext33.B Wmcontext
34adt that can be obtained from via the34adt that can be obtained from the
35.B Draw->Context35.B Draw->Context
36that it passes to applications that it starts36that it passes to applications that it starts
37(see37(see
man/2/devpointer+27−6
@@ -5,9 +5,11 @@ devpointer \- I/O interface for the pointer device · 4 unmodified lines
5.EX5.EX
6include "draw.m"; # for Draw->Pointer6include "draw.m"; # for Draw->Pointer
7include "devpointer.m";7include "devpointer.m";
8ptr:= load Devpointer Devpointer->PATH;8ptr := load Devpointer Devpointer->PATH;
9 9
10init: fn(file: string, posn: chan of ref Draw->Pointer): int;10init: fn();
11reader: fn(file: string, posn: chan of ref Draw->Pointer,
12 pid: chan of (int, string));
11bytes2ptr: fn(buf: array of byte) : ref Draw->Pointer;13bytes2ptr: fn(buf: array of byte) : ref Draw->Pointer;
12ptr2bytes: fn(ptr: ref Draw->Pointer): array of byte;14ptr2bytes: fn(ptr: ref Draw->Pointer): array of byte;
13.EE15.EE
@@ -20,11 +22,30 @@ converting them to · 6 unmodified lines
20adts.22adts.
21.PP23.PP
22.B Init24.B Init
23spawns a process to read continually the pointer device specified by25must be called before any other operation of the module.
24.I file26.PP
25and send a27.B Reader
28should be spawned by the caller.
29It opens the pointer device specified by
30.IR file ,
31and sends a value
32.BI ( id,\ err )
33on channel
34.IR pid .
35On success,
36.I id
37is the process ID of the spawned process and
38.I err
39is nil; on an error,
40.I err
41is a diagnostic, and
42.I id
43is undefined.
44If the file was opened successfully,
45.B reader
46continually reads the pointer device and sends
26.B Pointer47.B Pointer
27adts over the channel specified by48adts over the channel
28.IR posn .49.IR posn .
29If50If
30.I file51.I file
man/2/draw-display+1−1
@@ -306,7 +306,7 @@ Returns a reference to the image published as · 305 unmodified lines
306on display306on display
307.I d307.I d
308by308by
309.B Image.nameimage309.B Image.name
310(see310(see
311.IR draw-image (2)).311.IR draw-image (2)).
312This allows unrelated processes to share the image (eg, a window manager and client).312This allows unrelated processes to share the image (eg, a window manager and client).
man/2/draw-screen+1−1
@@ -114,7 +114,7 @@ parameter can be · 113 unmodified lines
114which provides backing store to store obscured parts of the window when necessary,114which provides backing store to store obscured parts of the window when necessary,
115and is used by the window manager and its clients; or115and is used by the window manager and its clients; or
116.BR Draw->Refnone ,116.BR Draw->Refnone ,
117wihch provides no refresh, and is used for windows that are transient, or are already protected by backing117which provides no refresh, and is used for windows that are transient, or are already protected by backing
118store.118store.
119.TP119.TP
120.IB screen .top( wins )120.IB screen .top( wins )