Home | History | Annotate | Download | only in wince

Lines Matching refs:dc

184     GraphicsContextPlatformPrivate(HDC dc)
185 : m_dc(dc)
290 SharedBitmap::DCHolder dc(bmp.get());
291 if (dc.get()) {
292 BitBlt(dc.get(), 0, 0, origRect.width(), origRect.height(), m_dc, origRect.x(), origRect.y(), SRCCOPY);
589 GraphicsContext::GraphicsContext(PlatformGraphicsContext* dc)
591 , m_data(new GraphicsContextPlatformPrivate(dc))
641 HDC dc = transparentDC.hdc();
642 if (!dc)
650 oldBrush = SelectObject(dc, brush);
652 SelectObject(dc, GetStockObject(NULL_BRUSH));
658 oldPen = SelectObject(dc, pen);
660 SelectObject(dc, GetStockObject(NULL_PEN));
670 Rectangle(dc, trRect.x(), trRect.y(), trRect.right(), trRect.bottom());
673 SelectObject(dc, oldPen);
678 SelectObject(dc, oldBrush);
698 HDC dc = transparentDC.hdc();
699 if (!dc)
705 HGDIOBJ oldPen = SelectObject(dc, pen);
707 MoveToEx(dc, trPoint1.x(), trPoint1.y(), 0);
708 LineTo(dc, trPoint2.x(), trPoint2.y());
710 SelectObject(dc, oldPen);
725 HDC dc = transparentDC.hdc();
726 if (!dc)
734 oldBrush = SelectObject(dc, brush);
736 SelectObject(dc, GetStockObject(NULL_BRUSH));
741 oldPen = SelectObject(dc, pen);
743 SelectObject(dc, GetStockObject(NULL_PEN));
745 Ellipse(dc, trRect.x(), trRect.y(), trRect.right(), trRect.bottom());
748 SelectObject(dc, oldPen);
753 SelectObject(dc, oldBrush);
812 HDC dc = transparentDC.hdc();
813 if (!dc)
818 HGDIOBJ oldPen = SelectObject(dc, pen);
855 if (GetClipRgn(dc, clipRgn.get()) <= 0) {
858 SelectClipRgn(dc, clipRgn.get());
861 IntersectClipRect(dc, clipRect.left, clipRect.top, clipRect.right, clipRect.bottom);
864 HGDIOBJ oldBrush = SelectObject(dc, GetStockObject(NULL_BRUSH));
865 Ellipse(dc, trRect.x(), trRect.y(), trRect.right(), trRect.bottom());
866 SelectObject(dc, oldBrush);
869 SelectClipRgn(dc, 0);
871 SelectClipRgn(dc, clipRgn.get());
873 SelectObject(dc, oldPen);
909 HDC dc = transparentDC.hdc();
910 if (!dc)
922 oldBrush = SelectObject(dc, brush);
924 SelectObject(dc, GetStockObject(NULL_BRUSH));
930 oldPen = SelectObject(dc, pen);
932 SelectObject(dc, GetStockObject(NULL_PEN));
937 Polygon(dc, winPoints.data(), npoints);
940 SelectObject(dc, oldPen);
945 SelectObject(dc, oldBrush);
1033 HDC dc = transparentDC.hdc();
1034 if (!dc)
1039 DrawFocusRect(dc, &rect);
1110 HDC dc = transparentDC.hdc();
1111 if (!dc)
1116 HGDIOBJ oldPen = SelectObject(dc, pen);
1129 Polyline(dc, intPoints, 5);
1131 SelectObject(dc, oldPen);
1269 HDC dc = transparentDc.hdc();
1270 if (!dc)
1278 HGDIOBJ oldBrush = SelectObject(dc, brush);
1280 SelectObject(dc, GetStockObject(NULL_PEN));
1289 bool needsNewClip = (GetClipRgn(dc, clipRgn.get()) <= 0);
1291 drawRoundCorner(needsNewClip, clipRect, rectWin, dc, stableRound(newTopLeft.width() * 2), stableRound(newTopLeft.height() * 2));
1298 drawRoundCorner(needsNewClip, clipRect, rectWin, dc, stableRound(newTopRight.width() * 2), stableRound(newTopRight.height() * 2));
1305 drawRoundCorner(needsNewClip, clipRect, rectWin, dc, stableRound(newBottomLeft.width() * 2), stableRound(newBottomLeft.height() * 2));
1312 drawRoundCorner(needsNewClip, clipRect, rectWin, dc, stableRound(newBottomRight.width() * 2), stableRound(newBottomRight.height() * 2));
1314 SelectObject(dc, oldBrush);
1319 void GraphicsContext::drawRoundCorner(bool needsNewClip, RECT clipRect, RECT rectWin, HDC dc, int width, int height)
1321 if (!dc)
1327 SelectClipRgn(dc, clipRgn.get());
1329 IntersectClipRect(dc, clipRect.left, clipRect.top, clipRect.right, clipRect.bottom);
1331 ::RoundRect(dc, rectWin.left , rectWin.top , rectWin.right , rectWin.bottom , width, height);
1333 SelectClipRgn(dc, needsNewClip ? 0 : clipRgn.get());
1379 HDC dc = transparentDC.hdc();
1380 if (!dc)
1386 SelectObject(dc, GetStockObject(NULL_PEN));
1387 HGDIOBJ oldBrush = SelectObject(dc, brush);
1388 i->platformPath()->fillPath(dc, &tr);
1389 SelectObject(dc, oldBrush);
1419 HDC dc = transparentDC.hdc();
1420 if (!dc)
1426 SelectObject(dc, GetStockObject(NULL_BRUSH));
1427 HGDIOBJ oldPen = SelectObject(dc, pen);
1428 i->platformPath()->strokePath(dc, &tr);
1429 SelectObject(dc, oldPen);
1467 HDC dc = transparentDC.hdc();
1468 if (!dc)
1485 g_radialGradientFiller(dc, rect, p0, p1, r0, r1, gradient->getStops());
1489 g_linearGradientFiller(dc, rect, p0, p1, gradient->getStops());
1531 GradientFill(dc, tv.data(), tv.size(), mesh.data(), mesh.size(), vertical ? GRADIENT_FILL_RECT_V : GRADIENT_FILL_RECT_H);
1792 HDC dc = transparentDC.hdc();
1793 if (!dc)
1806 ::StretchBlt(dc, rectWin.left, rectWin.top, rectWin.right - rectWin.left, rectWin.bottom - rectWin.top, memDC.get(), 0, 0, boxWidthBest, boxHeightBest, SRCCOPY);
1811 DrawFrameControl(dc, &rectWin, type, state);
1825 HDC dc = transparentDC.hdc();
1826 if (!dc)
1831 DrawFocusRect(dc, &rectWin);
1845 HDC dc = transparentDC.hdc();
1846 if (!dc)
1851 DrawEdge(dc, &rectWin, EDGE_ETCHED, BF_RECT | BF_ADJUST);
1852 FillRect(dc, &rectWin, reinterpret_cast<HBRUSH>(((state & DFCS_INACTIVE) ? COLOR_BTNFACE : COLOR_WINDOW) + 1));
1866 HDC dc = transparentDC.hdc();
1867 if (!dc)
1871 bmp->draw(dc, dstRect, srcRect, compositeOp);
1890 HDC dc = transparentDC.hdc();
1891 if (!dc)
1899 bmp->drawPattern(dc, transform, tileRectIn, patternTransform, phase, op, destRectIn, origSourceSize);
1916 HDC dc = transparentDC.hdc();
1917 if (!dc)
1921 DrawIconEx(dc, dstRect.x(), dstRect.y(), icon, dstRect.width(), dstRect.height(), 0, NULL, flags);