cutego/multimedia/qvideoprobe.go

110 lines
2.5 KiB
Go
Executable file

package multimedia
//#include "multimedia.h"
import "C"
import (
"github.com/therecipe/qt"
"github.com/therecipe/qt/core"
"unsafe"
)
type QVideoProbe struct {
core.QObject
}
type QVideoProbe_ITF interface {
core.QObject_ITF
QVideoProbe_PTR() *QVideoProbe
}
func PointerFromQVideoProbe(ptr QVideoProbe_ITF) unsafe.Pointer {
if ptr != nil {
return ptr.QVideoProbe_PTR().Pointer()
}
return nil
}
func NewQVideoProbeFromPointer(ptr unsafe.Pointer) *QVideoProbe {
var n = new(QVideoProbe)
n.SetPointer(ptr)
for len(n.ObjectName()) < len("QVideoProbe_") {
n.SetObjectName("QVideoProbe_" + qt.Identifier())
}
return n
}
func (ptr *QVideoProbe) QVideoProbe_PTR() *QVideoProbe {
return ptr
}
func NewQVideoProbe(parent core.QObject_ITF) *QVideoProbe {
defer qt.Recovering("QVideoProbe::QVideoProbe")
return NewQVideoProbeFromPointer(C.QVideoProbe_NewQVideoProbe(core.PointerFromQObject(parent)))
}
func (ptr *QVideoProbe) ConnectFlush(f func()) {
defer qt.Recovering("connect QVideoProbe::flush")
if ptr.Pointer() != nil {
C.QVideoProbe_ConnectFlush(ptr.Pointer())
qt.ConnectSignal(ptr.ObjectName(), "flush", f)
}
}
func (ptr *QVideoProbe) DisconnectFlush() {
defer qt.Recovering("disconnect QVideoProbe::flush")
if ptr.Pointer() != nil {
C.QVideoProbe_DisconnectFlush(ptr.Pointer())
qt.DisconnectSignal(ptr.ObjectName(), "flush")
}
}
//export callbackQVideoProbeFlush
func callbackQVideoProbeFlush(ptrName *C.char) {
defer qt.Recovering("callback QVideoProbe::flush")
var signal = qt.GetSignal(C.GoString(ptrName), "flush")
if signal != nil {
signal.(func())()
}
}
func (ptr *QVideoProbe) IsActive() bool {
defer qt.Recovering("QVideoProbe::isActive")
if ptr.Pointer() != nil {
return C.QVideoProbe_IsActive(ptr.Pointer()) != 0
}
return false
}
func (ptr *QVideoProbe) SetSource(source QMediaObject_ITF) bool {
defer qt.Recovering("QVideoProbe::setSource")
if ptr.Pointer() != nil {
return C.QVideoProbe_SetSource(ptr.Pointer(), PointerFromQMediaObject(source)) != 0
}
return false
}
func (ptr *QVideoProbe) SetSource2(mediaRecorder QMediaRecorder_ITF) bool {
defer qt.Recovering("QVideoProbe::setSource")
if ptr.Pointer() != nil {
return C.QVideoProbe_SetSource2(ptr.Pointer(), PointerFromQMediaRecorder(mediaRecorder)) != 0
}
return false
}
func (ptr *QVideoProbe) DestroyQVideoProbe() {
defer qt.Recovering("QVideoProbe::~QVideoProbe")
if ptr.Pointer() != nil {
C.QVideoProbe_DestroyQVideoProbe(ptr.Pointer())
ptr.SetPointer(nil)
}
}