Supported Browsers Home   
point_t Previous   
region_t Next   
Type Definitions Up   

rect_t

Declaration

typedef struct {
    int left;
    int top;
    int right;
    int bottom;
    } rect_t

Prototype In

mgraph.h

Description

Structure describing an integer rectangle. Note that MGL defines and uses rectangles such that the bottom and right coordinates are not actually included in the pixels that define a raster coordinate rectangle. This allows for correct handling of overlapping rectangles without drawing any pixels twice.

Members

left

Left coordinate of the rectangle

top

Top coordinate of the rectangle

right

Right coordinate of the rectangle

bottom

Bottom coordinate of the rectangle

 

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com