File:  [Research Unix] / researchv10dc / 630 / man / src / p_man / man3 / rectf.3r
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 RECTF 3R "630 MTG"
.XE "rectf()"
.SH NAME  
rectf \- perform function on Rectangle in Bitmap
.SH SYNOPSIS
.B #include <dmd.h>
.sp
.B void rectf (b, r, f) 
.br
.B Bitmap \(**b;
.br 
.B Rectangle r; 
.br
.B Code f;
.SH DESCRIPTION
The
.I rectf
function
performs the action specified by the function Code
.I f
on the Rectangle
.I r
within the Bitmap
.I \(**b.
.SH EXAMPLE
The following routine will ``doodle'' on the screen using a Rectangle.
.PP
.RS 3
.nf
.ft CM
#include <dmd.h>

int request();
int wait();
Point add();
void rectf();

main()
{
    Rectangle r;
    Point s;

    s.x = 16;
    s.y = 16;
    request (MOUSE);
    for (wait(MOUSE); !button3();
      wait(MOUSE)){
        r.origin = mouse.jxy;
        r.corner = add (r.origin, s);
        if( button1() )
            rectf (&display, r, F_STORE);
        if( button2() )
            rectf (&display, r, F_CLR);
    }
}
.ft R
.fi
.RE
.SH SEE ALSO
jrectf(3R), structures(3R).
.RE

unix.superglobalmegacorp.com

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