XmuCvtStringToShapeStyle(X3xmu) X Version 11 (Release 6.1)
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
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.