• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/WebCore-7600.1.25/platform/graphics/wince/

Lines Matching defs:dc

185     GraphicsContextPlatformPrivate(HDC dc)
186 : m_dc(dc)
291 SharedBitmap::DCHolder dc(bmp.get());
292 if (dc.get()) {
293 BitBlt(dc.get(), 0, 0, origRect.width(), origRect.height(), m_dc, origRect.x(), origRect.y(), SRCCOPY);
591 void GraphicsContext::platformInit(PlatformGraphicsContext* dc, bool)
593 m_data = new GraphicsContextPlatformPrivate(dc);
639 HDC dc = transparentDC.hdc();
640 if (!dc)
648 oldBrush = SelectObject(dc, brush.get());
650 oldBrush = SelectObject(dc, GetStockObject(NULL_BRUSH));
656 oldPen = SelectObject(dc, pen.get());
658 oldPen = SelectObject(dc, GetStockObject(NULL_PEN));
666 Rectangle(dc, trRect.x(), trRect.y(), trRect.maxX(), trRect.maxY());
669 SelectObject(dc, oldPen);
670 SelectObject(dc, oldBrush);
688 HDC dc = transparentDC.hdc();
689 if (!dc)
695 HGDIOBJ oldPen = SelectObject(dc, pen.get());
697 MoveToEx(dc, trPoint1.x(), trPoint1.y(), 0);
698 LineTo(dc, trPoint2.x(), trPoint2.y());
700 SelectObject(dc, oldPen);
714 HDC dc = transparentDC.hdc();
715 if (!dc)
723 oldBrush = SelectObject(dc, brush.get());
725 oldBrush = SelectObject(dc, GetStockObject(NULL_BRUSH));
731 oldPen = SelectObject(dc, pen.get());
733 oldPen = SelectObject(dc, GetStockObject(NULL_PEN));
736 Ellipse(dc, trRect.x(), trRect.y(), trRect.maxX(), trRect.maxY());
738 SelectObject(dc, oldPen);
739 SelectObject(dc, oldBrush);
817 HDC dc = transparentDC.hdc();
818 if (!dc)
830 oldBrush = SelectObject(dc, brush.get());
832 oldBrush = SelectObject(dc, GetStockObject(NULL_BRUSH));
838 oldPen = SelectObject(dc, pen.get());
840 oldPen = SelectObject(dc, GetStockObject(NULL_PEN));
843 Polygon(dc, winPoints.data(), npoints);
845 SelectObject(dc, oldPen);
846 SelectObject(dc, oldBrush);
943 HDC dc = transparentDC.hdc();
944 if (!dc)
949 DrawFocusRect(dc, &rect);
1032 HDC dc = transparentDC.hdc();
1033 if (!dc)
1038 HGDIOBJ oldPen = SelectObject(dc, pen.get());
1051 Polyline(dc, intPoints, 5);
1053 SelectObject(dc, oldPen);
1183 HDC dc = transparentDc.hdc();
1184 if (!dc)
1192 HGDIOBJ oldBrush = SelectObject(dc, brush.get());
1194 SelectObject(dc, GetStockObject(NULL_PEN));
1203 bool needsNewClip = (GetClipRgn(dc, clipRgn.get()) <= 0);
1205 drawRoundCorner(needsNewClip, clipRect, rectWin, dc, stableRound(newTopLeft.width() * 2), stableRound(newTopLeft.height() * 2));
1212 drawRoundCorner(needsNewClip, clipRect, rectWin, dc, stableRound(newTopRight.width() * 2), stableRound(newTopRight.height() * 2));
1219 drawRoundCorner(needsNewClip, clipRect, rectWin, dc, stableRound(newBottomLeft.width() * 2), stableRound(newBottomLeft.height() * 2));
1226 drawRoundCorner(needsNewClip, clipRect, rectWin, dc, stableRound(newBottomRight.width() * 2), stableRound(newBottomRight.height() * 2));
1228 SelectObject(dc, oldBrush);
1231 void GraphicsContext::drawRoundCorner(bool needsNewClip, RECT clipRect, RECT rectWin, HDC dc, int width, int height)
1233 if (!dc)
1239 SelectClipRgn(dc, clipRgn.get());
1241 IntersectClipRect(dc, clipRect.left, clipRect.top, clipRect.right, clipRect.bottom);
1243 ::RoundRect(dc, rectWin.left , rectWin.top , rectWin.right , rectWin.bottom , width, height);
1245 SelectClipRgn(dc, needsNewClip ? 0 : clipRgn.get());
1294 HDC dc = transparentDC.hdc();
1295 if (!dc)
1301 SelectObject(dc, GetStockObject(NULL_PEN));
1302 HGDIOBJ oldBrush = SelectObject(dc, brush.get());
1303 path.platformPath()->fillPath(dc, &tr);
1304 SelectObject(dc, oldBrush);
1329 HDC dc = transparentDC.hdc();
1330 if (!dc)
1336 SelectObject(dc, GetStockObject(NULL_BRUSH));
1337 HGDIOBJ oldPen = SelectObject(dc, pen.get());
1338 path.platformPath()->strokePath(dc, &tr);
1339 SelectObject(dc, oldPen);
1372 HDC dc = transparentDC.hdc();
1373 if (!dc)
1390 g_radialGradientFiller(dc, rect, p0, p1, r0, r1, gradient->getStops());
1394 g_linearGradientFiller(dc, rect, p0, p1, gradient->getStops());
1436 GradientFill(dc, tv.data(), tv.size(), mesh.data(), mesh.size(), vertical ? GRADIENT_FILL_RECT_V : GRADIENT_FILL_RECT_H);
1706 HDC dc = transparentDC.hdc();
1707 if (!dc)
1720 ::StretchBlt(dc, rectWin.left, rectWin.top, rectWin.right - rectWin.left, rectWin.bottom - rectWin.top, memDC.get(), 0, 0, boxWidthBest, boxHeightBest, SRCCOPY);
1725 DrawFrameControl(dc, &rectWin, type, state);
1739 HDC dc = transparentDC.hdc();
1740 if (!dc)
1745 DrawFocusRect(dc, &rectWin);
1759 HDC dc = transparentDC.hdc();
1760 if (!dc)
1765 DrawEdge(dc, &rectWin, EDGE_ETCHED, BF_RECT | BF_ADJUST);
1766 FillRect(dc, &rectWin, reinterpret_cast<HBRUSH>(((state & DFCS_INACTIVE) ? COLOR_BTNFACE : COLOR_WINDOW) + 1));
1780 HDC dc = transparentDC.hdc();
1781 if (!dc)
1785 bmp->draw(dc, dstRect, srcRect, compositeOp, blendMode);
1804 HDC dc = transparentDC.hdc();
1805 if (!dc)
1813 bmp->drawPattern(dc, transform, tileRectIn, patternTransform, phase, styleColorSpace, op, destRectIn, origSourceSize);
1830 HDC dc = transparentDC.hdc();
1831 if (!dc)
1835 DrawIconEx(dc, dstRect.x(), dstRect.y(), icon, dstRect.width(), dstRect.height(), 0, NULL, flags);