plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

drawfcall.3 (1041B)


      1 .TH DRAWFCALL 3
      2 .SH NAME
      3 convM2W, convW2M, drawfcallfmt, readwsysmsg, sizeW2M \- window system protocol
      4 .SH SYNOPSIS
      5 .nf
      6 .PP
      7 .ft L
      8 #include <u.h>
      9 #include <libc.h>
     10 #include <draw.h>
     11 #include <mouse.h>
     12 #include <cursor.h>
     13 #include <drawfcall.h>
     14 .ft P
     15 .ta \w'\fLuint 'u
     16 .PP
     17 .B
     18 uint	convM2W(uchar *ap, uint nap, Wsysmsg *w)
     19 .PP
     20 .B
     21 uint	convW2M(Wsysmsg *w, uchar *ap, uint nap)
     22 .PP
     23 .B
     24 int	drawfcallfmt(Fmt*)
     25 .PP
     26 .B
     27 int	readwsysmsg(int fd, uchar *buf, uint nbuf)
     28 .PP
     29 .B
     30 uint	sizeW2M(Wsysmsg *w)
     31 .SH DESCRIPTION
     32 These routines are analogues of the routines described in 
     33 .MR fcall (3) .
     34 They manipulate graphics device protocol messages
     35 rather than 9P protocol messages.
     36 The graphics device protocol is used for internal 
     37 communication between the
     38 .MR devdraw (1)
     39 graphics server
     40 and the
     41 .MR draw (3)
     42 library.
     43 A
     44 .B Wsysmsg
     45 is the C structure corresponding to a protocol message.
     46 .PP
     47 The protocol is intentionally undocumented and may change.
     48 .SH SOURCE
     49 .B \*9/src/libdraw/drawfcall.c
     50 .SH SEE ALSO
     51 .MR devdraw (1) ,
     52 .MR draw (3) ,
     53 .MR graphics (3)