Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ () — MultiPersonal System R32V2

Media Vault

Software Library

Restoration Projects

Artifacts Sought



     XmArrowButtonGadget(3Xm)            XmArrowButtonGadget(3Xm)



     NAME
          XmArrowButtonGadget - the ArrowButtonGadget widget
          class.


     AES SUPPORT LEVEL
          full-use

     SYNOPSIS
          #include <Xm/ArrowBG.h>


     DESCRIPTION
          ArrowButtonGadget consists of a directional arrow
          surrounded by a border shadow.  When it is selected,
          the shadow moves to give the appearance that the
          ArrowButtonGadget has been pressed in.  When it is
          unselected, the shadow moves to give the appearance
          that the button is released, or out.


        Classes
          ArrowButtonGadget inherits behavior and resources from
          Object, RectObj, and XmGadget classes.

               The class pointer is xmArrowButtonGadgetClass.

               The class name is XmArrowButtonGadget.


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

                                  ArrowButtonGadget Resource Set
          Name                  Class               Type             Default      Access

          ______________________________________________________________________________
          XmNactivateCallback   XmCCallback         XtCallbackList   NULL         C




                                - 1 -





     XmArrowButtonGadget(3Xm)            XmArrowButtonGadget(3Xm)



          XmNarmCallback        XmCCallback         XtCallbackList   NULL         C
          XmNarrowDirection     XmCArrowDirection   int              XmARROW_UP   CSG
          XmNdisarmCallback     XmCCallback         XtCallbackList   NULL         C


          XmNactivateCallback
               Specifies a list of callbacks that is called when
               the ArrowButtonGadget is activated.  To activate
               the button, press and release mouse button 1 while
               the pointer is inside the ArrowButtonGadget.
               Activating the ArrowButtonGadget also disarms it.
               The reason sent by this callback is XmCR_ACTIVATE.

          XmNarmCallback
               Specifies a list of callbacks that is called when
               the ArrowButtonGadget is armed.  To arm this
               widget, press mouse button 1 while the pointer is
               inside the ArrowButtonGadget.  For this callback
               the reason is XmCR_ARM.

          XmNarrowDirection
               Sets the arrow direction. The values for this
               resource are:

          ⊕  XmARROW_UP.

          ⊕  XmARROW_DOWN.

          ⊕  XmARROW_LEFT.

          ⊕  XmARROW_RIGHT.

          XmNdisarmCallback
             Specifies a list of callbacks that is called when
             the ArrowButtonGadget is disarmed.  To disarm this
             widget, press and release mouse button one while the
             pointer is inside the ArrowButtonGadget.  For this
             callback  the reason is XmCR_DISARM.


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

                                        XmGadget Resource Set
          Name                    Class                   Type             Default   Access

          _________________________________________________________________________________
          XmNhelpCallback         XmCCallback             XtCallbackList   NULL      C




                                - 2 -





     XmArrowButtonGadget(3Xm)            XmArrowButtonGadget(3Xm)



          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

                                      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
          XmNy                   XmCPosition      Position    0                  CSG

                                  Object Resource Set
          Name                 Class         Type             Default   Access
          ____________________________________________________________________
          XmNdestroyCallback   XmCCallback   XtCallbackList   NULL      C


        Callback Information
          The following structure is returned with each callback:

          typedef struct
          {
            int      reason;
            XEvent   * event;
          } XmAnyCallbackStruct;


          reason Indicates why the callback was invoked.

          event  Points to the XEvent that triggered the
                 callback.  This event will be NULL for the
                 XmNactivateCallback if the callback was
                 triggered when Primitive's resource
                 XmNtraversalOn was True or if the callback was
                 accessed through the ArmAndActivate action
                 routine.


        Behavior
          <Btn1Down>:
               This action causes the arrow to be armed, and the
               shadow to be drawn in the selected state.  The
               callbacks for XmNarmCallback are called.

          <Btn1Up>:



                                - 3 -





     XmArrowButtonGadget(3Xm)            XmArrowButtonGadget(3Xm)



               If the mouse button release occurs when the
               pointer is within the ArrowButtonGadget, then the
               arrow shadows are redrawn in the unselected state.
               The callbacks for XmNactivateCallback are called,
               followed by callbacks for XmNdisarmCallback.

               If the mouse button release occurs when the
               pointer is outside the ArrowButtonGadget, the
               callbacks for XmNdisarmCallback are called.

          <Leave Window>:
               If the mouse button is pressed and the cursor
               leaves the widget's window, the arrow shadow will
               be redrawn in its unselected state.

          <Enter Window>:
               If the mouse button is pressed and the cursor
               leaves and re-enters the widget's window, the
               arrow shadow  will be drawn in the same manner as
               when the button was first armed.


        Keyboard Traversal
          For information on keyboard traversal, see the man page
          for XmGadget(3X) and its sections on behavior and
          default translations.


     RELATED INFORMATION
          Object(3X), RectObj(3X), XmCreateArrowButtonGadget(3X),
          and XmGadget(3X).
























                                - 4 -



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