Home
last modified time | relevance | path

Searched refs:rect (Results 1 – 13 of 13) sorted by relevance

/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/draw9patch/graphics/
DNinePatchedImageTest.java229 Rectangle rect = null; in test9Patch1() local
233 rect = c.rect; in test9Patch1()
235 assertEquals(1, rect.x); in test9Patch1()
236 assertEquals(1, rect.y); in test9Patch1()
237 assertEquals(1, rect.width); in test9Patch1()
238 assertEquals(1, rect.height); in test9Patch1()
241 rect = c.rect; in test9Patch1()
243 assertEquals(2, rect.x); in test9Patch1()
244 assertEquals(1, rect.y); in test9Patch1()
245 assertEquals(70, rect.width); in test9Patch1()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DBinPacker.java79 void addSpace(Rect rect) { in addSpace() argument
80 if (rect.w >= mMinWidth && rect.h >= mMinHeight) { in addSpace()
81 mSpace.add(rect); in addSpace()
110 Rect rect = mSpace.get(i); in findBest() local
111 if (rect.y <= minY) { in findBest()
112 if (rect.w >= width && rect.h >= height) { in findBest()
113 if (rect.y < minY) { in findBest()
114 minY = rect.y; in findBest()
117 } else if (minY == rect.y) { in findBest()
137 Rect rect = mSpace.get(i); in findBest() local
[all …]
DLintTooltipManager.java127 Rectangle rect = mCanvas.getBounds(); in show() local
129 Point pos = mCanvas.toDisplay(rect.x, rect.y + rect.height); in show()
130 if (size.x > rect.width) { in show()
131 size = mTip.computeSize(rect.width, SWT.DEFAULT); in show()
DImageControl.java176 Rectangle rect = getClientArea(); in onPaint() local
177 if (mImage == null || rect.width == 0 || rect.height == 0) { in onPaint()
197 gc.drawImage(mImage, 0, 0, imageWidth, imageHeight, rect.x + mLeftMargin, rect.y in onPaint()
DOutlinePage.java1379 Rectangle rect = item.getBounds(0); in setupTooltip()
1380 if (event.x - rect.x > 16) { // 16: Standard width of our outline icons in setupTooltip()
1413 Point pt = tree.toDisplay(rect.x, rect.y + rect.height); in setupTooltip()
DCanvasViewInfo.java722 Rectangle rect = child.getAbsRect(); in create() local
724 absRect = rect; in create()
726 absRect = absRect.union(rect); in create()
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/widgets/
DImageCanvas.java194 Rectangle rect = mImage.getBounds(); in paintCanvas() local
197 if (mFitToCanvas && rect.width > 0 && rect.height > 0) { in paintCanvas()
198 double sx = (double) client.width / (double) rect.width; in paintCanvas()
199 double sy = (double) client.height / (double) rect.height; in paintCanvas()
205 0, 0, rect.width, rect.height, in paintCanvas()
206 0, 0, client.width, (int)(rect.height * sx)); in paintCanvas()
207 drawBorder(gc, 0, 0, client.width, (int)(rect.height * sx)); in paintCanvas()
211 0, 0, rect.width, rect.height, in paintCanvas()
212 0, 0, (int)(rect.width * sy), client.height); in paintCanvas()
213 drawBorder(gc, 0, 0, (int)(rect.width * sy), client.height); in paintCanvas()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/draw9patch/graphics/
DNinePatchedImage.java422 Rectangle rect = new Rectangle(0, 0, 0, 0); in getContentArea() local
423 rect.x = 1; in getContentArea()
424 rect.width = mBaseImageData.width - 1; in getContentArea()
425 rect.y = 1; in getContentArea()
426 rect.height = mBaseImageData.height - 1; in getContentArea()
429 rect.x = horizontal.start; in getContentArea()
430 rect.width = horizontal.getLength(); in getContentArea()
433 rect.y = vertical.start; in getContentArea()
434 rect.height = vertical.getLength(); in getContentArea()
437 return rect; in getContentArea()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/
DTestGraphics.java178 private static String rectToString(Rect rect) { in rectToString() argument
179 return "Rect[" + rect.x + "," + rect.y + "," + rect.w + "," + rect.h + "]"; in rectToString()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/draw9patch/ui/
DStretchesViewer.java127 Rectangle rect = mNinePatchedImage.getContentArea(); in buildContentAreaPreview() local
129 int yLen = rect.y + rect.height; in buildContentAreaPreview()
130 for (int y = rect.y; y < yLen; y++) { in buildContentAreaPreview()
131 int xLen = rect.x + rect.width; in buildContentAreaPreview()
132 for (int x = rect.x; x < xLen; x++) { in buildContentAreaPreview()
DImageViewer.java662 Rectangle r = c.rect;
687 Rectangle r = c.rect;
/sdk/find_java2/src/
DFindJava2Dlg.cpp95 CRect rect; in OnPaint() local
96 GetClientRect(&rect); in OnPaint()
97 int x = (rect.Width() - cxIcon + 1) / 2; in OnPaint()
98 int y = (rect.Height() - cyIcon + 1) / 2; in OnPaint()
/sdk/eclipse/
Ddictionary.txt235 rect