Re: What's a boxed type? (was Re: binding how-to)



muppet wrote:
...(Some crazy stuff ;-) ...
Cool.

So, Glib provides the abstract class which Gdk/Gtk uses to wrap things like X or OS structures so the (wrapped) structs can be used by methods designed to operate on GObjects.
Then, on top of that, Gtk2-Perl provides a Perl wrapper, which may be a 
simple SV wrapper around a C pointer, or an interface to/from a Perl 
hash or array.
Is that close?

What's the purpose (for Glib now) in providing a generic 'GBoxed' class over a GObject with the struct attached as user data?
Thanks for the nice explanation!

<Joe




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