DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

SetClipRegions(D3nfb)


SetClipRegions -- NFB routine to set clip regions

Synopsis

#include "nfbWinStr.h"

void xxxSetClipRegions ( BoxPtr pbox, int nbox, DrawablePtr pDraw);

Description

SetClipRegions( ) sets the hardware clip regions on the graphics adapter.

Arguments

The arguments are:

pbox
points to an nbox series of BoxRec(D4nfb) structures that contain the areas to which the clip must be set. pbox supplies coordinates for the clip regions to be set.

nbox
contains the number of clip rectangles to be set, which is the number of pbox elements. If your hardware only supports one clip rectangle, then only one rectangle will be passed to this routine. If nbox is equal to zero, the clip rectangle is reset to its default size for the full screen. this value will be less than or equal to the clip_count value in the nfbScrnPriv(D4nfb) structure.

pDraw
pointer to an X structure called DrawableRec. This pointer is only used to access your screen private data. The ScreenRec structure is pointed to by pDraw->pScreen. Your screen private is connected to the bottom of ScreenRec.

Exit codes

None

Usage

The driver writer may provide this routine if this functionality can be done by the graphics hardware.

Version applicability

This function is supported for NFB drivers on all releases of SCO OpenServer 5, SVR5, and AIX 5L.

Source files


Driver source file
xxxclip.c

Defined in
nfbWinOps structure in xxxData.c

Prototyped in
xxxProcs.h

References

BoxRec(D4nfb), DrawFontText(D3nfb), nfbWinOps(D4nfb)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005