DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
X Version 11 (Release 6.1)

XmuCvtStringToShapeStyle(X3xmu)


XmuCvtStringToShapeStyle -- convert string to integer shape style

Synopsis

cc . . . -lXmu

#include <X11/Xmu/Converters.h>

Boolean XmuCvtStringToShapeStyle(dpy, args, num_args, from, toVal, data) Display *dpy; XrmValue *args; Cardinal *num_args; XrmValue *fromVal; XrmValue *toVal; XtPointer *data;

Arguments


dpy
Display to use for conversion warnings.

args
Argument is ignored.

num_args
Argument is ignored.

fromVal
Value to convert from.

toVal
Place to store the converted value.

data
Argument is ignored.

Description

The XmuCvtStringToShapeStyle function converts a string to an integer shape style. The string rectangle converts to XmuShapeRectangle, oval converts to XmuShapeOval, ellipse converts to XmuShapeEllipse, and roundedRectangle converts to XmuShapeRoundedRectangle. The case of the string does not matter. To use this converter, include the following in your widget's ClassInitialize procedure:
   XtSetTypeConverter(XtRString, XtRShapeStyle,
        XmuCvtStringToShapeStyle, NULL, 0, XtCacheNone, NULL);

References

XmuCvtFunctionToCallback(X3xmu), XmuCvtStringToBackingStore(X3xmu), XmuCvtStringToBackingStore(X3xmu), XmuReshapeWidget(X3xmu), XmuCvtStringToWidget(X3xmu)
Xlib - C Language X Interface


© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004