specific question about the code of EuGTK

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

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

Search



Quick Links

User menu

Not signed in.

Misc Menu