Exemplo n.º 1
0
Arquivo: box.go Projeto: napsy/go-gtk3
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))
}
Exemplo n.º 2
0
Arquivo: box.go Projeto: 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))
}
Exemplo n.º 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))
}