aboutsummaryrefslogtreecommitdiff
path: root/include/draw.h
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-06-25 23:49:35 +0000
committerrsc <devnull@localhost>2006-06-25 23:49:35 +0000
commit76a1b3c9c658061a491b10384118482770fbef71 (patch)
treeb8dcaece2886633787623aced7e83b9a956d8705 /include/draw.h
parente86ebdce25bab8352e093c84122953ed7daa7ec8 (diff)
downloadplan9port-76a1b3c9c658061a491b10384118482770fbef71.tar.gz
plan9port-76a1b3c9c658061a491b10384118482770fbef71.tar.bz2
plan9port-76a1b3c9c658061a491b10384118482770fbef71.zip
new draw interface
Diffstat (limited to 'include/draw.h')
-rw-r--r--include/draw.h30
1 files changed, 24 insertions, 6 deletions
diff --git a/include/draw.h b/include/draw.h
index 152394f5..07992c21 100644
--- a/include/draw.h
+++ b/include/draw.h
@@ -23,6 +23,8 @@ typedef struct RGB RGB;
typedef struct Screen Screen;
typedef struct Subfont Subfont;
+struct Mux;
+
extern int Rfmt(Fmt*);
extern int Pfmt(Fmt*);
@@ -200,6 +202,8 @@ struct Display
Image *windows;
Image *screenimage;
int _isnewdisplay;
+ struct Mux *mux;
+ int srvfd;
};
struct Image
@@ -535,14 +539,28 @@ void drawtopwindow(void);
void drawresizewindow(Rectangle);
extern char *winsize;
+int mousescrollsize(int);
+
/*
- * Port magic.
+ * RPC interface to draw server.
*/
-int _drawmsgread(Display*, void*, int);
-int _drawmsgwrite(Display*, void*, int);
-int _latin1(Rune*, int);
-
-int mousescrollsize(int);
+struct Mouse;
+struct Cursor;
+int _displaybouncemouse(Display *d, struct Mouse *m);
+int _displayconnect(Display *d);
+int _displaycursor(Display *d, struct Cursor *c);
+int _displayinit(Display *d, char *label, char *winsize);
+int _displaylabel(Display *d, char *label);
+int _displaymoveto(Display *d, Point p);
+int _displaymux(Display *d);
+int _displayrddraw(Display *d, void *v, int n);
+int _displayrdkbd(Display *d, Rune *r);
+int _displayrdmouse(Display *d, struct Mouse *m, int *resized);
+char* _displayrdsnarf(Display *d);
+int _displaywrdraw(Display *d, void *v, int n);
+int _displaywrsnarf(Display *d, char *snarf);
+int _displaytop(Display *d);
+int _displayresize(Display *d, Rectangle rect);
#if defined(__cplusplus)
}