miqt/qt/webkit/gen_qwebinspector.go

1422 lines
54 KiB
Go
Raw Normal View History

2024-11-26 22:31:32 +13:00
package webkit
/*
#include "gen_qwebinspector.h"
#include <stdlib.h>
*/
import "C"
import (
"github.com/mappu/miqt/qt"
"runtime"
"runtime/cgo"
"unsafe"
)
type QWebInspector struct {
h *C.QWebInspector
2024-11-26 22:31:32 +13:00
*qt.QWidget
}
func (this *QWebInspector) cPointer() *C.QWebInspector {
if this == nil {
return nil
}
return this.h
}
func (this *QWebInspector) UnsafePointer() unsafe.Pointer {
if this == nil {
return nil
}
return unsafe.Pointer(this.h)
}
// newQWebInspector constructs the type using only CGO pointers.
2024-12-07 17:15:57 +13:00
func newQWebInspector(h *C.QWebInspector) *QWebInspector {
2024-11-26 22:31:32 +13:00
if h == nil {
return nil
}
2024-12-07 17:15:57 +13:00
var outptr_QWidget *C.QWidget = nil
C.QWebInspector_virtbase(h, &outptr_QWidget)
2024-11-26 22:31:32 +13:00
return &QWebInspector{h: h,
2024-12-07 17:15:57 +13:00
QWidget: qt.UnsafeNewQWidget(unsafe.Pointer(outptr_QWidget))}
2024-11-26 22:31:32 +13:00
}
// UnsafeNewQWebInspector constructs the type using only unsafe pointers.
2024-12-07 17:15:57 +13:00
func UnsafeNewQWebInspector(h unsafe.Pointer) *QWebInspector {
return newQWebInspector((*C.QWebInspector)(h))
2024-11-26 22:31:32 +13:00
}
// NewQWebInspector constructs a new QWebInspector object.
func NewQWebInspector(parent *qt.QWidget) *QWebInspector {
return newQWebInspector(C.QWebInspector_new((*C.QWidget)(parent.UnsafePointer())))
2024-11-26 22:31:32 +13:00
}
// NewQWebInspector2 constructs a new QWebInspector object.
func NewQWebInspector2() *QWebInspector {
return newQWebInspector(C.QWebInspector_new2())
2024-11-26 22:31:32 +13:00
}
func (this *QWebInspector) MetaObject() *qt.QMetaObject {
2025-02-01 13:45:16 +13:00
return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QWebInspector_metaObject(this.h)))
2024-11-26 22:31:32 +13:00
}
func (this *QWebInspector) Metacast(param1 string) unsafe.Pointer {
param1_Cstring := C.CString(param1)
defer C.free(unsafe.Pointer(param1_Cstring))
2025-02-01 13:45:16 +13:00
return (unsafe.Pointer)(C.QWebInspector_metacast(this.h, param1_Cstring))
2024-11-26 22:31:32 +13:00
}
func QWebInspector_Tr(s string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
2025-02-01 13:45:16 +13:00
var _ms C.struct_miqt_string = C.QWebInspector_tr(s_Cstring)
2024-11-26 22:31:32 +13:00
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func QWebInspector_TrUtf8(s string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
2025-02-01 13:45:16 +13:00
var _ms C.struct_miqt_string = C.QWebInspector_trUtf8(s_Cstring)
2024-11-26 22:31:32 +13:00
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func (this *QWebInspector) SetPage(page *QWebPage) {
2025-02-01 13:45:16 +13:00
C.QWebInspector_setPage(this.h, page.cPointer())
2024-11-26 22:31:32 +13:00
}
func (this *QWebInspector) Page() *QWebPage {
2025-02-01 13:45:16 +13:00
return newQWebPage(C.QWebInspector_page(this.h))
2024-11-26 22:31:32 +13:00
}
func (this *QWebInspector) SizeHint() *qt.QSize {
2025-02-01 13:45:16 +13:00
_goptr := qt.UnsafeNewQSize(unsafe.Pointer(C.QWebInspector_sizeHint(this.h)))
2024-11-26 22:31:32 +13:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QWebInspector) Event(param1 *qt.QEvent) bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QWebInspector_event(this.h, (*C.QEvent)(param1.UnsafePointer())))
2024-11-26 22:31:32 +13:00
}
func QWebInspector_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))
2025-02-01 13:45:16 +13:00
var _ms C.struct_miqt_string = C.QWebInspector_tr2(s_Cstring, c_Cstring)
2024-11-26 22:31:32 +13:00
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func QWebInspector_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))
2025-02-01 13:45:16 +13:00
var _ms C.struct_miqt_string = C.QWebInspector_tr3(s_Cstring, c_Cstring, (C.int)(n))
2024-11-26 22:31:32 +13:00
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func QWebInspector_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))
2025-02-01 13:45:16 +13:00
var _ms C.struct_miqt_string = C.QWebInspector_trUtf82(s_Cstring, c_Cstring)
2024-11-26 22:31:32 +13:00
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func QWebInspector_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))
2025-02-01 13:45:16 +13:00
var _ms C.struct_miqt_string = C.QWebInspector_trUtf83(s_Cstring, c_Cstring, (C.int)(n))
2024-11-26 22:31:32 +13:00
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func (this *QWebInspector) callVirtualBase_SizeHint() *qt.QSize {
2025-02-01 13:45:16 +13:00
_goptr := qt.UnsafeNewQSize(unsafe.Pointer(C.QWebInspector_virtualbase_sizeHint(unsafe.Pointer(this.h))))
2024-11-26 22:31:32 +13:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) OnsizeHint(slot func(super func() *qt.QSize) *qt.QSize) {
ok := C.QWebInspector_override_virtual_sizeHint(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_sizeHint
func miqt_exec_callback_QWebInspector_sizeHint(self *C.QWebInspector, cb C.intptr_t) *C.QSize {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *qt.QSize) *qt.QSize)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
virtualReturn := gofunc((&QWebInspector{h: self}).callVirtualBase_SizeHint)
return (*C.QSize)(virtualReturn.UnsafePointer())
}
func (this *QWebInspector) callVirtualBase_Event(param1 *qt.QEvent) bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QWebInspector_virtualbase_event(unsafe.Pointer(this.h), (*C.QEvent)(param1.UnsafePointer())))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) Onevent(slot func(super func(param1 *qt.QEvent) bool, param1 *qt.QEvent) bool) {
ok := C.QWebInspector_override_virtual_event(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_event
func miqt_exec_callback_QWebInspector_event(self *C.QWebInspector, cb C.intptr_t, param1 *C.QEvent) C.bool {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *qt.QEvent) bool, param1 *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(param1))
virtualReturn := gofunc((&QWebInspector{h: self}).callVirtualBase_Event, slotval1)
return (C.bool)(virtualReturn)
}
func (this *QWebInspector) callVirtualBase_ResizeEvent(event *qt.QResizeEvent) {
2025-02-01 13:45:16 +13:00
C.QWebInspector_virtualbase_resizeEvent(unsafe.Pointer(this.h), (*C.QResizeEvent)(event.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) OnresizeEvent(slot func(super func(event *qt.QResizeEvent), event *qt.QResizeEvent)) {
ok := C.QWebInspector_override_virtual_resizeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_resizeEvent
func miqt_exec_callback_QWebInspector_resizeEvent(self *C.QWebInspector, cb C.intptr_t, event *C.QResizeEvent) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QResizeEvent), event *qt.QResizeEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
2024-12-07 17:15:57 +13:00
slotval1 := qt.UnsafeNewQResizeEvent(unsafe.Pointer(event))
2024-11-26 22:31:32 +13:00
gofunc((&QWebInspector{h: self}).callVirtualBase_ResizeEvent, slotval1)
}
func (this *QWebInspector) callVirtualBase_ShowEvent(event *qt.QShowEvent) {
2025-02-01 13:45:16 +13:00
C.QWebInspector_virtualbase_showEvent(unsafe.Pointer(this.h), (*C.QShowEvent)(event.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) OnshowEvent(slot func(super func(event *qt.QShowEvent), event *qt.QShowEvent)) {
ok := C.QWebInspector_override_virtual_showEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_showEvent
func miqt_exec_callback_QWebInspector_showEvent(self *C.QWebInspector, cb C.intptr_t, event *C.QShowEvent) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QShowEvent), event *qt.QShowEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
2024-12-07 17:15:57 +13:00
slotval1 := qt.UnsafeNewQShowEvent(unsafe.Pointer(event))
2024-11-26 22:31:32 +13:00
gofunc((&QWebInspector{h: self}).callVirtualBase_ShowEvent, slotval1)
}
func (this *QWebInspector) callVirtualBase_HideEvent(event *qt.QHideEvent) {
2025-02-01 13:45:16 +13:00
C.QWebInspector_virtualbase_hideEvent(unsafe.Pointer(this.h), (*C.QHideEvent)(event.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) OnhideEvent(slot func(super func(event *qt.QHideEvent), event *qt.QHideEvent)) {
ok := C.QWebInspector_override_virtual_hideEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_hideEvent
func miqt_exec_callback_QWebInspector_hideEvent(self *C.QWebInspector, cb C.intptr_t, event *C.QHideEvent) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QHideEvent), event *qt.QHideEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
2024-12-07 17:15:57 +13:00
slotval1 := qt.UnsafeNewQHideEvent(unsafe.Pointer(event))
2024-11-26 22:31:32 +13:00
gofunc((&QWebInspector{h: self}).callVirtualBase_HideEvent, slotval1)
}
func (this *QWebInspector) callVirtualBase_CloseEvent(event *qt.QCloseEvent) {
2025-02-01 13:45:16 +13:00
C.QWebInspector_virtualbase_closeEvent(unsafe.Pointer(this.h), (*C.QCloseEvent)(event.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) OncloseEvent(slot func(super func(event *qt.QCloseEvent), event *qt.QCloseEvent)) {
ok := C.QWebInspector_override_virtual_closeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_closeEvent
func miqt_exec_callback_QWebInspector_closeEvent(self *C.QWebInspector, cb C.intptr_t, event *C.QCloseEvent) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QCloseEvent), event *qt.QCloseEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
2024-12-07 17:15:57 +13:00
slotval1 := qt.UnsafeNewQCloseEvent(unsafe.Pointer(event))
2024-11-26 22:31:32 +13:00
gofunc((&QWebInspector{h: self}).callVirtualBase_CloseEvent, slotval1)
}
func (this *QWebInspector) callVirtualBase_DevType() int {
2025-02-01 13:45:16 +13:00
return (int)(C.QWebInspector_virtualbase_devType(unsafe.Pointer(this.h)))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) OndevType(slot func(super func() int) int) {
ok := C.QWebInspector_override_virtual_devType(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_devType
func miqt_exec_callback_QWebInspector_devType(self *C.QWebInspector, cb C.intptr_t) C.int {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func() int) int)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
virtualReturn := gofunc((&QWebInspector{h: self}).callVirtualBase_DevType)
return (C.int)(virtualReturn)
}
func (this *QWebInspector) callVirtualBase_SetVisible(visible bool) {
2025-02-01 13:45:16 +13:00
C.QWebInspector_virtualbase_setVisible(unsafe.Pointer(this.h), (C.bool)(visible))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) OnsetVisible(slot func(super func(visible bool), visible bool)) {
ok := C.QWebInspector_override_virtual_setVisible(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_setVisible
func miqt_exec_callback_QWebInspector_setVisible(self *C.QWebInspector, cb C.intptr_t, visible C.bool) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(visible bool), visible bool))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (bool)(visible)
gofunc((&QWebInspector{h: self}).callVirtualBase_SetVisible, slotval1)
}
func (this *QWebInspector) callVirtualBase_MinimumSizeHint() *qt.QSize {
2025-02-01 13:45:16 +13:00
_goptr := qt.UnsafeNewQSize(unsafe.Pointer(C.QWebInspector_virtualbase_minimumSizeHint(unsafe.Pointer(this.h))))
2024-11-26 22:31:32 +13:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) OnminimumSizeHint(slot func(super func() *qt.QSize) *qt.QSize) {
ok := C.QWebInspector_override_virtual_minimumSizeHint(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_minimumSizeHint
func miqt_exec_callback_QWebInspector_minimumSizeHint(self *C.QWebInspector, cb C.intptr_t) *C.QSize {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *qt.QSize) *qt.QSize)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
virtualReturn := gofunc((&QWebInspector{h: self}).callVirtualBase_MinimumSizeHint)
return (*C.QSize)(virtualReturn.UnsafePointer())
}
func (this *QWebInspector) callVirtualBase_HeightForWidth(param1 int) int {
2025-02-01 13:45:16 +13:00
return (int)(C.QWebInspector_virtualbase_heightForWidth(unsafe.Pointer(this.h), (C.int)(param1)))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) OnheightForWidth(slot func(super func(param1 int) int, param1 int) int) {
ok := C.QWebInspector_override_virtual_heightForWidth(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_heightForWidth
func miqt_exec_callback_QWebInspector_heightForWidth(self *C.QWebInspector, cb C.intptr_t, param1 C.int) C.int {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 int) int, param1 int) int)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (int)(param1)
virtualReturn := gofunc((&QWebInspector{h: self}).callVirtualBase_HeightForWidth, slotval1)
return (C.int)(virtualReturn)
}
func (this *QWebInspector) callVirtualBase_HasHeightForWidth() bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QWebInspector_virtualbase_hasHeightForWidth(unsafe.Pointer(this.h)))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) OnhasHeightForWidth(slot func(super func() bool) bool) {
ok := C.QWebInspector_override_virtual_hasHeightForWidth(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_hasHeightForWidth
func miqt_exec_callback_QWebInspector_hasHeightForWidth(self *C.QWebInspector, cb C.intptr_t) C.bool {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func() bool) bool)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
virtualReturn := gofunc((&QWebInspector{h: self}).callVirtualBase_HasHeightForWidth)
return (C.bool)(virtualReturn)
}
func (this *QWebInspector) callVirtualBase_PaintEngine() *qt.QPaintEngine {
2025-02-01 13:45:16 +13:00
return qt.UnsafeNewQPaintEngine(unsafe.Pointer(C.QWebInspector_virtualbase_paintEngine(unsafe.Pointer(this.h))))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) OnpaintEngine(slot func(super func() *qt.QPaintEngine) *qt.QPaintEngine) {
ok := C.QWebInspector_override_virtual_paintEngine(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_paintEngine
func miqt_exec_callback_QWebInspector_paintEngine(self *C.QWebInspector, cb C.intptr_t) *C.QPaintEngine {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *qt.QPaintEngine) *qt.QPaintEngine)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
virtualReturn := gofunc((&QWebInspector{h: self}).callVirtualBase_PaintEngine)
return (*C.QPaintEngine)(virtualReturn.UnsafePointer())
}
func (this *QWebInspector) callVirtualBase_MousePressEvent(event *qt.QMouseEvent) {
2025-02-01 13:45:16 +13:00
C.QWebInspector_virtualbase_mousePressEvent(unsafe.Pointer(this.h), (*C.QMouseEvent)(event.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) OnmousePressEvent(slot func(super func(event *qt.QMouseEvent), event *qt.QMouseEvent)) {
ok := C.QWebInspector_override_virtual_mousePressEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_mousePressEvent
func miqt_exec_callback_QWebInspector_mousePressEvent(self *C.QWebInspector, cb C.intptr_t, event *C.QMouseEvent) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QMouseEvent), event *qt.QMouseEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
2024-12-07 17:15:57 +13:00
slotval1 := qt.UnsafeNewQMouseEvent(unsafe.Pointer(event))
2024-11-26 22:31:32 +13:00
gofunc((&QWebInspector{h: self}).callVirtualBase_MousePressEvent, slotval1)
}
func (this *QWebInspector) callVirtualBase_MouseReleaseEvent(event *qt.QMouseEvent) {
2025-02-01 13:45:16 +13:00
C.QWebInspector_virtualbase_mouseReleaseEvent(unsafe.Pointer(this.h), (*C.QMouseEvent)(event.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) OnmouseReleaseEvent(slot func(super func(event *qt.QMouseEvent), event *qt.QMouseEvent)) {
ok := C.QWebInspector_override_virtual_mouseReleaseEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_mouseReleaseEvent
func miqt_exec_callback_QWebInspector_mouseReleaseEvent(self *C.QWebInspector, cb C.intptr_t, event *C.QMouseEvent) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QMouseEvent), event *qt.QMouseEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
2024-12-07 17:15:57 +13:00
slotval1 := qt.UnsafeNewQMouseEvent(unsafe.Pointer(event))
2024-11-26 22:31:32 +13:00
gofunc((&QWebInspector{h: self}).callVirtualBase_MouseReleaseEvent, slotval1)
}
func (this *QWebInspector) callVirtualBase_MouseDoubleClickEvent(event *qt.QMouseEvent) {
2025-02-01 13:45:16 +13:00
C.QWebInspector_virtualbase_mouseDoubleClickEvent(unsafe.Pointer(this.h), (*C.QMouseEvent)(event.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) OnmouseDoubleClickEvent(slot func(super func(event *qt.QMouseEvent), event *qt.QMouseEvent)) {
ok := C.QWebInspector_override_virtual_mouseDoubleClickEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_mouseDoubleClickEvent
func miqt_exec_callback_QWebInspector_mouseDoubleClickEvent(self *C.QWebInspector, cb C.intptr_t, event *C.QMouseEvent) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QMouseEvent), event *qt.QMouseEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
2024-12-07 17:15:57 +13:00
slotval1 := qt.UnsafeNewQMouseEvent(unsafe.Pointer(event))
2024-11-26 22:31:32 +13:00
gofunc((&QWebInspector{h: self}).callVirtualBase_MouseDoubleClickEvent, slotval1)
}
func (this *QWebInspector) callVirtualBase_MouseMoveEvent(event *qt.QMouseEvent) {
2025-02-01 13:45:16 +13:00
C.QWebInspector_virtualbase_mouseMoveEvent(unsafe.Pointer(this.h), (*C.QMouseEvent)(event.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) OnmouseMoveEvent(slot func(super func(event *qt.QMouseEvent), event *qt.QMouseEvent)) {
ok := C.QWebInspector_override_virtual_mouseMoveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_mouseMoveEvent
func miqt_exec_callback_QWebInspector_mouseMoveEvent(self *C.QWebInspector, cb C.intptr_t, event *C.QMouseEvent) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QMouseEvent), event *qt.QMouseEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
2024-12-07 17:15:57 +13:00
slotval1 := qt.UnsafeNewQMouseEvent(unsafe.Pointer(event))
2024-11-26 22:31:32 +13:00
gofunc((&QWebInspector{h: self}).callVirtualBase_MouseMoveEvent, slotval1)
}
func (this *QWebInspector) callVirtualBase_WheelEvent(event *qt.QWheelEvent) {
2025-02-01 13:45:16 +13:00
C.QWebInspector_virtualbase_wheelEvent(unsafe.Pointer(this.h), (*C.QWheelEvent)(event.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) OnwheelEvent(slot func(super func(event *qt.QWheelEvent), event *qt.QWheelEvent)) {
ok := C.QWebInspector_override_virtual_wheelEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_wheelEvent
func miqt_exec_callback_QWebInspector_wheelEvent(self *C.QWebInspector, cb C.intptr_t, event *C.QWheelEvent) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QWheelEvent), event *qt.QWheelEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
2024-12-07 17:15:57 +13:00
slotval1 := qt.UnsafeNewQWheelEvent(unsafe.Pointer(event))
2024-11-26 22:31:32 +13:00
gofunc((&QWebInspector{h: self}).callVirtualBase_WheelEvent, slotval1)
}
func (this *QWebInspector) callVirtualBase_KeyPressEvent(event *qt.QKeyEvent) {
2025-02-01 13:45:16 +13:00
C.QWebInspector_virtualbase_keyPressEvent(unsafe.Pointer(this.h), (*C.QKeyEvent)(event.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) OnkeyPressEvent(slot func(super func(event *qt.QKeyEvent), event *qt.QKeyEvent)) {
ok := C.QWebInspector_override_virtual_keyPressEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_keyPressEvent
func miqt_exec_callback_QWebInspector_keyPressEvent(self *C.QWebInspector, cb C.intptr_t, event *C.QKeyEvent) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QKeyEvent), event *qt.QKeyEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
2024-12-07 17:15:57 +13:00
slotval1 := qt.UnsafeNewQKeyEvent(unsafe.Pointer(event))
2024-11-26 22:31:32 +13:00
gofunc((&QWebInspector{h: self}).callVirtualBase_KeyPressEvent, slotval1)
}
func (this *QWebInspector) callVirtualBase_KeyReleaseEvent(event *qt.QKeyEvent) {
2025-02-01 13:45:16 +13:00
C.QWebInspector_virtualbase_keyReleaseEvent(unsafe.Pointer(this.h), (*C.QKeyEvent)(event.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) OnkeyReleaseEvent(slot func(super func(event *qt.QKeyEvent), event *qt.QKeyEvent)) {
ok := C.QWebInspector_override_virtual_keyReleaseEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_keyReleaseEvent
func miqt_exec_callback_QWebInspector_keyReleaseEvent(self *C.QWebInspector, cb C.intptr_t, event *C.QKeyEvent) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QKeyEvent), event *qt.QKeyEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
2024-12-07 17:15:57 +13:00
slotval1 := qt.UnsafeNewQKeyEvent(unsafe.Pointer(event))
2024-11-26 22:31:32 +13:00
gofunc((&QWebInspector{h: self}).callVirtualBase_KeyReleaseEvent, slotval1)
}
func (this *QWebInspector) callVirtualBase_FocusInEvent(event *qt.QFocusEvent) {
2025-02-01 13:45:16 +13:00
C.QWebInspector_virtualbase_focusInEvent(unsafe.Pointer(this.h), (*C.QFocusEvent)(event.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) OnfocusInEvent(slot func(super func(event *qt.QFocusEvent), event *qt.QFocusEvent)) {
ok := C.QWebInspector_override_virtual_focusInEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_focusInEvent
func miqt_exec_callback_QWebInspector_focusInEvent(self *C.QWebInspector, cb C.intptr_t, event *C.QFocusEvent) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QFocusEvent), event *qt.QFocusEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
2024-12-07 17:15:57 +13:00
slotval1 := qt.UnsafeNewQFocusEvent(unsafe.Pointer(event))
2024-11-26 22:31:32 +13:00
gofunc((&QWebInspector{h: self}).callVirtualBase_FocusInEvent, slotval1)
}
func (this *QWebInspector) callVirtualBase_FocusOutEvent(event *qt.QFocusEvent) {
2025-02-01 13:45:16 +13:00
C.QWebInspector_virtualbase_focusOutEvent(unsafe.Pointer(this.h), (*C.QFocusEvent)(event.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) OnfocusOutEvent(slot func(super func(event *qt.QFocusEvent), event *qt.QFocusEvent)) {
ok := C.QWebInspector_override_virtual_focusOutEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_focusOutEvent
func miqt_exec_callback_QWebInspector_focusOutEvent(self *C.QWebInspector, cb C.intptr_t, event *C.QFocusEvent) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QFocusEvent), event *qt.QFocusEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
2024-12-07 17:15:57 +13:00
slotval1 := qt.UnsafeNewQFocusEvent(unsafe.Pointer(event))
2024-11-26 22:31:32 +13:00
gofunc((&QWebInspector{h: self}).callVirtualBase_FocusOutEvent, slotval1)
}
func (this *QWebInspector) callVirtualBase_EnterEvent(event *qt.QEvent) {
2025-02-01 13:45:16 +13:00
C.QWebInspector_virtualbase_enterEvent(unsafe.Pointer(this.h), (*C.QEvent)(event.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) OnenterEvent(slot func(super func(event *qt.QEvent), event *qt.QEvent)) {
ok := C.QWebInspector_override_virtual_enterEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_enterEvent
func miqt_exec_callback_QWebInspector_enterEvent(self *C.QWebInspector, cb C.intptr_t, event *C.QEvent) {
2024-11-26 22:31:32 +13:00
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((&QWebInspector{h: self}).callVirtualBase_EnterEvent, slotval1)
}
func (this *QWebInspector) callVirtualBase_LeaveEvent(event *qt.QEvent) {
2025-02-01 13:45:16 +13:00
C.QWebInspector_virtualbase_leaveEvent(unsafe.Pointer(this.h), (*C.QEvent)(event.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) OnleaveEvent(slot func(super func(event *qt.QEvent), event *qt.QEvent)) {
ok := C.QWebInspector_override_virtual_leaveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_leaveEvent
func miqt_exec_callback_QWebInspector_leaveEvent(self *C.QWebInspector, cb C.intptr_t, event *C.QEvent) {
2024-11-26 22:31:32 +13:00
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((&QWebInspector{h: self}).callVirtualBase_LeaveEvent, slotval1)
}
func (this *QWebInspector) callVirtualBase_PaintEvent(event *qt.QPaintEvent) {
2025-02-01 13:45:16 +13:00
C.QWebInspector_virtualbase_paintEvent(unsafe.Pointer(this.h), (*C.QPaintEvent)(event.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) OnpaintEvent(slot func(super func(event *qt.QPaintEvent), event *qt.QPaintEvent)) {
ok := C.QWebInspector_override_virtual_paintEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_paintEvent
func miqt_exec_callback_QWebInspector_paintEvent(self *C.QWebInspector, cb C.intptr_t, event *C.QPaintEvent) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QPaintEvent), event *qt.QPaintEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
2024-12-07 17:15:57 +13:00
slotval1 := qt.UnsafeNewQPaintEvent(unsafe.Pointer(event))
2024-11-26 22:31:32 +13:00
gofunc((&QWebInspector{h: self}).callVirtualBase_PaintEvent, slotval1)
}
func (this *QWebInspector) callVirtualBase_MoveEvent(event *qt.QMoveEvent) {
2025-02-01 13:45:16 +13:00
C.QWebInspector_virtualbase_moveEvent(unsafe.Pointer(this.h), (*C.QMoveEvent)(event.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) OnmoveEvent(slot func(super func(event *qt.QMoveEvent), event *qt.QMoveEvent)) {
ok := C.QWebInspector_override_virtual_moveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_moveEvent
func miqt_exec_callback_QWebInspector_moveEvent(self *C.QWebInspector, cb C.intptr_t, event *C.QMoveEvent) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QMoveEvent), event *qt.QMoveEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
2024-12-07 17:15:57 +13:00
slotval1 := qt.UnsafeNewQMoveEvent(unsafe.Pointer(event))
2024-11-26 22:31:32 +13:00
gofunc((&QWebInspector{h: self}).callVirtualBase_MoveEvent, slotval1)
}
func (this *QWebInspector) callVirtualBase_ContextMenuEvent(event *qt.QContextMenuEvent) {
2025-02-01 13:45:16 +13:00
C.QWebInspector_virtualbase_contextMenuEvent(unsafe.Pointer(this.h), (*C.QContextMenuEvent)(event.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) OncontextMenuEvent(slot func(super func(event *qt.QContextMenuEvent), event *qt.QContextMenuEvent)) {
ok := C.QWebInspector_override_virtual_contextMenuEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_contextMenuEvent
func miqt_exec_callback_QWebInspector_contextMenuEvent(self *C.QWebInspector, cb C.intptr_t, event *C.QContextMenuEvent) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QContextMenuEvent), event *qt.QContextMenuEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
2024-12-07 17:15:57 +13:00
slotval1 := qt.UnsafeNewQContextMenuEvent(unsafe.Pointer(event))
2024-11-26 22:31:32 +13:00
gofunc((&QWebInspector{h: self}).callVirtualBase_ContextMenuEvent, slotval1)
}
func (this *QWebInspector) callVirtualBase_TabletEvent(event *qt.QTabletEvent) {
2025-02-01 13:45:16 +13:00
C.QWebInspector_virtualbase_tabletEvent(unsafe.Pointer(this.h), (*C.QTabletEvent)(event.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) OntabletEvent(slot func(super func(event *qt.QTabletEvent), event *qt.QTabletEvent)) {
ok := C.QWebInspector_override_virtual_tabletEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_tabletEvent
func miqt_exec_callback_QWebInspector_tabletEvent(self *C.QWebInspector, cb C.intptr_t, event *C.QTabletEvent) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QTabletEvent), event *qt.QTabletEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
2024-12-07 17:15:57 +13:00
slotval1 := qt.UnsafeNewQTabletEvent(unsafe.Pointer(event))
2024-11-26 22:31:32 +13:00
gofunc((&QWebInspector{h: self}).callVirtualBase_TabletEvent, slotval1)
}
func (this *QWebInspector) callVirtualBase_ActionEvent(event *qt.QActionEvent) {
2025-02-01 13:45:16 +13:00
C.QWebInspector_virtualbase_actionEvent(unsafe.Pointer(this.h), (*C.QActionEvent)(event.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) OnactionEvent(slot func(super func(event *qt.QActionEvent), event *qt.QActionEvent)) {
ok := C.QWebInspector_override_virtual_actionEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_actionEvent
func miqt_exec_callback_QWebInspector_actionEvent(self *C.QWebInspector, cb C.intptr_t, event *C.QActionEvent) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QActionEvent), event *qt.QActionEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
2024-12-07 17:15:57 +13:00
slotval1 := qt.UnsafeNewQActionEvent(unsafe.Pointer(event))
2024-11-26 22:31:32 +13:00
gofunc((&QWebInspector{h: self}).callVirtualBase_ActionEvent, slotval1)
}
func (this *QWebInspector) callVirtualBase_DragEnterEvent(event *qt.QDragEnterEvent) {
2025-02-01 13:45:16 +13:00
C.QWebInspector_virtualbase_dragEnterEvent(unsafe.Pointer(this.h), (*C.QDragEnterEvent)(event.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) OndragEnterEvent(slot func(super func(event *qt.QDragEnterEvent), event *qt.QDragEnterEvent)) {
ok := C.QWebInspector_override_virtual_dragEnterEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_dragEnterEvent
func miqt_exec_callback_QWebInspector_dragEnterEvent(self *C.QWebInspector, cb C.intptr_t, event *C.QDragEnterEvent) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QDragEnterEvent), event *qt.QDragEnterEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
2024-12-07 17:15:57 +13:00
slotval1 := qt.UnsafeNewQDragEnterEvent(unsafe.Pointer(event))
2024-11-26 22:31:32 +13:00
gofunc((&QWebInspector{h: self}).callVirtualBase_DragEnterEvent, slotval1)
}
func (this *QWebInspector) callVirtualBase_DragMoveEvent(event *qt.QDragMoveEvent) {
2025-02-01 13:45:16 +13:00
C.QWebInspector_virtualbase_dragMoveEvent(unsafe.Pointer(this.h), (*C.QDragMoveEvent)(event.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) OndragMoveEvent(slot func(super func(event *qt.QDragMoveEvent), event *qt.QDragMoveEvent)) {
ok := C.QWebInspector_override_virtual_dragMoveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_dragMoveEvent
func miqt_exec_callback_QWebInspector_dragMoveEvent(self *C.QWebInspector, cb C.intptr_t, event *C.QDragMoveEvent) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QDragMoveEvent), event *qt.QDragMoveEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
2024-12-07 17:15:57 +13:00
slotval1 := qt.UnsafeNewQDragMoveEvent(unsafe.Pointer(event))
2024-11-26 22:31:32 +13:00
gofunc((&QWebInspector{h: self}).callVirtualBase_DragMoveEvent, slotval1)
}
func (this *QWebInspector) callVirtualBase_DragLeaveEvent(event *qt.QDragLeaveEvent) {
2025-02-01 13:45:16 +13:00
C.QWebInspector_virtualbase_dragLeaveEvent(unsafe.Pointer(this.h), (*C.QDragLeaveEvent)(event.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) OndragLeaveEvent(slot func(super func(event *qt.QDragLeaveEvent), event *qt.QDragLeaveEvent)) {
ok := C.QWebInspector_override_virtual_dragLeaveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_dragLeaveEvent
func miqt_exec_callback_QWebInspector_dragLeaveEvent(self *C.QWebInspector, cb C.intptr_t, event *C.QDragLeaveEvent) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QDragLeaveEvent), event *qt.QDragLeaveEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
2024-12-07 17:15:57 +13:00
slotval1 := qt.UnsafeNewQDragLeaveEvent(unsafe.Pointer(event))
2024-11-26 22:31:32 +13:00
gofunc((&QWebInspector{h: self}).callVirtualBase_DragLeaveEvent, slotval1)
}
func (this *QWebInspector) callVirtualBase_DropEvent(event *qt.QDropEvent) {
2025-02-01 13:45:16 +13:00
C.QWebInspector_virtualbase_dropEvent(unsafe.Pointer(this.h), (*C.QDropEvent)(event.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) OndropEvent(slot func(super func(event *qt.QDropEvent), event *qt.QDropEvent)) {
ok := C.QWebInspector_override_virtual_dropEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_dropEvent
func miqt_exec_callback_QWebInspector_dropEvent(self *C.QWebInspector, cb C.intptr_t, event *C.QDropEvent) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QDropEvent), event *qt.QDropEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
2024-12-07 17:15:57 +13:00
slotval1 := qt.UnsafeNewQDropEvent(unsafe.Pointer(event))
2024-11-26 22:31:32 +13:00
gofunc((&QWebInspector{h: self}).callVirtualBase_DropEvent, slotval1)
}
func (this *QWebInspector) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
eventType_alias := C.struct_miqt_string{}
if len(eventType) > 0 {
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
} else {
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
}
2024-11-26 22:31:32 +13:00
eventType_alias.len = C.size_t(len(eventType))
2025-02-01 13:45:16 +13:00
return (bool)(C.QWebInspector_virtualbase_nativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) OnnativeEvent(slot func(super func(eventType []byte, message unsafe.Pointer, result *int64) bool, eventType []byte, message unsafe.Pointer, result *int64) bool) {
ok := C.QWebInspector_override_virtual_nativeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_nativeEvent
func miqt_exec_callback_QWebInspector_nativeEvent(self *C.QWebInspector, cb C.intptr_t, eventType C.struct_miqt_string, message unsafe.Pointer, result *C.long) C.bool {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(eventType []byte, message unsafe.Pointer, result *int64) bool, eventType []byte, message unsafe.Pointer, result *int64) bool)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
var eventType_bytearray C.struct_miqt_string = eventType
eventType_ret := C.GoBytes(unsafe.Pointer(eventType_bytearray.data), C.int(int64(eventType_bytearray.len)))
C.free(unsafe.Pointer(eventType_bytearray.data))
slotval1 := eventType_ret
slotval2 := (unsafe.Pointer)(message)
slotval3 := (*int64)(unsafe.Pointer(result))
virtualReturn := gofunc((&QWebInspector{h: self}).callVirtualBase_NativeEvent, slotval1, slotval2, slotval3)
return (C.bool)(virtualReturn)
}
func (this *QWebInspector) callVirtualBase_ChangeEvent(param1 *qt.QEvent) {
2025-02-01 13:45:16 +13:00
C.QWebInspector_virtualbase_changeEvent(unsafe.Pointer(this.h), (*C.QEvent)(param1.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) OnchangeEvent(slot func(super func(param1 *qt.QEvent), param1 *qt.QEvent)) {
ok := C.QWebInspector_override_virtual_changeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_changeEvent
func miqt_exec_callback_QWebInspector_changeEvent(self *C.QWebInspector, cb C.intptr_t, param1 *C.QEvent) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *qt.QEvent), param1 *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(param1))
gofunc((&QWebInspector{h: self}).callVirtualBase_ChangeEvent, slotval1)
}
func (this *QWebInspector) callVirtualBase_Metric(param1 qt.QPaintDevice__PaintDeviceMetric) int {
2025-02-01 13:45:16 +13:00
return (int)(C.QWebInspector_virtualbase_metric(unsafe.Pointer(this.h), (C.int)(param1)))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) Onmetric(slot func(super func(param1 qt.QPaintDevice__PaintDeviceMetric) int, param1 qt.QPaintDevice__PaintDeviceMetric) int) {
ok := C.QWebInspector_override_virtual_metric(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_metric
func miqt_exec_callback_QWebInspector_metric(self *C.QWebInspector, cb C.intptr_t, param1 C.int) C.int {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 qt.QPaintDevice__PaintDeviceMetric) int, param1 qt.QPaintDevice__PaintDeviceMetric) int)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (qt.QPaintDevice__PaintDeviceMetric)(param1)
virtualReturn := gofunc((&QWebInspector{h: self}).callVirtualBase_Metric, slotval1)
return (C.int)(virtualReturn)
}
func (this *QWebInspector) callVirtualBase_InitPainter(painter *qt.QPainter) {
2025-02-01 13:45:16 +13:00
C.QWebInspector_virtualbase_initPainter(unsafe.Pointer(this.h), (*C.QPainter)(painter.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) OninitPainter(slot func(super func(painter *qt.QPainter), painter *qt.QPainter)) {
ok := C.QWebInspector_override_virtual_initPainter(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_initPainter
func miqt_exec_callback_QWebInspector_initPainter(self *C.QWebInspector, cb C.intptr_t, painter *C.QPainter) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(painter *qt.QPainter), painter *qt.QPainter))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := qt.UnsafeNewQPainter(unsafe.Pointer(painter))
gofunc((&QWebInspector{h: self}).callVirtualBase_InitPainter, slotval1)
}
func (this *QWebInspector) callVirtualBase_Redirected(offset *qt.QPoint) *qt.QPaintDevice {
2025-02-01 13:45:16 +13:00
return qt.UnsafeNewQPaintDevice(unsafe.Pointer(C.QWebInspector_virtualbase_redirected(unsafe.Pointer(this.h), (*C.QPoint)(offset.UnsafePointer()))))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) Onredirected(slot func(super func(offset *qt.QPoint) *qt.QPaintDevice, offset *qt.QPoint) *qt.QPaintDevice) {
ok := C.QWebInspector_override_virtual_redirected(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_redirected
func miqt_exec_callback_QWebInspector_redirected(self *C.QWebInspector, cb C.intptr_t, offset *C.QPoint) *C.QPaintDevice {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(offset *qt.QPoint) *qt.QPaintDevice, offset *qt.QPoint) *qt.QPaintDevice)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := qt.UnsafeNewQPoint(unsafe.Pointer(offset))
virtualReturn := gofunc((&QWebInspector{h: self}).callVirtualBase_Redirected, slotval1)
return (*C.QPaintDevice)(virtualReturn.UnsafePointer())
}
func (this *QWebInspector) callVirtualBase_SharedPainter() *qt.QPainter {
2025-02-01 13:45:16 +13:00
return qt.UnsafeNewQPainter(unsafe.Pointer(C.QWebInspector_virtualbase_sharedPainter(unsafe.Pointer(this.h))))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) OnsharedPainter(slot func(super func() *qt.QPainter) *qt.QPainter) {
ok := C.QWebInspector_override_virtual_sharedPainter(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_sharedPainter
func miqt_exec_callback_QWebInspector_sharedPainter(self *C.QWebInspector, cb C.intptr_t) *C.QPainter {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *qt.QPainter) *qt.QPainter)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
virtualReturn := gofunc((&QWebInspector{h: self}).callVirtualBase_SharedPainter)
return (*C.QPainter)(virtualReturn.UnsafePointer())
}
func (this *QWebInspector) callVirtualBase_InputMethodEvent(param1 *qt.QInputMethodEvent) {
2025-02-01 13:45:16 +13:00
C.QWebInspector_virtualbase_inputMethodEvent(unsafe.Pointer(this.h), (*C.QInputMethodEvent)(param1.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) OninputMethodEvent(slot func(super func(param1 *qt.QInputMethodEvent), param1 *qt.QInputMethodEvent)) {
ok := C.QWebInspector_override_virtual_inputMethodEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_inputMethodEvent
func miqt_exec_callback_QWebInspector_inputMethodEvent(self *C.QWebInspector, cb C.intptr_t, param1 *C.QInputMethodEvent) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *qt.QInputMethodEvent), param1 *qt.QInputMethodEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
2024-12-07 17:15:57 +13:00
slotval1 := qt.UnsafeNewQInputMethodEvent(unsafe.Pointer(param1))
2024-11-26 22:31:32 +13:00
gofunc((&QWebInspector{h: self}).callVirtualBase_InputMethodEvent, slotval1)
}
func (this *QWebInspector) callVirtualBase_InputMethodQuery(param1 qt.InputMethodQuery) *qt.QVariant {
2025-02-01 13:45:16 +13:00
_goptr := qt.UnsafeNewQVariant(unsafe.Pointer(C.QWebInspector_virtualbase_inputMethodQuery(unsafe.Pointer(this.h), (C.int)(param1))))
2024-11-26 22:31:32 +13:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) OninputMethodQuery(slot func(super func(param1 qt.InputMethodQuery) *qt.QVariant, param1 qt.InputMethodQuery) *qt.QVariant) {
ok := C.QWebInspector_override_virtual_inputMethodQuery(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_inputMethodQuery
func miqt_exec_callback_QWebInspector_inputMethodQuery(self *C.QWebInspector, cb C.intptr_t, param1 C.int) *C.QVariant {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 qt.InputMethodQuery) *qt.QVariant, param1 qt.InputMethodQuery) *qt.QVariant)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (qt.InputMethodQuery)(param1)
virtualReturn := gofunc((&QWebInspector{h: self}).callVirtualBase_InputMethodQuery, slotval1)
return (*C.QVariant)(virtualReturn.UnsafePointer())
}
func (this *QWebInspector) callVirtualBase_FocusNextPrevChild(next bool) bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QWebInspector_virtualbase_focusNextPrevChild(unsafe.Pointer(this.h), (C.bool)(next)))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) OnfocusNextPrevChild(slot func(super func(next bool) bool, next bool) bool) {
ok := C.QWebInspector_override_virtual_focusNextPrevChild(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_focusNextPrevChild
func miqt_exec_callback_QWebInspector_focusNextPrevChild(self *C.QWebInspector, cb C.intptr_t, next C.bool) C.bool {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(next bool) bool, next bool) bool)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (bool)(next)
virtualReturn := gofunc((&QWebInspector{h: self}).callVirtualBase_FocusNextPrevChild, slotval1)
return (C.bool)(virtualReturn)
}
func (this *QWebInspector) callVirtualBase_EventFilter(watched *qt.QObject, event *qt.QEvent) bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QWebInspector_virtualbase_eventFilter(unsafe.Pointer(this.h), (*C.QObject)(watched.UnsafePointer()), (*C.QEvent)(event.UnsafePointer())))
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) OneventFilter(slot func(super func(watched *qt.QObject, event *qt.QEvent) bool, watched *qt.QObject, event *qt.QEvent) bool) {
ok := C.QWebInspector_override_virtual_eventFilter(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_eventFilter
func miqt_exec_callback_QWebInspector_eventFilter(self *C.QWebInspector, 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((&QWebInspector{h: self}).callVirtualBase_EventFilter, slotval1, slotval2)
return (C.bool)(virtualReturn)
}
func (this *QWebInspector) callVirtualBase_TimerEvent(event *qt.QTimerEvent) {
2025-02-01 13:45:16 +13:00
C.QWebInspector_virtualbase_timerEvent(unsafe.Pointer(this.h), (*C.QTimerEvent)(event.UnsafePointer()))
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) OntimerEvent(slot func(super func(event *qt.QTimerEvent), event *qt.QTimerEvent)) {
ok := C.QWebInspector_override_virtual_timerEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_timerEvent
func miqt_exec_callback_QWebInspector_timerEvent(self *C.QWebInspector, 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))
gofunc((&QWebInspector{h: self}).callVirtualBase_TimerEvent, slotval1)
}
func (this *QWebInspector) callVirtualBase_ChildEvent(event *qt.QChildEvent) {
2025-02-01 13:45:16 +13:00
C.QWebInspector_virtualbase_childEvent(unsafe.Pointer(this.h), (*C.QChildEvent)(event.UnsafePointer()))
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) OnchildEvent(slot func(super func(event *qt.QChildEvent), event *qt.QChildEvent)) {
ok := C.QWebInspector_override_virtual_childEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_childEvent
func miqt_exec_callback_QWebInspector_childEvent(self *C.QWebInspector, 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))
gofunc((&QWebInspector{h: self}).callVirtualBase_ChildEvent, slotval1)
}
func (this *QWebInspector) callVirtualBase_CustomEvent(event *qt.QEvent) {
2025-02-01 13:45:16 +13:00
C.QWebInspector_virtualbase_customEvent(unsafe.Pointer(this.h), (*C.QEvent)(event.UnsafePointer()))
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) OncustomEvent(slot func(super func(event *qt.QEvent), event *qt.QEvent)) {
ok := C.QWebInspector_override_virtual_customEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_customEvent
func miqt_exec_callback_QWebInspector_customEvent(self *C.QWebInspector, 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((&QWebInspector{h: self}).callVirtualBase_CustomEvent, slotval1)
}
func (this *QWebInspector) callVirtualBase_ConnectNotify(signal *qt.QMetaMethod) {
2025-02-01 13:45:16 +13:00
C.QWebInspector_virtualbase_connectNotify(unsafe.Pointer(this.h), (*C.QMetaMethod)(signal.UnsafePointer()))
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) OnconnectNotify(slot func(super func(signal *qt.QMetaMethod), signal *qt.QMetaMethod)) {
ok := C.QWebInspector_override_virtual_connectNotify(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_connectNotify
func miqt_exec_callback_QWebInspector_connectNotify(self *C.QWebInspector, 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((&QWebInspector{h: self}).callVirtualBase_ConnectNotify, slotval1)
}
func (this *QWebInspector) callVirtualBase_DisconnectNotify(signal *qt.QMetaMethod) {
2025-02-01 13:45:16 +13:00
C.QWebInspector_virtualbase_disconnectNotify(unsafe.Pointer(this.h), (*C.QMetaMethod)(signal.UnsafePointer()))
}
2025-02-01 13:45:16 +13:00
func (this *QWebInspector) OndisconnectNotify(slot func(super func(signal *qt.QMetaMethod), signal *qt.QMetaMethod)) {
ok := C.QWebInspector_override_virtual_disconnectNotify(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebInspector_disconnectNotify
func miqt_exec_callback_QWebInspector_disconnectNotify(self *C.QWebInspector, 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((&QWebInspector{h: self}).callVirtualBase_DisconnectNotify, slotval1)
}
2024-11-26 22:31:32 +13:00
// Delete this object from C++ memory.
func (this *QWebInspector) Delete() {
2025-02-01 13:45:16 +13:00
C.QWebInspector_delete(this.h)
2024-11-26 22:31:32 +13:00
}
// 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 *QWebInspector) GoGC() {
runtime.SetFinalizer(this, func(this *QWebInspector) {
this.Delete()
runtime.KeepAlive(this.h)
})
}