HOOPS/3dGS I.M. Interface

     << Back      Full Index      Forward >>


Draw_Window_Frame


Functions

void Draw_Window_Frame (HT_Rendition *nr, HT_Int_Rectangle *extent, HT_Int_Rectangle *frame, HC_BOOLEAN calc)

Function Documentation

void Draw_Window_Frame HT_Rendition *  nr,
HT_Int_Rectangle *  extent,
HT_Int_Rectangle *  frame,
HC_BOOLEAN  calc
 

Draws the frame around a window.

Parameters:
nr - Rendition. Passed by reference.
extent - Rectangle describing widow in integer device coordinates. Passed by reference.
frame - Frame thickness, in integer device coordinate units. Returned by function. Passed by reference.
calc - Calculate-only flag.

DETAILS

This is the standard default method for the "draw window frames" callback point.

It draws the frame around the window specified by extent, clipped to the clip rectangle specified in the rendition nr, provided that calc is false. The frame consists of two solid polylines in the form of concentric rectangles, each drawn with the device's default line weight, in the color of the window contrast color attribute contained in the rendition nr. The outer polyline is at the edge of the clipped window. The spacing between the two polylines is the default line weight.

The function returns the default line weight in all four components of frame.

If calc is true then the function draws nothing, but still returns the default line weight in all four components of frame.

NOTES

RESTRICTIONS

See also:
Main Index

HOOPS/3dGS I.M. Interface

     << Back      Full Index      Forward >>