miqt/qt/webengine/gen_qwebengineview.go

1794 lines
67 KiB
Go
Raw Normal View History

2024-11-27 18:16:48 +13:00
package webengine
/*
#include "gen_qwebengineview.h"
#include <stdlib.h>
*/
import "C"
import (
"github.com/mappu/miqt/qt"
"runtime"
"runtime/cgo"
"unsafe"
)
type QWebEngineView struct {
h *C.QWebEngineView
2024-11-27 18:16:48 +13:00
*qt.QWidget
}
func (this *QWebEngineView) cPointer() *C.QWebEngineView {
if this == nil {
return nil
}
return this.h
}
func (this *QWebEngineView) UnsafePointer() unsafe.Pointer {
if this == nil {
return nil
}
return unsafe.Pointer(this.h)
}
// newQWebEngineView constructs the type using only CGO pointers.
2024-12-07 17:15:57 +13:00
func newQWebEngineView(h *C.QWebEngineView) *QWebEngineView {
2024-11-27 18:16:48 +13:00
if h == nil {
return nil
}
2024-12-07 17:15:57 +13:00
var outptr_QWidget *C.QWidget = nil
C.QWebEngineView_virtbase(h, &outptr_QWidget)
2024-11-27 18:16:48 +13:00
return &QWebEngineView{h: h,
2024-12-07 17:15:57 +13:00
QWidget: qt.UnsafeNewQWidget(unsafe.Pointer(outptr_QWidget))}
2024-11-27 18:16:48 +13:00
}
// UnsafeNewQWebEngineView constructs the type using only unsafe pointers.
2024-12-07 17:15:57 +13:00
func UnsafeNewQWebEngineView(h unsafe.Pointer) *QWebEngineView {
return newQWebEngineView((*C.QWebEngineView)(h))
2024-11-27 18:16:48 +13:00
}
// NewQWebEngineView constructs a new QWebEngineView object.
func NewQWebEngineView(parent *qt.QWidget) *QWebEngineView {
return newQWebEngineView(C.QWebEngineView_new((*C.QWidget)(parent.UnsafePointer())))
2024-11-27 18:16:48 +13:00
}
// NewQWebEngineView2 constructs a new QWebEngineView object.
func NewQWebEngineView2() *QWebEngineView {
return newQWebEngineView(C.QWebEngineView_new2())
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineView) MetaObject() *qt.QMetaObject {
2025-02-01 13:45:16 +13:00
return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QWebEngineView_metaObject(this.h)))
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineView) 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.QWebEngineView_metacast(this.h, param1_Cstring))
2024-11-27 18:16:48 +13:00
}
func QWebEngineView_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.QWebEngineView_tr(s_Cstring)
2024-11-27 18:16:48 +13:00
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func QWebEngineView_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.QWebEngineView_trUtf8(s_Cstring)
2024-11-27 18:16:48 +13:00
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func (this *QWebEngineView) Page() *QWebEnginePage {
2025-02-01 13:45:16 +13:00
return newQWebEnginePage(C.QWebEngineView_page(this.h))
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineView) SetPage(page *QWebEnginePage) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_setPage(this.h, page.cPointer())
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineView) Load(url *qt.QUrl) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_load(this.h, (*C.QUrl)(url.UnsafePointer()))
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineView) LoadWithRequest(request *QWebEngineHttpRequest) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_loadWithRequest(this.h, request.cPointer())
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineView) SetHtml(html string) {
html_ms := C.struct_miqt_string{}
html_ms.data = C.CString(html)
html_ms.len = C.size_t(len(html))
defer C.free(unsafe.Pointer(html_ms.data))
2025-02-01 13:45:16 +13:00
C.QWebEngineView_setHtml(this.h, html_ms)
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineView) SetContent(data []byte) {
data_alias := C.struct_miqt_string{}
if len(data) > 0 {
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
} else {
data_alias.data = (*C.char)(unsafe.Pointer(nil))
}
2024-11-27 18:16:48 +13:00
data_alias.len = C.size_t(len(data))
2025-02-01 13:45:16 +13:00
C.QWebEngineView_setContent(this.h, data_alias)
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineView) History() *QWebEngineHistory {
2025-02-01 13:45:16 +13:00
return newQWebEngineHistory(C.QWebEngineView_history(this.h))
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineView) Title() string {
2025-02-01 13:45:16 +13:00
var _ms C.struct_miqt_string = C.QWebEngineView_title(this.h)
2024-11-27 18:16:48 +13:00
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func (this *QWebEngineView) SetUrl(url *qt.QUrl) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_setUrl(this.h, (*C.QUrl)(url.UnsafePointer()))
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineView) Url() *qt.QUrl {
2025-02-01 13:45:16 +13:00
_goptr := qt.UnsafeNewQUrl(unsafe.Pointer(C.QWebEngineView_url(this.h)))
2024-11-27 18:16:48 +13:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QWebEngineView) IconUrl() *qt.QUrl {
2025-02-01 13:45:16 +13:00
_goptr := qt.UnsafeNewQUrl(unsafe.Pointer(C.QWebEngineView_iconUrl(this.h)))
2024-11-27 18:16:48 +13:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QWebEngineView) Icon() *qt.QIcon {
2025-02-01 13:45:16 +13:00
_goptr := qt.UnsafeNewQIcon(unsafe.Pointer(C.QWebEngineView_icon(this.h)))
2024-11-27 18:16:48 +13:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QWebEngineView) HasSelection() bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QWebEngineView_hasSelection(this.h))
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineView) SelectedText() string {
2025-02-01 13:45:16 +13:00
var _ms C.struct_miqt_string = C.QWebEngineView_selectedText(this.h)
2024-11-27 18:16:48 +13:00
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func (this *QWebEngineView) PageAction(action QWebEnginePage__WebAction) *qt.QAction {
2025-02-01 13:45:16 +13:00
return qt.UnsafeNewQAction(unsafe.Pointer(C.QWebEngineView_pageAction(this.h, (C.int)(action))))
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineView) TriggerPageAction(action QWebEnginePage__WebAction) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_triggerPageAction(this.h, (C.int)(action))
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineView) ZoomFactor() float64 {
2025-02-01 13:45:16 +13:00
return (float64)(C.QWebEngineView_zoomFactor(this.h))
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineView) SetZoomFactor(factor float64) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_setZoomFactor(this.h, (C.double)(factor))
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineView) FindText(subString string) {
subString_ms := C.struct_miqt_string{}
subString_ms.data = C.CString(subString)
subString_ms.len = C.size_t(len(subString))
defer C.free(unsafe.Pointer(subString_ms.data))
2025-02-01 13:45:16 +13:00
C.QWebEngineView_findText(this.h, subString_ms)
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineView) SizeHint() *qt.QSize {
2025-02-01 13:45:16 +13:00
_goptr := qt.UnsafeNewQSize(unsafe.Pointer(C.QWebEngineView_sizeHint(this.h)))
2024-11-27 18:16:48 +13:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QWebEngineView) Settings() *QWebEngineSettings {
2025-02-01 13:45:16 +13:00
return newQWebEngineSettings(C.QWebEngineView_settings(this.h))
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineView) Stop() {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_stop(this.h)
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineView) Back() {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_back(this.h)
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineView) Forward() {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_forward(this.h)
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineView) Reload() {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_reload(this.h)
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineView) LoadStarted() {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_loadStarted(this.h)
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineView) OnLoadStarted(slot func()) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_connect_loadStarted(this.h, C.intptr_t(cgo.NewHandle(slot)))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_loadStarted
func miqt_exec_callback_QWebEngineView_loadStarted(cb C.intptr_t) {
2024-11-27 18:16:48 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func())
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
gofunc()
}
func (this *QWebEngineView) LoadProgress(progress int) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_loadProgress(this.h, (C.int)(progress))
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineView) OnLoadProgress(slot func(progress int)) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_connect_loadProgress(this.h, C.intptr_t(cgo.NewHandle(slot)))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_loadProgress
func miqt_exec_callback_QWebEngineView_loadProgress(cb C.intptr_t, progress C.int) {
2024-11-27 18:16:48 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(progress int))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (int)(progress)
gofunc(slotval1)
}
func (this *QWebEngineView) LoadFinished(param1 bool) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_loadFinished(this.h, (C.bool)(param1))
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineView) OnLoadFinished(slot func(param1 bool)) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_connect_loadFinished(this.h, C.intptr_t(cgo.NewHandle(slot)))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_loadFinished
func miqt_exec_callback_QWebEngineView_loadFinished(cb C.intptr_t, param1 C.bool) {
2024-11-27 18:16:48 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(param1 bool))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (bool)(param1)
gofunc(slotval1)
}
func (this *QWebEngineView) TitleChanged(title string) {
title_ms := C.struct_miqt_string{}
title_ms.data = C.CString(title)
title_ms.len = C.size_t(len(title))
defer C.free(unsafe.Pointer(title_ms.data))
2025-02-01 13:45:16 +13:00
C.QWebEngineView_titleChanged(this.h, title_ms)
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineView) OnTitleChanged(slot func(title string)) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_connect_titleChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_titleChanged
func miqt_exec_callback_QWebEngineView_titleChanged(cb C.intptr_t, title C.struct_miqt_string) {
2024-11-27 18:16:48 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(title string))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
var title_ms C.struct_miqt_string = title
title_ret := C.GoStringN(title_ms.data, C.int(int64(title_ms.len)))
C.free(unsafe.Pointer(title_ms.data))
slotval1 := title_ret
gofunc(slotval1)
}
func (this *QWebEngineView) SelectionChanged() {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_selectionChanged(this.h)
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineView) OnSelectionChanged(slot func()) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_connect_selectionChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_selectionChanged
func miqt_exec_callback_QWebEngineView_selectionChanged(cb C.intptr_t) {
2024-11-27 18:16:48 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func())
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
gofunc()
}
func (this *QWebEngineView) UrlChanged(param1 *qt.QUrl) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_urlChanged(this.h, (*C.QUrl)(param1.UnsafePointer()))
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineView) OnUrlChanged(slot func(param1 *qt.QUrl)) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_connect_urlChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_urlChanged
func miqt_exec_callback_QWebEngineView_urlChanged(cb C.intptr_t, param1 *C.QUrl) {
2024-11-27 18:16:48 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(param1 *qt.QUrl))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := qt.UnsafeNewQUrl(unsafe.Pointer(param1))
gofunc(slotval1)
}
func (this *QWebEngineView) IconUrlChanged(param1 *qt.QUrl) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_iconUrlChanged(this.h, (*C.QUrl)(param1.UnsafePointer()))
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineView) OnIconUrlChanged(slot func(param1 *qt.QUrl)) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_connect_iconUrlChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_iconUrlChanged
func miqt_exec_callback_QWebEngineView_iconUrlChanged(cb C.intptr_t, param1 *C.QUrl) {
2024-11-27 18:16:48 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(param1 *qt.QUrl))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := qt.UnsafeNewQUrl(unsafe.Pointer(param1))
gofunc(slotval1)
}
func (this *QWebEngineView) IconChanged(param1 *qt.QIcon) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_iconChanged(this.h, (*C.QIcon)(param1.UnsafePointer()))
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineView) OnIconChanged(slot func(param1 *qt.QIcon)) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_connect_iconChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_iconChanged
func miqt_exec_callback_QWebEngineView_iconChanged(cb C.intptr_t, param1 *C.QIcon) {
2024-11-27 18:16:48 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(param1 *qt.QIcon))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := qt.UnsafeNewQIcon(unsafe.Pointer(param1))
gofunc(slotval1)
}
func (this *QWebEngineView) RenderProcessTerminated(terminationStatus QWebEnginePage__RenderProcessTerminationStatus, exitCode int) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_renderProcessTerminated(this.h, (C.int)(terminationStatus), (C.int)(exitCode))
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineView) OnRenderProcessTerminated(slot func(terminationStatus QWebEnginePage__RenderProcessTerminationStatus, exitCode int)) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_connect_renderProcessTerminated(this.h, C.intptr_t(cgo.NewHandle(slot)))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_renderProcessTerminated
func miqt_exec_callback_QWebEngineView_renderProcessTerminated(cb C.intptr_t, terminationStatus C.int, exitCode C.int) {
2024-11-27 18:16:48 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(terminationStatus QWebEnginePage__RenderProcessTerminationStatus, exitCode int))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (QWebEnginePage__RenderProcessTerminationStatus)(terminationStatus)
slotval2 := (int)(exitCode)
gofunc(slotval1, slotval2)
}
func QWebEngineView_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.QWebEngineView_tr2(s_Cstring, c_Cstring)
2024-11-27 18:16:48 +13:00
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func QWebEngineView_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.QWebEngineView_tr3(s_Cstring, c_Cstring, (C.int)(n))
2024-11-27 18:16:48 +13:00
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func QWebEngineView_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.QWebEngineView_trUtf82(s_Cstring, c_Cstring)
2024-11-27 18:16:48 +13:00
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func QWebEngineView_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.QWebEngineView_trUtf83(s_Cstring, c_Cstring, (C.int)(n))
2024-11-27 18:16:48 +13:00
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func (this *QWebEngineView) SetHtml2(html string, baseUrl *qt.QUrl) {
html_ms := C.struct_miqt_string{}
html_ms.data = C.CString(html)
html_ms.len = C.size_t(len(html))
defer C.free(unsafe.Pointer(html_ms.data))
2025-02-01 13:45:16 +13:00
C.QWebEngineView_setHtml2(this.h, html_ms, (*C.QUrl)(baseUrl.UnsafePointer()))
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineView) SetContent2(data []byte, mimeType string) {
data_alias := C.struct_miqt_string{}
if len(data) > 0 {
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
} else {
data_alias.data = (*C.char)(unsafe.Pointer(nil))
}
2024-11-27 18:16:48 +13:00
data_alias.len = C.size_t(len(data))
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))
2025-02-01 13:45:16 +13:00
C.QWebEngineView_setContent2(this.h, data_alias, mimeType_ms)
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineView) SetContent3(data []byte, mimeType string, baseUrl *qt.QUrl) {
data_alias := C.struct_miqt_string{}
if len(data) > 0 {
data_alias.data = (*C.char)(unsafe.Pointer(&data[0]))
} else {
data_alias.data = (*C.char)(unsafe.Pointer(nil))
}
2024-11-27 18:16:48 +13:00
data_alias.len = C.size_t(len(data))
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))
2025-02-01 13:45:16 +13:00
C.QWebEngineView_setContent3(this.h, data_alias, mimeType_ms, (*C.QUrl)(baseUrl.UnsafePointer()))
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineView) TriggerPageAction2(action QWebEnginePage__WebAction, checked bool) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_triggerPageAction2(this.h, (C.int)(action), (C.bool)(checked))
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineView) FindText2(subString string, options QWebEnginePage__FindFlag) {
subString_ms := C.struct_miqt_string{}
subString_ms.data = C.CString(subString)
subString_ms.len = C.size_t(len(subString))
defer C.free(unsafe.Pointer(subString_ms.data))
2025-02-01 13:45:16 +13:00
C.QWebEngineView_findText2(this.h, subString_ms, (C.int)(options))
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineView) callVirtualBase_SizeHint() *qt.QSize {
2025-02-01 13:45:16 +13:00
_goptr := qt.UnsafeNewQSize(unsafe.Pointer(C.QWebEngineView_virtualbase_sizeHint(unsafe.Pointer(this.h))))
2024-11-27 18:16:48 +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 *QWebEngineView) OnsizeHint(slot func(super func() *qt.QSize) *qt.QSize) {
ok := C.QWebEngineView_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-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_sizeHint
func miqt_exec_callback_QWebEngineView_sizeHint(self *C.QWebEngineView, cb C.intptr_t) *C.QSize {
2024-11-27 18:16:48 +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((&QWebEngineView{h: self}).callVirtualBase_SizeHint)
return (*C.QSize)(virtualReturn.UnsafePointer())
}
func (this *QWebEngineView) callVirtualBase_CreateWindow(typeVal QWebEnginePage__WebWindowType) *QWebEngineView {
2025-02-01 13:45:16 +13:00
return newQWebEngineView(C.QWebEngineView_virtualbase_createWindow(unsafe.Pointer(this.h), (C.int)(typeVal)))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineView) OncreateWindow(slot func(super func(typeVal QWebEnginePage__WebWindowType) *QWebEngineView, typeVal QWebEnginePage__WebWindowType) *QWebEngineView) {
ok := C.QWebEngineView_override_virtual_createWindow(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-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_createWindow
func miqt_exec_callback_QWebEngineView_createWindow(self *C.QWebEngineView, cb C.intptr_t, typeVal C.int) *C.QWebEngineView {
2024-11-27 18:16:48 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(typeVal QWebEnginePage__WebWindowType) *QWebEngineView, typeVal QWebEnginePage__WebWindowType) *QWebEngineView)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (QWebEnginePage__WebWindowType)(typeVal)
virtualReturn := gofunc((&QWebEngineView{h: self}).callVirtualBase_CreateWindow, slotval1)
return virtualReturn.cPointer()
}
func (this *QWebEngineView) callVirtualBase_ContextMenuEvent(param1 *qt.QContextMenuEvent) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_virtualbase_contextMenuEvent(unsafe.Pointer(this.h), (*C.QContextMenuEvent)(param1.UnsafePointer()))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineView) OncontextMenuEvent(slot func(super func(param1 *qt.QContextMenuEvent), param1 *qt.QContextMenuEvent)) {
ok := C.QWebEngineView_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-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_contextMenuEvent
func miqt_exec_callback_QWebEngineView_contextMenuEvent(self *C.QWebEngineView, cb C.intptr_t, param1 *C.QContextMenuEvent) {
2024-11-27 18:16:48 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *qt.QContextMenuEvent), param1 *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(param1))
2024-11-27 18:16:48 +13:00
gofunc((&QWebEngineView{h: self}).callVirtualBase_ContextMenuEvent, slotval1)
}
func (this *QWebEngineView) callVirtualBase_Event(param1 *qt.QEvent) bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QWebEngineView_virtualbase_event(unsafe.Pointer(this.h), (*C.QEvent)(param1.UnsafePointer())))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineView) Onevent(slot func(super func(param1 *qt.QEvent) bool, param1 *qt.QEvent) bool) {
ok := C.QWebEngineView_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-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_event
func miqt_exec_callback_QWebEngineView_event(self *C.QWebEngineView, cb C.intptr_t, param1 *C.QEvent) C.bool {
2024-11-27 18:16:48 +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((&QWebEngineView{h: self}).callVirtualBase_Event, slotval1)
return (C.bool)(virtualReturn)
}
func (this *QWebEngineView) callVirtualBase_ShowEvent(param1 *qt.QShowEvent) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_virtualbase_showEvent(unsafe.Pointer(this.h), (*C.QShowEvent)(param1.UnsafePointer()))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineView) OnshowEvent(slot func(super func(param1 *qt.QShowEvent), param1 *qt.QShowEvent)) {
ok := C.QWebEngineView_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-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_showEvent
func miqt_exec_callback_QWebEngineView_showEvent(self *C.QWebEngineView, cb C.intptr_t, param1 *C.QShowEvent) {
2024-11-27 18:16:48 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *qt.QShowEvent), param1 *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(param1))
2024-11-27 18:16:48 +13:00
gofunc((&QWebEngineView{h: self}).callVirtualBase_ShowEvent, slotval1)
}
func (this *QWebEngineView) callVirtualBase_HideEvent(param1 *qt.QHideEvent) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_virtualbase_hideEvent(unsafe.Pointer(this.h), (*C.QHideEvent)(param1.UnsafePointer()))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineView) OnhideEvent(slot func(super func(param1 *qt.QHideEvent), param1 *qt.QHideEvent)) {
ok := C.QWebEngineView_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-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_hideEvent
func miqt_exec_callback_QWebEngineView_hideEvent(self *C.QWebEngineView, cb C.intptr_t, param1 *C.QHideEvent) {
2024-11-27 18:16:48 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *qt.QHideEvent), param1 *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(param1))
2024-11-27 18:16:48 +13:00
gofunc((&QWebEngineView{h: self}).callVirtualBase_HideEvent, slotval1)
}
func (this *QWebEngineView) callVirtualBase_CloseEvent(param1 *qt.QCloseEvent) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_virtualbase_closeEvent(unsafe.Pointer(this.h), (*C.QCloseEvent)(param1.UnsafePointer()))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineView) OncloseEvent(slot func(super func(param1 *qt.QCloseEvent), param1 *qt.QCloseEvent)) {
ok := C.QWebEngineView_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-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_closeEvent
func miqt_exec_callback_QWebEngineView_closeEvent(self *C.QWebEngineView, cb C.intptr_t, param1 *C.QCloseEvent) {
2024-11-27 18:16:48 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *qt.QCloseEvent), param1 *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(param1))
2024-11-27 18:16:48 +13:00
gofunc((&QWebEngineView{h: self}).callVirtualBase_CloseEvent, slotval1)
}
func (this *QWebEngineView) callVirtualBase_DragEnterEvent(e *qt.QDragEnterEvent) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_virtualbase_dragEnterEvent(unsafe.Pointer(this.h), (*C.QDragEnterEvent)(e.UnsafePointer()))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineView) OndragEnterEvent(slot func(super func(e *qt.QDragEnterEvent), e *qt.QDragEnterEvent)) {
ok := C.QWebEngineView_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-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_dragEnterEvent
func miqt_exec_callback_QWebEngineView_dragEnterEvent(self *C.QWebEngineView, cb C.intptr_t, e *C.QDragEnterEvent) {
2024-11-27 18:16:48 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(e *qt.QDragEnterEvent), e *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(e))
2024-11-27 18:16:48 +13:00
gofunc((&QWebEngineView{h: self}).callVirtualBase_DragEnterEvent, slotval1)
}
func (this *QWebEngineView) callVirtualBase_DragLeaveEvent(e *qt.QDragLeaveEvent) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_virtualbase_dragLeaveEvent(unsafe.Pointer(this.h), (*C.QDragLeaveEvent)(e.UnsafePointer()))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineView) OndragLeaveEvent(slot func(super func(e *qt.QDragLeaveEvent), e *qt.QDragLeaveEvent)) {
ok := C.QWebEngineView_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-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_dragLeaveEvent
func miqt_exec_callback_QWebEngineView_dragLeaveEvent(self *C.QWebEngineView, cb C.intptr_t, e *C.QDragLeaveEvent) {
2024-11-27 18:16:48 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(e *qt.QDragLeaveEvent), e *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(e))
2024-11-27 18:16:48 +13:00
gofunc((&QWebEngineView{h: self}).callVirtualBase_DragLeaveEvent, slotval1)
}
func (this *QWebEngineView) callVirtualBase_DragMoveEvent(e *qt.QDragMoveEvent) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_virtualbase_dragMoveEvent(unsafe.Pointer(this.h), (*C.QDragMoveEvent)(e.UnsafePointer()))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineView) OndragMoveEvent(slot func(super func(e *qt.QDragMoveEvent), e *qt.QDragMoveEvent)) {
ok := C.QWebEngineView_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-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_dragMoveEvent
func miqt_exec_callback_QWebEngineView_dragMoveEvent(self *C.QWebEngineView, cb C.intptr_t, e *C.QDragMoveEvent) {
2024-11-27 18:16:48 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(e *qt.QDragMoveEvent), e *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(e))
2024-11-27 18:16:48 +13:00
gofunc((&QWebEngineView{h: self}).callVirtualBase_DragMoveEvent, slotval1)
}
func (this *QWebEngineView) callVirtualBase_DropEvent(e *qt.QDropEvent) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_virtualbase_dropEvent(unsafe.Pointer(this.h), (*C.QDropEvent)(e.UnsafePointer()))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineView) OndropEvent(slot func(super func(e *qt.QDropEvent), e *qt.QDropEvent)) {
ok := C.QWebEngineView_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-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_dropEvent
func miqt_exec_callback_QWebEngineView_dropEvent(self *C.QWebEngineView, cb C.intptr_t, e *C.QDropEvent) {
2024-11-27 18:16:48 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(e *qt.QDropEvent), e *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(e))
2024-11-27 18:16:48 +13:00
gofunc((&QWebEngineView{h: self}).callVirtualBase_DropEvent, slotval1)
}
func (this *QWebEngineView) callVirtualBase_DevType() int {
2025-02-01 13:45:16 +13:00
return (int)(C.QWebEngineView_virtualbase_devType(unsafe.Pointer(this.h)))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineView) OndevType(slot func(super func() int) int) {
ok := C.QWebEngineView_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-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_devType
func miqt_exec_callback_QWebEngineView_devType(self *C.QWebEngineView, cb C.intptr_t) C.int {
2024-11-27 18:16:48 +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((&QWebEngineView{h: self}).callVirtualBase_DevType)
return (C.int)(virtualReturn)
}
func (this *QWebEngineView) callVirtualBase_SetVisible(visible bool) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_virtualbase_setVisible(unsafe.Pointer(this.h), (C.bool)(visible))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineView) OnsetVisible(slot func(super func(visible bool), visible bool)) {
ok := C.QWebEngineView_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-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_setVisible
func miqt_exec_callback_QWebEngineView_setVisible(self *C.QWebEngineView, cb C.intptr_t, visible C.bool) {
2024-11-27 18:16:48 +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((&QWebEngineView{h: self}).callVirtualBase_SetVisible, slotval1)
}
func (this *QWebEngineView) callVirtualBase_MinimumSizeHint() *qt.QSize {
2025-02-01 13:45:16 +13:00
_goptr := qt.UnsafeNewQSize(unsafe.Pointer(C.QWebEngineView_virtualbase_minimumSizeHint(unsafe.Pointer(this.h))))
2024-11-27 18:16:48 +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 *QWebEngineView) OnminimumSizeHint(slot func(super func() *qt.QSize) *qt.QSize) {
ok := C.QWebEngineView_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-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_minimumSizeHint
func miqt_exec_callback_QWebEngineView_minimumSizeHint(self *C.QWebEngineView, cb C.intptr_t) *C.QSize {
2024-11-27 18:16:48 +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((&QWebEngineView{h: self}).callVirtualBase_MinimumSizeHint)
return (*C.QSize)(virtualReturn.UnsafePointer())
}
func (this *QWebEngineView) callVirtualBase_HeightForWidth(param1 int) int {
2025-02-01 13:45:16 +13:00
return (int)(C.QWebEngineView_virtualbase_heightForWidth(unsafe.Pointer(this.h), (C.int)(param1)))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineView) OnheightForWidth(slot func(super func(param1 int) int, param1 int) int) {
ok := C.QWebEngineView_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-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_heightForWidth
func miqt_exec_callback_QWebEngineView_heightForWidth(self *C.QWebEngineView, cb C.intptr_t, param1 C.int) C.int {
2024-11-27 18:16:48 +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((&QWebEngineView{h: self}).callVirtualBase_HeightForWidth, slotval1)
return (C.int)(virtualReturn)
}
func (this *QWebEngineView) callVirtualBase_HasHeightForWidth() bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QWebEngineView_virtualbase_hasHeightForWidth(unsafe.Pointer(this.h)))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineView) OnhasHeightForWidth(slot func(super func() bool) bool) {
ok := C.QWebEngineView_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-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_hasHeightForWidth
func miqt_exec_callback_QWebEngineView_hasHeightForWidth(self *C.QWebEngineView, cb C.intptr_t) C.bool {
2024-11-27 18:16:48 +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((&QWebEngineView{h: self}).callVirtualBase_HasHeightForWidth)
return (C.bool)(virtualReturn)
}
func (this *QWebEngineView) callVirtualBase_PaintEngine() *qt.QPaintEngine {
2025-02-01 13:45:16 +13:00
return qt.UnsafeNewQPaintEngine(unsafe.Pointer(C.QWebEngineView_virtualbase_paintEngine(unsafe.Pointer(this.h))))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineView) OnpaintEngine(slot func(super func() *qt.QPaintEngine) *qt.QPaintEngine) {
ok := C.QWebEngineView_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-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_paintEngine
func miqt_exec_callback_QWebEngineView_paintEngine(self *C.QWebEngineView, cb C.intptr_t) *C.QPaintEngine {
2024-11-27 18:16:48 +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((&QWebEngineView{h: self}).callVirtualBase_PaintEngine)
return (*C.QPaintEngine)(virtualReturn.UnsafePointer())
}
func (this *QWebEngineView) callVirtualBase_MousePressEvent(event *qt.QMouseEvent) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_virtualbase_mousePressEvent(unsafe.Pointer(this.h), (*C.QMouseEvent)(event.UnsafePointer()))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineView) OnmousePressEvent(slot func(super func(event *qt.QMouseEvent), event *qt.QMouseEvent)) {
ok := C.QWebEngineView_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-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_mousePressEvent
func miqt_exec_callback_QWebEngineView_mousePressEvent(self *C.QWebEngineView, cb C.intptr_t, event *C.QMouseEvent) {
2024-11-27 18:16:48 +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-27 18:16:48 +13:00
gofunc((&QWebEngineView{h: self}).callVirtualBase_MousePressEvent, slotval1)
}
func (this *QWebEngineView) callVirtualBase_MouseReleaseEvent(event *qt.QMouseEvent) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_virtualbase_mouseReleaseEvent(unsafe.Pointer(this.h), (*C.QMouseEvent)(event.UnsafePointer()))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineView) OnmouseReleaseEvent(slot func(super func(event *qt.QMouseEvent), event *qt.QMouseEvent)) {
ok := C.QWebEngineView_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-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_mouseReleaseEvent
func miqt_exec_callback_QWebEngineView_mouseReleaseEvent(self *C.QWebEngineView, cb C.intptr_t, event *C.QMouseEvent) {
2024-11-27 18:16:48 +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-27 18:16:48 +13:00
gofunc((&QWebEngineView{h: self}).callVirtualBase_MouseReleaseEvent, slotval1)
}
func (this *QWebEngineView) callVirtualBase_MouseDoubleClickEvent(event *qt.QMouseEvent) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_virtualbase_mouseDoubleClickEvent(unsafe.Pointer(this.h), (*C.QMouseEvent)(event.UnsafePointer()))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineView) OnmouseDoubleClickEvent(slot func(super func(event *qt.QMouseEvent), event *qt.QMouseEvent)) {
ok := C.QWebEngineView_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-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_mouseDoubleClickEvent
func miqt_exec_callback_QWebEngineView_mouseDoubleClickEvent(self *C.QWebEngineView, cb C.intptr_t, event *C.QMouseEvent) {
2024-11-27 18:16:48 +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-27 18:16:48 +13:00
gofunc((&QWebEngineView{h: self}).callVirtualBase_MouseDoubleClickEvent, slotval1)
}
func (this *QWebEngineView) callVirtualBase_MouseMoveEvent(event *qt.QMouseEvent) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_virtualbase_mouseMoveEvent(unsafe.Pointer(this.h), (*C.QMouseEvent)(event.UnsafePointer()))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineView) OnmouseMoveEvent(slot func(super func(event *qt.QMouseEvent), event *qt.QMouseEvent)) {
ok := C.QWebEngineView_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-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_mouseMoveEvent
func miqt_exec_callback_QWebEngineView_mouseMoveEvent(self *C.QWebEngineView, cb C.intptr_t, event *C.QMouseEvent) {
2024-11-27 18:16:48 +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-27 18:16:48 +13:00
gofunc((&QWebEngineView{h: self}).callVirtualBase_MouseMoveEvent, slotval1)
}
func (this *QWebEngineView) callVirtualBase_WheelEvent(event *qt.QWheelEvent) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_virtualbase_wheelEvent(unsafe.Pointer(this.h), (*C.QWheelEvent)(event.UnsafePointer()))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineView) OnwheelEvent(slot func(super func(event *qt.QWheelEvent), event *qt.QWheelEvent)) {
ok := C.QWebEngineView_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-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_wheelEvent
func miqt_exec_callback_QWebEngineView_wheelEvent(self *C.QWebEngineView, cb C.intptr_t, event *C.QWheelEvent) {
2024-11-27 18:16:48 +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-27 18:16:48 +13:00
gofunc((&QWebEngineView{h: self}).callVirtualBase_WheelEvent, slotval1)
}
func (this *QWebEngineView) callVirtualBase_KeyPressEvent(event *qt.QKeyEvent) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_virtualbase_keyPressEvent(unsafe.Pointer(this.h), (*C.QKeyEvent)(event.UnsafePointer()))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineView) OnkeyPressEvent(slot func(super func(event *qt.QKeyEvent), event *qt.QKeyEvent)) {
ok := C.QWebEngineView_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-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_keyPressEvent
func miqt_exec_callback_QWebEngineView_keyPressEvent(self *C.QWebEngineView, cb C.intptr_t, event *C.QKeyEvent) {
2024-11-27 18:16:48 +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-27 18:16:48 +13:00
gofunc((&QWebEngineView{h: self}).callVirtualBase_KeyPressEvent, slotval1)
}
func (this *QWebEngineView) callVirtualBase_KeyReleaseEvent(event *qt.QKeyEvent) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_virtualbase_keyReleaseEvent(unsafe.Pointer(this.h), (*C.QKeyEvent)(event.UnsafePointer()))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineView) OnkeyReleaseEvent(slot func(super func(event *qt.QKeyEvent), event *qt.QKeyEvent)) {
ok := C.QWebEngineView_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-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_keyReleaseEvent
func miqt_exec_callback_QWebEngineView_keyReleaseEvent(self *C.QWebEngineView, cb C.intptr_t, event *C.QKeyEvent) {
2024-11-27 18:16:48 +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-27 18:16:48 +13:00
gofunc((&QWebEngineView{h: self}).callVirtualBase_KeyReleaseEvent, slotval1)
}
func (this *QWebEngineView) callVirtualBase_FocusInEvent(event *qt.QFocusEvent) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_virtualbase_focusInEvent(unsafe.Pointer(this.h), (*C.QFocusEvent)(event.UnsafePointer()))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineView) OnfocusInEvent(slot func(super func(event *qt.QFocusEvent), event *qt.QFocusEvent)) {
ok := C.QWebEngineView_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-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_focusInEvent
func miqt_exec_callback_QWebEngineView_focusInEvent(self *C.QWebEngineView, cb C.intptr_t, event *C.QFocusEvent) {
2024-11-27 18:16:48 +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-27 18:16:48 +13:00
gofunc((&QWebEngineView{h: self}).callVirtualBase_FocusInEvent, slotval1)
}
func (this *QWebEngineView) callVirtualBase_FocusOutEvent(event *qt.QFocusEvent) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_virtualbase_focusOutEvent(unsafe.Pointer(this.h), (*C.QFocusEvent)(event.UnsafePointer()))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineView) OnfocusOutEvent(slot func(super func(event *qt.QFocusEvent), event *qt.QFocusEvent)) {
ok := C.QWebEngineView_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-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_focusOutEvent
func miqt_exec_callback_QWebEngineView_focusOutEvent(self *C.QWebEngineView, cb C.intptr_t, event *C.QFocusEvent) {
2024-11-27 18:16:48 +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-27 18:16:48 +13:00
gofunc((&QWebEngineView{h: self}).callVirtualBase_FocusOutEvent, slotval1)
}
func (this *QWebEngineView) callVirtualBase_EnterEvent(event *qt.QEvent) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_virtualbase_enterEvent(unsafe.Pointer(this.h), (*C.QEvent)(event.UnsafePointer()))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineView) OnenterEvent(slot func(super func(event *qt.QEvent), event *qt.QEvent)) {
ok := C.QWebEngineView_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-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_enterEvent
func miqt_exec_callback_QWebEngineView_enterEvent(self *C.QWebEngineView, cb C.intptr_t, event *C.QEvent) {
2024-11-27 18:16:48 +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((&QWebEngineView{h: self}).callVirtualBase_EnterEvent, slotval1)
}
func (this *QWebEngineView) callVirtualBase_LeaveEvent(event *qt.QEvent) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_virtualbase_leaveEvent(unsafe.Pointer(this.h), (*C.QEvent)(event.UnsafePointer()))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineView) OnleaveEvent(slot func(super func(event *qt.QEvent), event *qt.QEvent)) {
ok := C.QWebEngineView_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-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_leaveEvent
func miqt_exec_callback_QWebEngineView_leaveEvent(self *C.QWebEngineView, cb C.intptr_t, event *C.QEvent) {
2024-11-27 18:16:48 +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((&QWebEngineView{h: self}).callVirtualBase_LeaveEvent, slotval1)
}
func (this *QWebEngineView) callVirtualBase_PaintEvent(event *qt.QPaintEvent) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_virtualbase_paintEvent(unsafe.Pointer(this.h), (*C.QPaintEvent)(event.UnsafePointer()))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineView) OnpaintEvent(slot func(super func(event *qt.QPaintEvent), event *qt.QPaintEvent)) {
ok := C.QWebEngineView_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-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_paintEvent
func miqt_exec_callback_QWebEngineView_paintEvent(self *C.QWebEngineView, cb C.intptr_t, event *C.QPaintEvent) {
2024-11-27 18:16:48 +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-27 18:16:48 +13:00
gofunc((&QWebEngineView{h: self}).callVirtualBase_PaintEvent, slotval1)
}
func (this *QWebEngineView) callVirtualBase_MoveEvent(event *qt.QMoveEvent) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_virtualbase_moveEvent(unsafe.Pointer(this.h), (*C.QMoveEvent)(event.UnsafePointer()))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineView) OnmoveEvent(slot func(super func(event *qt.QMoveEvent), event *qt.QMoveEvent)) {
ok := C.QWebEngineView_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-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_moveEvent
func miqt_exec_callback_QWebEngineView_moveEvent(self *C.QWebEngineView, cb C.intptr_t, event *C.QMoveEvent) {
2024-11-27 18:16:48 +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-27 18:16:48 +13:00
gofunc((&QWebEngineView{h: self}).callVirtualBase_MoveEvent, slotval1)
}
func (this *QWebEngineView) callVirtualBase_ResizeEvent(event *qt.QResizeEvent) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_virtualbase_resizeEvent(unsafe.Pointer(this.h), (*C.QResizeEvent)(event.UnsafePointer()))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineView) OnresizeEvent(slot func(super func(event *qt.QResizeEvent), event *qt.QResizeEvent)) {
ok := C.QWebEngineView_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-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_resizeEvent
func miqt_exec_callback_QWebEngineView_resizeEvent(self *C.QWebEngineView, cb C.intptr_t, event *C.QResizeEvent) {
2024-11-27 18:16:48 +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-27 18:16:48 +13:00
gofunc((&QWebEngineView{h: self}).callVirtualBase_ResizeEvent, slotval1)
}
func (this *QWebEngineView) callVirtualBase_TabletEvent(event *qt.QTabletEvent) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_virtualbase_tabletEvent(unsafe.Pointer(this.h), (*C.QTabletEvent)(event.UnsafePointer()))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineView) OntabletEvent(slot func(super func(event *qt.QTabletEvent), event *qt.QTabletEvent)) {
ok := C.QWebEngineView_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-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_tabletEvent
func miqt_exec_callback_QWebEngineView_tabletEvent(self *C.QWebEngineView, cb C.intptr_t, event *C.QTabletEvent) {
2024-11-27 18:16:48 +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-27 18:16:48 +13:00
gofunc((&QWebEngineView{h: self}).callVirtualBase_TabletEvent, slotval1)
}
func (this *QWebEngineView) callVirtualBase_ActionEvent(event *qt.QActionEvent) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_virtualbase_actionEvent(unsafe.Pointer(this.h), (*C.QActionEvent)(event.UnsafePointer()))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineView) OnactionEvent(slot func(super func(event *qt.QActionEvent), event *qt.QActionEvent)) {
ok := C.QWebEngineView_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-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_actionEvent
func miqt_exec_callback_QWebEngineView_actionEvent(self *C.QWebEngineView, cb C.intptr_t, event *C.QActionEvent) {
2024-11-27 18:16:48 +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-27 18:16:48 +13:00
gofunc((&QWebEngineView{h: self}).callVirtualBase_ActionEvent, slotval1)
}
func (this *QWebEngineView) 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-27 18:16:48 +13:00
eventType_alias.len = C.size_t(len(eventType))
2025-02-01 13:45:16 +13:00
return (bool)(C.QWebEngineView_virtualbase_nativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineView) OnnativeEvent(slot func(super func(eventType []byte, message unsafe.Pointer, result *int64) bool, eventType []byte, message unsafe.Pointer, result *int64) bool) {
ok := C.QWebEngineView_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-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_nativeEvent
func miqt_exec_callback_QWebEngineView_nativeEvent(self *C.QWebEngineView, cb C.intptr_t, eventType C.struct_miqt_string, message unsafe.Pointer, result *C.long) C.bool {
2024-11-27 18:16:48 +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((&QWebEngineView{h: self}).callVirtualBase_NativeEvent, slotval1, slotval2, slotval3)
return (C.bool)(virtualReturn)
}
func (this *QWebEngineView) callVirtualBase_ChangeEvent(param1 *qt.QEvent) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_virtualbase_changeEvent(unsafe.Pointer(this.h), (*C.QEvent)(param1.UnsafePointer()))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineView) OnchangeEvent(slot func(super func(param1 *qt.QEvent), param1 *qt.QEvent)) {
ok := C.QWebEngineView_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-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_changeEvent
func miqt_exec_callback_QWebEngineView_changeEvent(self *C.QWebEngineView, cb C.intptr_t, param1 *C.QEvent) {
2024-11-27 18:16:48 +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((&QWebEngineView{h: self}).callVirtualBase_ChangeEvent, slotval1)
}
func (this *QWebEngineView) callVirtualBase_Metric(param1 qt.QPaintDevice__PaintDeviceMetric) int {
2025-02-01 13:45:16 +13:00
return (int)(C.QWebEngineView_virtualbase_metric(unsafe.Pointer(this.h), (C.int)(param1)))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineView) Onmetric(slot func(super func(param1 qt.QPaintDevice__PaintDeviceMetric) int, param1 qt.QPaintDevice__PaintDeviceMetric) int) {
ok := C.QWebEngineView_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-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_metric
func miqt_exec_callback_QWebEngineView_metric(self *C.QWebEngineView, cb C.intptr_t, param1 C.int) C.int {
2024-11-27 18:16:48 +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((&QWebEngineView{h: self}).callVirtualBase_Metric, slotval1)
return (C.int)(virtualReturn)
}
func (this *QWebEngineView) callVirtualBase_InitPainter(painter *qt.QPainter) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_virtualbase_initPainter(unsafe.Pointer(this.h), (*C.QPainter)(painter.UnsafePointer()))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineView) OninitPainter(slot func(super func(painter *qt.QPainter), painter *qt.QPainter)) {
ok := C.QWebEngineView_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-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_initPainter
func miqt_exec_callback_QWebEngineView_initPainter(self *C.QWebEngineView, cb C.intptr_t, painter *C.QPainter) {
2024-11-27 18:16:48 +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((&QWebEngineView{h: self}).callVirtualBase_InitPainter, slotval1)
}
func (this *QWebEngineView) callVirtualBase_Redirected(offset *qt.QPoint) *qt.QPaintDevice {
2025-02-01 13:45:16 +13:00
return qt.UnsafeNewQPaintDevice(unsafe.Pointer(C.QWebEngineView_virtualbase_redirected(unsafe.Pointer(this.h), (*C.QPoint)(offset.UnsafePointer()))))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineView) Onredirected(slot func(super func(offset *qt.QPoint) *qt.QPaintDevice, offset *qt.QPoint) *qt.QPaintDevice) {
ok := C.QWebEngineView_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-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_redirected
func miqt_exec_callback_QWebEngineView_redirected(self *C.QWebEngineView, cb C.intptr_t, offset *C.QPoint) *C.QPaintDevice {
2024-11-27 18:16:48 +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((&QWebEngineView{h: self}).callVirtualBase_Redirected, slotval1)
return (*C.QPaintDevice)(virtualReturn.UnsafePointer())
}
func (this *QWebEngineView) callVirtualBase_SharedPainter() *qt.QPainter {
2025-02-01 13:45:16 +13:00
return qt.UnsafeNewQPainter(unsafe.Pointer(C.QWebEngineView_virtualbase_sharedPainter(unsafe.Pointer(this.h))))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineView) OnsharedPainter(slot func(super func() *qt.QPainter) *qt.QPainter) {
ok := C.QWebEngineView_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-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_sharedPainter
func miqt_exec_callback_QWebEngineView_sharedPainter(self *C.QWebEngineView, cb C.intptr_t) *C.QPainter {
2024-11-27 18:16:48 +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((&QWebEngineView{h: self}).callVirtualBase_SharedPainter)
return (*C.QPainter)(virtualReturn.UnsafePointer())
}
func (this *QWebEngineView) callVirtualBase_InputMethodEvent(param1 *qt.QInputMethodEvent) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_virtualbase_inputMethodEvent(unsafe.Pointer(this.h), (*C.QInputMethodEvent)(param1.UnsafePointer()))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineView) OninputMethodEvent(slot func(super func(param1 *qt.QInputMethodEvent), param1 *qt.QInputMethodEvent)) {
ok := C.QWebEngineView_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-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_inputMethodEvent
func miqt_exec_callback_QWebEngineView_inputMethodEvent(self *C.QWebEngineView, cb C.intptr_t, param1 *C.QInputMethodEvent) {
2024-11-27 18:16:48 +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-27 18:16:48 +13:00
gofunc((&QWebEngineView{h: self}).callVirtualBase_InputMethodEvent, slotval1)
}
func (this *QWebEngineView) callVirtualBase_InputMethodQuery(param1 qt.InputMethodQuery) *qt.QVariant {
2025-02-01 13:45:16 +13:00
_goptr := qt.UnsafeNewQVariant(unsafe.Pointer(C.QWebEngineView_virtualbase_inputMethodQuery(unsafe.Pointer(this.h), (C.int)(param1))))
2024-11-27 18:16:48 +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 *QWebEngineView) OninputMethodQuery(slot func(super func(param1 qt.InputMethodQuery) *qt.QVariant, param1 qt.InputMethodQuery) *qt.QVariant) {
ok := C.QWebEngineView_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-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_inputMethodQuery
func miqt_exec_callback_QWebEngineView_inputMethodQuery(self *C.QWebEngineView, cb C.intptr_t, param1 C.int) *C.QVariant {
2024-11-27 18:16:48 +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((&QWebEngineView{h: self}).callVirtualBase_InputMethodQuery, slotval1)
return (*C.QVariant)(virtualReturn.UnsafePointer())
}
func (this *QWebEngineView) callVirtualBase_FocusNextPrevChild(next bool) bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QWebEngineView_virtualbase_focusNextPrevChild(unsafe.Pointer(this.h), (C.bool)(next)))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineView) OnfocusNextPrevChild(slot func(super func(next bool) bool, next bool) bool) {
ok := C.QWebEngineView_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-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineView_focusNextPrevChild
func miqt_exec_callback_QWebEngineView_focusNextPrevChild(self *C.QWebEngineView, cb C.intptr_t, next C.bool) C.bool {
2024-11-27 18:16:48 +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((&QWebEngineView{h: self}).callVirtualBase_FocusNextPrevChild, slotval1)
return (C.bool)(virtualReturn)
}
func (this *QWebEngineView) callVirtualBase_EventFilter(watched *qt.QObject, event *qt.QEvent) bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QWebEngineView_virtualbase_eventFilter(unsafe.Pointer(this.h), (*C.QObject)(watched.UnsafePointer()), (*C.QEvent)(event.UnsafePointer())))
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineView) OneventFilter(slot func(super func(watched *qt.QObject, event *qt.QEvent) bool, watched *qt.QObject, event *qt.QEvent) bool) {
ok := C.QWebEngineView_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_QWebEngineView_eventFilter
func miqt_exec_callback_QWebEngineView_eventFilter(self *C.QWebEngineView, 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((&QWebEngineView{h: self}).callVirtualBase_EventFilter, slotval1, slotval2)
return (C.bool)(virtualReturn)
}
func (this *QWebEngineView) callVirtualBase_TimerEvent(event *qt.QTimerEvent) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_virtualbase_timerEvent(unsafe.Pointer(this.h), (*C.QTimerEvent)(event.UnsafePointer()))
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineView) OntimerEvent(slot func(super func(event *qt.QTimerEvent), event *qt.QTimerEvent)) {
ok := C.QWebEngineView_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_QWebEngineView_timerEvent
func miqt_exec_callback_QWebEngineView_timerEvent(self *C.QWebEngineView, 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((&QWebEngineView{h: self}).callVirtualBase_TimerEvent, slotval1)
}
func (this *QWebEngineView) callVirtualBase_ChildEvent(event *qt.QChildEvent) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_virtualbase_childEvent(unsafe.Pointer(this.h), (*C.QChildEvent)(event.UnsafePointer()))
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineView) OnchildEvent(slot func(super func(event *qt.QChildEvent), event *qt.QChildEvent)) {
ok := C.QWebEngineView_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_QWebEngineView_childEvent
func miqt_exec_callback_QWebEngineView_childEvent(self *C.QWebEngineView, 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((&QWebEngineView{h: self}).callVirtualBase_ChildEvent, slotval1)
}
func (this *QWebEngineView) callVirtualBase_CustomEvent(event *qt.QEvent) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_virtualbase_customEvent(unsafe.Pointer(this.h), (*C.QEvent)(event.UnsafePointer()))
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineView) OncustomEvent(slot func(super func(event *qt.QEvent), event *qt.QEvent)) {
ok := C.QWebEngineView_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_QWebEngineView_customEvent
func miqt_exec_callback_QWebEngineView_customEvent(self *C.QWebEngineView, 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((&QWebEngineView{h: self}).callVirtualBase_CustomEvent, slotval1)
}
func (this *QWebEngineView) callVirtualBase_ConnectNotify(signal *qt.QMetaMethod) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_virtualbase_connectNotify(unsafe.Pointer(this.h), (*C.QMetaMethod)(signal.UnsafePointer()))
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineView) OnconnectNotify(slot func(super func(signal *qt.QMetaMethod), signal *qt.QMetaMethod)) {
ok := C.QWebEngineView_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_QWebEngineView_connectNotify
func miqt_exec_callback_QWebEngineView_connectNotify(self *C.QWebEngineView, 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((&QWebEngineView{h: self}).callVirtualBase_ConnectNotify, slotval1)
}
func (this *QWebEngineView) callVirtualBase_DisconnectNotify(signal *qt.QMetaMethod) {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_virtualbase_disconnectNotify(unsafe.Pointer(this.h), (*C.QMetaMethod)(signal.UnsafePointer()))
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineView) OndisconnectNotify(slot func(super func(signal *qt.QMetaMethod), signal *qt.QMetaMethod)) {
ok := C.QWebEngineView_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_QWebEngineView_disconnectNotify
func miqt_exec_callback_QWebEngineView_disconnectNotify(self *C.QWebEngineView, 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((&QWebEngineView{h: self}).callVirtualBase_DisconnectNotify, slotval1)
}
2024-11-27 18:16:48 +13:00
// Delete this object from C++ memory.
func (this *QWebEngineView) Delete() {
2025-02-01 13:45:16 +13:00
C.QWebEngineView_delete(this.h)
2024-11-27 18:16:48 +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 *QWebEngineView) GoGC() {
runtime.SetFinalizer(this, func(this *QWebEngineView) {
this.Delete()
runtime.KeepAlive(this.h)
})
}