Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

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

Media Vault

Software Library

Restoration Projects

Artifacts Sought


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


 Name

    XmuCvtStringToBitmap - convert string to bitmap

 Syntax


    cc  . . .  -lXmu


    #include <X11/X.h>

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


 Arguments


    args      Sole argument specifies the Screen on which to create the
              bitmap.

    numargs  Must be the value 1.

    fromVal   Specifies the string to convert.

    toVal     Returns the converted value.


 Description

    The XmuCvtStringToBitmap function creates a bitmap (a Pixmap of depth
    one) suitable for window manager icons.

    The string argument is the name of a file in standard bitmap file format.
    For the possible filename specifications, see XmuLocateBitmapFile(Xmu).
    To use this converter, include the following in your widget's ClassIni-
    tialize procedure:

       static XtConvertArgRec screenConvertArg[] = {
           {XtBaseOffset,
           (XtPointer)XtOffset(Widget, core.screen),
           sizeof(Screen *)}
       };
       XtAddConverter(XtRString, XtRBitmap, XmuCvtStringToBitmap,
                        screenConvertArg, XtNumber(screenConvertArg));


 See also

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


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