Esempio n. 1
0
 protected boolean containsPoint(Point p) {
   if (scrolling) return true;
   float ro = menu.getStyle().getF("f.roundOff");
   buffRoundRect.setRoundRect(x, y, width, height, ro, ro);
   // buffRoundRect.setRoundRect(x + nOffset, y, nWidth, height,
   // menu.getStyle().roundOff, menu.getStyle().roundOff);
   return buffRoundRect.contains(p);
 }
Esempio n. 2
0
 protected boolean containsPoint(Point p) {
   float ro = getStyle().getF("f.roundOff");
   buffRoundRect.setRoundRect(x, y, width, height, ro, ro);
   return buffRoundRect.contains(p);
 }