Re: specific question about the code of EuGTK

new topic     » goto parent     » topic index » view thread      » older message » newer message
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.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu