package webkit /* #include "gen_qwebpluginfactory.h" #include */ import "C" import ( "github.com/mappu/miqt/qt" "runtime" "runtime/cgo" "unsafe" ) type QWebPluginFactory struct { h *C.QWebPluginFactory isSubclass bool *qt.QObject } func (this *QWebPluginFactory) cPointer() *C.QWebPluginFactory { if this == nil { return nil } return this.h } func (this *QWebPluginFactory) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQWebPluginFactory constructs the type using only CGO pointers. func newQWebPluginFactory(h *C.QWebPluginFactory, h_QObject *C.QObject) *QWebPluginFactory { if h == nil { return nil } return &QWebPluginFactory{h: h, QObject: qt.UnsafeNewQObject(unsafe.Pointer(h_QObject))} } // UnsafeNewQWebPluginFactory constructs the type using only unsafe pointers. func UnsafeNewQWebPluginFactory(h unsafe.Pointer, h_QObject unsafe.Pointer) *QWebPluginFactory { if h == nil { return nil } return &QWebPluginFactory{h: (*C.QWebPluginFactory)(h), QObject: qt.UnsafeNewQObject(h_QObject)} } // NewQWebPluginFactory constructs a new QWebPluginFactory object. func NewQWebPluginFactory() *QWebPluginFactory { var outptr_QWebPluginFactory *C.QWebPluginFactory = nil var outptr_QObject *C.QObject = nil C.QWebPluginFactory_new(&outptr_QWebPluginFactory, &outptr_QObject) ret := newQWebPluginFactory(outptr_QWebPluginFactory, outptr_QObject) ret.isSubclass = true return ret } // NewQWebPluginFactory2 constructs a new QWebPluginFactory object. func NewQWebPluginFactory2(parent *qt.QObject) *QWebPluginFactory { var outptr_QWebPluginFactory *C.QWebPluginFactory = nil var outptr_QObject *C.QObject = nil C.QWebPluginFactory_new2((*C.QObject)(parent.UnsafePointer()), &outptr_QWebPluginFactory, &outptr_QObject) ret := newQWebPluginFactory(outptr_QWebPluginFactory, outptr_QObject) ret.isSubclass = true return ret } func (this *QWebPluginFactory) MetaObject() *qt.QMetaObject { return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QWebPluginFactory_MetaObject(this.h))) } func (this *QWebPluginFactory) Metacast(param1 string) unsafe.Pointer { param1_Cstring := C.CString(param1) defer C.free(unsafe.Pointer(param1_Cstring)) return (unsafe.Pointer)(C.QWebPluginFactory_Metacast(this.h, param1_Cstring)) } func QWebPluginFactory_Tr(s string) string { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) var _ms C.struct_miqt_string = C.QWebPluginFactory_Tr(s_Cstring) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func QWebPluginFactory_TrUtf8(s string) string { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) var _ms C.struct_miqt_string = C.QWebPluginFactory_TrUtf8(s_Cstring) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QWebPluginFactory) Plugins() []QWebPluginFactory__Plugin { var _ma C.struct_miqt_array = C.QWebPluginFactory_Plugins(this.h) _ret := make([]QWebPluginFactory__Plugin, int(_ma.len)) _outCast := (*[0xffff]*C.QWebPluginFactory__Plugin)(unsafe.Pointer(_ma.data)) // hey ya for i := 0; i < int(_ma.len); i++ { _lv_ret := _outCast[i] _lv_goptr := newQWebPluginFactory__Plugin(_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 *QWebPluginFactory) RefreshPlugins() { C.QWebPluginFactory_RefreshPlugins(this.h) } func (this *QWebPluginFactory) Create(mimeType string, param2 *qt.QUrl, argumentNames []string, argumentValues []string) *qt.QObject { mimeType_ms := C.struct_miqt_string{} mimeType_ms.data = C.CString(mimeType) mimeType_ms.len = C.size_t(len(mimeType)) defer C.free(unsafe.Pointer(mimeType_ms.data)) argumentNames_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(argumentNames)))) defer C.free(unsafe.Pointer(argumentNames_CArray)) for i := range argumentNames { argumentNames_i_ms := C.struct_miqt_string{} argumentNames_i_ms.data = C.CString(argumentNames[i]) argumentNames_i_ms.len = C.size_t(len(argumentNames[i])) defer C.free(unsafe.Pointer(argumentNames_i_ms.data)) argumentNames_CArray[i] = argumentNames_i_ms } argumentNames_ma := C.struct_miqt_array{len: C.size_t(len(argumentNames)), data: unsafe.Pointer(argumentNames_CArray)} argumentValues_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(argumentValues)))) defer C.free(unsafe.Pointer(argumentValues_CArray)) for i := range argumentValues { argumentValues_i_ms := C.struct_miqt_string{} argumentValues_i_ms.data = C.CString(argumentValues[i]) argumentValues_i_ms.len = C.size_t(len(argumentValues[i])) defer C.free(unsafe.Pointer(argumentValues_i_ms.data)) argumentValues_CArray[i] = argumentValues_i_ms } argumentValues_ma := C.struct_miqt_array{len: C.size_t(len(argumentValues)), data: unsafe.Pointer(argumentValues_CArray)} return qt.UnsafeNewQObject(unsafe.Pointer(C.QWebPluginFactory_Create(this.h, mimeType_ms, (*C.QUrl)(param2.UnsafePointer()), argumentNames_ma, argumentValues_ma))) } func (this *QWebPluginFactory) Extension(extension QWebPluginFactory__Extension, option *QWebPluginFactory__ExtensionOption, output *QWebPluginFactory__ExtensionReturn) bool { return (bool)(C.QWebPluginFactory_Extension(this.h, (C.int)(extension), option.cPointer(), output.cPointer())) } func (this *QWebPluginFactory) SupportsExtension(extension QWebPluginFactory__Extension) bool { return (bool)(C.QWebPluginFactory_SupportsExtension(this.h, (C.int)(extension))) } func QWebPluginFactory_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.QWebPluginFactory_Tr2(s_Cstring, c_Cstring) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func QWebPluginFactory_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.QWebPluginFactory_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 QWebPluginFactory_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.QWebPluginFactory_TrUtf82(s_Cstring, c_Cstring) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func QWebPluginFactory_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.QWebPluginFactory_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 *QWebPluginFactory) OnPlugins(slot func() []QWebPluginFactory__Plugin) { C.QWebPluginFactory_override_virtual_Plugins(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWebPluginFactory_Plugins func miqt_exec_callback_QWebPluginFactory_Plugins(self *C.QWebPluginFactory, cb C.intptr_t) C.struct_miqt_array { gofunc, ok := cgo.Handle(cb).Value().(func() []QWebPluginFactory__Plugin) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } virtualReturn := gofunc() virtualReturn_CArray := (*[0xffff]*C.QWebPluginFactory__Plugin)(C.malloc(C.size_t(8 * len(virtualReturn)))) defer C.free(unsafe.Pointer(virtualReturn_CArray)) for i := range virtualReturn { virtualReturn_CArray[i] = virtualReturn[i].cPointer() } virtualReturn_ma := C.struct_miqt_array{len: C.size_t(len(virtualReturn)), data: unsafe.Pointer(virtualReturn_CArray)} return virtualReturn_ma } func (this *QWebPluginFactory) callVirtualBase_RefreshPlugins() { C.QWebPluginFactory_virtualbase_RefreshPlugins(unsafe.Pointer(this.h)) } func (this *QWebPluginFactory) OnRefreshPlugins(slot func(super func())) { C.QWebPluginFactory_override_virtual_RefreshPlugins(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWebPluginFactory_RefreshPlugins func miqt_exec_callback_QWebPluginFactory_RefreshPlugins(self *C.QWebPluginFactory, cb C.intptr_t) { gofunc, ok := cgo.Handle(cb).Value().(func(super func())) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } gofunc((&QWebPluginFactory{h: self}).callVirtualBase_RefreshPlugins) } func (this *QWebPluginFactory) OnCreate(slot func(mimeType string, param2 *qt.QUrl, argumentNames []string, argumentValues []string) *qt.QObject) { C.QWebPluginFactory_override_virtual_Create(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWebPluginFactory_Create func miqt_exec_callback_QWebPluginFactory_Create(self *C.QWebPluginFactory, cb C.intptr_t, mimeType C.struct_miqt_string, param2 *C.QUrl, argumentNames C.struct_miqt_array, argumentValues C.struct_miqt_array) *C.QObject { gofunc, ok := cgo.Handle(cb).Value().(func(mimeType string, param2 *qt.QUrl, argumentNames []string, argumentValues []string) *qt.QObject) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters var mimeType_ms C.struct_miqt_string = mimeType mimeType_ret := C.GoStringN(mimeType_ms.data, C.int(int64(mimeType_ms.len))) C.free(unsafe.Pointer(mimeType_ms.data)) slotval1 := mimeType_ret slotval2 := qt.UnsafeNewQUrl(unsafe.Pointer(param2)) var argumentNames_ma C.struct_miqt_array = argumentNames argumentNames_ret := make([]string, int(argumentNames_ma.len)) argumentNames_outCast := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(argumentNames_ma.data)) // hey ya for i := 0; i < int(argumentNames_ma.len); i++ { var argumentNames_lv_ms C.struct_miqt_string = argumentNames_outCast[i] argumentNames_lv_ret := C.GoStringN(argumentNames_lv_ms.data, C.int(int64(argumentNames_lv_ms.len))) C.free(unsafe.Pointer(argumentNames_lv_ms.data)) argumentNames_ret[i] = argumentNames_lv_ret } slotval3 := argumentNames_ret var argumentValues_ma C.struct_miqt_array = argumentValues argumentValues_ret := make([]string, int(argumentValues_ma.len)) argumentValues_outCast := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(argumentValues_ma.data)) // hey ya for i := 0; i < int(argumentValues_ma.len); i++ { var argumentValues_lv_ms C.struct_miqt_string = argumentValues_outCast[i] argumentValues_lv_ret := C.GoStringN(argumentValues_lv_ms.data, C.int(int64(argumentValues_lv_ms.len))) C.free(unsafe.Pointer(argumentValues_lv_ms.data)) argumentValues_ret[i] = argumentValues_lv_ret } slotval4 := argumentValues_ret virtualReturn := gofunc(slotval1, slotval2, slotval3, slotval4) return (*C.QObject)(virtualReturn.UnsafePointer()) } func (this *QWebPluginFactory) callVirtualBase_Extension(extension QWebPluginFactory__Extension, option *QWebPluginFactory__ExtensionOption, output *QWebPluginFactory__ExtensionReturn) bool { return (bool)(C.QWebPluginFactory_virtualbase_Extension(unsafe.Pointer(this.h), (C.int)(extension), option.cPointer(), output.cPointer())) } func (this *QWebPluginFactory) OnExtension(slot func(super func(extension QWebPluginFactory__Extension, option *QWebPluginFactory__ExtensionOption, output *QWebPluginFactory__ExtensionReturn) bool, extension QWebPluginFactory__Extension, option *QWebPluginFactory__ExtensionOption, output *QWebPluginFactory__ExtensionReturn) bool) { C.QWebPluginFactory_override_virtual_Extension(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWebPluginFactory_Extension func miqt_exec_callback_QWebPluginFactory_Extension(self *C.QWebPluginFactory, cb C.intptr_t, extension C.int, option *C.QWebPluginFactory__ExtensionOption, output *C.QWebPluginFactory__ExtensionReturn) C.bool { gofunc, ok := cgo.Handle(cb).Value().(func(super func(extension QWebPluginFactory__Extension, option *QWebPluginFactory__ExtensionOption, output *QWebPluginFactory__ExtensionReturn) bool, extension QWebPluginFactory__Extension, option *QWebPluginFactory__ExtensionOption, output *QWebPluginFactory__ExtensionReturn) bool) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := (QWebPluginFactory__Extension)(extension) slotval2 := UnsafeNewQWebPluginFactory__ExtensionOption(unsafe.Pointer(option)) slotval3 := UnsafeNewQWebPluginFactory__ExtensionReturn(unsafe.Pointer(output)) virtualReturn := gofunc((&QWebPluginFactory{h: self}).callVirtualBase_Extension, slotval1, slotval2, slotval3) return (C.bool)(virtualReturn) } func (this *QWebPluginFactory) callVirtualBase_SupportsExtension(extension QWebPluginFactory__Extension) bool { return (bool)(C.QWebPluginFactory_virtualbase_SupportsExtension(unsafe.Pointer(this.h), (C.int)(extension))) } func (this *QWebPluginFactory) OnSupportsExtension(slot func(super func(extension QWebPluginFactory__Extension) bool, extension QWebPluginFactory__Extension) bool) { C.QWebPluginFactory_override_virtual_SupportsExtension(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWebPluginFactory_SupportsExtension func miqt_exec_callback_QWebPluginFactory_SupportsExtension(self *C.QWebPluginFactory, cb C.intptr_t, extension C.int) C.bool { gofunc, ok := cgo.Handle(cb).Value().(func(super func(extension QWebPluginFactory__Extension) bool, extension QWebPluginFactory__Extension) bool) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := (QWebPluginFactory__Extension)(extension) virtualReturn := gofunc((&QWebPluginFactory{h: self}).callVirtualBase_SupportsExtension, slotval1) return (C.bool)(virtualReturn) } func (this *QWebPluginFactory) callVirtualBase_Event(event *qt.QEvent) bool { return (bool)(C.QWebPluginFactory_virtualbase_Event(unsafe.Pointer(this.h), (*C.QEvent)(event.UnsafePointer()))) } func (this *QWebPluginFactory) OnEvent(slot func(super func(event *qt.QEvent) bool, event *qt.QEvent) bool) { C.QWebPluginFactory_override_virtual_Event(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWebPluginFactory_Event func miqt_exec_callback_QWebPluginFactory_Event(self *C.QWebPluginFactory, 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((&QWebPluginFactory{h: self}).callVirtualBase_Event, slotval1) return (C.bool)(virtualReturn) } func (this *QWebPluginFactory) callVirtualBase_EventFilter(watched *qt.QObject, event *qt.QEvent) bool { return (bool)(C.QWebPluginFactory_virtualbase_EventFilter(unsafe.Pointer(this.h), (*C.QObject)(watched.UnsafePointer()), (*C.QEvent)(event.UnsafePointer()))) } func (this *QWebPluginFactory) OnEventFilter(slot func(super func(watched *qt.QObject, event *qt.QEvent) bool, watched *qt.QObject, event *qt.QEvent) bool) { C.QWebPluginFactory_override_virtual_EventFilter(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWebPluginFactory_EventFilter func miqt_exec_callback_QWebPluginFactory_EventFilter(self *C.QWebPluginFactory, 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((&QWebPluginFactory{h: self}).callVirtualBase_EventFilter, slotval1, slotval2) return (C.bool)(virtualReturn) } func (this *QWebPluginFactory) callVirtualBase_TimerEvent(event *qt.QTimerEvent) { C.QWebPluginFactory_virtualbase_TimerEvent(unsafe.Pointer(this.h), (*C.QTimerEvent)(event.UnsafePointer())) } func (this *QWebPluginFactory) OnTimerEvent(slot func(super func(event *qt.QTimerEvent), event *qt.QTimerEvent)) { C.QWebPluginFactory_override_virtual_TimerEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWebPluginFactory_TimerEvent func miqt_exec_callback_QWebPluginFactory_TimerEvent(self *C.QWebPluginFactory, 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((&QWebPluginFactory{h: self}).callVirtualBase_TimerEvent, slotval1) } func (this *QWebPluginFactory) callVirtualBase_ChildEvent(event *qt.QChildEvent) { C.QWebPluginFactory_virtualbase_ChildEvent(unsafe.Pointer(this.h), (*C.QChildEvent)(event.UnsafePointer())) } func (this *QWebPluginFactory) OnChildEvent(slot func(super func(event *qt.QChildEvent), event *qt.QChildEvent)) { C.QWebPluginFactory_override_virtual_ChildEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWebPluginFactory_ChildEvent func miqt_exec_callback_QWebPluginFactory_ChildEvent(self *C.QWebPluginFactory, 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((&QWebPluginFactory{h: self}).callVirtualBase_ChildEvent, slotval1) } func (this *QWebPluginFactory) callVirtualBase_CustomEvent(event *qt.QEvent) { C.QWebPluginFactory_virtualbase_CustomEvent(unsafe.Pointer(this.h), (*C.QEvent)(event.UnsafePointer())) } func (this *QWebPluginFactory) OnCustomEvent(slot func(super func(event *qt.QEvent), event *qt.QEvent)) { C.QWebPluginFactory_override_virtual_CustomEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWebPluginFactory_CustomEvent func miqt_exec_callback_QWebPluginFactory_CustomEvent(self *C.QWebPluginFactory, 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((&QWebPluginFactory{h: self}).callVirtualBase_CustomEvent, slotval1) } func (this *QWebPluginFactory) callVirtualBase_ConnectNotify(signal *qt.QMetaMethod) { C.QWebPluginFactory_virtualbase_ConnectNotify(unsafe.Pointer(this.h), (*C.QMetaMethod)(signal.UnsafePointer())) } func (this *QWebPluginFactory) OnConnectNotify(slot func(super func(signal *qt.QMetaMethod), signal *qt.QMetaMethod)) { C.QWebPluginFactory_override_virtual_ConnectNotify(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWebPluginFactory_ConnectNotify func miqt_exec_callback_QWebPluginFactory_ConnectNotify(self *C.QWebPluginFactory, 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((&QWebPluginFactory{h: self}).callVirtualBase_ConnectNotify, slotval1) } func (this *QWebPluginFactory) callVirtualBase_DisconnectNotify(signal *qt.QMetaMethod) { C.QWebPluginFactory_virtualbase_DisconnectNotify(unsafe.Pointer(this.h), (*C.QMetaMethod)(signal.UnsafePointer())) } func (this *QWebPluginFactory) OnDisconnectNotify(slot func(super func(signal *qt.QMetaMethod), signal *qt.QMetaMethod)) { C.QWebPluginFactory_override_virtual_DisconnectNotify(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QWebPluginFactory_DisconnectNotify func miqt_exec_callback_QWebPluginFactory_DisconnectNotify(self *C.QWebPluginFactory, 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((&QWebPluginFactory{h: self}).callVirtualBase_DisconnectNotify, slotval1) } // Delete this object from C++ memory. func (this *QWebPluginFactory) Delete() { C.QWebPluginFactory_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 *QWebPluginFactory) GoGC() { runtime.SetFinalizer(this, func(this *QWebPluginFactory) { this.Delete() runtime.KeepAlive(this.h) }) } type QWebPluginFactory__MimeType struct { h *C.QWebPluginFactory__MimeType isSubclass bool } func (this *QWebPluginFactory__MimeType) cPointer() *C.QWebPluginFactory__MimeType { if this == nil { return nil } return this.h } func (this *QWebPluginFactory__MimeType) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQWebPluginFactory__MimeType constructs the type using only CGO pointers. func newQWebPluginFactory__MimeType(h *C.QWebPluginFactory__MimeType) *QWebPluginFactory__MimeType { if h == nil { return nil } return &QWebPluginFactory__MimeType{h: h} } // UnsafeNewQWebPluginFactory__MimeType constructs the type using only unsafe pointers. func UnsafeNewQWebPluginFactory__MimeType(h unsafe.Pointer) *QWebPluginFactory__MimeType { if h == nil { return nil } return &QWebPluginFactory__MimeType{h: (*C.QWebPluginFactory__MimeType)(h)} } // NewQWebPluginFactory__MimeType constructs a new QWebPluginFactory::MimeType object. func NewQWebPluginFactory__MimeType(param1 *QWebPluginFactory__MimeType) *QWebPluginFactory__MimeType { var outptr_QWebPluginFactory__MimeType *C.QWebPluginFactory__MimeType = nil C.QWebPluginFactory__MimeType_new(param1.cPointer(), &outptr_QWebPluginFactory__MimeType) ret := newQWebPluginFactory__MimeType(outptr_QWebPluginFactory__MimeType) ret.isSubclass = true return ret } func (this *QWebPluginFactory__MimeType) OperatorEqual(other *QWebPluginFactory__MimeType) bool { return (bool)(C.QWebPluginFactory__MimeType_OperatorEqual(this.h, other.cPointer())) } func (this *QWebPluginFactory__MimeType) OperatorNotEqual(other *QWebPluginFactory__MimeType) bool { return (bool)(C.QWebPluginFactory__MimeType_OperatorNotEqual(this.h, other.cPointer())) } func (this *QWebPluginFactory__MimeType) OperatorAssign(param1 *QWebPluginFactory__MimeType) { C.QWebPluginFactory__MimeType_OperatorAssign(this.h, param1.cPointer()) } // Delete this object from C++ memory. func (this *QWebPluginFactory__MimeType) Delete() { C.QWebPluginFactory__MimeType_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 *QWebPluginFactory__MimeType) GoGC() { runtime.SetFinalizer(this, func(this *QWebPluginFactory__MimeType) { this.Delete() runtime.KeepAlive(this.h) }) } type QWebPluginFactory__Plugin struct { h *C.QWebPluginFactory__Plugin isSubclass bool } func (this *QWebPluginFactory__Plugin) cPointer() *C.QWebPluginFactory__Plugin { if this == nil { return nil } return this.h } func (this *QWebPluginFactory__Plugin) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQWebPluginFactory__Plugin constructs the type using only CGO pointers. func newQWebPluginFactory__Plugin(h *C.QWebPluginFactory__Plugin) *QWebPluginFactory__Plugin { if h == nil { return nil } return &QWebPluginFactory__Plugin{h: h} } // UnsafeNewQWebPluginFactory__Plugin constructs the type using only unsafe pointers. func UnsafeNewQWebPluginFactory__Plugin(h unsafe.Pointer) *QWebPluginFactory__Plugin { if h == nil { return nil } return &QWebPluginFactory__Plugin{h: (*C.QWebPluginFactory__Plugin)(h)} } // NewQWebPluginFactory__Plugin constructs a new QWebPluginFactory::Plugin object. func NewQWebPluginFactory__Plugin(param1 *QWebPluginFactory__Plugin) *QWebPluginFactory__Plugin { var outptr_QWebPluginFactory__Plugin *C.QWebPluginFactory__Plugin = nil C.QWebPluginFactory__Plugin_new(param1.cPointer(), &outptr_QWebPluginFactory__Plugin) ret := newQWebPluginFactory__Plugin(outptr_QWebPluginFactory__Plugin) ret.isSubclass = true return ret } func (this *QWebPluginFactory__Plugin) OperatorAssign(param1 *QWebPluginFactory__Plugin) { C.QWebPluginFactory__Plugin_OperatorAssign(this.h, param1.cPointer()) } // Delete this object from C++ memory. func (this *QWebPluginFactory__Plugin) Delete() { C.QWebPluginFactory__Plugin_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 *QWebPluginFactory__Plugin) GoGC() { runtime.SetFinalizer(this, func(this *QWebPluginFactory__Plugin) { this.Delete() runtime.KeepAlive(this.h) }) } type QWebPluginFactory__ExtensionOption struct { h *C.QWebPluginFactory__ExtensionOption isSubclass bool } func (this *QWebPluginFactory__ExtensionOption) cPointer() *C.QWebPluginFactory__ExtensionOption { if this == nil { return nil } return this.h } func (this *QWebPluginFactory__ExtensionOption) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQWebPluginFactory__ExtensionOption constructs the type using only CGO pointers. func newQWebPluginFactory__ExtensionOption(h *C.QWebPluginFactory__ExtensionOption) *QWebPluginFactory__ExtensionOption { if h == nil { return nil } return &QWebPluginFactory__ExtensionOption{h: h} } // UnsafeNewQWebPluginFactory__ExtensionOption constructs the type using only unsafe pointers. func UnsafeNewQWebPluginFactory__ExtensionOption(h unsafe.Pointer) *QWebPluginFactory__ExtensionOption { if h == nil { return nil } return &QWebPluginFactory__ExtensionOption{h: (*C.QWebPluginFactory__ExtensionOption)(h)} } // Delete this object from C++ memory. func (this *QWebPluginFactory__ExtensionOption) Delete() { C.QWebPluginFactory__ExtensionOption_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 *QWebPluginFactory__ExtensionOption) GoGC() { runtime.SetFinalizer(this, func(this *QWebPluginFactory__ExtensionOption) { this.Delete() runtime.KeepAlive(this.h) }) } type QWebPluginFactory__ExtensionReturn struct { h *C.QWebPluginFactory__ExtensionReturn isSubclass bool } func (this *QWebPluginFactory__ExtensionReturn) cPointer() *C.QWebPluginFactory__ExtensionReturn { if this == nil { return nil } return this.h } func (this *QWebPluginFactory__ExtensionReturn) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQWebPluginFactory__ExtensionReturn constructs the type using only CGO pointers. func newQWebPluginFactory__ExtensionReturn(h *C.QWebPluginFactory__ExtensionReturn) *QWebPluginFactory__ExtensionReturn { if h == nil { return nil } return &QWebPluginFactory__ExtensionReturn{h: h} } // UnsafeNewQWebPluginFactory__ExtensionReturn constructs the type using only unsafe pointers. func UnsafeNewQWebPluginFactory__ExtensionReturn(h unsafe.Pointer) *QWebPluginFactory__ExtensionReturn { if h == nil { return nil } return &QWebPluginFactory__ExtensionReturn{h: (*C.QWebPluginFactory__ExtensionReturn)(h)} } // Delete this object from C++ memory. func (this *QWebPluginFactory__ExtensionReturn) Delete() { C.QWebPluginFactory__ExtensionReturn_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 *QWebPluginFactory__ExtensionReturn) GoGC() { runtime.SetFinalizer(this, func(this *QWebPluginFactory__ExtensionReturn) { this.Delete() runtime.KeepAlive(this.h) }) }