diff options
author | Taru Karttunen <taruti@taruti.net> | 2011-03-30 16:47:56 +0300 |
---|---|---|
committer | Taru Karttunen <taruti@taruti.net> | 2011-03-30 16:47:56 +0300 |
commit | c558a99e0be506a9abdf677f0ca4490644e05fc1 (patch) | |
tree | 17aef678ad05a32ef96ce8385703cb3fe089a5c7 /sys/include/scribble.h | |
parent | e5888a1ffdae813d7575f5fb02275c6bb07e5199 (diff) |
Import sources from 2011-03-30 iso image - sys/include
Diffstat (limited to 'sys/include/scribble.h')
-rwxr-xr-x | sys/include/scribble.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/sys/include/scribble.h b/sys/include/scribble.h new file mode 100755 index 000000000..c09e1d7a5 --- /dev/null +++ b/sys/include/scribble.h @@ -0,0 +1,39 @@ +#pragma src "/sys/src/libscribble" +#pragma lib "libscribble.a" + +#pragma incomplete struct graffiti + +typedef struct Scribble Scribble; +typedef struct graffiti Graffiti; + +typedef struct pen_point { + Point; + long chaincode; +} pen_point; + +typedef struct Stroke { + uint npts; /*Number of pen_point in array.*/ + pen_point* pts; /*Array of points.*/ +} Stroke; + +#define CS_LETTERS 0 +#define CS_DIGITS 1 +#define CS_PUNCTUATION 2 + +struct Scribble { + /* private state */ + Point *pt; + int ppasize; + Stroke ps; + Graffiti *graf; + int capsLock; + int puncShift; + int tmpShift; + int ctrlShift; + int curCharSet; +}; + +Rune recognize(Scribble *); +Scribble * scribblealloc(void); + +extern int ScribbleDebug; |