gn_put_tuple(XBUF, 5); gn_enc_object(XBUF,(GObject*) widget->window); gn_enc_longlong(XBUF,(long long)widget->allocation.x); gn_enc_longlong(XBUF,(long long)widget->allocation.y); gn_enc_longlong(XBUF,(long long)widget->allocation.width); gn_enc_longlong(XBUF,(long long)widget->allocation.height);
if ( ! gn_get_arg_gchar_fix(XBUF, B, I, attr) ) return;  if ( strcmp("window",attr) == 0 ){ gn_put_object(XBUF,(GObject*) widget->window); }else if ( strcmp("x",attr) == 0 ) { gn_put_longlong(XBUF,(long long)widget->allocation.x); }else if ( strcmp("y",attr) == 0 ) { gn_put_longlong(XBUF,(long long)widget->allocation.y); }else if ( strcmp("width",attr) == 0 ) { gn_put_longlong(XBUF,(long long)widget->allocation.width); }else if ( strcmp("height",attr) == 0 ) { gn_put_longlong(XBUF,(long long)widget->allocation.height); }else{ gn_enc_2_error(XBUF, "no_such_attr"); ei_x_encode_atom(XBUF, attr); }
void GN_widget_get_attr(int ARI, ei_x_buff *XBUF, char *B, int *I) {  GtkWidget* widget;    if ( ! gn_check_arity(XBUF, 1, ARI) ) return;  if ( ! gn_get_arg_object(XBUF, B, I, GTK_TYPE_WIDGET, (GObject**)&widget) ) return;  gn_put_tuple(XBUF, 5);  gn_enc_object(XBUF,(GObject*) widget->window);  gn_enc_longlong(XBUF,(long long)widget->allocation.x);  gn_enc_longlong(XBUF,(long long)widget->allocation.y);  gn_enc_longlong(XBUF,(long long)widget->allocation.width);  gn_enc_longlong(XBUF,(long long)widget->allocation.height);}