On 04/17/2009 02:16 AM, S. Wittenberg wrote:
I tried to access the wrapped gdkpixbuf inside the Gdk::Pixbuf, but i
get this, even if i #include the right header file (just to be sure):
connection.cpp: In member function ‘Glib::RefPtr<Gdk::Pixbuf>
Connection::getBuffer()’:
connection.cpp:336: error: invalid use of incomplete type ‘struct
_GdkPixbuf’
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:55: error: forward
declaration of ‘struct _GdkPixbuf’
My code looks like this:
frame_buffer = Gdk::Pixbuf::create_from_data(....);
frame_buffer->gobj()->n_channels = 4;
GdkPixbuf is an opaque structure. You are not able to access its fields
directly.
Hub
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list