View previous topic :: View next topic |
Author |
Message |
gc1
Joined: 18 Feb 2010 Posts: 7
|
Posted: Thu Mar 04, 2010 5:54 am Post subject: How do I derive a class from gtk.Container ? |
|
|
If I want to derive a class from gtk.Container how should I allocate the GtkContainer structure to pass to the constructor of gtk.Container ?
gtktypes.d defines the GtkContainer structure as empty so it's contents are presumably private.
Other derived types have allocators in the C library code (e.g. gtk_hbox_new, gtk_vbox_new, gtk_table_new etc.)
Is there an example anywhere of how to allocate one of the items described as "Main Gtk struct" and/or register a new variant thereof ? |
|
Back to top |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
|
Back to top |
|
|
|