34 #ifndef __APPLEEVENTS__
55 #if PRAGMA_STRUCT_ALIGN
56 #pragma options align = mac68k
57 #elif PRAGMA_STRUCT_PACKPUSH
59 #elif PRAGMA_STRUCT_PACK
71 typedef UInt32 DragItemRef;
72 typedef OSType FlavorType;
82 kDragHasLeftSenderWindow =
99 kDragBehaviorNone = 0,
100 kDragBehaviorZoomBackAnimation =
113 kDragRegionAndImage = (1L << 4)
125 kDragStandardTranslucency = 0L,
141 kDragRegionBegin = 1,
158 kZoomNoAcceleration = 0,
173 flavorSenderOnly = (1 << 0),
189 kDragFlavorTypeHFS = FOUR_CHAR_CODE(
'hfs '),
191 FOUR_CHAR_CODE(
'phfs'),
198 kDragPromisedFlavorFindFile =
199 FOUR_CHAR_CODE(
'rWm1'),
201 FOUR_CHAR_CODE(
'fssP')
206 kDragPseudoCreatorVolumeOrDirectory =
207 FOUR_CHAR_CODE(
'MACS'),
209 FOUR_CHAR_CODE(
'disk'),
211 FOUR_CHAR_CODE(
'fold')
223 flavorTypeDirectory =
224 FOUR_CHAR_CODE(
'diry')
236 kFlavorTypeClippingName = FOUR_CHAR_CODE(
239 FOUR_CHAR_CODE(
'clfn'),
241 FOUR_CHAR_CODE(
'fdtt'),
257 kDragTrackingEnterHandler = 1,
273 kDragActionNothing = 0L,
274 kDragActionCopy = 1L,
275 kDragActionAlias = (1L << 1),
276 kDragActionGeneric = (1L << 2),
277 kDragActionPrivate = (1L << 3),
278 kDragActionMove = (1L << 4),
279 kDragActionDelete = (1L << 5),
280 kDragActionAll = (
long)0xFFFFFFFF
283 typedef UInt32 DragActions;
320 typedef STACK_UPP_TYPE(DragTrackingHandlerProcPtr) DragTrackingHandlerUPP;
321 typedef STACK_UPP_TYPE(DragReceiveHandlerProcPtr) DragReceiveHandlerUPP;
330 DragTrackingHandlerUPP
332 #if !OPAQUE_UPP_TYPES
335 uppDragTrackingHandlerProcInfo = 0x00003FA0
338 inline DragTrackingHandlerUPP
342 (ProcPtr)(userRoutine), uppDragTrackingHandlerProcInfo,
343 GetCurrentArchitecture());
346 #define NewDragTrackingHandlerUPP(userRoutine) \
347 (DragTrackingHandlerUPP) NewRoutineDescriptor( \
348 (ProcPtr)(userRoutine), uppDragTrackingHandlerProcInfo, \
349 GetCurrentArchitecture())
361 DragReceiveHandlerUPP
363 #if !OPAQUE_UPP_TYPES
366 uppDragReceiveHandlerProcInfo = 0x00000FE0
369 inline DragReceiveHandlerUPP
373 (ProcPtr)(userRoutine), uppDragReceiveHandlerProcInfo,
374 GetCurrentArchitecture());
377 #define NewDragReceiveHandlerUPP(userRoutine) \
378 (DragReceiveHandlerUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), \
379 uppDragReceiveHandlerProcInfo, \
380 GetCurrentArchitecture())
394 #if !OPAQUE_UPP_TYPES
401 #define DisposeDragTrackingHandlerUPP(userUPP) DisposeRoutineDescriptor(userUPP)
415 #if !OPAQUE_UPP_TYPES
422 #define DisposeDragReceiveHandlerUPP(userUPP) DisposeRoutineDescriptor(userUPP)
436 void *handlerRefCon,
DragRef theDrag,
437 DragTrackingHandlerUPP userUPP);
438 #if !OPAQUE_UPP_TYPES
442 void *handlerRefCon,
DragRef theDrag,
443 DragTrackingHandlerUPP userUPP)
445 return (OSErr)CALL_FOUR_PARAMETER_UPP(userUPP, uppDragTrackingHandlerProcInfo,
450 #define InvokeDragTrackingHandlerUPP(message, theWindow, handlerRefCon, \
452 (OSErr) CALL_FOUR_PARAMETER_UPP((userUPP), uppDragTrackingHandlerProcInfo, \
453 (message), (theWindow), (handlerRefCon), \
468 DragRef theDrag, DragReceiveHandlerUPP userUPP);
469 #if !OPAQUE_UPP_TYPES
472 void *handlerRefCon,
DragRef theDrag,
473 DragReceiveHandlerUPP userUPP)
475 return (OSErr)CALL_THREE_PARAMETER_UPP(userUPP, uppDragReceiveHandlerProcInfo,
479 #define InvokeDragReceiveHandlerUPP(theWindow, handlerRefCon, theDrag, \
481 (OSErr) CALL_THREE_PARAMETER_UPP((userUPP), uppDragReceiveHandlerProcInfo, \
482 (theWindow), (handlerRefCon), (theDrag))
486 #if CALL_NOT_IN_CARBON || OLDROUTINENAMES
488 #define NewDragTrackingHandlerProc(userRoutine) \
489 NewDragTrackingHandlerUPP(userRoutine)
490 #define NewDragReceiveHandlerProc(userRoutine) \
491 NewDragReceiveHandlerUPP(userRoutine)
492 #define CallDragTrackingHandlerProc(userRoutine, message, theWindow, \
493 handlerRefCon, theDrag) \
494 InvokeDragTrackingHandlerUPP(message, theWindow, handlerRefCon, theDrag, \
496 #define CallDragReceiveHandlerProc(userRoutine, theWindow, handlerRefCon, \
498 InvokeDragReceiveHandlerUPP(theWindow, handlerRefCon, theDrag, userRoutine)
508 void *dragSendRefCon,
509 DragItemRef theItemRef,
512 void *dragInputRefCon,
518 void *dragDrawingRefCon,
533 #if !OPAQUE_UPP_TYPES
536 uppDragSendDataProcInfo = 0x00003FE0
542 uppDragSendDataProcInfo,
543 GetCurrentArchitecture());
546 #define NewDragSendDataUPP(userRoutine) \
548 NewRoutineDescriptor((ProcPtr)(userRoutine), uppDragSendDataProcInfo, \
549 GetCurrentArchitecture())
563 #if !OPAQUE_UPP_TYPES
566 uppDragInputProcInfo = 0x00003FE0
572 (ProcPtr)(userRoutine), uppDragInputProcInfo, GetCurrentArchitecture());
575 #define NewDragInputUPP(userRoutine) \
576 (DragInputUPP) NewRoutineDescriptor( \
577 (ProcPtr)(userRoutine), uppDragInputProcInfo, GetCurrentArchitecture())
591 #if !OPAQUE_UPP_TYPES
594 uppDragDrawingProcInfo = 0x000FFFA0
601 (ProcPtr)(userRoutine), uppDragDrawingProcInfo, GetCurrentArchitecture());
604 #define NewDragDrawingUPP(userRoutine) \
606 NewRoutineDescriptor((ProcPtr)(userRoutine), uppDragDrawingProcInfo, \
607 GetCurrentArchitecture())
621 #if !OPAQUE_UPP_TYPES
628 #define DisposeDragSendDataUPP(userUPP) DisposeRoutineDescriptor(userUPP)
642 #if !OPAQUE_UPP_TYPES
649 #define DisposeDragInputUPP(userUPP) DisposeRoutineDescriptor(userUPP)
663 #if !OPAQUE_UPP_TYPES
670 #define DisposeDragDrawingUPP(userUPP) DisposeRoutineDescriptor(userUPP)
684 DragItemRef theItemRef,
DragRef theDrag,
685 DragSendDataUPP userUPP);
686 #if !OPAQUE_UPP_TYPES
689 DragItemRef theItemRef,
DragRef theDrag,
690 DragSendDataUPP userUPP)
692 return (OSErr)CALL_FOUR_PARAMETER_UPP(userUPP, uppDragSendDataProcInfo,
693 theType, dragSendRefCon, theItemRef,
697 #define InvokeDragSendDataUPP(theType, dragSendRefCon, theItemRef, theDrag, \
700 CALL_FOUR_PARAMETER_UPP((userUPP), uppDragSendDataProcInfo, (theType), \
701 (dragSendRefCon), (theItemRef), (theDrag))
715 DragRef theDrag, DragInputUPP userUPP);
716 #if !OPAQUE_UPP_TYPES
719 void *dragInputRefCon,
DragRef theDrag,
720 DragInputUPP userUPP)
722 return (OSErr)CALL_FOUR_PARAMETER_UPP(userUPP, uppDragInputProcInfo, mouse,
723 modifiers, dragInputRefCon, theDrag);
726 #define InvokeDragInputUPP(mouse, modifiers, dragInputRefCon, theDrag, \
728 (OSErr) CALL_FOUR_PARAMETER_UPP((userUPP), uppDragInputProcInfo, (mouse), \
729 (modifiers), (dragInputRefCon), (theDrag))
744 void *dragDrawingRefCon,
DragRef theDrag,
745 DragDrawingUPP userUPP);
746 #if !OPAQUE_UPP_TYPES
751 void *dragDrawingRefCon,
DragRef theDrag,
752 DragDrawingUPP userUPP)
754 return (OSErr)CALL_SEVEN_PARAMETER_UPP(
755 userUPP, uppDragDrawingProcInfo, message,
showRegion, showOrigin,
756 hideRegion, hideOrigin, dragDrawingRefCon, theDrag);
759 #define InvokeDragDrawingUPP(message, showRegion, showOrigin, hideRegion, \
760 hideOrigin, dragDrawingRefCon, theDrag, userUPP) \
762 CALL_SEVEN_PARAMETER_UPP((userUPP), uppDragDrawingProcInfo, (message), \
763 (showRegion), (showOrigin), (hideRegion), \
764 (hideOrigin), (dragDrawingRefCon), (theDrag))
768 #if CALL_NOT_IN_CARBON || OLDROUTINENAMES
770 #define NewDragSendDataProc(userRoutine) NewDragSendDataUPP(userRoutine)
771 #define NewDragInputProc(userRoutine) NewDragInputUPP(userRoutine)
772 #define NewDragDrawingProc(userRoutine) NewDragDrawingUPP(userRoutine)
773 #define CallDragSendDataProc(userRoutine, theType, dragSendRefCon, theItemRef, \
775 InvokeDragSendDataUPP(theType, dragSendRefCon, theItemRef, theDrag, \
777 #define CallDragInputProc(userRoutine, mouse, modifiers, dragInputRefCon, \
779 InvokeDragInputUPP(mouse, modifiers, dragInputRefCon, theDrag, userRoutine)
780 #define CallDragDrawingProc(userRoutine, message, showRegion, showOrigin, \
781 hideRegion, hideOrigin, dragDrawingRefCon, \
783 InvokeDragDrawingUPP(message, showRegion, showOrigin, hideRegion, \
784 hideOrigin, dragDrawingRefCon, theDrag, userRoutine)
816 void *handlerRefCon);
897 const void *dataPtr, Size dataSize,
FlavorFlags theFlags);
909 FlavorType theType,
const void *dataPtr, Size dataSize,
951 void *dragDrawingRefCon);
1035 DragItemRef *theItemRef);
1047 UInt16 *numFlavors);
1059 FlavorType *theType);
1095 void *dataPtr, Size *dataSize, UInt32 dataOffset);
1125 const Rect *itemBounds);
1217 SInt16 *mouseUpModifiers);
1473 typedef DragItemRef ItemReference;
1477 dragHasLeftSenderWindow =
1478 kDragHasLeftSenderWindow,
1480 dragInsideSenderApplication =
1483 dragInsideSenderWindow =
1489 dragTrackingEnterHandler =
1490 kDragTrackingEnterHandler,
1491 dragTrackingEnterWindow =
1493 dragTrackingInWindow =
1495 dragTrackingLeaveWindow =
1497 dragTrackingLeaveHandler =
1503 dragRegionBegin = kDragRegionBegin,
1512 zoomNoAcceleration = kZoomNoAcceleration,
1519 kDragStandardImage =
1520 kDragStandardTranslucency,
1529 #if PRAGMA_STRUCT_ALIGN
1530 #pragma options align = reset
1531 #elif PRAGMA_STRUCT_PACKPUSH
1533 #elif PRAGMA_STRUCT_PACK
1537 #ifdef PRAGMA_IMPORT_OFF
1540 #pragma import reset
AppleEvent Package Interfaces.
OSErr DragPreScroll(DragRef theDrag, SInt16 dH, SInt16 dV)
UInt32 FlavorFlags
Definition: Drag.h:170
OSErr InvokeDragSendDataUPP(FlavorType theType, void *dragSendRefCon, DragItemRef theItemRef, DragRef theDrag, DragSendDataUPP userUPP)
OSStatus GetDragAllowableActions(DragRef theDrag, DragActions *outActions)
OSErr SetDragInputProc(DragRef theDrag, DragInputUPP inputProc, void *dragInputRefCon)
void DisposeDragDrawingUPP(DragDrawingUPP userUPP)
OSErr GetDragItemReferenceNumber(DragRef theDrag, UInt16 index, DragItemRef *theItemRef)
OSErr SetDragItemBounds(DragRef theDrag, DragItemRef theItemRef, const Rect *itemBounds)
OSErr GetDragMouse(DragRef theDrag, Point *mouse, Point *globalPinnedMouse)
SInt16 DragRegionMessage
Definition: Drag.h:138
@ kDragTrackingInWindow
Definition: Drag.h:259
@ kDragTrackingEnterWindow
Definition: Drag.h:258
@ kDragTrackingLeaveHandler
Definition: Drag.h:261
@ kDragTrackingLeaveWindow
Definition: Drag.h:260
OSErr GetDragHiliteColor(WindowRef window, RGBColor *color)
OSErr GetDragModifiers(DragRef theDrag, SInt16 *modifiers, SInt16 *mouseDownModifiers, SInt16 *mouseUpModifiers)
OSErr SetDragDrawingProc(DragRef theDrag, DragDrawingUPP drawingProc, void *dragDrawingRefCon)
OSErr InvokeDragDrawingUPP(DragRegionMessage message, RgnHandle showRegion, Point showOrigin, RgnHandle hideRegion, Point hideOrigin, void *dragDrawingRefCon, DragRef theDrag, DragDrawingUPP userUPP)
OSErr RemoveReceiveHandler(DragReceiveHandlerUPP receiveHandler, WindowRef theWindow)
OSErr InvokeDragTrackingHandlerUPP(DragTrackingMessage message, WindowRef theWindow, void *handlerRefCon, DragRef theDrag, DragTrackingHandlerUPP userUPP)
Boolean WaitMouseMoved(Point initialMouse)
OSErr DisposeDrag(DragRef theDrag)
@ kDragDarkerTranslucency
Definition: Drag.h:127
@ kDragDarkTranslucency
Definition: Drag.h:126
@ kDragOpaqueTranslucency
Definition: Drag.h:128
UInt32 DragAttributes
Definition: Drag.h:79
@ kDragFlavorTypePromiseHFS
Definition: Drag.h:190
@ flavorTypeHFS
Definition: Drag.h:192
@ flavorTypePromiseHFS
Definition: Drag.h:193
#define NewDragSendDataUPP(userRoutine)
Definition: Drag.h:546
@ flavorDataPromised
Definition: Drag.h:177
@ flavorSystemTranslated
Definition: Drag.h:176
@ flavorNotSaved
Definition: Drag.h:175
@ flavorSenderTranslated
Definition: Drag.h:174
OSStatus SetDragDropAction(DragRef theDrag, DragActions inAction)
OSErr RemoveTrackingHandler(DragTrackingHandlerUPP trackingHandler, WindowRef theWindow)
OSStatus SetDragAllowableActions(DragRef theDrag, DragActions inActions, Boolean isLocal)
@ kDragInsideSenderWindow
Definition: Drag.h:86
@ kDragInsideSenderApplication
Definition: Drag.h:84
OSErr GetDragAttributes(DragRef theDrag, DragAttributes *flags)
UInt32 DragBehaviors
Definition: Drag.h:96
@ kFlavorTypeDragToTrashOnly
Definition: Drag.h:240
@ kFlavorTypeClippingFilename
Definition: Drag.h:238
@ kFlavorTypeFinderNoTrackingBehavior
Definition: Drag.h:243
OSStatus GetDragDropAction(DragRef theDrag, DragActions *outAction)
OSErr ZoomRegion(RgnHandle region, Point zoomDistance, SInt16 zoomSteps, ZoomAcceleration acceleration)
typedef CALLBACK_API(OSErr, DragTrackingHandlerProcPtr)(DragTrackingMessage message
OSErr GetFlavorFlags(DragRef theDrag, DragItemRef theItemRef, FlavorType theType, FlavorFlags *theFlags)
OSErr GetFlavorData(DragRef theDrag, DragItemRef theItemRef, FlavorType theType, void *dataPtr, Size *dataSize, UInt32 dataOffset)
@ kZoomAccelerate
Definition: Drag.h:159
@ kZoomDecelerate
Definition: Drag.h:160
OSErr InvokeDragReceiveHandlerUPP(WindowRef theWindow, void *handlerRefCon, DragRef theDrag, DragReceiveHandlerUPP userUPP)
OSErr GetFlavorType(DragRef theDrag, DragItemRef theItemRef, UInt16 index, FlavorType *theType)
OSErr InvokeDragInputUPP(Point *mouse, SInt16 *modifiers, void *dragInputRefCon, DragRef theDrag, DragInputUPP userUPP)
SInt16 ZoomAcceleration
Definition: Drag.h:155
OSErr SetDragItemFlavorData(DragRef theDrag, DragItemRef theItemRef, FlavorType theType, const void *dataPtr, Size dataSize, UInt32 dataOffset)
OSErr GetFlavorDataSize(DragRef theDrag, DragItemRef theItemRef, FlavorType theType, Size *dataSize)
OSErr NewDrag(DragRef *theDrag)
OSErr SetDragMouse(DragRef theDrag, Point globalPinnedMouse)
DragRef DragReference
Definition: Drag.h:1472
OSErr SetDragImage(DragRef theDrag, PixMapHandle imagePixMap, RgnHandle imageRgn, Point imageOffsetPt, DragImageFlags theImageFlags)
#define NewDragReceiveHandlerUPP(userRoutine)
Definition: Drag.h:377
OSErr TrackDrag(DragRef theDrag, const EventRecord *theEvent, RgnHandle theRegion)
OSErr GetDragItemBounds(DragRef theDrag, DragItemRef theItemRef, Rect *itemBounds)
#define NewDragTrackingHandlerUPP(userRoutine)
Definition: Drag.h:346
OSErr CountDragItems(DragRef theDrag, UInt16 *numItems)
OSErr AddDragItemFlavor(DragRef theDrag, DragItemRef theItemRef, FlavorType theType, const void *dataPtr, Size dataSize, FlavorFlags theFlags)
UInt32 DragImageFlags
Definition: Drag.h:110
void DisposeDragReceiveHandlerUPP(DragReceiveHandlerUPP userUPP)
@ kDragPseudoFileTypeVolume
Definition: Drag.h:208
@ kDragPseudoFileTypeDirectory
Definition: Drag.h:210
OSErr ShowDragHilite(DragRef theDrag, RgnHandle hiliteFrame, Boolean inside)
OSErr ZoomRects(const Rect *fromRect, const Rect *toRect, SInt16 zoomSteps, ZoomAcceleration acceleration)
@ kDragRegionIdle
Definition: Drag.h:144
@ kDragRegionDraw
Definition: Drag.h:142
@ kDragRegionHide
Definition: Drag.h:143
@ kDragRegionEnd
Definition: Drag.h:145
OSErr ChangeDragBehaviors(DragRef theDrag, DragBehaviors inBehaviorsToSet, DragBehaviors inBehaviorsToClear)
OSErr GetDragOrigin(DragRef theDrag, Point *globalInitialMouse)
OSErr InstallReceiveHandler(DragReceiveHandlerUPP receiveHandler, WindowRef theWindow, void *handlerRefCon)
OSErr SetDragSendProc(DragRef theDrag, DragSendDataUPP sendProc, void *dragSendRefCon)
OSErr CountDragItemFlavors(DragRef theDrag, DragItemRef theItemRef, UInt16 *numFlavors)
SInt16 DragTrackingMessage
Definition: Drag.h:254
OSErr InstallTrackingHandler(DragTrackingHandlerUPP trackingHandler, WindowRef theWindow, void *handlerRefCon)
void DisposeDragSendDataUPP(DragSendDataUPP userUPP)
struct OpaqueDragRef * DragRef
Definition: Drag.h:70
OSErr UpdateDragHilite(DragRef theDrag, RgnHandle updateRgn)
@ kDragPromisedFlavor
Definition: Drag.h:200
OSErr HideDragHilite(DragRef theDrag)
OSErr DragPostScroll(DragRef theDrag)
void DisposeDragInputUPP(DragInputUPP userUPP)
void DisposeDragTrackingHandlerUPP(DragTrackingHandlerUPP userUPP)
OSErr GetDropLocation(DragRef theDrag, AEDesc *dropLocation)
#define NewDragInputUPP(userRoutine)
Definition: Drag.h:575
#define NewDragDrawingUPP(userRoutine)
Definition: Drag.h:604
OSErr SetDropLocation(DragRef theDrag, const AEDesc *dropLocation)
Event Manager Interfaces.
File Manager (MFS, HFS, and HFS+) Interfaces.
Basic Macintosh data types.
unsigned char Boolean
Definition: MacTypes.h:318
void DisposeRoutineDescriptor(UniversalProcPtr theUPP)
#define STACK_UPP_TYPE(name)
Definition: MixedMode.h:734
UniversalProcPtr NewRoutineDescriptor(ProcPtr theProc, ProcInfoType theProcInfo, ISAType theISA)
Interface to Quickdraw Graphics.
Definition: AEDataModel.h:175
Definition: Quickdraw.h:1648
UInt16 fdFlags
Definition: Drag.h:294
FSSpec fileSpec
Definition: Drag.h:295
OSType fileCreator
Definition: Drag.h:293
Definition: Quickdraw.h:306
Definition: Quickdraw.h:2064
Definition: MacTypes.h:520
OSType fileCreator
Definition: Drag.h:301
FlavorType promisedFlavor
Definition: Drag.h:303
UInt16 fdFlags
Definition: Drag.h:302
Definition: Quickdraw.h:1710
Definition: MacTypes.h:527