本文整理汇总了C++中paintingDisabled函数的典型用法代码示例。如果您正苦于以下问题:C++ paintingDisabled函数的具体用法?C++ paintingDisabled怎么用?C++ paintingDisabled使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了paintingDisabled函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: restorePlatformState
void GraphicsContext::restorePlatformState()
{
if (paintingDisabled())
return;
platformContext()->restore();
}
示例2: fillRect
void GraphicsContext::fillRect(const FloatRect& rect, Gradient& gradient)
{
if (paintingDisabled())
return;
gradient.fill(this, rect);
}
示例3: fillRect
void GraphicsContext::fillRect(const FloatRect& rect, Generator& generator)
{
if (paintingDisabled())
return;
generator.fill(this, rect);
}
示例4: drawFocusRing
void GraphicsContext::drawFocusRing(const Vector<IntRect>& rects, int width, int /* offset */, const Color& color)
{
if (paintingDisabled())
return;
unsigned rectCount = rects.size();
cairo_t* cr = platformContext()->cr();
cairo_save(cr);
cairo_push_group(cr);
cairo_new_path(cr);
#if PLATFORM(GTK)
#ifdef GTK_API_VERSION_2
GdkRegion* reg = gdk_region_new();
#else
cairo_region_t* reg = cairo_region_create();
#endif
for (unsigned i = 0; i < rectCount; i++) {
#ifdef GTK_API_VERSION_2
GdkRectangle rect = rects[i];
gdk_region_union_with_rect(reg, &rect);
#else
cairo_rectangle_int_t rect = rects[i];
cairo_region_union_rectangle(reg, &rect);
#endif
}
gdk_cairo_region(cr, reg);
#ifdef GTK_API_VERSION_2
gdk_region_destroy(reg);
#else
cairo_region_destroy(reg);
#endif
#else
int radius = (width - 1) / 2;
Path path;
for (unsigned i = 0; i < rectCount; ++i) {
if (i > 0)
path.clear();
path.addRoundedRect(rects[i], FloatSize(radius, radius));
appendWebCorePathToCairoContext(cr, path);
}
#endif
Color ringColor = color;
adjustFocusRingColor(ringColor);
adjustFocusRingLineWidth(width);
setSourceRGBAFromColor(cr, ringColor);
cairo_set_line_width(cr, width);
setPlatformStrokeStyle(focusRingStrokeStyle());
cairo_set_operator(cr, CAIRO_OPERATOR_OVER);
cairo_stroke_preserve(cr);
cairo_set_operator(cr, CAIRO_OPERATOR_CLEAR);
cairo_set_fill_rule(cr, CAIRO_FILL_RULE_WINDING);
cairo_fill(cr);
cairo_pop_group_to_source(cr);
cairo_set_operator(cr, CAIRO_OPERATOR_OVER);
cairo_paint(cr);
cairo_restore(cr);
}
示例5: setAlpha
void GraphicsContext::setAlpha(float alpha)
{
if (paintingDisabled())
return;
platformContext()->setAlpha(alpha);
}
示例6: setMiterLimit
void GraphicsContext::setMiterLimit(float limit)
{
if (paintingDisabled())
return;
platformContext()->setMiterLimit(limit);
}
示例7: scale
void GraphicsContext::scale(const FloatSize& size)
{
if (paintingDisabled())
return;
platformContext()->scale(size);
}
示例8: rotate
void GraphicsContext::rotate(float angleInRadians)
{
if (paintingDisabled())
return;
platformContext()->rotate(angleInRadians);
}
示例9: setLineCap
void GraphicsContext::setLineCap(LineCap cap)
{
if (paintingDisabled())
return;
platformContext()->setLineCap(cap);
}
示例10: setLineJoin
void GraphicsContext::setLineJoin(LineJoin join)
{
if (paintingDisabled())
return;
platformContext()->setLineJoin(join);
}
示例11: setPlatformCompositeOperation
void GraphicsContext::setPlatformCompositeOperation(CompositeOperator op)
{
if (paintingDisabled())
return;
platformContext()->setCompositeOperation(op);
}
示例12: setPlatformStrokeStyle
void GraphicsContext::setPlatformStrokeStyle(StrokeStyle style)
{
if (paintingDisabled())
return;
platformContext()->setStrokeStyle(style);
}
示例13: setPlatformStrokeThickness
void GraphicsContext::setPlatformStrokeThickness(float f)
{
if (paintingDisabled())
return;
platformContext()->setStrokeThickness(f);
}
示例14: concatCTM
void GraphicsContext::concatCTM(const AffineTransform& affine)
{
if (paintingDisabled())
return;
platformContext()->canvas()->concat(affine);
}
示例15: setPlatformShouldAntialias
void GraphicsContext::setPlatformShouldAntialias(bool useAA)
{
if (paintingDisabled())
return;
platformContext()->setShouldAntialias(useAA);
}