Debian Codegraph @

tests/auto/other/lancelot/scripts/statictext.qps

raw
1 drawStaticText -5 5 "Text that is drawn outside the bounds..."
2
3 translate 20 20
4 begin_block text_drawing
5 save
6 setFont "sansserif" 10 normal
7 drawStaticText 0 20 "sansserif 10pt, normal"
8
9 setFont "sansserif" 12 normal
10 drawStaticText 0 40 "sansserif 12pt, normal"
11
12 setFont "sansserif" 12 bold
13 drawStaticText 0 60 "sansserif 12pt, bold"
14
15 setFont "sansserif" 10 bold italic
16 drawStaticText 0 80 "sansserif 10pt, bold italic"
17
18
19 translate 0 100
20 setPen #7fff0000
21
22 setFont "sansserif" 10 normal
23 drawStaticText 0 20 "alpha sansserif 10pt, normal"
24
25 setFont "sansserif" 12 normal
26 drawStaticText 0 40 "alpha sansserif 12pt, normal"
27
28 setFont "sansserif" 12 bold
29 drawStaticText 0 60 "alpha sansserif 12pt, bold"
30
31 setFont "sansserif" 10 bold italic
32 drawStaticText 0 80 "alpha sansserif 10pt, bold italic"
33
34
35 translate 0 100
36 setPen black
37 save
38 scale 0.9 0.9
39
40 setFont "sansserif" 10 normal
41 drawStaticText 0 20 "scaled sansserif 10pt, normal"
42
43 setFont "sansserif" 12 normal
44 drawStaticText 0 40 "scaled sansserif 12pt, normal"
45
46 setFont "sansserif" 12 bold
47 drawStaticText 0 60 "scaled sansserif 12pt, bold"
48
49 setFont "sansserif" 10 bold italic
50 drawStaticText 0 80 "scaled sansserif 10pt, bold italic"
51 restore
52
53 translate 200 200
54 setPen black
55 save
56 scale -1 -1
57
58 setFont "sansserif" 10 normal
59 drawStaticText 0 20 "flipped sansserif 10pt, normal"
60
61 setFont "sansserif" 12 normal
62 drawStaticText 0 40 "flipped sansserif 12pt, normal"
63
64 setFont "sansserif" 12 bold
65 drawStaticText 0 60 "flipped sansserif 12pt, bold"
66
67 setFont "sansserif" 10 bold italic
68 drawStaticText 0 80 "flipped sansserif 10pt, bold italic"
69 restore
70
71 translate -200 20
72 setPen black
73 save
74 translate 200 90
75 rotate 185
76
77 setFont "sansserif" 10 normal
78 drawStaticText 0 20 "rotated sansserif 10pt, normal"
79
80 setFont "sansserif" 12 normal
81 drawStaticText 0 40 "rotated sansserif 12pt, normal"
82
83 setFont "sansserif" 12 bold
84 drawStaticText 0 60 "rotated sansserif 12pt, bold"
85
86 setFont "sansserif" 10 bold italic
87 drawStaticText 0 80 "rotated sansserif 10pt, bold italic"
88 restore
89
90 translate 0 100
91 gradient_appendStop 0 red
92 gradient_appendStop 0.5 #00ff00
93 gradient_appendStop 1 blue
94 gradient_setLinear 0 0 200 0
95 setPen brush
96
97 setFont "sansserif" 10 normal
98 drawStaticText 0 0 "gradient sansserif 10pt, normal"
99
100 setFont "sansserif" 12 normal
101 drawStaticText 0 20 "gradient sansserif 12pt, normal"
102
103 setFont "sansserif" 12 bold
104 drawStaticText 0 40 "gradient sansserif 12pt, bold"
105
106 setFont "sansserif" 10 bold italic
107 drawStaticText 0 60 "gradient sansserif 10pt, bold italic"
108 restore
109 end_block
110
111 translate 250 0
112 drawStaticText 25 640 "clipped to rectangle"
113 save
114 setPen #3f000000
115 setBrush nobrush
116 drawRect 20 0 100 620
117 setClipRect 20 0 100 620
118 setPen black
119 repeat_block text_drawing
120 restore
121
122 translate 150 0
123 drawStaticText 25 640 "clipped to path"
124 save
125 path_moveTo clip 20 0
126 path_cubicTo clip 0 200 40 400 20 400
127 path_lineTo clip 30 620
128 path_lineTo clip 30 0
129 path_lineTo clip 40 0
130 path_lineTo clip 40 620
131 path_lineTo clip 120 620
132 path_lineTo clip 120 0
133 path_lineTo clip 20 0
134 setPen #3f000000
135 setBrush nobrush
136 drawPath clip
137 setClipPath clip
138 setPen black
139 repeat_block text_drawing
140 restore
141
142 translate 150 0
143 save
144 setPen black
145 setFont "sansserif" 16 normal
146 drawStaticText 0 40 "e😃m😇o😍j😜i😸!"
147 restore
148
149 translate 0 55
150 save
151 setPen black
152 setFont "sansserif" 12 normal normal default underline
153 drawStaticText 0 20 "Underlined text drawing"
154 restore
155
156 translate 0 35
157 save
158 setPen black
159 setFont "sansserif" 12 normal normal default normal strikeout
160 drawStaticText 0 20 "Struck out text drawing"
161 restore
162
163 translate 0 35
164 save
165 setPen black
166 setFont "sansserif" 12 normal normal default normal normal overline
167 drawStaticText 0 20 "Overlined text drawing"
168 restore
169
170 translate 0 35
171 save
172 setPen black
173 setFont "sansserif" 12 normal normal default underline strikeout overline
174 drawStaticText 0 20 "All the effects text drawing"
175 restore