Exemplo n.º 1
0
Arquivo: box.go Projeto: napsy/go-gtk3
// Box interface
func (self *Box) PackStart(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_start(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) PackStart(child *Widget, expand, fill bool, padding uint) {
	var e, f C.gboolean
	if expand {
		e = 1
	}
	if fill {
		f = 1
	}
	C.gtk_box_pack_start(b.g(), child.g(), e, f, C.guint(padding))
}
Exemplo n.º 3
0
func gtk_box_pack_start(box GtkWidget, item GtkWidget, expand bool, fill bool, padding int) {
	C.gtk_box_pack_start(Arg(box), Arg(item), C.bool(Bool2Int[expand]), C.bool(Bool2Int[fill]), C.int(padding))
}