Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

XdFillRectangle(3X)  —  Kubota Pacfic Computer Inc. (X Direct Graphics)

NAME

XdFillRectangle − fill a specified rectangle within a window

SYNOPSIS

void XdFillRectangle(wh, x, y, w, h, pixel, z_value, mode)
      WindowHandle   ∗wh;
      int x, y;
      unsigned int w, h;
      unsigned long pixel;
      unsigned short z_value;
      int mode;

wh Specifies the window to draw into

x, y Specifies the top left hand corner of the rectangle

w, h Specifies the width and height of the rectangle

pixel Specifies the color with which to fill the rectangle

z_value Specifies the z value used to fill the rectangle

mode Specifies the mode in which to fill the rectangle

FILLING A RECTANGLE.

The XdFillRectangle function fills the specified rectangle.  The pixel parameter specifies the color in which to fill the rectangle.  The format of pixel is the same as for standard Xlib calls: namely in a pseudo color window it is a color index, in a direct color window it has the form 0x00rrggbb, where rr, gg and bb specify the red, green, and blue indices in the color map.  The mode parameter specifies what gets drawn according to the following values:
 

Value Function
FillColor Change Frame Buffer Contents Only
FillZ Change Z Buffer Contents Only
FillZColor Change Frame Buffer and Z Buffer Contents

September 02, 1992

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