Searched refs:rect (Results 76 - 100 of 501) sorted by relevance

1234567891011>>

/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/xy/
H A DXYStepCalculator.java33 * @param rect
38 public static XYStep getStep(XYPlot plot, XYAxisType axisType, RectF rect, Number minVal, Number maxVal) { argument
42 step = getStep(plot.getDomainStepMode(), rect.width(), plot.getDomainStepValue(), minVal, maxVal);
45 step = getStep(plot.getRangeStepMode(), rect.height(), plot.getRangeStepValue(), minVal, maxVal);
/external/fonttools/Lib/fontTools/misc/
H A DarrayTools.py39 def pointInRect(p, rect):
40 """Return True when point (x, y) is inside rect."""
42 xMin, yMin, xMax, yMax = rect
45 def pointsInRect(array, rect):
46 """Find out which points or array are inside rect.
51 xMin, yMin, xMax, yMax = rect
64 def normRect(rect):
68 (xMin, yMin, xMax, yMax) = rect
71 def scaleRect(rect, x, y):
73 (xMin, yMin, xMax, yMax) = rect
[all...]
/external/fonttools/Tools/fontTools/misc/
H A DarrayTools.py39 def pointInRect(p, rect):
40 """Return True when point (x, y) is inside rect."""
42 xMin, yMin, xMax, yMax = rect
45 def pointsInRect(array, rect):
46 """Find out which points or array are inside rect.
51 xMin, yMin, xMax, yMax = rect
64 def normRect(rect):
68 (xMin, yMin, xMax, yMax) = rect
71 def scaleRect(rect, x, y):
73 (xMin, yMin, xMax, yMax) = rect
[all...]
/external/skia/gm/
H A Dclip_strokerect.cpp36 SkRect rect = SkRect::MakeXYWH(20, 0, 100, 20); variable
39 canvas->clipRect(rect, SkRegion::kReplace_Op, true);
45 canvas->drawRect(rect, p);
H A Droundrects.cpp142 SkRect rect = SkRect::MakeLTRB(-20, -30, 20, 30); variable
144 circleRect.setRectXY(rect, 5, 5);
173 canvas->drawRect(rect, rectPaint);
186 SkRect rect = SkRect::MakeLTRB(-20, -60, 20, 60); variable
188 ellipseRect.setRectXY(rect, 5, 10);
198 canvas->drawRect(rect, rectPaint);
205 SkRect rect = SkRect::MakeLTRB(-80, -30, 80, 30); variable
207 ellipseRect.setRectXY(rect, 20, 5);
218 canvas->drawRect(rect, rectPaint);
225 SkRect rect variable
243 SkRect rect = SkRect::MakeLTRB(-80, -1, 80, 0); variable
[all...]
H A Demptypath.cpp77 SkRect rect = SkRect::MakeWH(100*SK_Scalar1, 30*SK_Scalar1); local
86 canvas->translate(0, rect.height() + 40 * SK_Scalar1);
89 canvas->translate(rect.width() + 40 * SK_Scalar1, 0);
96 this->drawEmpty(canvas, color, rect,
104 canvas->drawRect(rect, rectPaint);
114 0, rect.height() + 15 * SK_Scalar1,
118 0, rect.height() + 28 * SK_Scalar1,
H A Dcubicpaths.cpp138 SkRect rect = SkRect::MakeWH(100*SK_Scalar1, 30*SK_Scalar1); local
144 canvas->translate((rect.width() + 40 * SK_Scalar1) * SK_ARRAY_COUNT(gStyles), 0);
149 canvas->translate(0, rect.height() + 40 * SK_Scalar1);
154 canvas->translate(rect.width() + 40 * SK_Scalar1, 0);
158 this->drawPath(path.fPath, canvas, color, rect,
167 canvas->drawRect(rect, rectPaint);
177 0, rect.height() + 12 * SK_Scalar1,
181 0, rect.height() + 24 * SK_Scalar1,
185 0, rect.height() + 36 * SK_Scalar1,
285 SkRect rect local
[all...]
/external/skia/include/core/
H A DSkRegion.h111 * If rect is non-empty, set this region to that rectangle and return true,
124 * faster than calling region.op(rect, kUnion_Op) in a loop. If count is
210 bool quickReject(const SkIRect& rect) const {
211 return this->isEmpty() || rect.isEmpty() ||
212 !SkIRect::Intersects(fBounds, rect);
255 * specified rectangle: this = (this op rect).
258 bool op(const SkIRect& rect, Op op) { return this->op(*this, rect, op); } argument
262 * specified rectangle: this = (this op rect).
266 SkIRect rect; local
319 const SkIRect& rect() const { return fRect; } function in class:SkRegion::Iterator
339 const SkIRect& rect() const { return fRect; } function in class:SkRegion::Cliperator
[all...]
/external/skia/src/gpu/effects/
H A DGrRRectEffect.cpp166 // The inner rect is the rrect bounds inset by the radius. Its left, top, right, and bottom
168 // only rectangular corners, that side's value corresponds to the rect edge's value outset by
194 // computations, compute a separate rect edge alpha for the rect side, and mul the two computed
302 SkRect rect = rrect.getBounds(); local
309 rect.inset(radius, radius);
313 rect.fLeft += radius;
314 rect.fTop += radius;
315 rect.fRight += 0.5f;
316 rect
[all...]
/external/skia/tools/lua/
H A Dskia.lua24 local rect
27 rect = { left = l, top = t, right = r, bottom = b }
30 rect = { right = l, bottom = t }
33 rect = {}
35 setmetatable(rect, Sk.Rect)
36 return rect;
/external/mesa3d/src/gallium/drivers/nvc0/
H A Dnvc0_transfer.c10 struct nv50_m2mf_rect rect[2]; member in struct:nvc0_transfer
368 nv50_m2mf_rect_setup(&tx->rect[0], res, level, box->x, box->y, box->z);
373 size * tx->nlayers, NULL, &tx->rect[1].bo);
379 tx->rect[1].cpp = tx->rect[0].cpp;
380 tx->rect[1].width = tx->nblocksx;
381 tx->rect[1].height = tx->nblocksy;
382 tx->rect[1].depth = 1;
383 tx->rect[1].pitch = tx->base.stride;
384 tx->rect[
[all...]
/external/libvncserver/x11vnc/
H A D8to24.c71 static void transform_rect(sraRect rect, Window win, int win_depth, int cm);
871 sraRegionPtr rect;
980 rect = sraRgnCreateRect(mx1, my1, mx2, my2);
981 sraRgnOr(mod, rect);
982 sraRgnDestroy(rect);
998 rect = sraRgnCreateRect(mx1, my1, mx2, my2);
999 sraRgnOr(mod, rect);
1000 sraRgnDestroy(rect);
1010 sraRegionPtr rect; local
1053 rect
1088 sraRect rect; local
1149 sraRect rect; local
1190 sraRect rect; local
1468 sraRect rect; local
1552 transform_rect(sraRect rect, Window win, int win_depth, int cm) argument
1817 sraRegionPtr rect; local
[all...]
/external/skia/src/pipe/utils/
H A DSamplePipeControllers.cpp50 SkIRect rect; local
53 rect.setLTRB(0, top, bitmap.width(), bottom);
56 SkDEBUGCODE(bool extracted = )bitmap.extractSubset(&fBitmaps[i], rect);
64 canvas->translate(SkIntToScalar(-rect.left()),
65 SkIntToScalar(-rect.top()));
/external/skia/tests/
H A DInfRectTest.cpp51 SkRect rect; local
52 rect.set(l, t, r, b);
53 REPORTER_ASSERT(reporter, !rect.isFinite());
56 // Tests that isFinite() will reject any rect with +/-inf values
67 SkRect rect = SkRect::MakeXYWH(small, small, big, big); local
68 REPORTER_ASSERT(reporter, rect.isFinite());
H A DSkResourceCacheTest.cpp110 SkIRect rect = SkIRect::MakeWH(5, 5); local
116 REPORTER_ASSERT(reporter, !SkBitmapCache::Find(cachedID, rect, &bm, cache));
119 REPORTER_ASSERT(reporter, !SkBitmapCache::Find(cachedID, rect, &bm, cache));
122 REPORTER_ASSERT(reporter, !SkBitmapCache::Find(cachedID, rect, &bm, cache));
124 REPORTER_ASSERT(reporter, SkBitmapCache::Add(cachedPR, rect, cachedBitmap, cache));
126 REPORTER_ASSERT(reporter, SkBitmapCache::Find(cachedID, rect, &bm, cache));
257 SkIRect rect = SkIRect::MakeWH(5, 5); local
260 REPORTER_ASSERT(reporter, SkBitmapCache::Add(cachedBitmap.pixelRef(), rect, cachedBitmap, cache));
261 REPORTER_ASSERT(reporter, SkBitmapCache::Find(cachedBitmap.getGenerationID(), rect, &bm, cache));
264 REPORTER_ASSERT(reporter, SkBitmapCache::Find(cachedBitmap.getGenerationID(), rect,
[all...]
/external/clang/test/Sema/
H A Ddesignated-initializers.c56 struct rect { struct
61 struct rect window = { .top_left.x = 1.0 };
63 struct rect windows[] = {
70 int windows_size[((sizeof(windows) / sizeof(struct rect)) == 6)? 1 : -1];
72 struct rect windows_bad[3] = {
78 struct rect windows[10];
87 struct rect window;
/external/libvncserver/libvncserver/
H A Dultra.c45 rfbFramebufferUpdateRectHeader rect; local
116 rect.r.x = Swap16IfLE(x);
117 rect.r.y = Swap16IfLE(y);
118 rect.r.w = Swap16IfLE(w);
119 rect.r.h = Swap16IfLE(h);
120 rect.encoding = Swap32IfLE(rfbEncodingUltra);
122 memcpy(&cl->updateBuf[cl->ublen], (char *)&rect,
/external/skia/debugger/QT/
H A DSkListWidget.cpp18 QRect r = option.rect;
70 /* option.rect is a struct that Qt uses as a target to draw into. Following
74 * widget. A (x1,y1,0,0) rect would mean that the item being drawn would
84 r = option.rect.adjusted(5, 10, -10, -10);
88 r = option.rect.adjusted(19, 10, -10, -10);
93 r = option.rect.adjusted(kImageSpace+kCommandNumberSpace+kTimeSpace+indent, 0, -10, -7);
96 r = option.rect.adjusted(kImageSpace+kCommandNumberSpace+indent, 0, -10, -7);
102 r = option.rect.adjusted(kImageSpace, 0, -10, -7);
108 r = option.rect.adjusted(kImageSpace+kCommandNumberSpace, 0, -10, -7);
/external/opencv/cvaux/src/
H A Dcvface.cpp93 //class RFace(rect based face)
120 inline bool RFace::isPointInRect(CvPoint p,CvRect rect) argument
122 if ( (p.x >= rect.x) && (p.y >= rect.y) && (p.x <= rect.x + rect.width) && (p.y <= rect.y + rect.height) )
126 }//inline bool RFace::isPointInRect(CvPoint,CvRect rect)
172 }//inline bool RFace::CheckElem(CvRect rect)
305 CvRect rect = *(CvRect*)m_lppFoundedFaceFeatures[i][j].GetContour(); local
[all...]
H A D_cvvectrack.h98 CvRect rect; local
99 rect.x = r.x * decr;
100 rect.y = r.y * decr;
101 rect.width = r.width * decr;
102 rect.height = r.height * decr;
103 return rect;
/external/pdfium/fpdfsdk/src/pdfwindow/
H A DPWL_ListCtrl.cpp226 CPDF_Rect CPWL_ListCtrl::InToOut(const CPDF_Rect& rect) const
230 return CPDF_Rect(rect.left + rcClient.left - m_ptScroll.x,
231 rect.bottom + rcClient.top - m_ptScroll.y,
232 rect.right + rcClient.left - m_ptScroll.x,
233 rect.top + rcClient.top - m_ptScroll.y);
236 CPDF_Rect CPWL_ListCtrl::OutToIn(const CPDF_Rect& rect) const
240 return CPDF_Rect(rect.left - rcClient.left + m_ptScroll.x,
241 rect.bottom - rcClient.top + m_ptScroll.y,
242 rect.right - rcClient.left + m_ptScroll.x,
243 rect
[all...]
/external/drm_hwcomposer/
H A Dseperate_rects.cpp59 std::ostream &operator<<(std::ostream &os, const Rect<TNum> &rect) { argument
60 return os << rect.bounds[0] << ", " << rect.bounds[1] << ", "
61 << rect.bounds[2] << ", " << rect.bounds[3];
97 // A started rect is a rectangle whose left, top, bottom edge, and set of
110 const Rect<TNum> &rect = in[i]; local
115 evt.x = rect.left;
119 evt.x = rect.right;
127 const Rect<TNum> &rect local
[all...]
/external/opencv/cv/src/
H A Dcvpyrsegmentation.cpp61 _CvRect16u rect; /* ROI for the connected component */ member in struct:_CvPyramid
77 _CvRect16u rect; /* ROI for the connected component */ member in struct:_CvPyramidC3
311 p_cur->rect.x2 = 0;
731 p_cur->rect.x2 = 0;
1081 icvMaxRoi1( &(p->rect), j, i );
1091 icvMaxRoi( &(p->rect), &(p_cur[-1].rect) );
1151 icvMaxRoi1( &(p->rect), j + 1, i );
1161 icvMaxRoi( &(p->rect), &(p_cur[-1].rect) );
[all...]
H A Dcvhaar.cpp61 rect[CV_HAAR_FEATURE_MAX]; member in struct:CvHidHaarFeature
236 if( classifier->haar_feature[l].rect[k].r.width )
238 CvRect r = classifier->haar_feature[l].rect[k].r;
322 if( fabs(feature->rect[2].weight) < DBL_EPSILON ||
323 feature->rect[2].r.width == 0 ||
324 feature->rect[2].r.height == 0 )
325 memset( &(node->feature.rect[2]), 0, sizeof(node->feature.rect[2]) );
367 int rect_count = 2 + (classifier->haar_feature->rect[2].r.width != 0);
376 ipp_features[k] = classifier->haar_feature->rect[
1222 CvRect rect = cvRect(ix,iy,win_size.width,win_size.height); local
1237 CvRect rect = cvRect(ix,iy,win_size.width,win_size.height); local
1413 CvRect* rect = (CvRect*)cvGetSeqElem( seq, i ); local
[all...]
/external/pdfium/core/src/reflow/
H A Dautoreflow.cpp13 FX_RECT rect = pObj->GetBBox(&matrix); local
15 if(PreRect.top > rect.bottom) {
17 } else if(rect.top > PreRect.bottom) {
19 } else if(PreRect.right < rect.left) {
21 } else if(PreRect.left > rect.right) {
28 if((PreRect.top < rect.top && PreRect.bottom > rect.bottom) ||
29 (PreRect.top > rect.top && PreRect.bottom < rect.bottom)) {
30 if(PreRect.left > rect
369 FX_RECT rect = pLastObj->GetBBox(&m_PDFDisplayMatrix); local
599 GetRectWidth(FX_RECT rect) argument
606 GetRectHeight(FX_RECT rect) argument
613 GetRectStart(FX_RECT rect) argument
620 GetRectEnd(FX_RECT rect) argument
627 GetRectTop(FX_RECT rect) argument
634 GetRectBottom(FX_RECT rect) argument
745 FX_RECT rect = pObj->GetBBox(&matrix); local
765 FX_RECT rect = pObj->GetBBox(&matrix); local
775 FX_RECT rect = pObj->GetBBox(&matrix); local
[all...]

Completed in 849 milliseconds

1234567891011>>