Re: specific question about the code of EuGTK
- Posted by penpal0andrew May 26, 2011
- 1171 views
irv said...
These are just offsets into the C structure where pointers to the items are found. Necessary to 'peek' into the structure because GTK did not provide accessor methods to get those, unlike most objects which do have accessor methods.
As for copying cairo graphics to the window - I'm not sure I can answer that; can you give more detail of exactly what you're trying to accomplish?
-- drawin is a GTK container in this case object cairowin = get(drawin,"window") -- need the GDK window which is different from GTK window object GDK_cr = create(GdkCairo,cairowin) -- the cr is what is used to draw using Cairo
Note that I do not need those offsets. It is a cleaner interface, and GTK has decided to replace GDK drawing with Cairo.