return top_r.contains(p);
}
}
private int getItemTypeAtLocation(ItemInfo ii, Point location) {
ATEGutterItem item = ii.item;
int width = item.getItemWidth();
for (int i = item.getItemTypes().size()-1; i >= 0; i--) {
int t = item.getItemTypes().get(i);
width -= item.getItemIcon(t).getIconWidth();
if (location.x > ii.r.x + width) {
return t;
}
}
return -1;