Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ CvtStoSS.Xmu.z() — OpenDesktop Software Development System 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought


 XmuCvtStringToShapeStyle(Xmu)  6 January 1993  XmuCvtStringToShapeStyle(Xmu)
                          X Version 11 (Release 5)


 Name

    XmuCvtStringToShapeStyle - convert string to integer shape style

 Syntax


    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.

    numargs  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);


 See also

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


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026