Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ () — MultiPersonal System R32V2

Media Vault

Software Library

Restoration Projects

Artifacts Sought



     XmGadget(3Xm)                                  XmGadget(3Xm)



     NAME
          XmGadget - the Gadget widget class.


     AES SUPPORT LEVEL
          full-use

     SYNOPSIS
          #include <Xm/Xm.h>


     DESCRIPTION
          Gadget is a widget class used as a supporting
          superclass for other gadget classes.  It handles shadow
          border drawing and highlighting, traversal activation
          and deactivation, and various callback lists needed by
          gadgets.

          The color and pixmap resources defined by XmManager are
          directly used by gadgets.  If XtSetValues is used to
          change one of the resources for a manager widget, then
          all of the gadget children within the manager also
          change.


        Classes
          Gadget inherits behavior and resources from Object and
          RectObj classes.

               The class pointer is xmGadgetClass.

               The class name is XmGadget.


        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).

                                        XmGadget Resource Set
          Name                    Class                   Type             Default   Access



                                - 1 -





     XmGadget(3Xm)                                  XmGadget(3Xm)




          _________________________________________________________________________________
          XmNhelpCallback         XmCCallback             XtCallbackList   NULL      C
          XmNhighlightOnEnter     XmCHighlightOnEnter     Boolean          False     CSG
          XmNhighlightThickness   XmCHighlightThickness   short            0         CSG
          XmNshadowThickness      XmCShadowThickness      short            2         CSG
          XmNtraversalOn          XmCTraversalOn          Boolean          False     CSG
          XmNuserData             XmCUserData             caddr_t          NULL      CSG


          XmNhelpCallback
               Specifies the list of callbacks that is called
               when the help key sequence is pressed.  The reason
               sent by the callback is XmCR_HELP.

          XmNhighlightOnEnter
               Specifies whether or not to draw border
               highlighting.  This resource is ignored if
               XmNtraversalOn is True.

          XmNhighlightThickness
               Specifies the thickness of the highlighting
               rectangle.

          XmNshadowThickness
               Specifies the size of the drawn border shadow.

          XmNtraversalOn
               Specifies traversal activation for this gadget.

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


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

                                      RectObj Resource Set
          Name                   Class            Type        Default            Access
          _____________________________________________________________________________
          XmNancestorSensitive   XmCSensitive     Boolean     XtCopyFromParent   CSG
          XmNborderWidth         XmCBorderWidth   Dimension   0                  CSG
          XmNheight              XmCHeight        Dimension   0                  CSG
          XmNsensitive           XmCSensitive     Boolean     True               CSG
          XmNwidth               XmCWidth         Dimension   0                  CSG
          XmNx                   XmCPosition      Position    0                  CSG





                                - 2 -





     XmGadget(3Xm)                                  XmGadget(3Xm)



          XmNy                   XmCPosition      Position    0                  CSG

                                  Object Resource Set
          Name                 Class         Type             Default   Access

          ____________________________________________________________________
          XmNdestroyCallback   XmCCallback   XtCallbackList   NULL      C


        Behavior
          Gadgets cannot have translations associated with them.
          Because of this, a Gadget's behavior is determined by
          the Manager widget into which the Gadget is placed.
          The following are types of events which are caught by a
          Manager widget and forwarded to a Gadget:

          ⊕  ButtonPress

          ⊕  ButtonRelease

          ⊕  EnterNotify

          ⊕  LeaveNotify

          ⊕  FocusIn

          ⊕  FocusOut

          ⊕  MotionNotify

             Refer to XmManager(3X) for a discussion of the
             translations supported by all Manager widgets.


     RELATED INFORMATION
          Object(3X), RectObj(3X), and XmManager(3X).



















                                - 3 -



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