Event event = new Event (); event.gc = gc; event.x = r.x;  event.y = r.y; event.width = r.width;  event.height = r.height;
int processPaint (Object callData) {	if (!hooks (SWT.Paint)) return 0;		/*	if (!fVisible || fDrawCount > 0) {		System.out.println("Control.processPaint: premature exit");		return 0;	}	*/    /* AW	event.count = xEvent.count;	event.time = OS.XtLastTimestampProcessed (xDisplay);    */    	GC gc= new GC (this);	MacControlEvent me= (MacControlEvent) callData;	Rectangle r= gc.carbon_focus(me.getDamageRegionHandle());	if (r == null || !r.isEmpty()) {		Event event = new Event ();		event.gc = gc;		event.x = r.x;  event.y = r.y;		event.width = r.width;  event.height = r.height;						// erase background		if ((state & CANVAS) != 0) {			if ((style & SWT.NO_BACKGROUND) == 0) {				gc.fillRectangle(r);			}		}				sendEvent (SWT.Paint, event);		event.gc = null;	}		gc.carbon_unfocus ();		if (!gc.isDisposed ())		gc.dispose ();	return 0;}