public void setClipping(Rectangle rect) { if (handle == 0) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED); if (rect == null) { setClipping(0);
void setClipping(int  clipRgn) { int  cairo = data.cairo; if (clipRgn == 0) { if (data.clipRgn != 0) { OS.gdk_region_destroy(data.clipRgn); data.clipRgn = 0; } else { return; } if (cairo != 0) { data.clippingTransform = null; setCairoClip(cairo, clipRgn); } else { int  clipping = data.damageRgn != 0 ? data.damageRgn : 0; OS.gdk_gc_set_clip_region(handle, clipping); }
public void setClipping(Rectangle rect) {	if (handle == 0) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED);	if (rect == null) {		setClipping(0);	} else {		setClipping(rect.x, rect.y, rect.width, rect.height);	}}