1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027
|
'\" t
...\" DragCont.sgm /main/12 1996/09/08 20:39:46 rws $
.de P!
.fl
\!!1 setgray
.fl
\\&.\"
.fl
\!!0 setgray
.fl \" force out current output buffer
\!!save /psv exch def currentpoint translate 0 0 moveto
\!!/showpage{}def
.fl \" prolog
.sy sed -e 's/^/!/' \\$1\" bring in postscript file
\!!psv restore
.
.de pF
.ie \\*(f1 .ds f1 \\n(.f
.el .ie \\*(f2 .ds f2 \\n(.f
.el .ie \\*(f3 .ds f3 \\n(.f
.el .ie \\*(f4 .ds f4 \\n(.f
.el .tm ? font overflow
.ft \\$1
..
.de fP
.ie !\\*(f4 \{\
. ft \\*(f4
. ds f4\"
' br \}
.el .ie !\\*(f3 \{\
. ft \\*(f3
. ds f3\"
' br \}
.el .ie !\\*(f2 \{\
. ft \\*(f2
. ds f2\"
' br \}
.el .ie !\\*(f1 \{\
. ft \\*(f1
. ds f1\"
' br \}
.el .tm ? font underflow
..
.ds f1\"
.ds f2\"
.ds f3\"
.ds f4\"
.ta 8n 16n 24n 32n 40n 48n 56n 64n 72n
.TH "XmDragContext" "library call"
.SH "NAME"
\fBXmDragContext\fP \(em The DragContext widget class
.iX "XmDragContext"
.iX "widget class" "DragContext"
.SH "SYNOPSIS"
.PP
.nf
#include <Xm/DragDrop\&.h>
.fi
.SH "DESCRIPTION"
.PP
DragContexts are special widgets used in drag and drop transactions\&.
A DragContext is implemented as a widget, but a client does not
explicitly create a DragContext widget\&. Instead, a client initiates
a drag and drop transaction by calling \fBXmDragStart\fP, and this
routine initializes and returns a DragContext widget\&. There is a
unique DragContext for each drag operation\&. The toolkit frees a
DragContext when a transaction is complete; therefore, an application
programmer should not explicitly destroy a DragContext\&.
.PP
Initiator and receiver clients both use DragContexts to track
the state of a transaction\&. When the initiator and receiver of
a transaction are in the same client, they share the same
DragContext instance\&. If they are in different clients, there
are two separate DragContexts\&. In this case, the initiator calls
\fBXmDragStart\fP and the toolkit provides a DragContext for the
receiver client\&. The only resources pertinent to the receiver
are \fBXmNexportTargets\fP and \fBXmNnumExportTargets\fP\&. These
can both be passed as arguments to the \fBXmDropSiteRetrieve\fP
function to obtain information about the current drop site\&.
.PP
In general, in order to receive data, a drop site must share at least
one target type and operation in common with a drag source\&. The
DragContext resource, \fBXmNexportTargets\fP, identifies the selection
targets for the drag source\&. These export targets are compared with the
\fBXmNimportTargets\fP resource list specified by a drop site\&.
The DragContext resource, \fBXmNdragOperations\fP, identifies the
valid operations that can be applied to the source data by the
initiator\&. The drop site counterpart resource is
\fBXmNdropSiteOperations\fP, which indicates a drop site\&'s supported
operations\&.
.PP
A client uses DragIcon widgets to define the drag-over animation
effects associated with a given drag and drop transaction\&.
An initiator specifies a set of drag icons, selects a blending
model, and sets foreground and background cursor colors with
DragContext resources\&.
.PP
The type of drag-over visual used to represent a drag operation
depends on the drag protocol style\&. In preregister mode, the server
is grabbed, and either a cursor or a pixmap may be used as a drag-over
visual\&. In dynamic mode, drag-over visuals must be
implemented with the X cursor\&. If the resulting drag protocol style is
Drop Only or None and the \fBXmNdragInitiatorProtocolStyle\fP is
\fBXmDRAG_DYNAMIC\fP or \fBXmDRAG_PREFER_DYNAMIC\fP,
then a dynamic visual style (cursor) is used\&. Otherwise, a preregister
visual style is used\&.
.SS "Classes"
.PP
DragContext inherits behavior and resources from \fBCore\fP\&.
.PP
The class pointer is \fBxmDragContextClass\fP\&.
.PP
The class name is \fBXmDragContext\fP\&.
.SS "New Resources"
.PP
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 \fB\&.Xdefaults\fP file, remove the \fBXmN\fP or \fBXmC\fP prefix and use
the remaining letters\&. To specify one of the defined values for a
resource in a \fB\&.Xdefaults\fP file, remove the \fBXm\fP 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)\&.
.PP
.TS
tab() box;
c s s s s
l| l| l| l| l.
\fBXmDragContext Resource Set\fP
\fBName\fP\fBClass\fP\fBType\fP\fBDefault\fP\fBAccess\fP
_____
XmNblendModelXmCBlendModelunsigned charXmBLEND_ALLCG
_____
XmNclientDataXmCClientDataXtPointerNULLCSG
_____
XmNconvertProcXmCConvertProcXtConvertSelectionIncrProcNULLCSG
_____
XmNcursorBackgroundXmCCursorBackgroundPixeldynamicCSG
_____
XmNcursorForegroundXmCCursorForegroundPixeldynamicCSG
_____
XmNdragDropFinishCallbackXmCCallbackXtCallbackListNULLCSG
_____
XmNdragMotionCallbackXmCCallbackXtCallbackListNULLC
_____
XmNdragOperationsXmCDragOperationsunsigned charXmDROP_COPY | XmDROP_MOVEC
_____
XmNdropFinishCallbackXmCCallbackXtCallbackListNULLC
_____
XmNdropSiteEnterCallbackXmCCallbackXtCallbackListNULLC
_____
XmNdropSiteLeaveCallbackXmCCallbackXtCallbackListNULLC
_____
XmNdropStartCallbackXmCCallbackXtCallbackListNULLC
_____
XmNexportTargetsXmCExportTargetsAtom *NULLCSG
_____
XmNincrementalXmCIncrementalBooleanFalseCSG
_____
XmNinvalidCursorForegroundXmCCursorForegroundPixeldynamicCSG
_____
XmNnoneCursorForegroundXmCCursorForegroundPixeldynamicCSG
_____
XmNnumExportTargetsXmCNumExportTargetsCardinal0CSG
_____
XmNoperationChangedCallbackXmCCallbackXtCallbackListNULLC
_____
XmNoperationCursorIconXmCOperationCursorIconWidgetdynamicCSG
_____
XmNsourceCursorIconXmCSourceCursorIconWidgetdynamicCSG
_____
XmNsourcePixmapIconXmCSourcePixmapIconWidgetdynamicCSG
_____
XmNstateCursorIconXmCStateCursorIconWidgetdynamicCSG
_____
XmNtopLevelEnterCallbackXmCCallbackXtCallbackListNULLC
_____
XmNtopLevelLeaveCallbackXmCCallbackXtCallbackListNULLC
_____
XmNvalidCursorForegroundXmCCursorForegroundPixeldynamicCSG
_____
.TE
.IP "\fBXmNblendModel\fP" 10
Specifies which combination of DragIcons are blended to produce
a drag-over visual\&.
.RS
.IP "\fBXmBLEND_ALL\fP" 10
Blends all three DragIcons: the source, state and operation icons\&.
The icons are layered from top to bottom with the operation icon
on top and the source icon on the bottom\&.
The hotspot is derived from the state icon\&.
.IP "\fBXmBLEND_STATE_SOURCE\fP" 10
Blends the state and source icons only\&. The hotspot is derived
from the state icon\&.
.IP "\fBXmBLEND_JUST_SOURCE\fP" 10
Specifies that only the source icon is used, which the initiator
updates as required\&.
.IP "\fBXmBLEND_NONE\fP" 10
Specifies that no drag-over visual is generated\&. The client
tracks the drop site status through callback routines and updates
the drag-over visuals as necessary\&.
.RE
.IP "\fBXmNclientData\fP" 10
Specifies the client data to be passed to \fBXmNconvertProc\fP
when it is invoked\&.
.IP "\fBXmNconvertProc\fP" 10
If \fBXmNincremental\fP is True, specifies a procedure of type
\fBXtConvertSelectionIncrProc\fP that
converts the source data to the format(s) requested by the receiver
client\&.
The \fIwidget\fP argument passed to this procedure is the DragContext
widget\&.
The selection atom passed is _MOTIF_DROP\&.
If \fBXmNincremental\fP is False, the procedure is an
\fBXtConvertSelectionProc\fP, and should ignore the
\fImax_length\fP, \fIclient_data\fP, and \fIrequest_id\fP arguments and
should handle the conversion atomically\&.
Data returned by \fBXmNconvertProc\fP must be allocated using
\fBXtMalloc\fP, and will be freed automatically by the toolkit after the
transfer\&.
For additional information on selection conversion procedures, see \fIX
Toolkit Intrinsics\(emC Language Interface\fP\&.
.IP "\fBXmNcursorBackground\fP" 10
Specifies the background pixel value of the cursor\&.
.IP "\fBXmNcursorForeground\fP" 10
Specifies the foreground pixel value of the cursor when the state icon
is not blended\&. This resource defaults to the foreground color of the
widget passed to the \fBXmDragStart\fP function\&.
.IP "\fBXmNdragDropFinishCallback\fP" 10
Specifies the list of callbacks that are called when the transaction is
completed\&. The type of the structure whose address is passed to this
callback is \fBXmDragDropFinishCallbackStruct\fR\&. The reason sent by
the callback is \fBXmCR_DRAG_DROP_FINISH\fP\&.
.IP "\fBXmNdragMotionCallback\fP" 10
Specifies the list of callbacks that are invoked when the pointer moves\&.
The type of structure whose address is passed to this callback is
\fBXmDragMotionCallbackStruct\fR\&. The reason sent by the callback
is \fBXmCR_DRAG_MOTION\fP\&.
.IP "\fBXmNdragOperations\fP" 10
Specifies the set of valid operations associated with an initiator
client for a drag transaction\&.
This resource is a bit mask that is formed by combining one or
more of the following values using a bitwise operation such as
inclusive OR (|):
\fBXmDROP_COPY\fP, \fBXmDROP_LINK\fP, \fBXmDROP_MOVE\fP\&.
The value \fBXmDROP_NOOP\fP for this resource indicates that no
operations are valid\&.
For Text and TextField widgets, this resource is set to
\fBXmDROP_COPY\fP | \fBXmDROP_MOVE\fP; for List widgets, it is set to
\fBXmDROP_COPY\fP\&.
.IP "\fBXmNdropFinishCallback\fP" 10
Specifies the list of callbacks that are invoked when the drop
is completed\&. The type of the structure whose address is passed to
this callback is \fBXmDropFinishCallbackStruct\fR\&. The reason sent
by the callback is \fBXmCR_DROP_FINISH\fP\&.
.IP "\fBXmNdropSiteEnterCallback\fP" 10
Specifies the list of callbacks that are invoked when the pointer enters
a drop site\&. The type of the structure whose address is passed to this
callback is \fBXmDropSiteEnterCallbackStruct\fR\&. The reason sent by the
callback is \fBXmCR_DROP_SITE_ENTER\fP\&.
.IP "\fBXmNdropSiteLeaveCallback\fP" 10
Specifies the list of callbacks that are invoked when the pointer leaves
a drop site\&. The type of the structure whose address is passed to this
callback is \fBXmDropSiteLeaveCallbackStruct\fR\&. The reason sent by
the callback is \fBXmCR_DROP_SITE_LEAVE\fP\&.
.IP "\fBXmNdropStartCallback\fP" 10
Specifies the list of callbacks that are invoked when a drop is
initiated\&. The type of the structure whose address is passed to this
callback is \fBXmDropStartCallbackStruct\fR\&. The reason sent by the
callback is \fBXmCR_DROP_START\fP\&.
.IP "\fBXmNexportTargets\fP" 10
Specifies the list of target atoms associated with this source\&.
This resource identifies the selection targets this source
can be converted to\&.
.IP "\fBXmNincremental\fP" 10
Specifies a Boolean value that indicates whether the transfer on the
initiator side uses the Xt incremental selection transfer mechanism
described in \fIX Toolkit Intrinsics\(emC Language Interface\fP\&.
If the value is True, the initiator uses incremental transfer; if the
value is False, the initiator uses atomic transfer\&.
.IP "\fBXmNinvalidCursorForeground\fP" 10
Specifies the foreground pixel value of the cursor when the state
is invalid\&. This resource defaults to the value of the
\fBXmNcursorForeground\fP resource\&.
.IP "\fBXmNnoneCursorForeground\fP" 10
Specifies the foreground pixel value of the cursor when the state
is none\&. This resource defaults to the value of the
\fBXmNcursorForeground\fP resource\&.
.IP "\fBXmNnumExportTargets\fP" 10
Specifies the number of entries in the list of export targets\&.
.IP "\fBXmNoperationChangedCallback\fP" 10
Specifies the list of callbacks that are invoked when the drag
is started and when the user requests that a different operation
be applied to the drop\&.
The type of the structure whose address is passed to this callback
is \fBXmOperationChangedCallbackStruct\fR\&. The reason sent by the
callback is \fBXmCR_OPERATION_CHANGED\fP\&.
.IP "\fBXmNoperationCursorIcon\fP" 10
Specifies the cursor icon used to designate the type of operation
performed by the drag transaction\&. If NULL, \fBXmScreen\fP
resources provide default icons for copy, link, and move
operations\&.
.IP "\fBXmNsourceCursorIcon\fP" 10
Specifies the cursor icon used to represent the source when
a dynamic visual style is used\&. If NULL, the
\fBXmNdefaultSourceCursorIcon\fP resource of \fBXmScreen\fP provides
a default cursor icon\&.
.IP "\fBXmNsourcePixmapIcon\fP" 10
Specifies the pixmap icon used to represent the source when
a preregister visual style is used\&. The icon is used in conjunction
with the colormap of the widget passed to \fBXmDragStart\fP\&.
If NULL, \fBXmNsourceCursorIcon\fP is used\&.
.IP "\fBXmNstateCursorIcon\fP" 10
Specifies the cursor icon used to designate the state of a drop site\&.
If NULL, \fBXmScreen\fP resources provide default icons for a valid,
invalid, and no drop site condition\&.
.IP "\fBXmNtopLevelEnterCallback\fP" 10
Specifies the list of callbacks that are called when the pointer enters
a top-level window or root window (due to changing screens)\&. The type
of the structure whose address is passed to this callback is
\fBXmTopLevelEnterCallbackStruct\fR\&. The reason sent by the
callback is \fBXmCR_TOP_LEVEL_ENTER\fP\&.
.IP "\fBXmNtopLevelLeaveCallback\fP" 10
Specifies the list of callbacks that are called when the pointer
leaves a top level window or the root window (due to changing
screens)\&. The type of the structure whose address is
passed to this callback is \fBXmTopLevelLeaveCallbackStruct\fR\&. The
reason sent by the callback is \fBXmCR_TOP_LEVEL_LEAVE\fP\&.
.IP "\fBXmNvalidCursorForeground\fP" 10
Specifies the foreground pixel value of the cursor designated as a
valid cursor icon\&.
.SS "Inherited Resources"
.PP
DragContext inherits behavior and resources from the superclass
described in the following table\&.
For a complete description of each resource, refer
to the \fBCore\fP reference page\&.
.PP
.TS
tab() box;
c s s s s
l| l| l| l| l.
\fBCore Resource Set\fP
\fBName\fP\fBClass\fP\fBType\fP\fBDefault\fP\fBAccess\fP
_____
XmNacceleratorsXmCAcceleratorsXtAcceleratorsdynamicCSG
_____
XmNancestorSensitiveXmCSensitiveBooleandynamicG
_____
XmNbackgroundXmCBackgroundPixeldynamicCSG
_____
XmNbackgroundPixmapXmCPixmapPixmapXmUNSPECIFIED_PIXMAPCSG
_____
XmNborderColorXmCBorderColorPixelXtDefaultForegroundCSG
_____
XmNborderPixmapXmCPixmapPixmapXmUNSPECIFIED_PIXMAPCSG
_____
XmNborderWidthXmCBorderWidthDimension0CSG
_____
XmNcolormapXmCColormapColormapdynamicCG
_____
XmNdepthXmCDepthintdynamicCG
_____
XmNdestroyCallbackXmCCallbackXtCallbackListNULLC
_____
XmNheightXmCHeightDimensiondynamicCSG
_____
XmNinitialResourcesPersistentXmCInitialResourcesPersistentBooleanTrueC
_____
XmNmappedWhenManagedXmCMappedWhenManagedBooleanTrueCSG
_____
XmNscreenXmCScreenScreen *dynamicCG
_____
XmNsensitiveXmCSensitiveBooleanTrueCSG
_____
XmNtranslationsXmCTranslationsXtTranslationsdynamicCSG
_____
XmNwidthXmCWidthDimensiondynamicCSG
_____
XmNxXmCPositionPosition0CSG
_____
XmNyXmCPositionPosition0CSG
_____
.TE
.SS "Callback Information"
.PP
Each of the DragContext callbacks has an associated callback
structure\&.
.PP
A pointer to the following structure is passed to the
\fBXmNdragDropFinishCallback\fP callback:
.PP
.nf
typedef struct
{
int \fIreason\fP;
XEvent *\fIevent\fP;
Time \fItimeStamp\fP;
}XmDragDropFinishCallbackStruct, *XmDragDropFinishCallback;
.fi
.IP "\fIreason\fP" 10
Indicates why the callback was invoked
.IP "\fIevent\fP" 10
Points to the \fBXEvent\fP that triggered the callback
.IP "\fBtimeStamp\fP" 10
Specifies the time at which either the drag or the drop was completed
.PP
A pointer to the following structure is passed to callbacks for
\fBXmNdragMotionCallback\fP:
.PP
.nf
typedef struct
{
int \fIreason\fP;
XEvent *\fIevent\fP;
Time \fItimeStamp\fP;
unsigned char \fIoperation\fP;
unsigned char \fIoperations\fP;
unsigned char \fIdropSiteStatus\fP;
Position \fIx\fP;
Position \fIy\fP;
}XmDragMotionCallbackStruct, *XmDragMotionCallback;
.fi
.IP "\fIreason\fP" 10
Indicates why the callback was invoked\&.
.IP "\fIevent\fP" 10
Points to the \fBXEvent\fP that triggered the callback\&.
.IP "\fBtimeStamp\fP" 10
Specifies the timestamp of the logical event\&.
.IP "\fIoperation\fP" 10
Identifies an operation\&.
.IP "" 10
If the toolkit has just called a DropSite\&'s \fBXmNdragProc\fP, the
toolkit initializes \fIoperation\fP to the value of the \fIoperation\fP
member of the \fBXmDragProcCallbackStruct\fR at the time the DropSite\&'s
\fBXmNdragProc\fP returns\&.
.IP "" 10
If the toolkit has not called an \fBXmNdragProc\fP and the pointer is
within an active drop site, the toolkit initializes \fIoperation\fP by
selecting an operation from the bitwise AND of the initial value of the
\fIoperations\fP member and the value of the DropSite\&'s
\fBXmNdropSiteOperations\fP resource\&.
The toolkit searches this set first for \fBXmDROP_MOVE\fP, then for
\fBXmDROP_COPY\fP, then for \fBXmDROP_LINK\fP, and initializes
\fIoperation\fP to the first operation it finds in the set\&.
If the toolkit finds none of these operations in the set, it initializes
\fIoperation\fP to \fBXmDROP_NOOP\fP\&.
.IP "" 10
If the toolkit has not called an \fBXmNdragProc\fP and the pointer is
not within an active drop site, the toolkit initializes \fIoperation\fP
by selecting an operation from the initial value of the \fIoperations\fP
member\&.
The toolkit searches this set first for \fBXmDROP_MOVE\fP, then for
\fBXmDROP_COPY\fP, then for \fBXmDROP_LINK\fP, and initializes
\fIoperation\fP to the first operation it finds in the set\&.
If the toolkit finds none of these operations in the set, it initializes
\fIoperation\fP to \fBXmDROP_NOOP\fP\&.
.IP "\fIoperations\fP" 10
Indicates the set of operations supported for the source data\&.
.IP "" 10
If the toolkit has just called a DropSite\&'s \fBXmNdragProc\fP, the
toolkit initializes \fIoperations\fP to the bitwise AND of the
DropSite\&'s \fBXmNdropOperations\fP and the value of the \fIoperations\fP
member of the \fBXmDragProcCallbackStruct\fR at the time the DropSite\&'s
\fBXmNdragProc\fP returns\&.
If the resulting set of operations is empty, the toolkit initializes
\fIoperations\fP to \fBXmDROP_NOOP\fP\&.
.IP "" 10
If the toolkit has not called an \fBXmNdragProc\fP and the user does not
select an operation (by pressing a modifier key), the toolkit
initializes \fIoperations\fP to the value of the DragContext\&'s
\fBXmNdragOperations\fP resource\&.
.IP "" 10
If the toolkit has not called an \fBXmNdragProc\fP and the user does
select an operation, the toolkit initializes \fIoperations\fP to the
bitwise AND of the corresponding operation and the value of the
DragContext\&'s \fBXmNdragOperations\fP resource\&.
If the resulting set of operations is empty, the toolkit initializes
\fIoperations\fP to \fBXmDROP_NOOP\fP\&.
.IP "\fBdropSiteStatus\fP" 10
Indicates whether or not a drop site is valid\&.
.IP "" 10
If the toolkit has just called a DropSite\&'s \fBXmNdragProc\fP, the
toolkit initializes \fBdropSiteStatus\fP to the value of the
\fBdropSiteStatus\fP member of the \fBXmDragProcCallbackStruct\fR at the
time the DropSite\&'s \fBXmNdragProc\fP returns\&.
.IP "" 10
If the toolkit has not called an \fBXmNdragProc\fP, it initializes
\fBdropSiteStatus\fP as follows:
the toolkit initializes \fBdropSiteStatus\fP to \fBXmNO_DROP_SITE\fP if
the pointer is over an inactive drop site or is not over a drop site\&.
The toolkit initializes \fBdropSiteStatus\fP to \fBXmDROP_SITE_VALID\fP
if all the following conditions are met:
.RS
.IP " \(bu" 6
The pointer is over an active drop site\&.
.IP " \(bu" 6
The DragContext\&'s \fBXmNexportTargets\fP and the DropSite\&'s
\fBXmNimportTargets\fP are compatible\&.
.IP " \(bu" 6
The initial value of the \fIoperation\fP member is not
\fBXmDROP_NOOP\fP\&.
.RE
.IP "" 10
Otherwise, the toolkit initializes \fBdropSiteStatus\fP to
\fBXmDROP_SITE_INVALID\fP\&.
.PP
A pointer to the following structure is passed for the
\fBXmNdropFinishCallback\fP callback:
.PP
.nf
typedef struct
{
int \fIreason\fP;
XEvent *\fIevent\fP;
Time \fItimeStamp\fP;
unsigned char \fIoperation\fP;
unsigned char \fIoperations\fP;
unsigned char \fIdropSiteStatus\fP;
unsigned char \fIdropAction\fP;
unsigned char \fIcompletionStatus\fP;
}XmDropFinishCallbackStruct, *XmDropFinishCallback;
.fi
.IP "\fIreason\fP" 10
Indicates why the callback was invoked\&.
.IP "\fIevent\fP" 10
Points to the \fBXEvent\fP that triggered the callback\&.
.IP "\fBtimeStamp\fP" 10
Specifies the time at which the drop was completed\&.
.IP "\fIoperation\fP" 10
Identifies an operation\&.
.IP "" 10
If the pointer is over an active drop site when the drop begins, the
toolkit initializes \fIoperation\fP to the value of the \fIoperation\fP
member of the \fBXmDropProcCallbackStruct\fR at the time the DropSite\&'s
\fBXmNdropProc\fP returns\&.
.IP "" 10
If the pointer is not over an active drop site when the drop begins, the
toolkit initializes \fIoperation\fP by selecting an operation from the
initial value of the \fIoperations\fP member\&.
The toolkit searches this set first for \fBXmDROP_MOVE\fP, then for
\fBXmDROP_COPY\fP, then for \fBXmDROP_LINK\fP, and initializes
\fIoperation\fP to the first operation it finds in the set\&.
If it finds none of these operations in the set, it initializes
\fIoperation\fP to \fBXmDROP_NOOP\fP\&.
.IP "\fIoperations\fP" 10
Indicates the set of operations supported for the source data\&.
.IP "" 10
If the pointer is over an active drop site when the drop begins, the
toolkit initializes \fIoperations\fP to the bitwise AND of the
DropSite\&'s \fBXmNdropOperations\fP and the value of the \fIoperations\fP
member of the \fBXmDropProcCallbackStruct\fR at the time the DropSite\&'s
\fBXmNdropProc\fP returns\&.
If the resulting set of operations is empty, the toolkit initializes
\fIoperations\fP to \fBXmDROP_NOOP\fP\&.
.IP "" 10
If the pointer is not over an active drop site when the drop begins and
if the user does not select an operation (by pressing a modifier key),
the toolkit initializes \fIoperations\fP to the value of the
DragContext\&'s \fBXmNdragOperations\fP resource\&.
.IP "" 10
If the pointer is not over an active drop site when the drop begins and
if the user does select an operation, the toolkit initializes
\fIoperations\fP to the bitwise AND of the corresponding operation and
the value of the DragContext\&'s \fBXmNdragOperations\fP resource\&.
If the resulting set of operations is empty, the toolkit initializes
\fIoperations\fP to \fBXmDROP_NOOP\fP\&.
.IP "\fBdropSiteStatus\fP" 10
Indicates whether or not a drop site is valid\&.
.IP "" 10
If the pointer is over an active drop site when the drop begins, the
toolkit initializes \fBdropSiteStatus\fP to the value of the
\fBdropSiteStatus\fP member of the \fBXmDropProcCallbackStruct\fR at the
time the DropSite\&'s \fBXmNdropProc\fP returns\&.
.IP "" 10
If the pointer is not over an active drop site when the drop begins, the
toolkit initializes \fBdropSiteStatus\fP to \fBXmNO_DROP_SITE\fP\&.
.IP "\fBdropAction\fP" 10
Identifies the drop action\&. The values are \fBXmDROP\fP,
\fBXmDROP_CANCEL\fP, \fBXmDROP_HELP\fP, and \fBXmDROP_INTERRUPT\fP\&.
The \fBXmDROP_INTERRUPT\fP value is currently unsupported; if
specified, it will be interpreted as an \fBXmDROP_CANCEL\fP\&.
.IP "\fBcompletionStatus\fP" 10
An IN/OUT member that indicates the status of the drop action\&.
After the last callback procedure has returned, the final value of this
member determines what visual transition effects will be applied\&.
There are two values:
.RS
.IP "\fBXmDROP_SUCCESS\fP" 10
The drop was successful\&.
.IP "\fBXmDROP_FAILURE\fP" 10
The drop was unsuccessful\&.
.RE
.PP
A pointer to the following structure is passed to callbacks for
\fBXmNdropSiteEnterCallback\fP:
.PP
.nf
typedef struct
{
int \fIreason\fP;
XEvent *\fIevent\fP;
Time \fItimeStamp\fP;
unsigned char \fIoperation\fP;
unsigned char \fIoperations\fP;
unsigned char \fIdropSiteStatus\fP;
Position \fIx\fP;
Position \fIy\fP;
}XmDropSiteEnterCallbackStruct, *XmDropSiteEnterCallback;
.fi
.IP "\fIreason\fP" 10
Indicates why the callback was invoked\&.
.IP "\fIevent\fP" 10
Points to the \fBXEvent\fP that triggered the callback\&.
.IP "\fBtimeStamp\fP" 10
Specifies the time the crossing event occurred\&.
.IP "\fIoperation\fP" 10
Identifies an operation\&.
.IP "" 10
If the toolkit has just called a DropSite\&'s \fBXmNdragProc\fP, the
toolkit initializes \fIoperation\fP to the value of the \fIoperation\fP
member of the \fBXmDragProcCallbackStruct\fR at the time the DropSite\&'s
\fBXmNdragProc\fP returns\&.
.IP "" 10
If the toolkit has not called an \fBXmNdragProc\fP, it initializes
\fIoperation\fP by selecting an operation from the bitwise AND of the
initial value of the \fIoperations\fP member and the value of the
DropSite\&'s \fBXmNdropSiteOperations\fP resource\&.
The toolkit searches this set first for \fBXmDROP_MOVE\fP, then for
\fBXmDROP_COPY\fP, then for \fBXmDROP_LINK\fP, and initializes
\fIoperation\fP to the first operation it finds in the set\&.
If the toolkit finds none of these operations in the set, it initializes
\fIoperation\fP to \fBXmDROP_NOOP\fP\&.
.IP "\fIoperations\fP" 10
Indicates the set of operations supported for the source data\&.
.IP "" 10
If the toolkit has just called a DropSite\&'s \fBXmNdragProc\fP, the
toolkit initializes \fIoperations\fP to the bitwise AND of the
DropSite\&'s \fBXmNdropOperations\fP and the value of the \fIoperations\fP
member of the \fBXmDragProcCallbackStruct\fR at the time the DropSite\&'s
\fBXmNdragProc\fP returns\&.
If the resulting set of operations is empty, the toolkit initializes
\fIoperations\fP to \fBXmDROP_NOOP\fP\&.
.IP "" 10
If the toolkit has not called an \fBXmNdragProc\fP and the user does not
select an operation (by pressing a modifier key), the toolkit
initializes \fIoperations\fP to the value of the DragContext\&'s
\fBXmNdragOperations\fP resource\&.
.IP "" 10
If the toolkit has not called an \fBXmNdragProc\fP and the user does
select an operation, the toolkit initializes \fIoperations\fP to the
bitwise AND of the corresponding operation and the value of the
DragContext\&'s \fBXmNdragOperations\fP resource\&.
If the resulting set of operations is empty, the toolkit initializes
\fIoperations\fP to \fBXmDROP_NOOP\fP\&.
.IP "\fBdropSiteStatus\fP" 10
Indicates whether or not a drop site is valid\&.
.IP "" 10
If the toolkit has just called a DropSite\&'s \fBXmNdragProc\fP, the
toolkit initializes \fBdropSiteStatus\fP to the value of the
\fBdropSiteStatus\fP member of the \fBXmDragProcCallbackStruct\fR at the
time the DropSite\&'s \fBXmNdragProc\fP returns\&.
.IP "" 10
If the toolkit has not called \fBXmNdragProc\fP, it initializes
\fBdropSiteStatus\fP to \fBXmDROP_SITE_VALID\fP
if the DragContext\&'s \fBXmNexportTargets\fP and the DropSite\&'s
\fBXmNimportTargets\fP are compatible and if the initial value of the
\fIoperation\fP member is not \fBXmDROP_NOOP\fP\&.
Otherwise, the toolkit initializes \fBdropSiteStatus\fP to
\fBXmDROP_SITE_INVALID\fP\&.
.IP "\fIx\fP" 10
Indicates the x-coordinate of the pointer in root window coordinates\&.
.IP "\fIy\fP" 10
Indicates the y-coordinate of the pointer in root window coordinates\&.
.PP
A pointer to the following structure is passed to callbacks for
\fBXmNdropSiteLeaveCallback\fP:
.PP
.nf
typedef struct
{
int \fIreason\fP;
XEvent *\fIevent\fP;
Time \fItimeStamp\fP;
}XmDropSiteLeaveCallbackStruct, *XmDropSiteLeaveCallback;
.fi
.IP "\fIreason\fP" 10
Indicates why the callback was invoked
.IP "\fIevent\fP" 10
Points to the \fBXEvent\fP that triggered the callback
.IP "\fBtimeStamp\fP" 10
Specifies the timestamp of the logical event
.PP
A pointer to the following structure is passed for the
\fBXmNdropStartCallback\fP callback:
.PP
.nf
typedef struct
{
int \fIreason\fP;
XEvent *\fIevent\fP;
Time \fItimeStamp\fP;
unsigned char \fIoperation\fP;
unsigned char \fIoperations\fP;
unsigned char \fIdropSiteStatus\fP;
unsigned char \fIdropAction\fP;
Position \fIx\fP;
Position \fIy\fP;
}XmDropStartCallbackStruct, *XmDropStartCallback;
.fi
.IP "\fIreason\fP" 10
Indicates why the callback was invoked\&.
.IP "\fIevent\fP" 10
Points to the \fBXEvent\fP that triggered the callback\&.
.IP "\fBtimeStamp\fP" 10
Specifies the time at which the drag was completed\&.
.IP "\fIoperation\fP" 10
Identifies an operation\&.
.IP "" 10
If the pointer is over an active drop site when the drop begins, the
toolkit initializes \fIoperation\fP to the value of the \fIoperation\fP
member of the \fBXmDropProcCallbackStruct\fR at the time the DropSite\&'s
\fBXmNdropProc\fP returns\&.
.IP "" 10
If the pointer is not over an active drop site when the drop begins, the
toolkit initializes \fIoperation\fP by selecting an operation from the
initial value of the \fIoperations\fP member\&.
The toolkit searches this set first for \fBXmDROP_MOVE\fP, then for
\fBXmDROP_COPY\fP, then for \fBXmDROP_LINK\fP, and initializes
\fIoperation\fP to the first operation it finds in the set\&.
If it finds none of these operations in the set, it initializes
\fIoperation\fP to \fBXmDROP_NOOP\fP\&.
.IP "\fIoperations\fP" 10
Indicates the set of operations supported for the source data\&.
.IP "" 10
If the pointer is over an active drop site when the drop begins, the
toolkit initializes \fIoperations\fP to the bitwise AND of the
DropSite\&'s \fBXmNdropOperations\fP and the value of the \fIoperations\fP
member of the \fBXmDropProcCallbackStruct\fR at the time the DropSite\&'s
\fBXmNdropProc\fP returns\&.
If the resulting set of operations is empty, the toolkit initializes
\fIoperations\fP to \fBXmDROP_NOOP\fP\&.
.IP "" 10
If the pointer is not over an active drop site when the drop begins and
if the user does not select an operation (by pressing a modifier key),
the toolkit initializes \fIoperations\fP to the value of the
DragContext\&'s \fBXmNdragOperations\fP resource\&.
.IP "" 10
If the pointer is not over an active drop site when the drop begins and
if the user does select an operation, the toolkit initializes
\fIoperations\fP to the bitwise AND of the corresponding operation and
the value of the DragContext\&'s \fBXmNdragOperations\fP resource\&.
If the resulting set of operations is empty, the toolkit initializes
\fIoperations\fP to \fBXmDROP_NOOP\fP\&.
.IP "\fBdropSiteStatus\fP" 10
Indicates whether or not a drop site is valid\&.
.IP "" 10
If the pointer is over an active drop site when the drop begins, the
toolkit initializes \fBdropSiteStatus\fP to the value of the
\fBdropSiteStatus\fP member of the \fBXmDropProcCallbackStruct\fR at the
time the DropSite\&'s \fBXmNdropProc\fP returns\&.
.IP "" 10
If the pointer is not over an active drop site when the drop begins, the
toolkit initializes \fBdropSiteStatus\fP to \fBXmNO_DROP_SITE\fP\&.
.IP "" 10
This field is invalid if the \fBdropAction\fP field is set to
\fBXmDROP_CANCEL\fP\&.
.IP "\fBdropAction\fP" 10
An IN/OUT member that identifies the drop action\&.
The values are \fBXmDROP\fP, \fBXmDROP_CANCEL\fP, \fBXmDROP_HELP\fP,
and \fBXmDROP_INTERRUPT\fP\&. The value of \fBdropAction\fP can be
modified to change the action actually initiated\&.
The value \fBXmDROP_INTERRUPT\fP is currently unsupported; if
specified, it will be interpreted as an \fBXmDROP_CANCEL\fP\&.
.IP "\fIx\fP" 10
Indicates the x-coordinate of the pointer in root window coordinates\&.
.IP "\fIy\fP" 10
Indicates the y-coordinate of the pointer in root window coordinates\&.
.PP
A pointer to the following structure is passed to the
\fBXmNoperationChangedCallback\fP callback:
.PP
.nf
typedef struct
{
int \fIreason\fP;
XEvent *\fIevent\fP;
Time \fItimeStamp\fP;
unsigned char \fIoperation\fP;
unsigned char \fIoperations\fP;
unsigned char \fIdropSiteStatus\fP;
}XmOperationChangedCallbackStruct, *XmOperationChangedCallback;
.fi
.IP "\fIreason\fP" 10
Indicates why the callback was invoked\&.
.IP "\fIevent\fP" 10
Points to the \fBXEvent\fP that triggered the callback\&.
.IP "\fBtimeStamp\fP" 10
Specifies the time at which the crossing event occurred\&.
.IP "\fIoperation\fP" 10
Identifies an operation\&.
.IP "" 10
If the toolkit has just called a DropSite\&'s \fBXmNdragProc\fP, the
toolkit initializes \fIoperation\fP to the value of the \fIoperation\fP
member of the \fBXmDragProcCallbackStruct\fR at the time the DropSite\&'s
\fBXmNdragProc\fP returns\&.
.IP "" 10
If the toolkit has not called an \fBXmNdragProc\fP, and the pointer is
within an active drop site, the toolkit initializes \fIoperation\fP by
selecting an operation from the bitwise AND of the initial value of the
\fIoperations\fP member and the value of the DropSite\&'s
\fBXmNdropSiteOperations\fP resource\&.
The toolkit searches this set first for \fBXmDROP_MOVE\fP, then for
\fBXmDROP_COPY\fP, then for \fBXmDROP_LINK\fP, and initializes
\fIoperation\fP to the first operation it finds in the set\&.
If the toolkit finds none of these operations in the set, it initializes
\fIoperation\fP to \fBXmDROP_NOOP\fP\&.
.IP "" 10
If the toolkit has not called an \fBXmNdragProc\fP, and the pointer is
not within an active drop site, the toolkit initializes \fIoperation\fP
by selecting an operation from the initial value of the \fIoperations\fP
member\&.
The toolkit searches this set first for \fBXmDROP_MOVE\fP, then for
\fBXmDROP_COPY\fP, then for \fBXmDROP_LINK\fP, and initializes
\fIoperation\fP to the first operation it finds in the set\&.
If the toolkit finds none of these operations in the set, it initializes
\fIoperation\fP to \fBXmDROP_NOOP\fP\&.
.IP "\fIoperations\fP" 10
Indicates the set of operations supported for the source data\&.
.IP "" 10
If the toolkit has just called a DropSite\&'s \fBXmNdragProc\fP, the
toolkit initializes \fIoperations\fP to the bitwise AND of the
DropSite\&'s \fBXmNdropOperations\fP and the value of the \fIoperations\fP
member of the \fBXmDragProcCallbackStruct\fR at the time the DropSite\&'s
\fBXmNdragProc\fP returns\&.
If the resulting set of operations is empty, the toolkit initializes
\fIoperations\fP to \fBXmDROP_NOOP\fP\&.
.IP "" 10
If the toolkit has not called an \fBXmNdragProc\fP, and the user does not
select an operation (by pressing a modifier key), the toolkit
initializes \fIoperations\fP to the value of the DragContext\&'s
\fBXmNdragOperations\fP resource\&.
.IP "" 10
If the toolkit has not called an \fBXmNdragProc\fP, and the user does
select an operation, the toolkit initializes \fIoperations\fP to the
bitwise AND of the corresponding operation and the value of the
DragContext\&'s \fBXmNdragOperations\fP resource\&.
If the resulting set of operations is empty, the toolkit initializes
\fIoperations\fP to \fBXmDROP_NOOP\fP\&.
.IP "\fBdropSiteStatus\fP" 10
Indicates whether or not a drop site is valid\&.
.IP "" 10
If the toolkit has just called a DropSite\&'s \fBXmNdragProc\fP, the
toolkit initializes \fBdropSiteStatus\fP to the value of the
\fBdropSiteStatus\fP member of the \fBXmDragProcCallbackStruct\fR at the
time the DropSite\&'s \fBXmNdragProc\fP returns\&.
.IP "" 10
If the toolkit has not called an \fBXmNdragProc\fP it initializes
\fBdropSiteStatus\fP to \fBXmNO_DROP_SITE\fP if
the pointer is over an inactive drop site or is not over a drop site\&.
The toolkit initializes \fBdropSiteStatus\fP to \fBXmDROP_SITE_VALID\fP
if all the following conditions are met:
.RS
.IP " \(bu" 6
The pointer is over an active drop site
.IP " \(bu" 6
The DragContext\&'s \fBXmNexportTargets\fP and the DropSite\&'s
\fBXmNimportTargets\fP are compatible
.IP " \(bu" 6
The initial value of the \fIoperation\fP member is not
\fBXmDROP_NOOP\fP
.RE
.IP "" 10
Otherwise, the toolkit initializes \fBdropSiteStatus\fP to
\fBXmDROP_SITE_INVALID\fP\&.
.PP
A pointer to the following structure is passed to callbacks for
\fBXmNtopLevelEnterCallback\fP:
.PP
.nf
typedef struct
{
int \fIreason\fP;
XEvent *\fIevent\fP;
Time \fItimeStamp\fP;
Screen \fIscreen\fP;
Window \fIwindow\fP;
Position \fIx\fP;
Position \fIy\fP;
unsigned char \fIdragProtocolStyle\fP;
}XmTopLevelEnterCallbackStruct, *XmTopLevelEnterCallback;
.fi
.IP "\fIreason\fP" 10
Indicates why the callback was invoked\&.
.IP "\fIevent\fP" 10
Points to the \fBXEvent\fP that triggered the callback\&.
.IP "\fBtimeStamp\fP" 10
Specifies the timestamp of the logical event\&.
.IP "\fIscreen\fP" 10
Specifies the screen associated with the top-level window or root
window being entered\&.
.IP "\fIwindow\fP" 10
Specifies the ID of the top-level window or root window being entered\&.
.IP "\fIx\fP" 10
Indicates the x-coordinate of the pointer in root window coordinates\&.
.IP "\fIy\fP" 10
Indicates the y-coordinate of the pointer in root window coordinates\&.
.IP "\fBdragProtocolStyle\fP" 10
Specifies the protocol style adopted by the initiator\&. The values
are \fBXmDRAG_DROP_ONLY\fP, \fBXmDRAG_DYNAMIC\fP, \fBXmDRAG_NONE\fP,
and \fBXmDRAG_PREREGISTER\fP\&.
.PP
A pointer to the following structure is passed to callbacks for
\fBXmNtopLevelLeaveCallback\fP:
.PP
.nf
typedef struct
{
int \fIreason\fP;
XEvent *\fIevent\fP;
Time \fItimeStamp\fP;
Screen \fIscreen\fP;
Window \fIwindow\fP;
}XmTopLevelLeaveCallbackStruct, *XmTopLevelLeaveCallback;
.fi
.IP "\fIreason\fP" 10
Indicates why the callback was invoked
.IP "\fIevent\fP" 10
Points to the \fBXEvent\fP that triggered the callback
.IP "\fBtimeStamp\fP" 10
Specifies the timestamp of the logical event
.IP "\fIscreen\fP" 10
Specifies a screen associated with the top-level window or root
window being left
.IP "\fIwindow\fP" 10
Specifies the ID of the top-level window or root window being left
.PP
.SS "Translations"
.PP
The XmDragContext translations are described in the following list\&.
The following key names are listed in the
X standard key event translation table syntax\&.
This format is the one used by Motif to
specify the widget actions corresponding to a given key\&.
A brief overview of the format is provided under
\fBVirtualBindings\fP(3)\&.
For a complete description of the format, please refer to the
X Toolkit Instrinsics Documentation\&.
.IP "\fBButton1<Enter>\fP:" 10
DragMotion()
.IP "\fBButton1<Leave>\fP:" 10
DragMotion()
.IP "\fBButton1<Motion>\fP:" 10
DragMotion()
.IP "\fBButton2<Enter>\fP:" 10
DragMotion()
.IP "\fBButton2<Leave>\fP:" 10
DragMotion()
.IP "\fBButton2<Motion>\fP:" 10
DragMotion()
.IP "\fB<Btn2Up>\fP:" 10
FinishDrag()
.IP "\fB<Btn1Up>\fP:" 10
FinishDrag()
.IP "\fB<Key>\fP\fBReturn\fP:" 10
FinishDrag()
.IP "\fB<Key>\fP\fB<osfActivate>\fP:" 10
FinishDrag()
.IP "\fB<BtnDown>\fP:" 10
IgnoreButtons()
.IP "\fB<BtnUp>\fP:" 10
IgnoreButtons()
.IP "\fB:\fP\fB<Key>\fP\fB<osfCancel>\fP:" 10
CancelDrag()
.IP "\fB:\fP\fB<Key>\fP\fB<osfHelp>\fP:" 10
HelpDrag()
.IP "\fB:\fP\fB<Key>\fP\fB<osfUp>\fP:" 10
DragKey(\fBUp\fP)
.IP "\fB:\fP\fB<Key>\fP\fB<osfDown>\fP:" 10
DragKey(\fBDown\fP)
.IP "\fB:\fP\fB<Key>\fP\fB<osfLeft>\fP:" 10
DragKey(\fBLeft\fP)
.IP "\fB:\fP\fB<Key>\fP\fB<osfRight>\fP:" 10
DragKey(\fBRight\fP)
.IP "\fB:<KeyUp>\fP:" 10
DragKey(\fBUpdate\fP)
.IP "\fB:<KeyDown>\fP:" 10
DragKey(\fBUpdate\fP)
.SS "Action Routines"
.PP
The XmDragContext action routines are
.IP "CancelDrag():" 10
Cancels the drag operation and frees the associated
DragContext\&.
.IP "DragKey(\fBString\fR\fB)\fP" 10
If the value of \fBString\fR is \fBLeft\fP, \fBRight\fP, \fBUp\fP, or
\fBDown\fP, this action
moves the dragged object in the corresponding location\&. Any other values of
\fBString\fR are ignored\&.
.IP "DragMotion():" 10
Drags the selected data as the pointer is moved\&.
.IP "FinishDrag():" 10
Finishes the drag operation and starts the drop operation\&.
.IP "HelpDrag():" 10
Initiates a conditional drop that enables the receiver to provide
help information to the user\&. The user can cancel or continue the
drop operation in response to this information\&.
.SS "Virtual Bindings"
.PP
The bindings for virtual keys are vendor specific\&.
For information about bindings for virtual buttons and keys,
see \fBVirtualBindings\fP(3)\&.
.SH "RELATED INFORMATION"
.PP
\fBCore\fP(3),
\fBXmDisplay\fP(3),
\fBXmDragCancel\fP(3),
\fBXmDragIcon\fP(3),
\fBXmDragStart\fP(3),
\fBXmDropSite\fP(3),
\fBXmDropTransfer\fP(3), and
\fBXmScreen\fP(3)\&.
...\" created by instant / docbook-to-man, Sun 22 Dec 1996, 20:22
|