Home | History | Annotate | Download | only in browser

Lines Matching defs:rect

33 import android.graphics.Rect;
85 Rect iconBounds = new Rect(0, 0, bm.getWidth(), bm.getHeight());
159 private static void drawTouchIconToCanvas(Bitmap touchIcon, Canvas canvas, Rect iconBounds) {
160 Rect src = new Rect(0, 0, touchIcon.getWidth(), touchIcon.getHeight());
162 // Paint used for scaling the bitmap and drawing the rounded rect.
167 // Construct a path from a round rect. This will allow drawing with
168 // an inverse fill so we can punch a hole using the round rect.
171 RectF rect = new RectF(iconBounds);
172 rect.inset(1, 1);
173 path.addRoundRect(rect, 8f, 8f, Path.Direction.CW);
181 Canvas canvas, Rect iconBounds, BookmarkIconType type) {