X Version 11 (Release 6.1)

XmuCvtStringToGravity(X3xmu)


XmuCvtStringToGravity -- convert string to enumeration value

Synopsis

cc . . . -lXmu

#include <X11/Xmu/Converters.h>

void XmuCvtStringToGravity(args, num_args, fromVal, toVal) XrmValuePtr *args; Cardinal *num_args; XrmValuePtr fromVal; XrmValuePtr toVal;

Arguments


args
Argument ignored.

num_args
This argument must be a pointer to a Cardinal containing the value 0.

fromVal
Specifies the string to convert.

toVal
Returns the converted value.

Description

The XmuCvtStringToGravity function converts a string to an XtGravity enumeration value. The string forget and a NULL value convert to ForgetGravity, NorthWestGravity converts to NorthWestGravity, the strings NorthGravity and top convert to NorthGravity, NorthEastGravity converts to NorthEastGravity, the strings West and left convert to WestGravity, CenterGravity converts to CenterGravity, EastGravity and right convert to EastGravity, SouthWestGravity converts to SouthWestGravity, SouthGravity and bottom convert to SouthGravity, SouthEastGravity converts to SouthEastGravity, StaticGravity converts to StaticGravity, and UnmapGravity converts to UnmapGravity. The case of the string does not matter. To use this converter, include the following in your widget's class initialize procedure:
   XtAddConverter(XtRString, XtRGravity, XmuCvtStringToGravity, NULL, 0);

References

XmuCvtFunctionToCallback(X3xmu), XmuCvtStringToBackingStore(X3xmu), XmuCvtStringToColorCursor(X3xmu), XmuCvtStringToCursor(X3xmu), XmuCvtStringToJustify(X3xmu), XmuCvtStringToLong(X3xmu), XmuCvtStringToOrientation(X3xmu), XmuCvtStringToShapeStyle(X3xmu), XmuNewCvtStringToWidget(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