tests/arthur/data/qps/clipping_state.qps
changeset 0 1918ee327afb
equal deleted inserted replaced
-1:000000000000 0:1918ee327afb
       
     1 path_addRect path1 10 10 50 50
       
     2 path_addRect path2 30 30 50 50
       
     3 
       
     4 
       
     5 # enable/disable a clip path
       
     6 setPen nopen
       
     7 setBrush red
       
     8 
       
     9 setClipPath path1
       
    10 setClipPath path2 UniteClip
       
    11 
       
    12 drawRect 0 0 100 100
       
    13 
       
    14 setClipping false
       
    15 
       
    16 setBrush #630000ff
       
    17 drawRect 0 0 100 100
       
    18 
       
    19 setClipping true
       
    20 
       
    21 setBrush #6300ff00
       
    22 drawRect 0 0 100 100
       
    23 
       
    24 
       
    25 # enable/disable noclip
       
    26 translate 150 0
       
    27 
       
    28 setClipPath path1 NoClip
       
    29 
       
    30 setClipping false
       
    31 
       
    32 setBrush #630000ff
       
    33 drawRect 0 0 100 100
       
    34 
       
    35 setClipping true
       
    36 
       
    37 setBrush #6300ff00
       
    38 drawRect 25 25 50 50
       
    39 
       
    40 
       
    41 # enable/disable full clipping
       
    42 translate 150 0
       
    43 
       
    44 path_addRect path3 0 0 10 10
       
    45 path_addRect path4 20 20 10 10
       
    46 setClipPath path3
       
    47 setClipPath path4 IntersectClip
       
    48 
       
    49 setClipping false
       
    50 
       
    51 setBrush #630000ff
       
    52 drawRect 0 0 100 100
       
    53 
       
    54 setClipping true
       
    55 
       
    56 setBrush #6300ff00
       
    57 drawRect 25 25 50 50
       
    58 
       
    59 # disable clipping followed by setClipRect
       
    60 translate 150 0
       
    61 
       
    62 setClipRect 0 0 50 50 ReplaceClip
       
    63 
       
    64 setClipping false
       
    65 
       
    66 setBrush #630000ff
       
    67 drawRect 0 0 100 100
       
    68 
       
    69 setClipRect 25 25 75 75 IntersectClip
       
    70 
       
    71 setBrush #6300ff00
       
    72 drawRect 25 25 50 50