From: Vivian M. <has...@gm...> - 2014-09-02 07:25:18
|
Hi, I've tried using pointers (Ptr a) but (DC a) and (Gtk.DrawWindow) aren't members of `Storable`. On Linux WxWidgets is written on top of GTK and I am trying to access an underlying Gtk.DrawWindow so that I can perform cairo rendering on that window. Any ideas? Vivian On 31 August 2014 19:33, Henning Thielemann < sch...@he...> wrote: > Am 31.08.2014 um 06:48 schrieb Vivian McPhail: > > > foreign import ccall unsafe "plot.cc gdk_get_drawable" >> c_gdkGetDrawable :: DC a -> IO Gtk.DrawWindow >> > > How do I fix these errors? >> > > You certainly need to use pointers, e.g. Ptr (DC a). > > |