mirror of
https://github.com/mappu/miqt.git
synced 2024-12-23 09:28:36 +00:00
1021 lines
37 KiB
Go
1021 lines
37 KiB
Go
package multimedia
|
|
|
|
/*
|
|
|
|
#include "gen_qmediarecorder.h"
|
|
#include <stdlib.h>
|
|
|
|
*/
|
|
import "C"
|
|
|
|
import (
|
|
"github.com/mappu/miqt/qt"
|
|
"runtime"
|
|
"runtime/cgo"
|
|
"unsafe"
|
|
)
|
|
|
|
type QMediaRecorder__State int
|
|
|
|
const (
|
|
QMediaRecorder__StoppedState QMediaRecorder__State = 0
|
|
QMediaRecorder__RecordingState QMediaRecorder__State = 1
|
|
QMediaRecorder__PausedState QMediaRecorder__State = 2
|
|
)
|
|
|
|
type QMediaRecorder__Status int
|
|
|
|
const (
|
|
QMediaRecorder__UnavailableStatus QMediaRecorder__Status = 0
|
|
QMediaRecorder__UnloadedStatus QMediaRecorder__Status = 1
|
|
QMediaRecorder__LoadingStatus QMediaRecorder__Status = 2
|
|
QMediaRecorder__LoadedStatus QMediaRecorder__Status = 3
|
|
QMediaRecorder__StartingStatus QMediaRecorder__Status = 4
|
|
QMediaRecorder__RecordingStatus QMediaRecorder__Status = 5
|
|
QMediaRecorder__PausedStatus QMediaRecorder__Status = 6
|
|
QMediaRecorder__FinalizingStatus QMediaRecorder__Status = 7
|
|
)
|
|
|
|
type QMediaRecorder__Error int
|
|
|
|
const (
|
|
QMediaRecorder__NoError QMediaRecorder__Error = 0
|
|
QMediaRecorder__ResourceError QMediaRecorder__Error = 1
|
|
QMediaRecorder__FormatError QMediaRecorder__Error = 2
|
|
QMediaRecorder__OutOfSpaceError QMediaRecorder__Error = 3
|
|
)
|
|
|
|
type QMediaRecorder struct {
|
|
h *C.QMediaRecorder
|
|
isSubclass bool
|
|
*qt.QObject
|
|
*QMediaBindableInterface
|
|
}
|
|
|
|
func (this *QMediaRecorder) cPointer() *C.QMediaRecorder {
|
|
if this == nil {
|
|
return nil
|
|
}
|
|
return this.h
|
|
}
|
|
|
|
func (this *QMediaRecorder) UnsafePointer() unsafe.Pointer {
|
|
if this == nil {
|
|
return nil
|
|
}
|
|
return unsafe.Pointer(this.h)
|
|
}
|
|
|
|
// newQMediaRecorder constructs the type using only CGO pointers.
|
|
func newQMediaRecorder(h *C.QMediaRecorder, h_QObject *C.QObject, h_QMediaBindableInterface *C.QMediaBindableInterface) *QMediaRecorder {
|
|
if h == nil {
|
|
return nil
|
|
}
|
|
return &QMediaRecorder{h: h,
|
|
QObject: qt.UnsafeNewQObject(unsafe.Pointer(h_QObject)),
|
|
QMediaBindableInterface: newQMediaBindableInterface(h_QMediaBindableInterface)}
|
|
}
|
|
|
|
// UnsafeNewQMediaRecorder constructs the type using only unsafe pointers.
|
|
func UnsafeNewQMediaRecorder(h unsafe.Pointer, h_QObject unsafe.Pointer, h_QMediaBindableInterface unsafe.Pointer) *QMediaRecorder {
|
|
if h == nil {
|
|
return nil
|
|
}
|
|
|
|
return &QMediaRecorder{h: (*C.QMediaRecorder)(h),
|
|
QObject: qt.UnsafeNewQObject(h_QObject),
|
|
QMediaBindableInterface: UnsafeNewQMediaBindableInterface(h_QMediaBindableInterface)}
|
|
}
|
|
|
|
// NewQMediaRecorder constructs a new QMediaRecorder object.
|
|
func NewQMediaRecorder(mediaObject *QMediaObject) *QMediaRecorder {
|
|
var outptr_QMediaRecorder *C.QMediaRecorder = nil
|
|
var outptr_QObject *C.QObject = nil
|
|
var outptr_QMediaBindableInterface *C.QMediaBindableInterface = nil
|
|
|
|
C.QMediaRecorder_new(mediaObject.cPointer(), &outptr_QMediaRecorder, &outptr_QObject, &outptr_QMediaBindableInterface)
|
|
ret := newQMediaRecorder(outptr_QMediaRecorder, outptr_QObject, outptr_QMediaBindableInterface)
|
|
ret.isSubclass = true
|
|
return ret
|
|
}
|
|
|
|
// NewQMediaRecorder2 constructs a new QMediaRecorder object.
|
|
func NewQMediaRecorder2(mediaObject *QMediaObject, parent *qt.QObject) *QMediaRecorder {
|
|
var outptr_QMediaRecorder *C.QMediaRecorder = nil
|
|
var outptr_QObject *C.QObject = nil
|
|
var outptr_QMediaBindableInterface *C.QMediaBindableInterface = nil
|
|
|
|
C.QMediaRecorder_new2(mediaObject.cPointer(), (*C.QObject)(parent.UnsafePointer()), &outptr_QMediaRecorder, &outptr_QObject, &outptr_QMediaBindableInterface)
|
|
ret := newQMediaRecorder(outptr_QMediaRecorder, outptr_QObject, outptr_QMediaBindableInterface)
|
|
ret.isSubclass = true
|
|
return ret
|
|
}
|
|
|
|
func (this *QMediaRecorder) MetaObject() *qt.QMetaObject {
|
|
return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QMediaRecorder_MetaObject(this.h)))
|
|
}
|
|
|
|
func (this *QMediaRecorder) Metacast(param1 string) unsafe.Pointer {
|
|
param1_Cstring := C.CString(param1)
|
|
defer C.free(unsafe.Pointer(param1_Cstring))
|
|
return (unsafe.Pointer)(C.QMediaRecorder_Metacast(this.h, param1_Cstring))
|
|
}
|
|
|
|
func QMediaRecorder_Tr(s string) string {
|
|
s_Cstring := C.CString(s)
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
|
var _ms C.struct_miqt_string = C.QMediaRecorder_Tr(s_Cstring)
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
return _ret
|
|
}
|
|
|
|
func QMediaRecorder_TrUtf8(s string) string {
|
|
s_Cstring := C.CString(s)
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
|
var _ms C.struct_miqt_string = C.QMediaRecorder_TrUtf8(s_Cstring)
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
return _ret
|
|
}
|
|
|
|
func (this *QMediaRecorder) MediaObject() *QMediaObject {
|
|
return UnsafeNewQMediaObject(unsafe.Pointer(C.QMediaRecorder_MediaObject(this.h)), nil)
|
|
}
|
|
|
|
func (this *QMediaRecorder) IsAvailable() bool {
|
|
return (bool)(C.QMediaRecorder_IsAvailable(this.h))
|
|
}
|
|
|
|
func (this *QMediaRecorder) Availability() QMultimedia__AvailabilityStatus {
|
|
return (QMultimedia__AvailabilityStatus)(C.QMediaRecorder_Availability(this.h))
|
|
}
|
|
|
|
func (this *QMediaRecorder) OutputLocation() *qt.QUrl {
|
|
_ret := C.QMediaRecorder_OutputLocation(this.h)
|
|
_goptr := qt.UnsafeNewQUrl(unsafe.Pointer(_ret))
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
return _goptr
|
|
}
|
|
|
|
func (this *QMediaRecorder) SetOutputLocation(location *qt.QUrl) bool {
|
|
return (bool)(C.QMediaRecorder_SetOutputLocation(this.h, (*C.QUrl)(location.UnsafePointer())))
|
|
}
|
|
|
|
func (this *QMediaRecorder) ActualLocation() *qt.QUrl {
|
|
_ret := C.QMediaRecorder_ActualLocation(this.h)
|
|
_goptr := qt.UnsafeNewQUrl(unsafe.Pointer(_ret))
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
return _goptr
|
|
}
|
|
|
|
func (this *QMediaRecorder) State() QMediaRecorder__State {
|
|
return (QMediaRecorder__State)(C.QMediaRecorder_State(this.h))
|
|
}
|
|
|
|
func (this *QMediaRecorder) Status() QMediaRecorder__Status {
|
|
return (QMediaRecorder__Status)(C.QMediaRecorder_Status(this.h))
|
|
}
|
|
|
|
func (this *QMediaRecorder) Error() QMediaRecorder__Error {
|
|
return (QMediaRecorder__Error)(C.QMediaRecorder_Error(this.h))
|
|
}
|
|
|
|
func (this *QMediaRecorder) ErrorString() string {
|
|
var _ms C.struct_miqt_string = C.QMediaRecorder_ErrorString(this.h)
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
return _ret
|
|
}
|
|
|
|
func (this *QMediaRecorder) Duration() int64 {
|
|
return (int64)(C.QMediaRecorder_Duration(this.h))
|
|
}
|
|
|
|
func (this *QMediaRecorder) IsMuted() bool {
|
|
return (bool)(C.QMediaRecorder_IsMuted(this.h))
|
|
}
|
|
|
|
func (this *QMediaRecorder) Volume() float64 {
|
|
return (float64)(C.QMediaRecorder_Volume(this.h))
|
|
}
|
|
|
|
func (this *QMediaRecorder) SupportedContainers() []string {
|
|
var _ma C.struct_miqt_array = C.QMediaRecorder_SupportedContainers(this.h)
|
|
_ret := make([]string, int(_ma.len))
|
|
_outCast := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
|
|
for i := 0; i < int(_ma.len); i++ {
|
|
var _lv_ms C.struct_miqt_string = _outCast[i]
|
|
_lv_ret := C.GoStringN(_lv_ms.data, C.int(int64(_lv_ms.len)))
|
|
C.free(unsafe.Pointer(_lv_ms.data))
|
|
_ret[i] = _lv_ret
|
|
}
|
|
return _ret
|
|
}
|
|
|
|
func (this *QMediaRecorder) ContainerDescription(format string) string {
|
|
format_ms := C.struct_miqt_string{}
|
|
format_ms.data = C.CString(format)
|
|
format_ms.len = C.size_t(len(format))
|
|
defer C.free(unsafe.Pointer(format_ms.data))
|
|
var _ms C.struct_miqt_string = C.QMediaRecorder_ContainerDescription(this.h, format_ms)
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
return _ret
|
|
}
|
|
|
|
func (this *QMediaRecorder) SupportedAudioCodecs() []string {
|
|
var _ma C.struct_miqt_array = C.QMediaRecorder_SupportedAudioCodecs(this.h)
|
|
_ret := make([]string, int(_ma.len))
|
|
_outCast := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
|
|
for i := 0; i < int(_ma.len); i++ {
|
|
var _lv_ms C.struct_miqt_string = _outCast[i]
|
|
_lv_ret := C.GoStringN(_lv_ms.data, C.int(int64(_lv_ms.len)))
|
|
C.free(unsafe.Pointer(_lv_ms.data))
|
|
_ret[i] = _lv_ret
|
|
}
|
|
return _ret
|
|
}
|
|
|
|
func (this *QMediaRecorder) AudioCodecDescription(codecName string) string {
|
|
codecName_ms := C.struct_miqt_string{}
|
|
codecName_ms.data = C.CString(codecName)
|
|
codecName_ms.len = C.size_t(len(codecName))
|
|
defer C.free(unsafe.Pointer(codecName_ms.data))
|
|
var _ms C.struct_miqt_string = C.QMediaRecorder_AudioCodecDescription(this.h, codecName_ms)
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
return _ret
|
|
}
|
|
|
|
func (this *QMediaRecorder) SupportedAudioSampleRates() []int {
|
|
var _ma C.struct_miqt_array = C.QMediaRecorder_SupportedAudioSampleRates(this.h)
|
|
_ret := make([]int, int(_ma.len))
|
|
_outCast := (*[0xffff]C.int)(unsafe.Pointer(_ma.data)) // hey ya
|
|
for i := 0; i < int(_ma.len); i++ {
|
|
_ret[i] = (int)(_outCast[i])
|
|
}
|
|
return _ret
|
|
}
|
|
|
|
func (this *QMediaRecorder) SupportedVideoCodecs() []string {
|
|
var _ma C.struct_miqt_array = C.QMediaRecorder_SupportedVideoCodecs(this.h)
|
|
_ret := make([]string, int(_ma.len))
|
|
_outCast := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
|
|
for i := 0; i < int(_ma.len); i++ {
|
|
var _lv_ms C.struct_miqt_string = _outCast[i]
|
|
_lv_ret := C.GoStringN(_lv_ms.data, C.int(int64(_lv_ms.len)))
|
|
C.free(unsafe.Pointer(_lv_ms.data))
|
|
_ret[i] = _lv_ret
|
|
}
|
|
return _ret
|
|
}
|
|
|
|
func (this *QMediaRecorder) VideoCodecDescription(codecName string) string {
|
|
codecName_ms := C.struct_miqt_string{}
|
|
codecName_ms.data = C.CString(codecName)
|
|
codecName_ms.len = C.size_t(len(codecName))
|
|
defer C.free(unsafe.Pointer(codecName_ms.data))
|
|
var _ms C.struct_miqt_string = C.QMediaRecorder_VideoCodecDescription(this.h, codecName_ms)
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
return _ret
|
|
}
|
|
|
|
func (this *QMediaRecorder) SupportedResolutions() []qt.QSize {
|
|
var _ma C.struct_miqt_array = C.QMediaRecorder_SupportedResolutions(this.h)
|
|
_ret := make([]qt.QSize, int(_ma.len))
|
|
_outCast := (*[0xffff]*C.QSize)(unsafe.Pointer(_ma.data)) // hey ya
|
|
for i := 0; i < int(_ma.len); i++ {
|
|
_lv_ret := _outCast[i]
|
|
_lv_goptr := qt.UnsafeNewQSize(unsafe.Pointer(_lv_ret))
|
|
_lv_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
_ret[i] = *_lv_goptr
|
|
}
|
|
return _ret
|
|
}
|
|
|
|
func (this *QMediaRecorder) SupportedFrameRates() []float64 {
|
|
var _ma C.struct_miqt_array = C.QMediaRecorder_SupportedFrameRates(this.h)
|
|
_ret := make([]float64, int(_ma.len))
|
|
_outCast := (*[0xffff]C.double)(unsafe.Pointer(_ma.data)) // hey ya
|
|
for i := 0; i < int(_ma.len); i++ {
|
|
_ret[i] = (float64)(_outCast[i])
|
|
}
|
|
return _ret
|
|
}
|
|
|
|
func (this *QMediaRecorder) AudioSettings() *QAudioEncoderSettings {
|
|
_ret := C.QMediaRecorder_AudioSettings(this.h)
|
|
_goptr := newQAudioEncoderSettings(_ret)
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
return _goptr
|
|
}
|
|
|
|
func (this *QMediaRecorder) VideoSettings() *QVideoEncoderSettings {
|
|
_ret := C.QMediaRecorder_VideoSettings(this.h)
|
|
_goptr := newQVideoEncoderSettings(_ret)
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
return _goptr
|
|
}
|
|
|
|
func (this *QMediaRecorder) ContainerFormat() string {
|
|
var _ms C.struct_miqt_string = C.QMediaRecorder_ContainerFormat(this.h)
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
return _ret
|
|
}
|
|
|
|
func (this *QMediaRecorder) SetAudioSettings(audioSettings *QAudioEncoderSettings) {
|
|
C.QMediaRecorder_SetAudioSettings(this.h, audioSettings.cPointer())
|
|
}
|
|
|
|
func (this *QMediaRecorder) SetVideoSettings(videoSettings *QVideoEncoderSettings) {
|
|
C.QMediaRecorder_SetVideoSettings(this.h, videoSettings.cPointer())
|
|
}
|
|
|
|
func (this *QMediaRecorder) SetContainerFormat(container string) {
|
|
container_ms := C.struct_miqt_string{}
|
|
container_ms.data = C.CString(container)
|
|
container_ms.len = C.size_t(len(container))
|
|
defer C.free(unsafe.Pointer(container_ms.data))
|
|
C.QMediaRecorder_SetContainerFormat(this.h, container_ms)
|
|
}
|
|
|
|
func (this *QMediaRecorder) SetEncodingSettings(audioSettings *QAudioEncoderSettings) {
|
|
C.QMediaRecorder_SetEncodingSettings(this.h, audioSettings.cPointer())
|
|
}
|
|
|
|
func (this *QMediaRecorder) IsMetaDataAvailable() bool {
|
|
return (bool)(C.QMediaRecorder_IsMetaDataAvailable(this.h))
|
|
}
|
|
|
|
func (this *QMediaRecorder) IsMetaDataWritable() bool {
|
|
return (bool)(C.QMediaRecorder_IsMetaDataWritable(this.h))
|
|
}
|
|
|
|
func (this *QMediaRecorder) MetaData(key string) *qt.QVariant {
|
|
key_ms := C.struct_miqt_string{}
|
|
key_ms.data = C.CString(key)
|
|
key_ms.len = C.size_t(len(key))
|
|
defer C.free(unsafe.Pointer(key_ms.data))
|
|
_ret := C.QMediaRecorder_MetaData(this.h, key_ms)
|
|
_goptr := qt.UnsafeNewQVariant(unsafe.Pointer(_ret))
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
return _goptr
|
|
}
|
|
|
|
func (this *QMediaRecorder) SetMetaData(key string, value *qt.QVariant) {
|
|
key_ms := C.struct_miqt_string{}
|
|
key_ms.data = C.CString(key)
|
|
key_ms.len = C.size_t(len(key))
|
|
defer C.free(unsafe.Pointer(key_ms.data))
|
|
C.QMediaRecorder_SetMetaData(this.h, key_ms, (*C.QVariant)(value.UnsafePointer()))
|
|
}
|
|
|
|
func (this *QMediaRecorder) AvailableMetaData() []string {
|
|
var _ma C.struct_miqt_array = C.QMediaRecorder_AvailableMetaData(this.h)
|
|
_ret := make([]string, int(_ma.len))
|
|
_outCast := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
|
|
for i := 0; i < int(_ma.len); i++ {
|
|
var _lv_ms C.struct_miqt_string = _outCast[i]
|
|
_lv_ret := C.GoStringN(_lv_ms.data, C.int(int64(_lv_ms.len)))
|
|
C.free(unsafe.Pointer(_lv_ms.data))
|
|
_ret[i] = _lv_ret
|
|
}
|
|
return _ret
|
|
}
|
|
|
|
func (this *QMediaRecorder) Record() {
|
|
C.QMediaRecorder_Record(this.h)
|
|
}
|
|
|
|
func (this *QMediaRecorder) Pause() {
|
|
C.QMediaRecorder_Pause(this.h)
|
|
}
|
|
|
|
func (this *QMediaRecorder) Stop() {
|
|
C.QMediaRecorder_Stop(this.h)
|
|
}
|
|
|
|
func (this *QMediaRecorder) SetMuted(muted bool) {
|
|
C.QMediaRecorder_SetMuted(this.h, (C.bool)(muted))
|
|
}
|
|
|
|
func (this *QMediaRecorder) SetVolume(volume float64) {
|
|
C.QMediaRecorder_SetVolume(this.h, (C.double)(volume))
|
|
}
|
|
|
|
func (this *QMediaRecorder) StateChanged(state QMediaRecorder__State) {
|
|
C.QMediaRecorder_StateChanged(this.h, (C.int)(state))
|
|
}
|
|
func (this *QMediaRecorder) OnStateChanged(slot func(state QMediaRecorder__State)) {
|
|
C.QMediaRecorder_connect_StateChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
|
}
|
|
|
|
//export miqt_exec_callback_QMediaRecorder_StateChanged
|
|
func miqt_exec_callback_QMediaRecorder_StateChanged(cb C.intptr_t, state C.int) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(state QMediaRecorder__State))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := (QMediaRecorder__State)(state)
|
|
|
|
gofunc(slotval1)
|
|
}
|
|
|
|
func (this *QMediaRecorder) StatusChanged(status QMediaRecorder__Status) {
|
|
C.QMediaRecorder_StatusChanged(this.h, (C.int)(status))
|
|
}
|
|
func (this *QMediaRecorder) OnStatusChanged(slot func(status QMediaRecorder__Status)) {
|
|
C.QMediaRecorder_connect_StatusChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
|
}
|
|
|
|
//export miqt_exec_callback_QMediaRecorder_StatusChanged
|
|
func miqt_exec_callback_QMediaRecorder_StatusChanged(cb C.intptr_t, status C.int) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(status QMediaRecorder__Status))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := (QMediaRecorder__Status)(status)
|
|
|
|
gofunc(slotval1)
|
|
}
|
|
|
|
func (this *QMediaRecorder) DurationChanged(duration int64) {
|
|
C.QMediaRecorder_DurationChanged(this.h, (C.longlong)(duration))
|
|
}
|
|
func (this *QMediaRecorder) OnDurationChanged(slot func(duration int64)) {
|
|
C.QMediaRecorder_connect_DurationChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
|
}
|
|
|
|
//export miqt_exec_callback_QMediaRecorder_DurationChanged
|
|
func miqt_exec_callback_QMediaRecorder_DurationChanged(cb C.intptr_t, duration C.longlong) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(duration int64))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := (int64)(duration)
|
|
|
|
gofunc(slotval1)
|
|
}
|
|
|
|
func (this *QMediaRecorder) MutedChanged(muted bool) {
|
|
C.QMediaRecorder_MutedChanged(this.h, (C.bool)(muted))
|
|
}
|
|
func (this *QMediaRecorder) OnMutedChanged(slot func(muted bool)) {
|
|
C.QMediaRecorder_connect_MutedChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
|
}
|
|
|
|
//export miqt_exec_callback_QMediaRecorder_MutedChanged
|
|
func miqt_exec_callback_QMediaRecorder_MutedChanged(cb C.intptr_t, muted C.bool) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(muted bool))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := (bool)(muted)
|
|
|
|
gofunc(slotval1)
|
|
}
|
|
|
|
func (this *QMediaRecorder) VolumeChanged(volume float64) {
|
|
C.QMediaRecorder_VolumeChanged(this.h, (C.double)(volume))
|
|
}
|
|
func (this *QMediaRecorder) OnVolumeChanged(slot func(volume float64)) {
|
|
C.QMediaRecorder_connect_VolumeChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
|
}
|
|
|
|
//export miqt_exec_callback_QMediaRecorder_VolumeChanged
|
|
func miqt_exec_callback_QMediaRecorder_VolumeChanged(cb C.intptr_t, volume C.double) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(volume float64))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := (float64)(volume)
|
|
|
|
gofunc(slotval1)
|
|
}
|
|
|
|
func (this *QMediaRecorder) ActualLocationChanged(location *qt.QUrl) {
|
|
C.QMediaRecorder_ActualLocationChanged(this.h, (*C.QUrl)(location.UnsafePointer()))
|
|
}
|
|
func (this *QMediaRecorder) OnActualLocationChanged(slot func(location *qt.QUrl)) {
|
|
C.QMediaRecorder_connect_ActualLocationChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
|
}
|
|
|
|
//export miqt_exec_callback_QMediaRecorder_ActualLocationChanged
|
|
func miqt_exec_callback_QMediaRecorder_ActualLocationChanged(cb C.intptr_t, location *C.QUrl) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(location *qt.QUrl))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := qt.UnsafeNewQUrl(unsafe.Pointer(location))
|
|
|
|
gofunc(slotval1)
|
|
}
|
|
|
|
func (this *QMediaRecorder) ErrorWithError(error QMediaRecorder__Error) {
|
|
C.QMediaRecorder_ErrorWithError(this.h, (C.int)(error))
|
|
}
|
|
func (this *QMediaRecorder) OnErrorWithError(slot func(error QMediaRecorder__Error)) {
|
|
C.QMediaRecorder_connect_ErrorWithError(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
|
}
|
|
|
|
//export miqt_exec_callback_QMediaRecorder_ErrorWithError
|
|
func miqt_exec_callback_QMediaRecorder_ErrorWithError(cb C.intptr_t, error C.int) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(error QMediaRecorder__Error))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := (QMediaRecorder__Error)(error)
|
|
|
|
gofunc(slotval1)
|
|
}
|
|
|
|
func (this *QMediaRecorder) MetaDataAvailableChanged(available bool) {
|
|
C.QMediaRecorder_MetaDataAvailableChanged(this.h, (C.bool)(available))
|
|
}
|
|
func (this *QMediaRecorder) OnMetaDataAvailableChanged(slot func(available bool)) {
|
|
C.QMediaRecorder_connect_MetaDataAvailableChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
|
}
|
|
|
|
//export miqt_exec_callback_QMediaRecorder_MetaDataAvailableChanged
|
|
func miqt_exec_callback_QMediaRecorder_MetaDataAvailableChanged(cb C.intptr_t, available C.bool) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(available bool))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := (bool)(available)
|
|
|
|
gofunc(slotval1)
|
|
}
|
|
|
|
func (this *QMediaRecorder) MetaDataWritableChanged(writable bool) {
|
|
C.QMediaRecorder_MetaDataWritableChanged(this.h, (C.bool)(writable))
|
|
}
|
|
func (this *QMediaRecorder) OnMetaDataWritableChanged(slot func(writable bool)) {
|
|
C.QMediaRecorder_connect_MetaDataWritableChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
|
}
|
|
|
|
//export miqt_exec_callback_QMediaRecorder_MetaDataWritableChanged
|
|
func miqt_exec_callback_QMediaRecorder_MetaDataWritableChanged(cb C.intptr_t, writable C.bool) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(writable bool))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := (bool)(writable)
|
|
|
|
gofunc(slotval1)
|
|
}
|
|
|
|
func (this *QMediaRecorder) MetaDataChanged() {
|
|
C.QMediaRecorder_MetaDataChanged(this.h)
|
|
}
|
|
func (this *QMediaRecorder) OnMetaDataChanged(slot func()) {
|
|
C.QMediaRecorder_connect_MetaDataChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
|
}
|
|
|
|
//export miqt_exec_callback_QMediaRecorder_MetaDataChanged
|
|
func miqt_exec_callback_QMediaRecorder_MetaDataChanged(cb C.intptr_t) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func())
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
gofunc()
|
|
}
|
|
|
|
func (this *QMediaRecorder) MetaDataChanged2(key string, value *qt.QVariant) {
|
|
key_ms := C.struct_miqt_string{}
|
|
key_ms.data = C.CString(key)
|
|
key_ms.len = C.size_t(len(key))
|
|
defer C.free(unsafe.Pointer(key_ms.data))
|
|
C.QMediaRecorder_MetaDataChanged2(this.h, key_ms, (*C.QVariant)(value.UnsafePointer()))
|
|
}
|
|
func (this *QMediaRecorder) OnMetaDataChanged2(slot func(key string, value *qt.QVariant)) {
|
|
C.QMediaRecorder_connect_MetaDataChanged2(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
|
}
|
|
|
|
//export miqt_exec_callback_QMediaRecorder_MetaDataChanged2
|
|
func miqt_exec_callback_QMediaRecorder_MetaDataChanged2(cb C.intptr_t, key C.struct_miqt_string, value *C.QVariant) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(key string, value *qt.QVariant))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
var key_ms C.struct_miqt_string = key
|
|
key_ret := C.GoStringN(key_ms.data, C.int(int64(key_ms.len)))
|
|
C.free(unsafe.Pointer(key_ms.data))
|
|
slotval1 := key_ret
|
|
slotval2 := qt.UnsafeNewQVariant(unsafe.Pointer(value))
|
|
|
|
gofunc(slotval1, slotval2)
|
|
}
|
|
|
|
func (this *QMediaRecorder) AvailabilityChanged(available bool) {
|
|
C.QMediaRecorder_AvailabilityChanged(this.h, (C.bool)(available))
|
|
}
|
|
func (this *QMediaRecorder) OnAvailabilityChanged(slot func(available bool)) {
|
|
C.QMediaRecorder_connect_AvailabilityChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
|
}
|
|
|
|
//export miqt_exec_callback_QMediaRecorder_AvailabilityChanged
|
|
func miqt_exec_callback_QMediaRecorder_AvailabilityChanged(cb C.intptr_t, available C.bool) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(available bool))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := (bool)(available)
|
|
|
|
gofunc(slotval1)
|
|
}
|
|
|
|
func (this *QMediaRecorder) AvailabilityChangedWithAvailability(availability QMultimedia__AvailabilityStatus) {
|
|
C.QMediaRecorder_AvailabilityChangedWithAvailability(this.h, (C.int)(availability))
|
|
}
|
|
func (this *QMediaRecorder) OnAvailabilityChangedWithAvailability(slot func(availability QMultimedia__AvailabilityStatus)) {
|
|
C.QMediaRecorder_connect_AvailabilityChangedWithAvailability(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
|
}
|
|
|
|
//export miqt_exec_callback_QMediaRecorder_AvailabilityChangedWithAvailability
|
|
func miqt_exec_callback_QMediaRecorder_AvailabilityChangedWithAvailability(cb C.intptr_t, availability C.int) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(availability QMultimedia__AvailabilityStatus))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := (QMultimedia__AvailabilityStatus)(availability)
|
|
|
|
gofunc(slotval1)
|
|
}
|
|
|
|
func QMediaRecorder_Tr2(s string, c string) string {
|
|
s_Cstring := C.CString(s)
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
|
c_Cstring := C.CString(c)
|
|
defer C.free(unsafe.Pointer(c_Cstring))
|
|
var _ms C.struct_miqt_string = C.QMediaRecorder_Tr2(s_Cstring, c_Cstring)
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
return _ret
|
|
}
|
|
|
|
func QMediaRecorder_Tr3(s string, c string, n int) string {
|
|
s_Cstring := C.CString(s)
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
|
c_Cstring := C.CString(c)
|
|
defer C.free(unsafe.Pointer(c_Cstring))
|
|
var _ms C.struct_miqt_string = C.QMediaRecorder_Tr3(s_Cstring, c_Cstring, (C.int)(n))
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
return _ret
|
|
}
|
|
|
|
func QMediaRecorder_TrUtf82(s string, c string) string {
|
|
s_Cstring := C.CString(s)
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
|
c_Cstring := C.CString(c)
|
|
defer C.free(unsafe.Pointer(c_Cstring))
|
|
var _ms C.struct_miqt_string = C.QMediaRecorder_TrUtf82(s_Cstring, c_Cstring)
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
return _ret
|
|
}
|
|
|
|
func QMediaRecorder_TrUtf83(s string, c string, n int) string {
|
|
s_Cstring := C.CString(s)
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
|
c_Cstring := C.CString(c)
|
|
defer C.free(unsafe.Pointer(c_Cstring))
|
|
var _ms C.struct_miqt_string = C.QMediaRecorder_TrUtf83(s_Cstring, c_Cstring, (C.int)(n))
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
return _ret
|
|
}
|
|
|
|
func (this *QMediaRecorder) SupportedAudioSampleRates1(settings *QAudioEncoderSettings) []int {
|
|
var _ma C.struct_miqt_array = C.QMediaRecorder_SupportedAudioSampleRates1(this.h, settings.cPointer())
|
|
_ret := make([]int, int(_ma.len))
|
|
_outCast := (*[0xffff]C.int)(unsafe.Pointer(_ma.data)) // hey ya
|
|
for i := 0; i < int(_ma.len); i++ {
|
|
_ret[i] = (int)(_outCast[i])
|
|
}
|
|
return _ret
|
|
}
|
|
|
|
func (this *QMediaRecorder) SupportedAudioSampleRates2(settings *QAudioEncoderSettings, continuous *bool) []int {
|
|
var _ma C.struct_miqt_array = C.QMediaRecorder_SupportedAudioSampleRates2(this.h, settings.cPointer(), (*C.bool)(unsafe.Pointer(continuous)))
|
|
_ret := make([]int, int(_ma.len))
|
|
_outCast := (*[0xffff]C.int)(unsafe.Pointer(_ma.data)) // hey ya
|
|
for i := 0; i < int(_ma.len); i++ {
|
|
_ret[i] = (int)(_outCast[i])
|
|
}
|
|
return _ret
|
|
}
|
|
|
|
func (this *QMediaRecorder) SupportedResolutions1(settings *QVideoEncoderSettings) []qt.QSize {
|
|
var _ma C.struct_miqt_array = C.QMediaRecorder_SupportedResolutions1(this.h, settings.cPointer())
|
|
_ret := make([]qt.QSize, int(_ma.len))
|
|
_outCast := (*[0xffff]*C.QSize)(unsafe.Pointer(_ma.data)) // hey ya
|
|
for i := 0; i < int(_ma.len); i++ {
|
|
_lv_ret := _outCast[i]
|
|
_lv_goptr := qt.UnsafeNewQSize(unsafe.Pointer(_lv_ret))
|
|
_lv_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
_ret[i] = *_lv_goptr
|
|
}
|
|
return _ret
|
|
}
|
|
|
|
func (this *QMediaRecorder) SupportedResolutions2(settings *QVideoEncoderSettings, continuous *bool) []qt.QSize {
|
|
var _ma C.struct_miqt_array = C.QMediaRecorder_SupportedResolutions2(this.h, settings.cPointer(), (*C.bool)(unsafe.Pointer(continuous)))
|
|
_ret := make([]qt.QSize, int(_ma.len))
|
|
_outCast := (*[0xffff]*C.QSize)(unsafe.Pointer(_ma.data)) // hey ya
|
|
for i := 0; i < int(_ma.len); i++ {
|
|
_lv_ret := _outCast[i]
|
|
_lv_goptr := qt.UnsafeNewQSize(unsafe.Pointer(_lv_ret))
|
|
_lv_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
_ret[i] = *_lv_goptr
|
|
}
|
|
return _ret
|
|
}
|
|
|
|
func (this *QMediaRecorder) SupportedFrameRates1(settings *QVideoEncoderSettings) []float64 {
|
|
var _ma C.struct_miqt_array = C.QMediaRecorder_SupportedFrameRates1(this.h, settings.cPointer())
|
|
_ret := make([]float64, int(_ma.len))
|
|
_outCast := (*[0xffff]C.double)(unsafe.Pointer(_ma.data)) // hey ya
|
|
for i := 0; i < int(_ma.len); i++ {
|
|
_ret[i] = (float64)(_outCast[i])
|
|
}
|
|
return _ret
|
|
}
|
|
|
|
func (this *QMediaRecorder) SupportedFrameRates2(settings *QVideoEncoderSettings, continuous *bool) []float64 {
|
|
var _ma C.struct_miqt_array = C.QMediaRecorder_SupportedFrameRates2(this.h, settings.cPointer(), (*C.bool)(unsafe.Pointer(continuous)))
|
|
_ret := make([]float64, int(_ma.len))
|
|
_outCast := (*[0xffff]C.double)(unsafe.Pointer(_ma.data)) // hey ya
|
|
for i := 0; i < int(_ma.len); i++ {
|
|
_ret[i] = (float64)(_outCast[i])
|
|
}
|
|
return _ret
|
|
}
|
|
|
|
func (this *QMediaRecorder) SetEncodingSettings2(audioSettings *QAudioEncoderSettings, videoSettings *QVideoEncoderSettings) {
|
|
C.QMediaRecorder_SetEncodingSettings2(this.h, audioSettings.cPointer(), videoSettings.cPointer())
|
|
}
|
|
|
|
func (this *QMediaRecorder) SetEncodingSettings3(audioSettings *QAudioEncoderSettings, videoSettings *QVideoEncoderSettings, containerMimeType string) {
|
|
containerMimeType_ms := C.struct_miqt_string{}
|
|
containerMimeType_ms.data = C.CString(containerMimeType)
|
|
containerMimeType_ms.len = C.size_t(len(containerMimeType))
|
|
defer C.free(unsafe.Pointer(containerMimeType_ms.data))
|
|
C.QMediaRecorder_SetEncodingSettings3(this.h, audioSettings.cPointer(), videoSettings.cPointer(), containerMimeType_ms)
|
|
}
|
|
|
|
func (this *QMediaRecorder) callVirtualBase_MediaObject() *QMediaObject {
|
|
|
|
return UnsafeNewQMediaObject(unsafe.Pointer(C.QMediaRecorder_virtualbase_MediaObject(unsafe.Pointer(this.h))), nil)
|
|
}
|
|
func (this *QMediaRecorder) OnMediaObject(slot func(super func() *QMediaObject) *QMediaObject) {
|
|
C.QMediaRecorder_override_virtual_MediaObject(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
}
|
|
|
|
//export miqt_exec_callback_QMediaRecorder_MediaObject
|
|
func miqt_exec_callback_QMediaRecorder_MediaObject(self *C.QMediaRecorder, cb C.intptr_t) *C.QMediaObject {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QMediaObject) *QMediaObject)
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
virtualReturn := gofunc((&QMediaRecorder{h: self}).callVirtualBase_MediaObject)
|
|
|
|
return virtualReturn.cPointer()
|
|
|
|
}
|
|
|
|
func (this *QMediaRecorder) callVirtualBase_SetMediaObject(object *QMediaObject) bool {
|
|
|
|
return (bool)(C.QMediaRecorder_virtualbase_SetMediaObject(unsafe.Pointer(this.h), object.cPointer()))
|
|
|
|
}
|
|
func (this *QMediaRecorder) OnSetMediaObject(slot func(super func(object *QMediaObject) bool, object *QMediaObject) bool) {
|
|
C.QMediaRecorder_override_virtual_SetMediaObject(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
}
|
|
|
|
//export miqt_exec_callback_QMediaRecorder_SetMediaObject
|
|
func miqt_exec_callback_QMediaRecorder_SetMediaObject(self *C.QMediaRecorder, cb C.intptr_t, object *C.QMediaObject) C.bool {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(object *QMediaObject) bool, object *QMediaObject) bool)
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := UnsafeNewQMediaObject(unsafe.Pointer(object), nil)
|
|
|
|
virtualReturn := gofunc((&QMediaRecorder{h: self}).callVirtualBase_SetMediaObject, slotval1)
|
|
|
|
return (C.bool)(virtualReturn)
|
|
|
|
}
|
|
|
|
func (this *QMediaRecorder) callVirtualBase_Event(event *qt.QEvent) bool {
|
|
|
|
return (bool)(C.QMediaRecorder_virtualbase_Event(unsafe.Pointer(this.h), (*C.QEvent)(event.UnsafePointer())))
|
|
|
|
}
|
|
func (this *QMediaRecorder) OnEvent(slot func(super func(event *qt.QEvent) bool, event *qt.QEvent) bool) {
|
|
C.QMediaRecorder_override_virtual_Event(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
}
|
|
|
|
//export miqt_exec_callback_QMediaRecorder_Event
|
|
func miqt_exec_callback_QMediaRecorder_Event(self *C.QMediaRecorder, cb C.intptr_t, event *C.QEvent) C.bool {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QEvent) bool, event *qt.QEvent) bool)
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := qt.UnsafeNewQEvent(unsafe.Pointer(event))
|
|
|
|
virtualReturn := gofunc((&QMediaRecorder{h: self}).callVirtualBase_Event, slotval1)
|
|
|
|
return (C.bool)(virtualReturn)
|
|
|
|
}
|
|
|
|
func (this *QMediaRecorder) callVirtualBase_EventFilter(watched *qt.QObject, event *qt.QEvent) bool {
|
|
|
|
return (bool)(C.QMediaRecorder_virtualbase_EventFilter(unsafe.Pointer(this.h), (*C.QObject)(watched.UnsafePointer()), (*C.QEvent)(event.UnsafePointer())))
|
|
|
|
}
|
|
func (this *QMediaRecorder) OnEventFilter(slot func(super func(watched *qt.QObject, event *qt.QEvent) bool, watched *qt.QObject, event *qt.QEvent) bool) {
|
|
C.QMediaRecorder_override_virtual_EventFilter(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
}
|
|
|
|
//export miqt_exec_callback_QMediaRecorder_EventFilter
|
|
func miqt_exec_callback_QMediaRecorder_EventFilter(self *C.QMediaRecorder, cb C.intptr_t, watched *C.QObject, event *C.QEvent) C.bool {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(watched *qt.QObject, event *qt.QEvent) bool, watched *qt.QObject, event *qt.QEvent) bool)
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := qt.UnsafeNewQObject(unsafe.Pointer(watched))
|
|
slotval2 := qt.UnsafeNewQEvent(unsafe.Pointer(event))
|
|
|
|
virtualReturn := gofunc((&QMediaRecorder{h: self}).callVirtualBase_EventFilter, slotval1, slotval2)
|
|
|
|
return (C.bool)(virtualReturn)
|
|
|
|
}
|
|
|
|
func (this *QMediaRecorder) callVirtualBase_TimerEvent(event *qt.QTimerEvent) {
|
|
|
|
C.QMediaRecorder_virtualbase_TimerEvent(unsafe.Pointer(this.h), (*C.QTimerEvent)(event.UnsafePointer()))
|
|
|
|
}
|
|
func (this *QMediaRecorder) OnTimerEvent(slot func(super func(event *qt.QTimerEvent), event *qt.QTimerEvent)) {
|
|
C.QMediaRecorder_override_virtual_TimerEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
}
|
|
|
|
//export miqt_exec_callback_QMediaRecorder_TimerEvent
|
|
func miqt_exec_callback_QMediaRecorder_TimerEvent(self *C.QMediaRecorder, cb C.intptr_t, event *C.QTimerEvent) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QTimerEvent), event *qt.QTimerEvent))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := qt.UnsafeNewQTimerEvent(unsafe.Pointer(event), nil)
|
|
|
|
gofunc((&QMediaRecorder{h: self}).callVirtualBase_TimerEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QMediaRecorder) callVirtualBase_ChildEvent(event *qt.QChildEvent) {
|
|
|
|
C.QMediaRecorder_virtualbase_ChildEvent(unsafe.Pointer(this.h), (*C.QChildEvent)(event.UnsafePointer()))
|
|
|
|
}
|
|
func (this *QMediaRecorder) OnChildEvent(slot func(super func(event *qt.QChildEvent), event *qt.QChildEvent)) {
|
|
C.QMediaRecorder_override_virtual_ChildEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
}
|
|
|
|
//export miqt_exec_callback_QMediaRecorder_ChildEvent
|
|
func miqt_exec_callback_QMediaRecorder_ChildEvent(self *C.QMediaRecorder, cb C.intptr_t, event *C.QChildEvent) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QChildEvent), event *qt.QChildEvent))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := qt.UnsafeNewQChildEvent(unsafe.Pointer(event), nil)
|
|
|
|
gofunc((&QMediaRecorder{h: self}).callVirtualBase_ChildEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QMediaRecorder) callVirtualBase_CustomEvent(event *qt.QEvent) {
|
|
|
|
C.QMediaRecorder_virtualbase_CustomEvent(unsafe.Pointer(this.h), (*C.QEvent)(event.UnsafePointer()))
|
|
|
|
}
|
|
func (this *QMediaRecorder) OnCustomEvent(slot func(super func(event *qt.QEvent), event *qt.QEvent)) {
|
|
C.QMediaRecorder_override_virtual_CustomEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
}
|
|
|
|
//export miqt_exec_callback_QMediaRecorder_CustomEvent
|
|
func miqt_exec_callback_QMediaRecorder_CustomEvent(self *C.QMediaRecorder, cb C.intptr_t, event *C.QEvent) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QEvent), event *qt.QEvent))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := qt.UnsafeNewQEvent(unsafe.Pointer(event))
|
|
|
|
gofunc((&QMediaRecorder{h: self}).callVirtualBase_CustomEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QMediaRecorder) callVirtualBase_ConnectNotify(signal *qt.QMetaMethod) {
|
|
|
|
C.QMediaRecorder_virtualbase_ConnectNotify(unsafe.Pointer(this.h), (*C.QMetaMethod)(signal.UnsafePointer()))
|
|
|
|
}
|
|
func (this *QMediaRecorder) OnConnectNotify(slot func(super func(signal *qt.QMetaMethod), signal *qt.QMetaMethod)) {
|
|
C.QMediaRecorder_override_virtual_ConnectNotify(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
}
|
|
|
|
//export miqt_exec_callback_QMediaRecorder_ConnectNotify
|
|
func miqt_exec_callback_QMediaRecorder_ConnectNotify(self *C.QMediaRecorder, cb C.intptr_t, signal *C.QMetaMethod) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(signal *qt.QMetaMethod), signal *qt.QMetaMethod))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := qt.UnsafeNewQMetaMethod(unsafe.Pointer(signal))
|
|
|
|
gofunc((&QMediaRecorder{h: self}).callVirtualBase_ConnectNotify, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QMediaRecorder) callVirtualBase_DisconnectNotify(signal *qt.QMetaMethod) {
|
|
|
|
C.QMediaRecorder_virtualbase_DisconnectNotify(unsafe.Pointer(this.h), (*C.QMetaMethod)(signal.UnsafePointer()))
|
|
|
|
}
|
|
func (this *QMediaRecorder) OnDisconnectNotify(slot func(super func(signal *qt.QMetaMethod), signal *qt.QMetaMethod)) {
|
|
C.QMediaRecorder_override_virtual_DisconnectNotify(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
}
|
|
|
|
//export miqt_exec_callback_QMediaRecorder_DisconnectNotify
|
|
func miqt_exec_callback_QMediaRecorder_DisconnectNotify(self *C.QMediaRecorder, cb C.intptr_t, signal *C.QMetaMethod) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(signal *qt.QMetaMethod), signal *qt.QMetaMethod))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := qt.UnsafeNewQMetaMethod(unsafe.Pointer(signal))
|
|
|
|
gofunc((&QMediaRecorder{h: self}).callVirtualBase_DisconnectNotify, slotval1)
|
|
|
|
}
|
|
|
|
// Delete this object from C++ memory.
|
|
func (this *QMediaRecorder) Delete() {
|
|
C.QMediaRecorder_Delete(this.h, C.bool(this.isSubclass))
|
|
}
|
|
|
|
// GoGC adds a Go Finalizer to this pointer, so that it will be deleted
|
|
// from C++ memory once it is unreachable from Go memory.
|
|
func (this *QMediaRecorder) GoGC() {
|
|
runtime.SetFinalizer(this, func(this *QMediaRecorder) {
|
|
this.Delete()
|
|
runtime.KeepAlive(this.h)
|
|
})
|
|
}
|