/external/icu4c/samples/layout/ |
Surface.cpp | 18 RECT clip; local 20 clip.top = 0; 21 clip.left = 0; 22 clip.bottom = height; 23 clip.right = width; 27 ExtTextOut(fHdc, x, y - fAscent, ETO_CLIPPED | ETO_GLYPH_INDEX, &clip,
|
/external/skia/src/core/ |
SkLineClipper.cpp | 39 bool SkLineClipper::IntersectLine(const SkPoint src[2], const SkRect& clip, 44 if (containsNoEmptyCheck(clip, bounds)) { 52 if (nestedLT(bounds.fRight, clip.fLeft, bounds.width()) || 53 nestedLT(clip.fRight, bounds.fLeft, bounds.width()) || 54 nestedLT(bounds.fBottom, clip.fTop, bounds.height()) || 55 nestedLT(clip.fBottom, bounds.fTop, bounds.height())) { 73 if (tmp[index0].fY < clip.fTop) { 74 tmp[index0].set(sect_with_horizontal(src, clip.fTop), clip.fTop); 76 if (tmp[index1].fY > clip.fBottom) [all...] |
SkEdgeClipper.cpp | 20 static bool quick_reject(const SkRect& bounds, const SkRect& clip) { 21 return bounds.fTop >= clip.fBottom || bounds.fBottom <= clip.fTop; 82 // Modify pts[] in place so that it is clipped in Y to the clip rect 83 static void chop_quad_in_Y(SkPoint pts[3], const SkRect& clip) { 88 if (pts[0].fY < clip.fTop) { 89 if (chopMonoQuadAtY(pts, clip.fTop, &t)) { 92 clamp_ge(tmp[2].fY, clip.fTop); 93 clamp_ge(tmp[3].fY, clip.fTop); 100 if (pts[i].fY < clip.fTop) [all...] |
SkScan.cpp | 26 void SkScan::FillIRect(const SkIRect& r, const SkRegion* clip, 29 if (clip) { 30 if (clip->isRect()) { 31 const SkIRect& clipBounds = clip->getBounds(); 42 SkRegion::Cliperator cliper(*clip, r); 56 void SkScan::FillXRect(const SkXRect& xr, const SkRegion* clip, 61 SkScan::FillIRect(r, clip, blitter); 66 void SkScan::FillRect(const SkRect& r, const SkRegion* clip, 71 SkScan::FillIRect(ir, clip, blitter);
|
SkScan_Hairline.cpp | 44 void SkScan::HairLine(const SkPoint& pt0, const SkPoint& pt1, const SkRegion* clip, SkBlitter* blitter) 51 if (clip) { 52 // Perform a clip in scalar space, so we catch huge values which might 54 r.set(clip->getBounds()); 65 if (clip) { 69 const SkIRect& bounds = clip->getBounds(); 85 if (clip->isRect() && clipR.contains(ptsR)) { 86 clip = NULL; 88 blitter = clipper.apply(blitter, clip); 134 void SkScan::HairRect(const SkRect& rect, const SkRegion* clip, SkBlitter* blitter [all...] |
SkScan_Antihair.cpp | 27 our extends. The bug is that when this happens, we will set the clip to 28 NULL (for speed), and thus draw outside of the clip by a pixel, which might 34 case (i.e. not setting the clip to NULL) when we might not actually need 224 const SkIRect* clip, SkBlitter* blitter) 233 values are huge. A better fix might be to clip the original pts 239 do_anti_hairline(x0, y0, hx, hy, clip, blitter); 240 do_anti_hairline(hx, hy, x1, y1, clip, blitter); 279 if (clip) 281 if (istart >= clip->fRight || istop <= clip->fLeft [all...] |
SkQuadClipper.h | 22 /** This class is initialized with a clip rectangle, and then can be fed quads, 25 In the future, it might return a series of segments, allowing it to clip 32 void setClip(const SkIRect& clip); 46 bool clipQuad(const SkPoint pts[3], const SkRect& clip); 47 bool clipCubic(const SkPoint pts[4], const SkRect& clip); 62 void clipMonoQuad(const SkPoint srcPts[3], const SkRect& clip); 63 void clipMonoCubic(const SkPoint srcPts[4], const SkRect& clip);
|
SkEdge.h | 42 int setLine(const SkPoint& p0, const SkPoint& p1, const SkIRect* clip, 45 void chopLineWithClip(const SkIRect& clip); 47 inline bool intersectsClip(const SkIRect& clip) const { 48 SkASSERT(fFirstY < clip.fBottom); 49 return fLastY >= clip.fTop; 89 int setCubic(const SkPoint pts[4], const SkIRect* clip, int shiftUp);
|
SkBlitBWMaskTemplate.h | 27 SK_BLITBWMASK_NAME name of function(const SkBitmap& bitmap, const SkMask& mask, const SkIRect& clip, SK_BLITBWMASK_ARGS) 34 static void SK_BLITBWMASK_NAME(const SkBitmap& bitmap, const SkMask& srcMask, const SkIRect& clip SK_BLITBWMASK_ARGS) 36 SkASSERT(clip.fRight <= srcMask.fBounds.fRight); 38 int cx = clip.fLeft; 39 int cy = clip.fTop; 43 unsigned height = clip.height(); 52 if (cx == maskLeft && clip.fRight == srcMask.fBounds.fRight) 69 int rite_edge = clip.fRight - maskLeft;
|
SkEdgeBuilder.h | 16 int build(const SkPath& path, const SkIRect* clip, int shiftUp);
|
SkScanPriv.h | 26 SkScanClipper(SkBlitter* blitter, const SkRegion* clip, const SkIRect& bounds); 38 // clipRect == null means path is entirely inside the clip 45 const SkRegion& clip);
|
/external/skia/include/core/ |
SkLineClipper.h | 13 /* Clip the line pts[0]...pts[1] against clip, ignoring segments that 14 lie completely above or below the clip. For portions to the left or 16 edge of the clip. 24 static int ClipLine(const SkPoint pts[2], const SkRect& clip, 35 static bool IntersectLine(const SkPoint src[2], const SkRect& clip,
|
SkScan.h | 34 static void FillIRect(const SkIRect&, const SkRegion* clip, SkBlitter*); 35 static void FillXRect(const SkXRect&, const SkRegion* clip, SkBlitter*); 38 static void FillRect(const SkRect& rect, const SkRegion* clip, 40 SkScan::FillXRect(*(const SkXRect*)&rect, clip, blitter); 43 static void FillRect(const SkRect&, const SkRegion* clip, SkBlitter*); 47 static void FillPath(const SkPath&, const SkRegion& clip, SkBlitter*); 50 const SkPoint& c, const SkRegion* clip, 56 FillTriangle(pts, clip, blitter); 59 static void HairLine(const SkPoint&, const SkPoint&, const SkRegion* clip, SkBlitter*); 60 static void HairRect(const SkRect&, const SkRegion* clip, SkBlitter*) [all...] |
SkEdgeClipper.h | 22 /** This is basically an iterator. It is initialized with an edge and a clip, 27 bool clipQuad(const SkPoint pts[3], const SkRect& clip); 28 bool clipCubic(const SkPoint pts[4], const SkRect& clip); 43 void clipMonoQuad(const SkPoint srcPts[3], const SkRect& clip); 44 void clipMonoCubic(const SkPoint srcPts[4], const SkRect& clip);
|
/sdk/draw9patch/src/com/android/draw9patch/ui/ |
GradientPanel.java | 38 Rectangle clip = g2.getClipBounds(); local 43 g2.fillRect(clip.x, clip.y, clip.width, clip.height);
|
/external/webkit/WebKit/mac/WebView/ |
WebClipView.m | 36 // WebClipView's entire reason for existing is to set the clip used by focus ring redrawing. 37 // There's no easy way to prevent the focus ring from drawing outside the passed-in clip rectangle 39 // But it looks for the enclosing clip view, which gives us a hook we can use to control it. 40 // The "additional clip" is a clip for focus ring redrawing. 42 // FIXME: Change terminology from "additional clip" to "focus ring clip". 56 // In WebHTMLView, we set a clip. This is not typical to do in an 58 // it causes some bad problems if that clip is cached between calls. 59 // The cached graphics state, which clip views keep around, doe [all...] |
/external/proguard/src/proguard/gui/splash/ |
ClipSprite.java | 26 * This Sprite encapsulates another Sprite, which is clipped by a clip Sprite. 40 * @param insideClipColor the background color inside the clip sprite. 41 * @param outsideClipColor the background color outside the clip sprite. 42 * @param clipSprite the clip Sprite. 63 Rectangle clip = graphics.getClipBounds(); local 66 graphics.fillRect(0, 0, clip.width, clip.height); 75 // Clear the clip area.
|
/frameworks/base/opengl/libagl/ |
vertex.cpp | 52 // Divides a vertex clip coordinates by W 56 // [x,y,z]window = vpt * ([x,y,z]clip / clip.w) 69 const int32_t rw = gglRecip28(v->clip.w); 72 v->window.x = gglMulAddx(gglMulx(v->clip.x, rw, 16), m[ 0], m[12], 28); 73 v->window.y = gglMulAddx(gglMulx(v->clip.y, rw, 16), m[ 5], m[13], 28); 77 v->window.z = gglMulAddx(gglMulx(v->clip.z, rw, 16), m[10], m[14], 28); 85 // ndc = clip / W 88 // clip to the view-volume 89 uint32_t clip = v->flags & vertex_t::CLIP_ALL local 118 uint32_t clip = 0; local [all...] |
/external/webkit/WebCore/page/mac/ |
WebDashboardRegion.m | 35 - initWithRect:(NSRect)r clip:(NSRect)c type:(WebDashboardRegionType)t 39 clip = c; 53 return clip; 83 return [NSString stringWithFormat:@"rect:%@ clip:%@ type:%s", NSStringFromRect(rect), NSStringFromRect(clip), typeName(type)]; 89 return NSEqualRects(rect, [other dashboardRegionRect]) && NSEqualRects(clip, [other dashboardRegionClip]) && type == [other dashboardRegionType];
|
/external/skia/tests/ |
ClipCubicTest.cpp | 61 // Test no clip, with plenty of room. 69 // Test no clip, touching first point. 77 // Test no clip, touching last point. 85 // Test all clip. 91 // Test clip at 1. 103 // Test clip at 2. 115 // Test clip at 11. 127 // Test clip at 10.
|
/external/webkit/WebCore/css/ |
SVGCSSPropertyNames.in | 6 clip-path 7 clip-rule
|
/frameworks/base/core/res/res/drawable/ |
progress_horizontal.xml | 33 <clip> 44 </clip> 48 <clip> 59 </clip>
|
/packages/apps/Music/res/drawable-finger/ |
progress_horizontal.xml | 30 <clip android:drawable="@drawable/panel_now_playing_progress_bg"/> 38 <clip> 46 </clip>
|
/external/quake/quake/src/QW/server/ |
world.c | 26 entities never clip against themselves, or their owner 700 // did we clip the move? 716 void SV_ClipToLinks ( areanode_t *node, moveclip_t *clip ) 729 if (touch == clip->passedict) 734 if (clip->type == MOVE_NOMONSTERS && touch->v.solid != SOLID_BSP) 737 if (clip->boxmins[0] > touch->v.absmax[0] 738 || clip->boxmins[1] > touch->v.absmax[1] 739 || clip->boxmins[2] > touch->v.absmax[2] 740 || clip->boxmaxs[0] < touch->v.absmin[0] 741 || clip->boxmaxs[1] < touch->v.absmin[1 827 moveclip_t clip; local [all...] |
/external/quake/quake/src/WinQuake/ |
world.cpp | 26 entities never clip against themselves, or their owner 798 // did we clip the move? 814 void SV_ClipToLinks ( areanode_t *node, moveclip_t *clip ) 827 if (touch == clip->passedict) 832 if (clip->type == MOVE_NOMONSTERS && touch->u.v.solid != SOLID_BSP) 835 if (clip->boxmins[0] > touch->u.v.absmax[0] 836 || clip->boxmins[1] > touch->u.v.absmax[1] 837 || clip->boxmins[2] > touch->u.v.absmax[2] 838 || clip->boxmaxs[0] < touch->u.v.absmin[0] 839 || clip->boxmaxs[1] < touch->u.v.absmin[1 925 moveclip_t clip; local [all...] |