Themes
[xdock.git] / www / tutorial1.svg
blobdf1d626291719b0dda2c414e5d8f2f3dab4c2e8b
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!-- Created with Inkscape (http://www.inkscape.org/) -->
3 <svg
4 xmlns:dc="http://purl.org/dc/elements/1.1/"
5 xmlns:cc="http://web.resource.org/cc/"
6 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
7 xmlns:svg="http://www.w3.org/2000/svg"
8 xmlns="http://www.w3.org/2000/svg"
9 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
10 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
11 width="210mm"
12 height="297mm"
13 id="svg2"
14 sodipodi:version="0.32"
15 inkscape:version="0.45.1"
16 sodipodi:docbase="/home/andre/projects/xdock/www"
17 sodipodi:docname="tutorial1.svg"
18 inkscape:output_extension="org.inkscape.output.svg.inkscape"
19 inkscape:export-filename="/home/andre/projects/xdock/www/tutorial1.png"
20 inkscape:export-xdpi="199.8472"
21 inkscape:export-ydpi="199.8472">
22 <defs
23 id="defs4">
24 <marker
25 inkscape:stockid="Arrow2Mend"
26 orient="auto"
27 refY="0.0"
28 refX="0.0"
29 id="Arrow2Mend"
30 style="overflow:visible;">
31 <path
32 id="path3685"
33 style="font-size:12.0;fill-rule:evenodd;stroke-width:0.62500000;stroke-linejoin:round;"
34 d="M 8.7185878,4.0337352 L -2.2072895,0.016013256 L 8.7185884,-4.0017078 C 6.9730900,-1.6296469 6.9831476,1.6157441 8.7185878,4.0337352 z "
35 transform="scale(0.6) rotate(180) translate(0,0)" />
36 </marker>
37 <marker
38 style="overflow:visible"
39 inkscape:stockid="InfiniteLineEnd"
40 id="InfiniteLineEnd"
41 refX="0"
42 refY="0"
43 orient="auto">
45 id="g3831">
46 <circle
47 id="circle3833"
48 r="0.8"
49 cy="0"
50 cx="3" />
51 <circle
52 id="circle3835"
53 r="0.8"
54 cy="0"
55 cx="6.5" />
56 <circle
57 id="circle3837"
58 r="0.8"
59 cy="0"
60 cx="10" />
61 </g>
62 </marker>
63 <marker
64 inkscape:stockid="Torso"
65 orient="auto"
66 refY="0.0"
67 refX="0.0"
68 id="Torso"
69 style="overflow:visible">
71 id="g3808"
72 transform="scale(0.7)">
73 <path
74 id="path3810"
75 d="M -4.7792281,-3.2395420 C -2.4288541,-2.8736027 0.52103922,-1.3019943 0.25792722,0.38794346 C -0.0051877922,2.0778819 -2.2126741,2.6176539 -4.5630471,2.2517169 C -6.9134221,1.8857769 -8.5210350,0.75201414 -8.2579220,-0.93792336 C -7.9948090,-2.6278615 -7.1296041,-3.6054813 -4.7792281,-3.2395420 z "
76 style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.2500000;marker-start:none;marker-mid:none;marker-end:none" />
77 <path
78 id="path3812"
79 d="M 4.4598789,0.088665736 C -2.5564571,-4.3783320 5.2248769,-3.9061806 -0.84829578,-8.7197331"
80 style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.0000000pt;marker-end:none" />
81 <path
82 id="path3814"
83 d="M 4.9298719,0.057520736 C -1.3872731,1.7494689 1.8027579,5.4782079 -4.9448731,7.5462725"
84 style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.0000000pt;marker-start:none;marker-end:none" />
85 <rect
86 id="rect3816"
87 transform="matrix(0.527536,-0.849533,0.887668,0.460484,0,0)"
88 y="-1.7408575"
89 x="-10.391706"
90 height="2.7608147"
91 width="2.6366582"
92 style="fill-rule:evenodd;stroke-width:1.0000000pt;marker-end:none" />
93 <rect
94 id="rect3818"
95 transform="matrix(0.671205,-0.741272,0.790802,0.612072,0,0)"
96 y="-7.9629307"
97 x="4.9587269"
98 height="2.8614161"
99 width="2.7327356"
100 style="fill-rule:evenodd;stroke-width:1.0000000pt;marker-end:none" />
101 <path
102 id="path3820"
103 transform="matrix(0,-1.109517,1.109517,0,25.96648,19.71619)"
104 d="M 16.779951 -28.685045 A 0.60731727 0.60731727 0 1 0 15.565317,-28.685045 A 0.60731727 0.60731727 0 1 0 16.779951 -28.685045 z"
105 sodipodi:ry="0.60731727"
106 sodipodi:rx="0.60731727"
107 sodipodi:cy="-28.685045"
108 sodipodi:cx="16.172634"
109 style="fill:#ff0000;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.0000000pt;marker-start:none;marker-end:none"
110 sodipodi:type="arc" />
111 <path
112 id="path3822"
113 transform="matrix(0,-1.109517,1.109517,0,26.82450,16.99126)"
114 d="M 16.779951 -28.685045 A 0.60731727 0.60731727 0 1 0 15.565317,-28.685045 A 0.60731727 0.60731727 0 1 0 16.779951 -28.685045 z"
115 sodipodi:ry="0.60731727"
116 sodipodi:rx="0.60731727"
117 sodipodi:cy="-28.685045"
118 sodipodi:cx="16.172634"
119 style="fill:#ff0000;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.0000000pt;marker-start:none;marker-end:none"
120 sodipodi:type="arc" />
121 </g>
122 </marker>
123 <marker
124 inkscape:stockid="TriangleOutL"
125 orient="auto"
126 refY="0.0"
127 refX="0.0"
128 id="TriangleOutL"
129 style="overflow:visible">
130 <path
131 id="path3756"
132 d="M 5.77,0.0 L -2.88,5.0 L -2.88,-5.0 L 5.77,0.0 z "
133 style="fill-rule:evenodd;stroke:#000000;stroke-width:1.0pt;marker-start:none"
134 transform="scale(0.8)" />
135 </marker>
136 <marker
137 inkscape:stockid="Arrow2Lend"
138 orient="auto"
139 refY="0.0"
140 refX="0.0"
141 id="Arrow2Lend"
142 style="overflow:visible;">
143 <path
144 id="path3679"
145 style="font-size:12.0;fill-rule:evenodd;stroke-width:0.62500000;stroke-linejoin:round;"
146 d="M 8.7185878,4.0337352 L -2.2072895,0.016013256 L 8.7185884,-4.0017078 C 6.9730900,-1.6296469 6.9831476,1.6157441 8.7185878,4.0337352 z "
147 transform="scale(1.1) rotate(180) translate(1,0)" />
148 </marker>
149 <marker
150 inkscape:stockid="Arrow1Lend"
151 orient="auto"
152 refY="0.0"
153 refX="0.0"
154 id="Arrow1Lend"
155 style="overflow:visible;">
156 <path
157 id="path3661"
158 d="M 0.0,0.0 L 5.0,-5.0 L -12.5,0.0 L 5.0,5.0 L 0.0,0.0 z "
159 style="fill-rule:evenodd;stroke:#000000;stroke-width:1.0pt;marker-start:none;"
160 transform="scale(0.8) rotate(180) translate(12.5,0)" />
161 </marker>
162 <filter
163 inkscape:collect="always"
164 x="-0.026228555"
165 width="1.0524571"
166 y="-0.14548386"
167 height="1.2909677"
168 id="filter7965">
169 <feGaussianBlur
170 inkscape:collect="always"
171 stdDeviation="1.0706667"
172 id="feGaussianBlur7967" />
173 </filter>
174 </defs>
175 <sodipodi:namedview
176 id="base"
177 pagecolor="#ffffff"
178 bordercolor="#666666"
179 borderopacity="1.0"
180 inkscape:pageopacity="0.0"
181 inkscape:pageshadow="2"
182 inkscape:zoom="1.979899"
183 inkscape:cx="322.29096"
184 inkscape:cy="810.87522"
185 inkscape:document-units="px"
186 inkscape:current-layer="layer1"
187 inkscape:window-width="1280"
188 inkscape:window-height="725"
189 inkscape:window-x="0"
190 inkscape:window-y="25" />
191 <metadata
192 id="metadata7">
193 <rdf:RDF>
194 <cc:Work
195 rdf:about="">
196 <dc:format>image/svg+xml</dc:format>
197 <dc:type
198 rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
199 </cc:Work>
200 </rdf:RDF>
201 </metadata>
203 inkscape:label="Camada 1"
204 inkscape:groupmode="layer"
205 id="layer1">
206 <text
207 xml:space="preserve"
208 style="font-size:18px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Inconsolata"
209 x="67.680222"
210 y="148.78073"
211 id="text2160"><tspan
212 sodipodi:role="line"
213 id="tspan2162"
214 x="67.680222"
215 y="148.78073"
216 style="font-size:14px;font-style:normal;font-weight:normal;fill:#800080">#include &lt;xdock.h&gt;</tspan><tspan
217 sodipodi:role="line"
218 x="67.680222"
219 y="166.28073"
220 id="tspan2170"
221 style="font-size:14px;font-style:normal;font-weight:normal" /><tspan
222 sodipodi:role="line"
223 x="67.680222"
224 y="183.78073"
225 id="tspan2172"
226 style="font-size:14px;font-style:normal;font-weight:normal"><tspan
227 style="font-size:14px;font-style:normal;font-weight:normal;fill:#008000"
228 id="tspan2206">int</tspan> main()</tspan><tspan
229 sodipodi:role="line"
230 x="67.680222"
231 y="201.28073"
232 id="tspan2166"
233 style="font-size:14px;font-style:normal;font-weight:normal">{</tspan><tspan
234 sodipodi:role="line"
235 x="67.680222"
236 y="218.78073"
237 id="tspan2184"
238 style="font-size:14px;font-style:normal;font-weight:normal"><tspan
239 style="font-size:14px;fill:#008080"
240 id="tspan2232"> xd_connect</tspan>();</tspan><tspan
241 sodipodi:role="line"
242 x="67.680222"
243 y="236.28073"
244 id="tspan2192"
245 style="font-size:14px;font-style:normal;font-weight:normal"><tspan
246 style="font-size:14px;fill:#008080"
247 id="tspan2238"> xd_led_draw_panel</tspan>(<tspan
248 style="font-size:14px;font-style:normal;font-weight:normal;fill:#ff00ff"
249 id="tspan2208">4</tspan>, <tspan
250 style="font-size:14px;font-style:normal;font-weight:normal;fill:#ff00ff"
251 id="tspan2210">4</tspan>, <tspan
252 style="font-size:14px;font-style:normal;font-weight:normal;fill:#ff00ff"
253 id="tspan2212">60</tspan>, <tspan
254 style="font-size:14px;font-style:normal;font-weight:normal;fill:#ff00ff"
255 id="tspan2214">60</tspan>);</tspan><tspan
256 sodipodi:role="line"
257 x="67.680222"
258 y="253.78073"
259 id="tspan2196"
260 style="font-size:14px;font-style:normal;font-weight:normal"><tspan
261 style="font-size:14px;fill:#008080"
262 id="tspan2240"> xd_write</tspan>(<tspan
263 style="font-size:14px;fill:#ff00ff"
264 id="tspan2246">XD_FONT_LED_1</tspan>, <tspan
265 style="font-size:14px;font-style:normal;font-weight:normal;fill:#ff00ff"
266 id="tspan2216">5</tspan>, <tspan
267 style="font-size:14px;font-style:normal;font-weight:normal;fill:#ff00ff"
268 id="tspan2218">5</tspan>, <tspan
269 style="font-size:14px;font-style:normal;font-weight:normal;fill:#ff00ff"
270 id="tspan2222">&quot;HELLO &quot;</tspan>);</tspan><tspan
271 sodipodi:role="line"
272 x="67.680222"
273 y="271.28073"
274 id="tspan2198"
275 style="font-size:14px;font-style:normal;font-weight:normal"><tspan
276 style="font-size:14px;fill:#008080"
277 id="tspan2242"> xd_write</tspan>(<tspan
278 style="font-size:14px;fill:#ff00ff"
279 id="tspan2248">XD_FONT_LED_1</tspan>, <tspan
280 style="font-size:14px;font-style:normal;font-weight:normal;fill:#ff00ff"
281 id="tspan2224">5</tspan>, <tspan
282 style="font-size:14px;font-style:normal;font-weight:normal;fill:#ff00ff"
283 id="tspan2226">13</tspan>, <tspan
284 style="font-size:14px;font-style:normal;font-weight:normal;fill:#ff00ff"
285 id="tspan2228">&quot;WORLD!&quot;</tspan>);</tspan><tspan
286 sodipodi:role="line"
287 x="67.680222"
288 y="288.78073"
289 id="tspan2200"
290 style="font-size:14px;font-style:normal;font-weight:normal"><tspan
291 style="font-size:14px;fill:#008080"
292 id="tspan2244"> xd_flush</tspan>();</tspan><tspan
293 sodipodi:role="line"
294 x="67.680222"
295 y="306.28073"
296 id="tspan2202"
297 style="font-size:14px;font-style:normal;font-weight:normal"><tspan
298 style="font-size:14px;font-style:normal;font-weight:normal;fill:#800000"
299 id="tspan2230"> for</tspan>(;;);</tspan><tspan
300 sodipodi:role="line"
301 x="67.680222"
302 y="323.78073"
303 id="tspan2204"
304 style="font-size:14px;font-style:normal;font-weight:normal">}</tspan></text>
305 <path
306 style="opacity:1;fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1.5;stroke-linecap:butt;stroke-linejoin:miter;marker-mid:none;marker-end:url(#Arrow2Mend);stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
307 d="M 188.39345,217.47111 L 370.22092,159.89241"
308 id="path2684"
309 inkscape:connector-type="polyline"
310 sodipodi:nodetypes="cc" />
311 <path
312 style="opacity:1;fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1.5;stroke-linecap:butt;stroke-linejoin:miter;marker-mid:none;marker-end:url(#Arrow2Mend);stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
313 d="M 321.43712,233.06929 L 398.7138,201.24949"
314 id="path4950"
315 inkscape:connector-type="polyline"
316 sodipodi:nodetypes="cc" />
317 <path
318 style="opacity:1;fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1.5;stroke-linecap:butt;stroke-linejoin:miter;marker-mid:none;marker-end:url(#Arrow2Mend);stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
319 d="M 382.85292,250.43134 L 416.18796,247.40088"
320 id="path4952"
321 inkscape:connector-type="polyline"
322 sodipodi:nodetypes="cc" />
323 <path
324 style="opacity:1;fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1.5;stroke-linecap:butt;stroke-linejoin:miter;marker-mid:none;marker-end:url(#Arrow2Mend);stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
325 d="M 388.09067,268.56589 L 414.35464,286.74863"
326 id="path4954"
327 inkscape:connector-type="polyline"
328 sodipodi:nodetypes="cc" />
329 <path
330 style="opacity:1;fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1.5;stroke-linecap:butt;stroke-linejoin:miter;marker-mid:none;marker-end:url(#Arrow2Mend);stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
331 d="M 171.63665,291.97645 L 192.34478,316.72518"
332 id="path4956"
333 inkscape:connector-type="polyline"
334 sodipodi:nodetypes="cc" />
335 <text
336 xml:space="preserve"
337 style="font-size:12px;font-style:oblique;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#008000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Sans"
338 x="196.97974"
339 y="317.98129"
340 id="text4964"
341 sodipodi:linespacing="125%"><tspan
342 sodipodi:role="line"
343 id="tspan4966"
344 x="196.97974"
345 y="317.98129"
346 style="font-size:10px">flush all changes</tspan><tspan
347 sodipodi:role="line"
348 x="196.97974"
349 y="330.48129"
350 id="tspan4968"
351 style="font-size:10px">to the screen</tspan></text>
352 <path
353 style="opacity:1;fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1.5;stroke-linecap:butt;stroke-linejoin:miter;marker-mid:none;marker-end:url(#Arrow2Mend);stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
354 d="M 160.11608,135.04516 L 183.34959,124.43854"
355 id="path5939"
356 inkscape:connector-type="polyline"
357 sodipodi:nodetypes="cc" />
358 <text
359 xml:space="preserve"
360 style="font-size:12px;font-style:oblique;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#008000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Sans"
361 x="191.48947"
362 y="119.9948"
363 id="text5941"
364 sodipodi:linespacing="125%"><tspan
365 sodipodi:role="line"
366 x="191.48947"
367 y="119.9948"
368 id="tspan5945"
369 style="font-size:10px">this header has</tspan><tspan
370 sodipodi:role="line"
371 x="191.48947"
372 y="132.4948"
373 style="font-size:10px"
374 id="tspan5949">everything you need</tspan></text>
375 <path
376 style="opacity:1;fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1.5;stroke-linecap:butt;stroke-linejoin:miter;marker-mid:none;marker-end:url(#Arrow2Mend);stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
377 d="M 127.7912,316.36754 L 141.93334,344.14672"
378 id="path5951"
379 inkscape:connector-type="polyline"
380 sodipodi:nodetypes="cc" />
381 <text
382 xml:space="preserve"
383 style="font-size:12px;font-style:oblique;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#008000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Sans"
384 x="147.37866"
385 y="350.35049"
386 id="text5953"
387 sodipodi:linespacing="125%"><tspan
388 sodipodi:role="line"
389 x="147.37866"
390 y="350.35049"
391 style="font-size:10px"
392 id="tspan5957">hangs forever</tspan></text>
393 <path
394 style="opacity:1;fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1.5;stroke-linecap:butt;stroke-linejoin:miter;marker-mid:none;marker-end:url(#Arrow2Mend);stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
395 d="M 204.54049,275.42526 L 228.27908,293.10292"
396 id="path5961"
397 inkscape:connector-type="polyline"
398 sodipodi:nodetypes="cc" />
399 <rect
400 style="opacity:1;fill:none;stroke:#000000;stroke-width:1.5;stroke-linecap:butt;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;filter:url(#filter7965)"
401 id="rect5965"
402 width="96.469566"
403 height="16.162441"
404 x="155.56348"
405 y="259.39243" />
406 <text
407 xml:space="preserve"
408 style="font-size:12px;font-style:oblique;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#008000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Sans"
409 x="232.93182"
410 y="295.99133"
411 id="text6936"
412 sodipodi:linespacing="125%"><tspan
413 sodipodi:role="line"
414 x="232.93182"
415 y="295.99133"
416 style="font-size:10px"
417 id="tspan6938">font</tspan></text>
418 </g>
419 </svg>