![]() | InDesign SDK 20.5 |
#include <IEventUtils.h>

Public Types | |
| enum | { kDefaultIID = IID_IEVENTUTILS } |
Public Member Functions | |
| virtual GSysPoint | GetGlobalMouseLocation ()=0 |
| virtual bool16 | IsMouseButtonDown ()=0 |
| virtual bool16 | IsMouseButtonReleased ()=0 |
| virtual bool16 | IsUserStartingDrag (IEvent *e, bool16 &isPatientUser, const CursorSpec *patientCursor=nil)=0 |
| virtual bool16 | IsUserStartingDrag (IEvent *e, bool16 &isPatientUser, const SysRect &startOnExitGRect, const CursorSpec *patientCursor=nil)=0 |
| virtual void | PMCaptureMouse (IControlView *theView)=0 |
| virtual void | PMReleaseMouse (void)=0 |
| virtual void | RemoveNextKeyCmd (IEvent *e)=0 |
| virtual bool16 | IsDragOrTrackInProgress ()=0 |
| virtual int16 | GetModifiersFromEvent (const IEvent *e)=0 |
| virtual bool16 | IsTrackInProgress ()=0 |
| virtual bool16 | IsUserEventPending (bool16 needPendingKeyEventOnly=kFalse)=0 |
| virtual void | EmulateAsynModalLoop ()=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Utils interface which provides methods for working with events. Use like so:
Utils<IEventUtils>()->BuildAndDispatchUpdateOrActivateEvent(*theEvent);
| pure virtual |
Emulate an Async Model loop, all events will then be posted to this Model Loop. Model loop then posts that event to app's event loop.
| pure virtual |
Get the current mouse location. It's much better if you can get this information from an IEvent
| pure virtual |
Get the modifiers from an event as bits or'd together.
| e | event to get the modifiers from |
| pure virtual |
Check to see if we're currently dragging or tracking the mouse
| pure virtual |
Get the current mouse button state. It's much better if you can get this information from an IEvent
| pure virtual |
Get the current mouse button state. It's much better if you can get this information from an IEvent. Roughly equivilent to calling StillDown() on the mac.
| pure virtual |
Check to see if we're tracking the mouse
| pure virtual |
Check to see if any user event is pending
| needPendingKeyEventOnly | In case there is a need to check only pending key events. Default value for this param is false. |
| pure virtual |
Check if this event indicates a drag is starting
| e | the OS event |
| isPatientUser | OUT indicates if this is a patient user drag |
| patientCursor | cursor to use if this is a patient user drag |
| pure virtual |
Check if this event indicates a drag is starting
| e | the OS event |
| isPatientUser | OUT indicates if this is a patient user drag |
| startOnExitGRect | a rectangle indicating an area which is not considered to be starting a drag, i.e. the user has to move outside this rect before a drag is started. |
| patientCursor | cursor to use if this is a patient user drag |
| pure virtual |
Captures the mouse events for this window. Before capturing the mouse, it will release any other captures also attached to this window. If this method is called without pushing an event handler to the dispatcher, it will have no effect as the captured mouse events will not be properly dispatched. This method is functional for Windows platform only and results in a no-op on the Macintosh platform.
| theView | pointer to the control view to use, capture will actually occur on theView's top level parent |
| pure virtual |
Releases the previous captured mouse. This method is functional for Windows platform only and results in a no-op on the Macintosh platform.
| pure virtual |
Called in some circumstances when we handle the KeyDown and want to remove the following KeyCmd event. No op on Macintosh.
| e | the keydown event |