Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ () — MultiPersonal System R32V2

Media Vault

Software Library

Restoration Projects

Artifacts Sought



     XmManager(3Xm)                                XmManager(3Xm)



     NAME
          XmManager - the Manager widget class.


     AES SUPPORT LEVEL
          full-use

     SYNOPSIS
          #include <Xm/Xm.h>


     DESCRIPTION
          Manager is a widget class used as a supporting
          superclass for other widget classes.  It supports the
          visual resources, graphics contexts, and traversal
          resources necessary for the graphics and traversal
          mechanisms.


        Classes
          Manager inherits behavior and resources from Core
          Composite, and Constraint classes.

          The class pointer is xmManagerWidgetClass.

          The class name is XmManager.

        New Resources
          The following table defines a set of widget resources
          used by the programmer to specify data.  The programmer
          can also set the resource values for the inherited
          classes to set attributes for this widget.  To
          reference a resource by name or by class in a
          .Xdefaults file, remove the XmN or XmC prefix and use
          the remaining letters.  To specify one of the defined
          values for a resource in a .Xdefaults file, remove the
          Xm prefix and use the remaining letters (in either
          lower case or upper case, but include any underscores
          between words).  The codes in the access column
          indicate if the given resource can be set at creation
          time (C), set by using XtSetValues (S), retrieved by
          using XtGetValues (G), or is not applicable (N/A).

                                              XmManager Resource Set
          Name                    Class                   Type             Default                Access

          ______________________________________________________________________________________________
          XmNbottomShadowColor    XmCForeground           Pixel            dynamic                CSG
          XmNbottomShadowPixmap   XmCBottomShadowPixmap   Pixmap           XmUNSPECIFIED_PIXMAP   CSG
          XmNforeground           XmCForeground           Pixel            dynamic                CSG
          XmNhelpCallback         XmCCallback             XtCallbackList   NULL                   C




                                - 1 -





     XmManager(3Xm)                                XmManager(3Xm)



          XmNhighlightColor       XmCForeground           Pixel            Black                  CSG
          XmNhighlightPixmap      XmCHighlightPixmap      Pixmap           dynamic                CSG
          XmNshadowThickness      XmCShadowThickness      short            0                      CSG
          XmNtopShadowColor       XmCBackground           Pixel            dynamic                CSG
          XmNtopShadowPixmap      XmCTopShadowPixmap      Pixmap           XmUNSPECIFIED_PIXMAP   CSG
          XmNuserData             XmCUserData             caddr_t          NULL                   CSG


          XmNbottomShadowColor
               Specifies the color to use to draw the bottom and
               right sides of the border shadow.  This color is
               used if the XmNbottomShadowPixmap resource is
               NULL.

          XmNbottomShadowPixmap
               Specifies the pixmap to use to draw the bottom and
               right sides of the border shadow.

          XmNforeground
               Specifies the foreground drawing color used by
               manager widgets.

          XmNhelpCallback
               Specifies the list of callbacks that are called
               when the help key sequence is pressed.  The reason
               sent by this callback is XmCR_HELP.  There is not
               a translation bound to this resource.  It is up to
               the application to install a translation for help.

          XmNhighlightColor
               Specifies the color of the highlighting rectangle.
               This color is used if the highlight pixmap
               resource is XmUNSPECIFIED_PIXMAP.

          XmNhighlightPixmap
               Specifies the pixmap used to draw the highlighting
               rectangle.

          XmNshadowThickness
               Specifies the thickness of the drawn border
               shadow.

          XmNtopShadowColor
               Specifies the color to use to draw the top and
               left sides of the border shadow. This color is
               used if the XmNtopShadowPixmap resource is NULL.

          XmNtopShadowPixmap
               Specifies the pixmap to use to draw the top and
               left sides of the border shadow.

          XmNuserData



                                - 2 -





     XmManager(3Xm)                                XmManager(3Xm)



               Allows the application to attach any necessary
               specific data to the widget.  An internally unused
               resource.


        Dynamic Color Defaults
          The foreground, background, top shadow, and bottom
          shadow resources are dynamically defaulted.  If no
          color data is specified, the colors are automatically
          generated.  On a monochrome system, a black and white
          color scheme is generated.  On a color system, a set of
          four colors are generated which display the correct
          shading for the 3-D visuals.

          If the background is the only color specified for a
          widget, the top shadow, bottom shadow, and foreground
          colors are generated to give the 3-D appearance.  The
          color generation works best with non-saturated colors.
          Using pure red, green, or blue yields poor results.

          Colors are generated at creation only.  Resetting the
          background through XtSetValues will not regenerate the
          other colors.


        Inherited Resources
          Manager inherits the following resources from the named
          superclasses.  For a complete description of these
          resources, refer to the man page for that superclass.

                                 Composite Resource Set
                Name                Class            Type       Default   Access

          ______________________________________________________________________
          XmNinsertPosition   XmCInsertPosition   XmRFunction   NULL      CSG

                                               Core Resource Set
                  Name                  Class                Type              Default          Access
          ____________________________________________________________________________________________
          XmNaccelerators        XmCAccelerators        XtTranslations   NULL                   CSG
          XmNancestorSensitive   XmCSensitive           Boolean          True                   G
          XmNbackground          XmCBackground          Pixel            dynamic                CSG
          XmNbackgroundPixmap    XmCPixmap              Pixmap           XmUNSPECIFIED_PIXMAP   CSG
          XmNborderColor         XmCBorderColor         Pixel            Black                  CSG
          XmNborderPixmap        XmCPixmap              Pixmap           XmUNSPECIFIED_PIXMAP   CSG
          XmNborderWidth         XmCBorderWidth         Dimension        0                      CSG
          XmNcolormap            XmCColormap            Colormap         XtCopyFromParent       CG
          XmNdepth               XmCDepth               int              XtCopyFromParent       CG
          XmNdestroyCallback     XmCCallback            XtCallbackList   NULL                   C
          XmNheight              XmCHeight              Dimension        0                      CSG





                                - 3 -





     XmManager(3Xm)                                XmManager(3Xm)



          XmNmappedWhenManaged   XmCMappedWhenManaged   Boolean          True                   CSG
          XmNscreen              XmCScreen              Pointer          XtCopyScreen           CG
          XmNsensitive           XmCSensitive           Boolean          True                   CSG
          XmNtranslations        XmCTranslations        XtTranslations   NULL                   CSG
          XmNwidth               XmCWidth               Dimension        0                      CSG
          XmNx                   XmCPosition            Position         0                      CSG
          XmNy                   XmCPosition            Position         0                      CSG


        Behavior
          The following set of translations are used by Manager
          widgets which have Gadget children.  Since Gadgets
          cannot have translations associated with them, it is
          the responsibility of the Manager widget to intercept
          the events of interest and pass them to the appropriate
          Gadget child.

          Shift<Key>Tab:
               Moves the focus to the first item contained within
               the previous tab group.  If the beginning of the
               tab group list is reached, it will wrap to the end
               of the tab group list.

          <Key>Tab:
               Moves the focus to the first item contained within
               the next tab group.  If the current tab group is
               the last entry in the tab group list, it will wrap
               to the beginning of the tab group list.

          <Key>Up or <Key>Left:
               Moves the keyboard focus to the previous Manager
               widget or gadget within the current tab group.
               The previous widget or gadget is the one which is
               the previous entry in the tab group's list of
               children.  Wrapping will occur, if necessary.

          <Key>Down or <Key>Right:
               Moves the Keyboard focus to the next Manager
               widget or gadget within the current tab group.
               The previous widget or gadget is the one which is
               the next entry in the tab group's list of
               children.  Wrapping will occur, if necessary.

          <Key>Home:
               Moves the keyboard focus to the first Manager
               widget or gadget in the current tab group.


        Default Translations
          The following are translations used by all manager widgets.

          <EnterWindow>: ManagerEnter()
          <FocusOut>:    ManagerFocusOut()


                                - 4 -





     XmManager(3Xm)                                XmManager(3Xm)



          <FocusIn>:     ManagerFocusIn()

          The following are the translations necessary to provide gadget event
          processing:

          <Key>space:    ManagerGadgetSelect()
          <Key>Return:   ManagerGadgetSelect()
          Shift<Key>Tab: ManagerGadgetPrevTabGroup()
          <Key>Tab:      ManagerGadgetNextTabGroup()
          <Key>Up:       ManagerGadgetTraversePrev()
          <Key>Down:     ManagerGadgetTraverseNext()
          <Key>Left:     ManagerGadgetTraversePrev()
          <Key>Right:    ManagerGadgetTraverseNext()
          <Key>Home:     ManagerGadgetTraverseHome()


     RELATED INFORMATION
          Composite(3X), Constraint(3X), Core(3X), and
          XmGadget3X).




































                                - 5 -



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