File:  [Research Unix] / researchv10dc / 630 / man / src / p_man / man3 / jpoint.3l
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Dan Cross

.ds ZZ DEVELOPMENT PACKAGE
.TH JPOINT 3L "630 MTG"
.XE "jpoint()"
.SH NAME
jpoint \- draw single pixel on display
.SH SYNOPSIS
.B #include <dmd.h>
.sp
.B void jpoint (p, f)
.br
.B Point p;
.br
.B Code f;
.SH DESCRIPTION
The
.I jpoint
function
sets the pixel at location
.I p
(in window coordinates)
in the display bitmap according to the Code
.IR f .
.SH EXAMPLE
The following routine can be used to ``doodle'' on the screen.
.PP
.RS 3
.ft CM
.nf
#include <dmd.h>

doodle()
{
      request (\s-1MOUSE\s+1);
      for ( ;; ) {
          wait (\s-1MOUSE\s+1)
          if( button3() )
             break;
          if( button2() )
             jpoint (mouse.jxy, \s-1F_STORE\s+1);
      }
}
.fi
.ft R
.RE
.SH SEE ALSO
globals(3R), point(3R), structures(3R), transform(3R/3L).

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.