Programming Windows D Examples are now Online!

Andrej Mitrovic andrej.mitrovich at gmail.com
Tue Jul 5 15:59:15 PDT 2011


Behold this glorious GUI with a rounded rectangle: http://i.imgur.com/Yszgd.png

Okay, so that's actually Cairo with the win32 back-end. Surprisingly,
using the two together is quite simple. I had to convert the cairo
headers, do a little tweaks to help HTOD out, used implib with /s on
the DLL, grabbed two other dependencies and ported a Python example to
D.

And it runs! Pretty cool having native windows controls and Cairo for
smooth antialised graphics (with no flicker!).

FWIW there's an object-oriented D1 wrapper for Cairo called CairOO,
but it's severely outdated and the old dependencies don't even exist
anymore.


More information about the Digitalmars-d-announce mailing list