Example #1
0
File: bin.go Project: 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
}
Example #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)
}
Example #3
0
File: gst.go Project: reusee/oplay
func BinAdd(bin interface{}, elements ...interface{}) {
	cBin := asGstBin(bin)
	for _, e := range elements {
		C.gst_bin_add(cBin, asGstElem(e))
	}
}