1 回答

TA貢獻1873條經(jīng)驗 獲得超9個贊
哈哈,這簡單!gbooleaninfoscreen_add_widget_padding_full(InfoScreen*screen,GtkWidget*widget,gfloatxalign,gfloatyalign,gfloatxscale,gfloatyscale,gbooleanexpand,gbooleanfill,guintpadding,guinttpadding,guintbpadding,guintlpadding,guintrpadding){GtkWidget*align=gtk_alignment_new(xalign,yalign,xscale,yscale);g_return_val_if_fail(align!=NULL,FALSE);gtk_alignment_set_padding(GTK_ALIGNMENT(align),tpadding,bpadding,lpadding,rpadding);gtk_container_add(GTK_CONTAINER(align),widget);gtk_box_pack_start(GTK_BOX(screen->wVbox),align,expand,fill,padding);returnTRUE;}這個是我們公司做的項目里的一個對齊函數(shù),參數(shù)比較多。你慢慢琢磨吧
添加回答
舉報