groff 1.23.0 added .MR to its -man macro package. The NEWS file states
that the inclusion of the macro "was prompted by its introduction to
Plan 9 from User Space's troff in August 2020." From d32deab it seems
that the name for Plan 9 from User Space's implementation was suggested
by groff maintainer G. Brandon Robinson.
Not sure if the intention was to make these definitions compatible, but
it would be nice if they were.
Currently, Plan 9 from User Space's .MR expects its second argument to
be parenthesized. groff's .MR does not. This results in extra
parentheses appearing in manual references when viewing Plan 9 from User
Space's manual pages on a system using groff.
54 lines
1.0 KiB
Groff
54 lines
1.0 KiB
Groff
.TH DRAWFCALL 3
|
|
.SH NAME
|
|
convM2W, convW2M, drawfcallfmt, readwsysmsg, sizeW2M \- window system protocol
|
|
.SH SYNOPSIS
|
|
.nf
|
|
.PP
|
|
.ft L
|
|
#include <u.h>
|
|
#include <libc.h>
|
|
#include <draw.h>
|
|
#include <mouse.h>
|
|
#include <cursor.h>
|
|
#include <drawfcall.h>
|
|
.ft P
|
|
.ta \w'\fLuint 'u
|
|
.PP
|
|
.B
|
|
uint convM2W(uchar *ap, uint nap, Wsysmsg *w)
|
|
.PP
|
|
.B
|
|
uint convW2M(Wsysmsg *w, uchar *ap, uint nap)
|
|
.PP
|
|
.B
|
|
int drawfcallfmt(Fmt*)
|
|
.PP
|
|
.B
|
|
int readwsysmsg(int fd, uchar *buf, uint nbuf)
|
|
.PP
|
|
.B
|
|
uint sizeW2M(Wsysmsg *w)
|
|
.SH DESCRIPTION
|
|
These routines are analogues of the routines described in
|
|
.MR fcall 3 .
|
|
They manipulate graphics device protocol messages
|
|
rather than 9P protocol messages.
|
|
The graphics device protocol is used for internal
|
|
communication between the
|
|
.MR devdraw 1
|
|
graphics server
|
|
and the
|
|
.MR draw 3
|
|
library.
|
|
A
|
|
.B Wsysmsg
|
|
is the C structure corresponding to a protocol message.
|
|
.PP
|
|
The protocol is intentionally undocumented and may change.
|
|
.SH SOURCE
|
|
.B \*9/src/libdraw/drawfcall.c
|
|
.SH SEE ALSO
|
|
.MR devdraw 1 ,
|
|
.MR draw 3 ,
|
|
.MR graphics 3
|