Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XPolyReg(XS) — OpenDesktop Software Development System 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

XCreateGC(XS)

XDrawPoint(XS)

XDrawRectangle(XS)


 XPolygonRegion(XS)       X Version 11 (Release 5)         XPolygonRegion(XS)
                                6 January 1993


 Name

    XPolygonRegion - generate regions

 Syntax


    Region XPolygonRegion(points, n, fill_rule)
          XPoint points[];
          int n;
          int fill_rule;

    XClipBox(r, rect_return)
          Region r;
          XRectangle *rect_return;


 Arguments


    fillrule   Specifies the fill-rule you want to set for the specified GC.
                You can pass EvenOddRule or WindingRule.

    n           Specifies the number of points in the polygon.

    points      Specifies an array of points.

    r           Specifies the region.

    rectreturn Returns the smallest enclosing rectangle.

 Description

    The XPolygonRegion function returns a region for the polygon defined by
    the points array.  For an explanation of fillrule, see XCreateGC(XS).

    The XClipBox function returns the smallest rectangle enclosing the speci-
    fied region.

 See also

    XCreateGC(XS), XDrawPoint(XS), XDrawRectangle(XS)
    Xlib - C Language X Interface


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026