Name

XmeDrawPolygonShadow — Draws a Motif-style, three-dimensional shadow around a polygon

Synopsis

#include <Xm/DrawP.h>
void XmeDrawPolygonShadow(display, drawable, top_gc, bottom_gc, points, point_count, shadow_thickness, shadow_type);

DESCRIPTION

XmeDrawPolygonShadow places a Motif-style shadow around a drawn polygon or around a polygon-shaped widget.

display 

Specifies the display on which drawable is rendered.

drawable 

Specifies the drawable (typically, a widget window) around which the shadow will be drawn.

top_gc 

Specifies the graphics context for the shadows appearing on the upper-left portions of the polygon.

bottom_gc 

Specifies the graphics context for the shadows appearing on the bottom-right portions of the polygon.

points 

Specifies the coordinates of each point in the bounding polygon.

point_count 

Specifies the number of points in the bounding polygon.

shadow_thickness 

Specifies the shadow thickness, in pixels.

shadow_type 

Specifies the kind of shadow to render. The possible values are as follows:

XmSHADOW_IN 

Draws a shadow so that it appears inset. This means that the bottom shadow visuals and top shadow visuals are reversed.

XmSHADOW_OUT 

Draws a shadow so that it appears outset.

XmSHADOW_ETCHED_IN 

Draws a shadow using a double line giving the effect of a line etched into the window. The thickness of the double line is equal to the value of shadow_thick.

XmSHADOW_ETCHED_OUT 

Draws a frame by using a double line to give the effect of a line coming out of the window. The thickness of the double line is equal to the value of shadow_thick.

RELATED

XmeDrawShadows(3).