Annotation of researchv10dc/630/man/src/p_man/man3/inset.3r, revision 1.1

1.1     ! root        1: .ds ZZ DEVELOPMENT PACKAGE
        !             2: .TH INSET 3R "630 MTG"
        !             3: .XE "inset()"
        !             4: .SH NAME
        !             5: inset \- inset a border for a Rectangle
        !             6: .SH SYNOPSIS
        !             7: .B #include <dmd.h>
        !             8: .sp
        !             9: .B Rectangle inset (r, n) 
        !            10: .br
        !            11: .B Rectangle r;
        !            12: .br
        !            13: .B int n;
        !            14: .SH DESCRIPTION
        !            15: The
        !            16: .I inset
        !            17: function returns the Rectangle:
        !            18: .PP
        !            19: { \fIr.origin.x+n\fR, \fIr.origin.y+n\fR, \fIr.corner.x-n\fR, \fIr.corner.y-n\fR } .
        !            20: .SH EXAMPLE
        !            21: The following simple program creates a clear
        !            22: Rectangle
        !            23: .I r
        !            24: with a 5-dot wide border inside
        !            25: .IR r :
        !            26: .PP
        !            27: .RS 3
        !            28: .ft CM
        !            29: .nf
        !            30: #include <dmd.h>
        !            31: 
        !            32: Rectangle inset();
        !            33: Point add();
        !            34: 
        !            35: main()
        !            36: {
        !            37:        make_border();
        !            38:        request(KBD);
        !            39:        wait(KBD);
        !            40: }
        !            41: 
        !            42: make_border()
        !            43: {
        !            44:        Rectangle r;
        !            45:        Point s;
        !            46:        s.x = 100;
        !            47:        s.y = 100;
        !            48:        
        !            49:        r.origin = add(Drect.origin, s);
        !            50:        r.corner = add(r.origin, s);
        !            51:        rectf(&display, r, F_STORE);
        !            52:        rectf(&display, inset(r, 5), F_CLR);
        !            53:        return;
        !            54: }
        !            55: 
        !            56: .fi
        !            57: .ft R
        !            58: .RE
        !            59: .SH SEE ALSO
        !            60: structures(3R).

unix.superglobalmegacorp.com

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