XmeDrawShadows(3X) UNIX System V XmeDrawShadows(3X)
NAME
XmeDrawShadows - Draws a Motif-style, three-dimensional
shadow around a widget
SYNOPSIS
#include <Xm/DrawP.h>
void XmeDrawShadows(
Display *display,
Drawable drawable,
GC top_gc,
GC bottom_gc,
Position x,
Position y,
Dimension width,
Dimension height,
Dimension shadow_thickness,
unsigned char shadow_type);
VERSION
This page documents Motif 2.1.
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
Page 1 (printed 7/20/06)
XmeDrawShadows(3X) UNIX System V XmeDrawShadows(3X)
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).
Page 2 (printed 7/20/06)