<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div>Harlan,</div>
<div><br>
</div>
<div>I read on <a dir="ltr" href="http://cairographics.org" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="0">
cairographics.org</a> about bindings awhile back. I think they want cairo, not surface, so we would have something like:</div>
<div><br>
</div>
<div>let cairo = Surface(format: CAIRO_FORMAT_ARGB32, width: 240, height: 80)</div>
<div>cairo.setFontFace(&quot;serif&quot;, weight: CAIRO_FONT_WEIGHT_BOLD)</div>
<div>cairo.setFontSize(32.0)</div>
<div>cairo.setSourceRGB(0.0, g: 0.0, b: 1.0)</div>
<div>cairo.moveTo(x: 10, y: 50)</div>
<div>cairo.showText(&quot;Hello, World!&quot;)</div>
<div>cairo.writeToPNG(&quot;hello.png&quot;)</div>
<div><br>
</div>
<div>Would this work the same as before without &quot;surface&quot; but instead &quot;cairo&quot;?<br>
<br>
<div class="acompli_signature">Sent from <a href="https://aka.ms/qtex0l">Outlook Mobile</a></div>
<br>
</div>
<br>
<br>
<br>
<div class="gmail_quote">On Fri, Dec 11, 2015 at 2:00 PM -0800, &quot;Gage Morgan via swift-users&quot;
<span dir="ltr">&lt;<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>&gt;</span> wrote:<br>
<br>
</div>
<div>
<div>I went and looked at it, and even now it looks like I want to take every function I've used in Cairo and translate it to Swift. Swift is such a...simple language compared to everything else. That being said, as a result of the specs, it is also much more
 verbose in terms of writing the code. Compared to other languages, it is written out instead of shoved onto a few lines.&nbsp;</div>
<div><br>
</div>
<div>Is there a way to import modules into other modules? Because it looks like a weekend project that will eventually get posted by myself at http://github.com/Christoffen-Corporation.&nbsp;<br>
<br>
<div class="x_acompli_signature">Sent from <a href="https://aka.ms/qtex0l">Outlook Mobile</a></div>
<br>
</div>
<br>
<br>
<br>
<div class="x_gmail_quote">On Fri, Dec 11, 2015 at 1:52 PM -0800, &quot;Gage Morgan via swift-users&quot;
<span dir="ltr">&lt;<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>&gt;</span> wrote:<br>
<br>
</div>
<div>
<div>I meant the code posted in the Gist link above. I don't know jack squat about qsort. I'm hoping that if I can reverse-engineer code already produced, I can apply it to other parts of Cairo.&nbsp;<br>
<br>
<div class="x_x_acompli_signature">Sent from <a href="https://aka.ms/qtex0l">Outlook Mobile</a></div>
<br>
</div>
<br>
<br>
<br>
<div class="x_x_gmail_quote">On Fri, Dec 11, 2015 at 1:34 PM -0800, &quot;Kwame Bryan&quot;
<span dir="ltr">&lt;<a href="mailto:kwame.bryan@gmail.com" target="_blank">kwame.bryan@gmail.com</a>&gt;</span> wrote:<br>
<br>
</div>
<div class="" style="word-wrap:break-word">Tutorial on the subject.&nbsp;<a href="http://chris.eidhof.nl/posts/swift-c-interop.html" class="">http://chris.eidhof.nl/posts/swift-c-interop.html</a>&nbsp;
<div class=""><br class="">
</div>
<div class="">Regards</div>
<div class="">Kwame</div>
</div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=-2FcgwiRAxmHDdptrhrsAJKMBtNqQpWV-2BwUfjpvH9AIapmo3-2BHsnvTus94jzsAd9QbgrzJUOBMUGL1vbZcJzhtyVp8DdIXzqymeEFv78CU98Vyvkel-2BZ9jAScwY1YDPFzrfK4k0wzAL0RYvODDsxuakhZXZY7WUvtIDD6jT8hO1G12IjFAP4zcPGisA85WWuoE0N2vgQ90Wpd69-2B1PAy-2FgJ6kuPbhfqVCSq9RdDYqcqzU-3D" alt="" width="1" height="1" border="0" style="height:1px!important; width:1px!important; border-width:0!important; margin-top:0!important; margin-bottom:0!important; margin-right:0!important; margin-left:0!important; padding-top:0!important; padding-bottom:0!important; padding-right:0!important; padding-left:0!important">
</div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=-2FcgwiRAxmHDdptrhrsAJKMBtNqQpWV-2BwUfjpvH9AIapEPR-2FCXY9amYXSxN3Pbi2XrZMfHEN794BjyOKzqKEN1I5HM69Lqapv6DjsA6FzE8d9q3N3v71RBohhpxfFJmwu-2FppXm9-2F5fp7k5-2B6DDHtFIR52wVygcHpVKdRV8liNPtLvkthJRTxyuxSppBSc-2BI5r-2B9L8DyZNdiOAXPmJzd91Fd8lk3drIZ4JVKfkyoAcyrw-3D" alt="" width="1" height="1" border="0" style="height:1px!important; width:1px!important; border-width:0!important; margin-top:0!important; margin-bottom:0!important; margin-right:0!important; margin-left:0!important; padding-top:0!important; padding-bottom:0!important; padding-right:0!important; padding-left:0!important">
</div>
</body>
</html>