*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->HP-UX 11i man pages -> XmDropTransfer (3)              
Title
Content
Arch
Section
 

Contents


 XmDropTransfer(library call)                   XmDropTransfer(library call)




 NAME    [Toc]    [Back]
      XmDropTransfer - The DropTransfer widget class

 SYNOPSIS    [Toc]    [Back]
      #include <Xm/DragDrop.h>

 DESCRIPTION    [Toc]    [Back]
      DropTransfer provides a set of resources that identifies the
      procedures and associated information required by the toolkit in order
      to process and complete a drop transaction.  Clients should not
      explicitly create a DropTransfer widget.  Instead, a client initiates
      a transfer by calling XmDropTransferStart, which initializes and
      returns a DropTransfer widget. If this function is called within an
      XmNdropProc callback, the actual transfers are initiated after the
      callback returns. Even if no data needs to be transferred,
      XmDropTransferStart needs to be called (typically with no arguments,
      or just setting XmNtransferStatus) to finish the drag and drop
      transaction.

      The XmNdropTransfers resource specifies a transfer list that describes
      the requested target types for the source data. A transfer list is an
      array of XmDropTransferEntryRec structures, each of which identifies a
      target type. The transfer list is analogous to the MULTIPLE selections
      capability defined in the Inter-Client Communication Conventions
      Manual (ICCCM).

      The DropTransfer resource, XmNtransferProc, specifies a transfer
      procedure of type XtSelectionCallbackProc that delivers the requested
      selection data. This procedure operates in conjunction with the
      underlying Xt selection capabilities and is called for each target in
      the transfer list. Additional target types can be requested after a
      transfer is initiated by calling the XmDropTransferAdd function.

    Structures    [Toc]    [Back]
      An XmDropTransferEntry is a pointer to the following structure of type
      XmDropTransferEntryRec, which identifies a selection target associated
      with a given drop transaction:

      typedef struct
      {
              XtPointer       client_data;
              Atom target;
      } XmDropTransferEntryRec, *XmDropTransferEntry;

      client_data
                Specifies any additional information required by this
                selection target

      target    Specifies a selection target associated with the drop
                operation




                                    - 1 -       Formatted:  January 24, 2005






 XmDropTransfer(library call)                   XmDropTransfer(library call)




    Classes    [Toc]    [Back]
      DropTransfer inherits behavior and a resource from Object.

      The class pointer is xmDropTransferObjectClass.

      The class name is XmDropTransfer.

    New Resources    [Toc]    [Back]
      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 lowercase or
      uppercase, 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).

      ____________________________________________________________________________________________________
      |                                   XmDropTransfer Resource Set                                     |
      |Name                  Class                 Type                       Default              Access |
      |____________________|_____________________|__________________________|____________________|________|
      |XmNdropTransfers    | XmCDropTransfers    | XmDropTransferEntryRec * | NULL               | CG     |
      |____________________|_____________________|__________________________|____________________|________|
      |XmNincremental      | XmCIncremental      | Boolean                  | False              | CSG    |
      |____________________|_____________________|__________________________|____________________|________|
      |XmNnumDropTransfers | XmCNumDropTransfers | Cardinal                 | 0                  | CSG    |
      |____________________|_____________________|__________________________|____________________|________|
      |XmNtransferProc     | XmCTransferProc     | XtSelectionCallbackProc  | NULL               | CSG    |
      |____________________|_____________________|__________________________|____________________|________|
      |XmNtransferStatus   | XmCTransferStatus   | unsigned char            | XmTRANSFER_SUCCESS | CSG    |
      |____________________|_____________________|__________________________|____________________|________|
      |____________________|_____________________|__________________________|____________________|________|

      XmNdropTransfers    [Toc]    [Back]
                Specifies the address of an array of drop transfer entry
                records. The drop transfer is complete when all the entries
                in the list have been processed.

      XmNincremental    [Toc]    [Back]
                Specifies a Boolean value that indicates whether the
                transfer on the receiver side uses the Xt incremental
                selection transfer mechanism described in X Toolkit
                Intrinsics-C Language Interface.  If the value is True, the
                receiver uses incremental transfer; if the value is False,
                the receiver uses atomic transfer.

      XmNnumDropTransfers    [Toc]    [Back]
                Specifies the number of entries in XmNdropTransfers. If this



                                    - 2 -       Formatted:  January 24, 2005






 XmDropTransfer(library call)                   XmDropTransfer(library call)




                resource is set to 0 at any time, the transfer is considered
                complete. The value of XmNtransferStatus determines the
                completion handshaking process.

      XmNtransferProc    [Toc]    [Back]
                Specifies a procedure of type XtSelectionCallbackProc that
                delivers the requested selection values.  The widget
                argument passed to this procedure is the DropTransfer
                widget.  The selection atom passed is _MOTIF_DROP.  For
                additional information on selection callback procedures, see
                X Toolkit Intrinsics-C Language Interface.

      XmNtransferStatus    [Toc]    [Back]
                Specifies the current status of the drop transfer. The
                client updates this value when the transfer ends and
                communicates the value to the initiator. The possible values
                are

                XmTRANSFER_SUCCESS    [Toc]    [Back]
                          The transfer succeeded.

                XmTRANSFER_FAILURE    [Toc]    [Back]
                          The transfer failed.

    Inherited Resources    [Toc]    [Back]
      DropTransfer inherits behavior and a resource from Object.  For a
      complete description of this resource, refer to the Object reference
      page.

      ______________________________________________________________________
      |                        Object Resource Set                          |
      |Name                 Class         Type             Default   Access |
      |___________________|_____________|________________|_________|________|
      |XmNdestroyCallback | XmCCallback | XtCallbackList | NULL    | C      |
      |___________________|_____________|________________|_________|________|
      |___________________|_____________|________________|_________|________|

 RELATED INFORMATION    [Toc]    [Back]
      Object(3), XmDisplay(3), XmDragContext(3), XmDragIcon(3),
      XmDropSite(3), XmDropTransferAdd(3), and XmDropTransferStart(3).


                                    - 3 -       Formatted:  January 24, 2005
[ Back ]
 Similar pages
Name OS Title
XmFileSelectionBox Tru64 The FileSelectionBox widget class
XmForm Tru64 The Form widget class
XmFrame Tru64 The Frame widget class
XmGadget Tru64 The Gadget widget class
Core Tru64 The Core widget class
Composite Tru64 The Composite widget class
ApplicationShell Tru64 The ApplicationShell widget class
tmframe IRIX the Frame widget class
tmform IRIX the Form widget class
XmLabel Tru64 The Label widget class
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service