specific question about the code of EuGTK
- Posted by penpal0andrew May 14, 2011
- 1375 views
-------------------------------------------------------------- -- the following graphic routines have to be implemented -- in a different manner from all other GTK stuff -------------------------------------------------------------- export function gdk_canvas(atom drawable) return peek4u(drawable+52) end function export function gdk_context(atom drawable) return peek4u(get(drawable,"style")+540) end function
I am very curious about the use of these functions and specifically - what the number 52 and 540 represent.
My goal is to figure out how to copy a cairo image surface directly to the data/bitmap of a window control in GDK/GTK.