1 <?xml version=
"1.0" encoding=
"UTF-8" standalone=
"no"?>
2 <!-- Created with Inkscape (http://www.inkscape.org/) -->
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"
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">
25 inkscape:
stockid=
"Arrow2Mend"
30 style=
"overflow:visible;">
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)" />
38 style=
"overflow:visible"
39 inkscape:
stockid=
"InfiniteLineEnd"
64 inkscape:
stockid=
"Torso"
69 style=
"overflow:visible">
72 transform=
"scale(0.7)">
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" />
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" />
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" />
87 transform=
"matrix(0.527536,-0.849533,0.887668,0.460484,0,0)"
92 style=
"fill-rule:evenodd;stroke-width:1.0000000pt;marker-end:none" />
95 transform=
"matrix(0.671205,-0.741272,0.790802,0.612072,0,0)"
100 style=
"fill-rule:evenodd;stroke-width:1.0000000pt;marker-end:none" />
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" />
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" />
124 inkscape:
stockid=
"TriangleOutL"
129 style=
"overflow:visible">
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)" />
137 inkscape:
stockid=
"Arrow2Lend"
142 style=
"overflow:visible;">
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)" />
150 inkscape:
stockid=
"Arrow1Lend"
155 style=
"overflow:visible;">
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)" />
163 inkscape:
collect=
"always"
170 inkscape:
collect=
"always"
171 stdDeviation=
"1.0706667"
172 id=
"feGaussianBlur7967" />
178 bordercolor=
"#666666"
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" />
196 <dc:format>image/svg+xml
</dc:format>
198 rdf:
resource=
"http://purl.org/dc/dcmitype/StillImage" />
203 inkscape:
label=
"Camada 1"
204 inkscape:
groupmode=
"layer"
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"
216 style=
"font-size:14px;font-style:normal;font-weight:normal;fill:#800080">#include
<xdock.h
></tspan><tspan
221 style=
"font-size:14px;font-style:normal;font-weight:normal" /><tspan
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
233 style=
"font-size:14px;font-style:normal;font-weight:normal">{
</tspan><tspan
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
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
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">"HELLO
"</tspan>);
</tspan><tspan
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">"WORLD!
"</tspan>);
</tspan><tspan
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
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
304 style=
"font-size:14px;font-style:normal;font-weight:normal">}
</tspan></text>
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"
309 inkscape:
connector-type=
"polyline"
310 sodipodi:
nodetypes=
"cc" />
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"
315 inkscape:
connector-type=
"polyline"
316 sodipodi:
nodetypes=
"cc" />
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"
321 inkscape:
connector-type=
"polyline"
322 sodipodi:
nodetypes=
"cc" />
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"
327 inkscape:
connector-type=
"polyline"
328 sodipodi:
nodetypes=
"cc" />
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"
333 inkscape:
connector-type=
"polyline"
334 sodipodi:
nodetypes=
"cc" />
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"
341 sodipodi:
linespacing=
"125%"><tspan
346 style=
"font-size:10px">flush all changes
</tspan><tspan
351 style=
"font-size:10px">to the screen
</tspan></text>
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"
356 inkscape:
connector-type=
"polyline"
357 sodipodi:
nodetypes=
"cc" />
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"
364 sodipodi:
linespacing=
"125%"><tspan
369 style=
"font-size:10px">this header has
</tspan><tspan
373 style=
"font-size:10px"
374 id=
"tspan5949">everything you need
</tspan></text>
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"
379 inkscape:
connector-type=
"polyline"
380 sodipodi:
nodetypes=
"cc" />
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"
387 sodipodi:
linespacing=
"125%"><tspan
391 style=
"font-size:10px"
392 id=
"tspan5957">hangs forever
</tspan></text>
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"
397 inkscape:
connector-type=
"polyline"
398 sodipodi:
nodetypes=
"cc" />
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)"
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"
412 sodipodi:
linespacing=
"125%"><tspan
416 style=
"font-size:10px"
417 id=
"tspan6938">font
</tspan></text>