void GraphicsContext::clipOutRoundedRect(const FloatRoundedRect& rect) { if (paintingDisabled()) return; if (!rect.isRounded()) { clipOut(rect.rect()); return; } Path path; path.addRoundedRect(rect); clipOut(path); }
void XYViewGridControl::CopyToClipboardXY() { if (gXY == 0) return; PS_TxtClipboard clipOut(80); if (!clipOut.OpenTxtClipboard(true)) { GenAppWarningMsg("XYViewGridControl", "Can't open clipboard"); return; } clipOut.WriteSolidText("XData \t yData \t"); clipOut.WriteLine(); char tempStr[80]; for (int i = 0; i < gXY->Size(); i++) { xFormat.RealToString(gXY->xData[i], tempStr, 80); ConcatString(tempStr, " \t", 80); clipOut.WriteSolidText(tempStr); yFormat.RealToString(gXY->yData[i], tempStr, 80); ConcatString(tempStr, " \t", 80); clipOut.WriteSolidText(tempStr); clipOut.WriteLine(); } clipOut.Close(); }
void GraphicsContext::clipOutRoundedRect(const IntRect& rect, const IntSize& topLeft, const IntSize& topRight, const IntSize& bottomLeft, const IntSize& bottomRight) { if (paintingDisabled()) return; clipOut(Path::createRoundedRectangle(rect, topLeft, topRight, bottomLeft, bottomRight)); }
void GraphicsContext::clipOutRoundedRect(const RoundedRect& rect) { if (paintingDisabled()) return; Path path; path.addRoundedRect(rect); clipOut(path); }
void GraphicsContext::clipOutRoundedRect(const RoundedIntRect& rect) { if (paintingDisabled()) return; Path path; path.addRoundedRect(rect.rect(), rect.radii().topLeft(), rect.radii().topRight(), rect.radii().bottomLeft(), rect.radii().bottomRight()); clipOut(path); }
void GraphicsContext::clipOutEllipseInRect(const IntRect& r) { if (paintingDisabled()) return; Path p; p.addEllipse(r); clipOut(p); }
void GridViewGridControl::CopyToClipboardGrid() { if (gGrid == 0) return; PS_TxtClipboard clipOut(gGrid->yData.Size() * 30); if (!clipOut.OpenTxtClipboard(true)) { GenAppWarningMsg("GridViewGridControl", "Can't open clipboard"); return; } clipOut.WriteSolidText("GridX\t"); int i; char tempStr[80]; int maxCols = gGrid->yData.Size(); for (i = 0; i < maxCols; i++) { gridFormat.RealToString(gGrid->yData[i], tempStr, 80); FillBlanks(tempStr); ConcatString(tempStr, " \t", 80); clipOut.WriteSolidText(tempStr); } clipOut.WriteLine(); for (i = 0; i < gGrid->xData.Size(); i++) { gridFormat.RealToString(gGrid->xData[i], tempStr, 80); ConcatString(tempStr, " \t", 80); clipOut.WriteSolidText(tempStr); for (int j = 0; j < maxCols; j++) { gridFormat.RealToString(gGrid->gData[i][j], tempStr, 80); ConcatString(tempStr, " \t", 80); clipOut.WriteSolidText(tempStr); } clipOut.WriteLine(); } clipOut.Close(); }