Name

XmeDrawShadows — Draws a Motif-style, three-dimensional shadow around a widget

Synopsis

#include <Xm/DrawP.h>
void XmeDrawShadows(display, drawable, top_gc, bottom_gc, x, y, width, height, shadow_thickness, shadow_type);

DESCRIPTION

XmeDrawShadows places a three-dimensional, Motif-style shadow around a widget. This shadow is one of the fundamental visuals that gives Motif widgets their characteristic look and feel.

display 

Specifies the display.

drawable 

Specifies the drawable to draw the shadow around.

top_gc 

Specifies the graphics context for the upper-left portion of the shadow.

bottom_gc 

Specifies the graphics context for the bottom-right portion of the shadow.

x 

Specifies the x-coordinate of the leftmost point of the shadow.

y 

Specifies the y-coordinate of the top of the shadow.

width 

Specifies the width of the shadow rectangle, in pixels.

height 

Specifies the height of the shadow rectangle, in pixels.

shadow_thickness 

Specifies the shadow thickness in pixels. The shadow is drawn from the outside in. The dimensions of the outside of the shadow are described by x, yx, width, and height.

shadow_type 

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

XmSHADOW_IN 

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

XmSHADOW_OUT 

Draws shadow so that it appears outset.

XmSHADOW_ETCHED_IN 

Draws shadow by using a double line to give the effect of a line etched into the window. The thickness of the double line is equal to the value of shadow_thickness.

XmSHADOW_ETCHED_OUT 

Draws shadow 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_thickness.

RELATED

XmeDrawPolygonShadow(3).