mapping(string:int) allocation() //! Returns ([ "x":xoffset, "y":yoffset, "width":xsize, "height":ysize ]) { pgtk_verify_inited(); push_text( "x" ); push_int( GTK_WIDGET( THIS->obj )->allocation.x ); push_text( "y" ); push_int( GTK_WIDGET( THIS->obj )->allocation.y ); push_text( "width" ); push_int( GTK_WIDGET( THIS->obj )->allocation.width ); push_text( "height" ); push_int( GTK_WIDGET( THIS->obj )->allocation.height ); f_aggregate_mapping( 8 ); }
Okay, I added this convenience function. We'll see if this does it...