Пример #1
0
func (self *Box) PackEnd(w WidgetLike, expand bool, fill bool, padding uint) {
	e := gobject.GBool(expand)
	f := gobject.GBool(fill)
	defer e.Free()
	defer f.Free()
	C.gtk_box_pack_end(self.object, w.W().object, *((*C.gboolean)(e.GetPtr())), *((*C.gboolean)(e.GetPtr())), C.guint(padding))
}
Пример #2
0
Файл: box.go Проект: ziutek/gtk
func (b *Box) PackEnd(child *Widget, expand, fill bool, padding uint) {
	var e, f C.gboolean
	if expand {
		e = 1
	}
	if fill {
		f = 1
	}
	C.gtk_box_pack_end(b.g(), child.g(), e, f, C.guint(padding))
}
Пример #3
0
func gtk_box_pack_end(box GtkWidget, item GtkWidget, expand bool, fill bool, padding int) {
	C.gtk_box_pack_end(Arg(box), Arg(item), C.bool(Bool2Int[expand]), C.bool(Bool2Int[fill]), C.int(padding))
}