Exemplo n.º 1
0
def test_PathEffect_asPoints(patheffect):
    results = skia.PathEffect.PointData()
    path = skia.Path()
    path.addCircle(10, 10, 5)
    rec = skia.StrokeRec(skia.StrokeRec.kHairline_InitStyle)
    matrix = skia.Matrix()
    assert isinstance(patheffect.asPoints(results, path, rec, matrix, None),
                      bool)
Exemplo n.º 2
0
def test_StrokeRec_hasEqualEffect(strokerec):
    assert isinstance(
        strokerec.hasEqualEffect(
            skia.StrokeRec(skia.StrokeRec.kHairline_InitStyle)), bool)
Exemplo n.º 3
0
def strokerec():
    return skia.StrokeRec(skia.StrokeRec.kHairline_InitStyle)
Exemplo n.º 4
0
def test_PathEffect_filterPath(patheffect):
    dst = skia.Path()
    src = skia.Path()
    src.addCircle(10, 10, 5)
    rec = skia.StrokeRec(skia.StrokeRec.kHairline_InitStyle)
    assert isinstance(patheffect.filterPath(dst, src, rec, None), bool)
Exemplo n.º 5
0
def test_StrokeRec_init(args):
    assert isinstance(skia.StrokeRec(*args), skia.StrokeRec)