X Version 11 (Release 6.1)

XmuCvtStringToCursor(X3xmu)


XmuCvtStringToCursor -- convert string to cursor

Synopsis

cc . . . -lXmu

#include <X11/Xmu/Converters.h>

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

Arguments


args
Specifies the required conversion argument, the screen.

num_args
Specifies the number of required conversion arguments, which is 1.

fromVal
Specifies the string to convert.

toVal
Returns the converted value.

Description

The XmuCvtStringToCursor function converts a string to a Cursor. The string can either be a standard cursor name formed by removing the ``XC_'' prefix from any of the cursor defines listed on the XCreateFontCursor, a font name and glyph index in decimal of the form "FONT fontname index [[font] index]", or a bitmap filename acceptable to XmuLocateBitmapFile. To use this converter, include the following in your widget's ClassInitialize procedure:
   static XtConvertArgRec screenConvertArg[] = {
     {XtBaseOffset,
     (XtPointer)XtOffsetOf(WidgetRec, core.screen),
     sizeof(Screen *)}
   };
   

XtAddConverter(XtRString, XtRCursor, XmuCvtStringToCursor, screenConvertArg, XtNumber(screenConvertArg));

References

XCreateFontCursor(X3xlib), XmuCvtFunctionToCallback(X3xmu), XmuCvtStringToBackingStore(X3xmu), XmuCvtStringToColorCursor(X3xmu), XmuCvtStringToGravity(X3xmu), XmuCvtStringToJustify(X3xmu), XmuCvtStringToLong(X3xmu), XmuCvtStringToOrientation(X3xmu), XmuCvtStringToShapeStyle(X3xmu), XmuCvtStringToWidget(X3xmu), XmuNewCvtStringToWidget(X3xmu), XmuReshapeWidget(X3xmu)
Xlib - C Language X Interface


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