Process all outstanding Photon events
void PtBkgdHandlerProcess( void );
This function processes all outstanding Photon events, calling
PtProcessEvent() for each
event. You should call this routine periodically during a costly or complex
processing loop when you won't be giving control to the widget library.
This gives the widget library an opportunity to redraw widgets that have
been damaged or exposed if, for example, the user drags a window around.
 |
It's safe to call PtBkgdHandlerProcess() in callbacks, work
procedures, and input procedures, but
not in a widget's Draw method or a PtRaw widget's
drawing function. |
{
int done = 0;
while ( !done )
{
/* Handle all pending Photon events */
PtBkgdHandlerProcess( );
/* Do some work, setting done if finished */
}
}
Photon
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |