rem: int offset;
context: WMTabViewItemAtPoint(WMTabView *tPtr, int x, int y){    int i;    int offset;    int count = tPtr->visibleTabs;    int first = tPtr->firstVisible;        if (tPtr->flags.dontFitAll) {	i = tPtr->selectedItem - tPtr->firstVisible;	if (i >= 0 && i < tPtr->visibleTabs	    && isInside(positionOfTab(tPtr, tPtr->selectedItem), 0, 			W_TabViewItemTabWidth(tPtr->items[tPtr->selectedItem]),			tPtr->tabHeight, x, y)) {	    return tPtr->items[tPtr->selectedItem];	}    } else {	i = tPtr->selectedItem;	if (isInside(positionOfTab(tPtr, i), 0, 		     W_TabViewItemTabWidth(tPtr->items[i]), 		     tPtr->tabHeight, x, y)) {	    return tPtr->items[i];	}    }    for (i = first; i < first + count; i++) {	int pos;	pos = positionOfTab(tPtr, i);	if (isInside(pos, 0, W_TabViewItemTabWidth(tPtr->items[i]),		     tPtr->tabHeight, x, y)) {	    return tPtr->items[i];	}    }    return NULL;}