Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

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

Media Vault

Software Library

Restoration Projects

Artifacts Sought


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


 Name

    XmuCvtStringToGravity - convert string to enumeration value

 Syntax


    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.

    numargs  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 For-
    getGravity, "NorthWestGravity" converts to NorthWestGravity, the strings
    "NorthGravity" and "top" convert to NorthGravity, "NorthEastGravity" con-
    verts to NorthEastGravity, the strings "West" and "left" convert to West-
    Gravity, "CenterGravity" converts to CenterGravity, "EastGravity" and
    "right" convert to EastGravity, "SouthWestGravity" converts to SouthWest-
    Gravity, "SouthGravity" and "bottom" convert to SouthGravity, "SouthEast-
    Gravity" converts to SouthEastGravity, "StaticGravity" converts to Sta-
    ticGravity, 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);


 See also

    XmuCvtFunctionToCallback(Xmu), XmuCvtStringToBackingStore(Xmu),
    XmuCvtStringToColorCursor(Xmu), XmuCvtStringToCursor(Xmu),
    XmuCvtStringToJustify(Xmu), XmuCvtStringToLong(Xmu),
    XmuCvtStringToOrientation(Xmu), XmuCvtStringToShapeStyle(Xmu),
    XmuNewCvtStringToWidget(Xmu), XmuReshapeWidget(Xmu),
    XmuCvtStringToWidget(Xmu)
    Xlib - C Language X Interface


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