Re: [gtk-list] GdkPixmap and Buffers




On Thu, 6 May 1999, Geoff Finger wrote:
> 
> Is there something weird about the structure of GdkPixmap such that memcpy
> can't be used on it, or is there some other problem?
> 

Nothing weird, it's just an opaque data type. Use the gdk_pixmap_*
functions to access it. memcpy() will probably crash something, and
definitely won't work.

As it turns out: the data type is internally simply an integer ID
referring to a server-side resource, possibly across the network. 
The server has the actual pixmap pixels. To copy, draw a region from one
pixmap into a region of another with gdk_draw_pixmap(). Both pixmaps must
be created with gdk_pixmap_new().

Havoc




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]