[cairo] drawing to desktop

Behdad Esfahbod behdad at behdad.org
Mon Oct 22 15:42:10 PDT 2007

On Mon, 2007-10-22 at 17:37 -0400, Travis Griggs wrote:
> I've got bindings in Smalltalk for drawing with Cairo to windows or  
> pixmaps on X/OSX/Win32. I'd like to toy with drawing straight to the  
> desktop. Is this doable? I think I know how to get an HDC for the  
> Screen in Win32. But no clue how to do the equivalent in X or OSX.  
> Anyone done this and have any (pseudo)code to share?

Humm, not my stuff, but how about RootWindow() and RootWindowOfScreen?
Then pass that to cairo_xlib_surface_create() as Drawable.

> --
> Travis Griggs
> Objologist
> Time and Countertops. They both get used up way too fast.


"Those who would give up Essential Liberty to purchase a little
 Temporary Safety, deserve neither Liberty nor Safety."
        -- Benjamin Franklin, 1759

More information about the cairo mailing list