Ejemplo n.º 1
0
void resizeCB (Widget w, 
	char * clientdata,
	XtcwpAxesCallbackStruct *ca)
{
	/* printf("resize callback\n"); */
	if(ca-ca) resizeCB(w,clientdata,ca);
}
Ejemplo n.º 2
0
void resizeCB (Widget w, 
	ClientData *cd,
	XtcwpAxesCallbackStruct *ca)
/*****************************************************************************
Resize event callback - destroys image, so that expose callback
will remake it.
*****************************************************************************/
{
	/* if an image exists, destroy it and set pointer to NULL */
	if (cd->image!=NULL) {
		XDestroyImage(cd->image);
		cd->image = NULL;
	}
	
	if (cd->image != NULL) /* dummy */
		resizeCB(w,cd,ca);
	
	/* clear window and force an expose event */
	/*
	if (cd->exposed) XClearArea(XtDisplay(w),XtWindow(w),0,0,0,0,True);
	*/
}