[ First ] [ Previous ] [ Next ] [ Last ] [ Manuals ]
SIOUXHandleOneEvent

Handles an event for a SIOUX window.
Compatibility:
This function is compatible with the following targets:
Prototype:
#include <SIOUX.h>
Boolean SIOUXHandleOneEvent(EventRecord *event);
Parameters:
Parameters for this facility are:
Remarks:
Before you handle an event, call SIOUXHandleOneEvent() so SIOUX can update its windows when necessary. The argument event should be an event that WaitNextEvent() or GetNextEvent() returned. The function returns true if it handled the event and false if it didn't. If event is a NULL pointer, the function polls the event queue until it receives an event.
Return:
If it handles the event, SIOUXHandleOneEvent() returns true. Otherwise, SIOUXHandleOneEvent() returns false.
Example of SIOUXHandleOneEvent() usage.:
void MyEventLoop(void)
{
EventRecord event;
RgnHandle cursorRgn;
Boolean gotEvent, SIOUXDidEvent;
cursorRgn = NewRgn();
do {
gotEvent = WaitNextEvent(everyEvent, &event,
MyGetSleep(), cursorRgn);
/* Before handling the event on your own,
* call SIOUXHandleOneEvent() to see whether
* the event is for SIOUX.
*/
if (gotEvent)
SIOUXDidEvent = SIOUXHandleOneEvent(&event);
if (!SIOUXDidEvent)
DoEvent(&event);
} while (!gDone)
}
[ First ] [ Previous ] [ Next ] [ Last ] [ Manuals ]
Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.
Last updated: August 16, 2000