Rectangle thisItemBounds = items[ i ].getBounds(); itemsSize.x += thisItemBounds.width; itemsSize.y = Math.max( itemsSize.y, thisItemBounds.height );
if (eventLocation.x >= curFolder.getClientArea().x + theItem.getBounds().x + image.getBounds().x && eventLocation.x <= curFolder.getClientArea().x + theItem.getBounds().x + image.getBounds().x + image.getBounds().width && eventLocation.y >= theItem.getBounds().y + image.getBounds().y && eventLocation.y <= theItem.getBounds().y + image.getBounds().y + image.getBounds().height)
for( int i = 0; i < getItemCount() && result == null; i++ ) { TabItem item = getItem( i ); Rectangle itemBounds = item.getBounds(); if( itemBounds.contains( point ) ) { result = item;
for (int i = 0; i < itemCount; i++) { TabItem item = items[i]; Rectangle rect = item.getBounds(); if (rect.contains(point)) return item;
for (int i = 0; i < itemCount; i++) { TabItem item = items[i]; Rectangle rect = item.getBounds(); if (rect.contains(point)) return item;
for (int i = 0; i < itemCount; i++) { TabItem item = items[i]; Rectangle rect = item.getBounds(); if (rect.contains(point)) return item;
Rectangle prevItemBounds = prevItem.getBounds(); int selectionIndex = parent.getSelectionIndex(); result.x = prevItemBounds.x + prevItemBounds.width + TABS_SPACING;