当前位置: 首页>>代码示例>>C++>>正文


C++ paintingDisabled函数代码示例

本文整理汇总了C++中paintingDisabled函数的典型用法代码示例。如果您正苦于以下问题:C++ paintingDisabled函数的具体用法?C++ paintingDisabled怎么用?C++ paintingDisabled使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了paintingDisabled函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: restorePlatformState

void GraphicsContext::restorePlatformState()
{
    if (paintingDisabled())
        return;
    platformContext()->restore();
}
开发者ID:3filiatd,项目名称:google_cache_invalidation_repo,代码行数:6,代码来源:GraphicsContextAndroid.cpp

示例2: fillRect

void GraphicsContext::fillRect(const FloatRect& rect, Gradient& gradient)
{
    if (paintingDisabled())
        return;
    gradient.fill(this, rect);
}
开发者ID:josedealcala,项目名称:webkit,代码行数:6,代码来源:GraphicsContext.cpp

示例3: fillRect

void GraphicsContext::fillRect(const FloatRect& rect, Generator& generator)
{
    if (paintingDisabled())
        return;
    generator.fill(this, rect);
}
开发者ID:Katarzynasrom,项目名称:patch-hosting-for-android-x86-support,代码行数:6,代码来源:GraphicsContext.cpp

示例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);
}
开发者ID:ZeusbaseWeb,项目名称:webkit,代码行数:63,代码来源:GraphicsContextCairo.cpp

示例5: setAlpha

void GraphicsContext::setAlpha(float alpha)
{
    if (paintingDisabled())
        return;
    platformContext()->setAlpha(alpha);
}
开发者ID:digideskio,项目名称:WebkitAIR,代码行数:6,代码来源:GraphicsContextSkia.cpp

示例6: setMiterLimit

void GraphicsContext::setMiterLimit(float limit)
{
    if (paintingDisabled())
        return;
    platformContext()->setMiterLimit(limit);
}
开发者ID:digideskio,项目名称:WebkitAIR,代码行数:6,代码来源:GraphicsContextSkia.cpp

示例7: scale

void GraphicsContext::scale(const FloatSize& size)
{
    if (paintingDisabled())
        return;
    platformContext()->scale(size);
}
开发者ID:3filiatd,项目名称:google_cache_invalidation_repo,代码行数:6,代码来源:GraphicsContextAndroid.cpp

示例8: rotate

void GraphicsContext::rotate(float angleInRadians)
{
    if (paintingDisabled())
        return;
    platformContext()->rotate(angleInRadians);
}
开发者ID:3filiatd,项目名称:google_cache_invalidation_repo,代码行数:6,代码来源:GraphicsContextAndroid.cpp

示例9: setLineCap

void GraphicsContext::setLineCap(LineCap cap)
{
    if (paintingDisabled())
        return;
    platformContext()->setLineCap(cap);
}
开发者ID:3filiatd,项目名称:google_cache_invalidation_repo,代码行数:6,代码来源:GraphicsContextAndroid.cpp

示例10: setLineJoin

void GraphicsContext::setLineJoin(LineJoin join)
{
    if (paintingDisabled())
        return;
    platformContext()->setLineJoin(join);
}
开发者ID:3filiatd,项目名称:google_cache_invalidation_repo,代码行数:6,代码来源:GraphicsContextAndroid.cpp

示例11: setPlatformCompositeOperation

void GraphicsContext::setPlatformCompositeOperation(CompositeOperator op)
{
    if (paintingDisabled())
        return;
    platformContext()->setCompositeOperation(op);
}
开发者ID:3filiatd,项目名称:google_cache_invalidation_repo,代码行数:6,代码来源:GraphicsContextAndroid.cpp

示例12: setPlatformStrokeStyle

void GraphicsContext::setPlatformStrokeStyle(StrokeStyle style)
{
    if (paintingDisabled())
        return;
    platformContext()->setStrokeStyle(style);
}
开发者ID:3filiatd,项目名称:google_cache_invalidation_repo,代码行数:6,代码来源:GraphicsContextAndroid.cpp

示例13: setPlatformStrokeThickness

void GraphicsContext::setPlatformStrokeThickness(float f)
{
    if (paintingDisabled())
        return;
    platformContext()->setStrokeThickness(f);
}
开发者ID:3filiatd,项目名称:google_cache_invalidation_repo,代码行数:6,代码来源:GraphicsContextAndroid.cpp

示例14: concatCTM

void GraphicsContext::concatCTM(const AffineTransform& affine)
{
    if (paintingDisabled())
        return;
    platformContext()->canvas()->concat(affine);
}
开发者ID:digideskio,项目名称:WebkitAIR,代码行数:6,代码来源:GraphicsContextSkia.cpp

示例15: setPlatformShouldAntialias

void GraphicsContext::setPlatformShouldAntialias(bool useAA)
{
    if (paintingDisabled())
        return;
    platformContext()->setShouldAntialias(useAA);
}
开发者ID:3filiatd,项目名称:google_cache_invalidation_repo,代码行数:6,代码来源:GraphicsContextAndroid.cpp


注:本文中的paintingDisabled函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。