Esempio n. 1
0
File: bin.go Progetto: revmischa/gst
func (b *Bin) Add(els ...*Element) bool {
	for _, e := range els {
		if C.gst_bin_add(b.g(), e.g()) == 0 {
			return false
		}
	}
	return true
}
Esempio n. 2
0
// Add() is a wrapper around gst_bin_add().
func (v *Bin) Add(e IElement) bool {
	c := C.gst_bin_add(v.native(), e.toElement())
	return gobool(c)
}
Esempio n. 3
0
File: gst.go Progetto: reusee/oplay
func BinAdd(bin interface{}, elements ...interface{}) {
	cBin := asGstBin(bin)
	for _, e := range elements {
		C.gst_bin_add(cBin, asGstElem(e))
	}
}