[ Previous | Next | Contents | Glossary | Home | Search ]
Motif 2.1 Widget Writer's Guide


XmeDrawPolygonShadow

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

Format

#include <Xm/DrawP.h>
void XmeDrawPolygonShadowDisplay
*displayDrawable drawableGC
top_gcGC bottom_gcXPoint
*pointsint point_countDimension
shadow_thicknessunsigned char
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).


[ Previous | Next | Contents | Glossary | Home | Search ]