Skip to content

Commit

Permalink
new draw interface
Browse files Browse the repository at this point in the history
  • Loading branch information
rsc committed Jun 25, 2006
1 parent e86ebdc commit 76a1b3c
Showing 1 changed file with 24 additions and 6 deletions.
30 changes: 24 additions & 6 deletions include/draw.h
Original file line number Diff line number Diff line change
Expand Up @@ -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*);

Expand Down Expand Up @@ -200,6 +202,8 @@ struct Display
Image *windows;
Image *screenimage;
int _isnewdisplay;
struct Mux *mux;
int srvfd;
};

struct Image
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit 76a1b3c

Please sign in to comment.