miqt/qt/webkit/gen_qwebview.go

1856 lines
66 KiB
Go
Raw Normal View History

2024-11-26 22:31:32 +13:00
package webkit
/*
#include "gen_qwebview.h"
#include <stdlib.h>
*/
import "C"
import (
"github.com/mappu/miqt/qt"
"github.com/mappu/miqt/qt/network"
"github.com/mappu/miqt/qt/printsupport"
"runtime"
"runtime/cgo"
"unsafe"
)
type QWebView struct {
h *C.QWebView
2024-11-26 22:31:32 +13:00
*qt.QWidget
}
func (this *QWebView) cPointer() *C.QWebView {
if this == nil {
return nil
}
return this.h
}
func (this *QWebView) UnsafePointer() unsafe.Pointer {
if this == nil {
return nil
}
return unsafe.Pointer(this.h)
}
// newQWebView constructs the type using only CGO pointers.
2024-12-07 17:15:57 +13:00
func newQWebView(h *C.QWebView) *QWebView {
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.QWebView_virtbase(h, &outptr_QWidget)
2024-11-26 22:31:32 +13:00
return &QWebView{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
}
// UnsafeNewQWebView constructs the type using only unsafe pointers.
2024-12-07 17:15:57 +13:00
func UnsafeNewQWebView(h unsafe.Pointer) *QWebView {
return newQWebView((*C.QWebView)(h))
2024-11-26 22:31:32 +13:00
}
// NewQWebView constructs a new QWebView object.
func NewQWebView(parent *qt.QWidget) *QWebView {
return newQWebView(C.QWebView_new((*C.QWidget)(parent.UnsafePointer())))
2024-11-26 22:31:32 +13:00
}
// NewQWebView2 constructs a new QWebView object.
func NewQWebView2() *QWebView {
return newQWebView(C.QWebView_new2())
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) MetaObject() *qt.QMetaObject {
2025-02-01 13:45:16 +13:00
return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QWebView_metaObject(this.h)))
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) 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.QWebView_metacast(this.h, param1_Cstring))
2024-11-26 22:31:32 +13:00
}
func QWebView_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.QWebView_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 QWebView_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.QWebView_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 *QWebView) Page() *QWebPage {
2025-02-01 13:45:16 +13:00
return newQWebPage(C.QWebView_page(this.h))
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) SetPage(page *QWebPage) {
2025-02-01 13:45:16 +13:00
C.QWebView_setPage(this.h, page.cPointer())
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) Load(url *qt.QUrl) {
2025-02-01 13:45:16 +13:00
C.QWebView_load(this.h, (*C.QUrl)(url.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) LoadWithRequest(request *network.QNetworkRequest) {
2025-02-01 13:45:16 +13:00
C.QWebView_loadWithRequest(this.h, (*C.QNetworkRequest)(request.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) 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.QWebView_setHtml(this.h, html_ms)
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) 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-26 22:31:32 +13:00
data_alias.len = C.size_t(len(data))
2025-02-01 13:45:16 +13:00
C.QWebView_setContent(this.h, data_alias)
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) History() *QWebHistory {
2025-02-01 13:45:16 +13:00
return newQWebHistory(C.QWebView_history(this.h))
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) Settings() *QWebSettings {
2025-02-01 13:45:16 +13:00
return newQWebSettings(C.QWebView_settings(this.h))
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) Title() string {
2025-02-01 13:45:16 +13:00
var _ms C.struct_miqt_string = C.QWebView_title(this.h)
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 *QWebView) SetUrl(url *qt.QUrl) {
2025-02-01 13:45:16 +13:00
C.QWebView_setUrl(this.h, (*C.QUrl)(url.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) Url() *qt.QUrl {
2025-02-01 13:45:16 +13:00
_goptr := qt.UnsafeNewQUrl(unsafe.Pointer(C.QWebView_url(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 *QWebView) Icon() *qt.QIcon {
2025-02-01 13:45:16 +13:00
_goptr := qt.UnsafeNewQIcon(unsafe.Pointer(C.QWebView_icon(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 *QWebView) HasSelection() bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QWebView_hasSelection(this.h))
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) SelectedText() string {
2025-02-01 13:45:16 +13:00
var _ms C.struct_miqt_string = C.QWebView_selectedText(this.h)
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 *QWebView) SelectedHtml() string {
2025-02-01 13:45:16 +13:00
var _ms C.struct_miqt_string = C.QWebView_selectedHtml(this.h)
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 *QWebView) PageAction(action QWebPage__WebAction) *qt.QAction {
2025-02-01 13:45:16 +13:00
return qt.UnsafeNewQAction(unsafe.Pointer(C.QWebView_pageAction(this.h, (C.int)(action))))
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) TriggerPageAction(action QWebPage__WebAction) {
2025-02-01 13:45:16 +13:00
C.QWebView_triggerPageAction(this.h, (C.int)(action))
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) IsModified() bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QWebView_isModified(this.h))
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) InputMethodQuery(property qt.InputMethodQuery) *qt.QVariant {
2025-02-01 13:45:16 +13:00
_goptr := qt.UnsafeNewQVariant(unsafe.Pointer(C.QWebView_inputMethodQuery(this.h, (C.int)(property))))
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 *QWebView) SizeHint() *qt.QSize {
2025-02-01 13:45:16 +13:00
_goptr := qt.UnsafeNewQSize(unsafe.Pointer(C.QWebView_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 *QWebView) ZoomFactor() float64 {
2025-02-01 13:45:16 +13:00
return (float64)(C.QWebView_zoomFactor(this.h))
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) SetZoomFactor(factor float64) {
2025-02-01 13:45:16 +13:00
C.QWebView_setZoomFactor(this.h, (C.double)(factor))
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) SetTextSizeMultiplier(factor float64) {
2025-02-01 13:45:16 +13:00
C.QWebView_setTextSizeMultiplier(this.h, (C.double)(factor))
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) TextSizeMultiplier() float64 {
2025-02-01 13:45:16 +13:00
return (float64)(C.QWebView_textSizeMultiplier(this.h))
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) RenderHints() qt.QPainter__RenderHint {
2025-02-01 13:45:16 +13:00
return (qt.QPainter__RenderHint)(C.QWebView_renderHints(this.h))
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) SetRenderHints(hints qt.QPainter__RenderHint) {
2025-02-01 13:45:16 +13:00
C.QWebView_setRenderHints(this.h, (C.int)(hints))
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) SetRenderHint(hint qt.QPainter__RenderHint) {
2025-02-01 13:45:16 +13:00
C.QWebView_setRenderHint(this.h, (C.int)(hint))
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) FindText(subString string) bool {
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
return (bool)(C.QWebView_findText(this.h, subString_ms))
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) Event(param1 *qt.QEvent) bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QWebView_event(this.h, (*C.QEvent)(param1.UnsafePointer())))
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) Stop() {
2025-02-01 13:45:16 +13:00
C.QWebView_stop(this.h)
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) Back() {
2025-02-01 13:45:16 +13:00
C.QWebView_back(this.h)
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) Forward() {
2025-02-01 13:45:16 +13:00
C.QWebView_forward(this.h)
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) Reload() {
2025-02-01 13:45:16 +13:00
C.QWebView_reload(this.h)
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) Print(param1 *printsupport.QPrinter) {
2025-02-01 13:45:16 +13:00
C.QWebView_print(this.h, (*C.QPrinter)(param1.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) LoadStarted() {
2025-02-01 13:45:16 +13:00
C.QWebView_loadStarted(this.h)
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) OnLoadStarted(slot func()) {
2025-02-01 13:45:16 +13:00
C.QWebView_connect_loadStarted(this.h, C.intptr_t(cgo.NewHandle(slot)))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebView_loadStarted
func miqt_exec_callback_QWebView_loadStarted(cb C.intptr_t) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func())
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
gofunc()
}
func (this *QWebView) LoadProgress(progress int) {
2025-02-01 13:45:16 +13:00
C.QWebView_loadProgress(this.h, (C.int)(progress))
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) OnLoadProgress(slot func(progress int)) {
2025-02-01 13:45:16 +13:00
C.QWebView_connect_loadProgress(this.h, C.intptr_t(cgo.NewHandle(slot)))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebView_loadProgress
func miqt_exec_callback_QWebView_loadProgress(cb C.intptr_t, progress C.int) {
2024-11-26 22:31:32 +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 *QWebView) LoadFinished(param1 bool) {
2025-02-01 13:45:16 +13:00
C.QWebView_loadFinished(this.h, (C.bool)(param1))
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) OnLoadFinished(slot func(param1 bool)) {
2025-02-01 13:45:16 +13:00
C.QWebView_connect_loadFinished(this.h, C.intptr_t(cgo.NewHandle(slot)))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebView_loadFinished
func miqt_exec_callback_QWebView_loadFinished(cb C.intptr_t, param1 C.bool) {
2024-11-26 22:31:32 +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 *QWebView) 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.QWebView_titleChanged(this.h, title_ms)
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) OnTitleChanged(slot func(title string)) {
2025-02-01 13:45:16 +13:00
C.QWebView_connect_titleChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebView_titleChanged
func miqt_exec_callback_QWebView_titleChanged(cb C.intptr_t, title C.struct_miqt_string) {
2024-11-26 22:31:32 +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 *QWebView) StatusBarMessage(text string) {
text_ms := C.struct_miqt_string{}
text_ms.data = C.CString(text)
text_ms.len = C.size_t(len(text))
defer C.free(unsafe.Pointer(text_ms.data))
2025-02-01 13:45:16 +13:00
C.QWebView_statusBarMessage(this.h, text_ms)
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) OnStatusBarMessage(slot func(text string)) {
2025-02-01 13:45:16 +13:00
C.QWebView_connect_statusBarMessage(this.h, C.intptr_t(cgo.NewHandle(slot)))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebView_statusBarMessage
func miqt_exec_callback_QWebView_statusBarMessage(cb C.intptr_t, text C.struct_miqt_string) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(text string))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
var text_ms C.struct_miqt_string = text
text_ret := C.GoStringN(text_ms.data, C.int(int64(text_ms.len)))
C.free(unsafe.Pointer(text_ms.data))
slotval1 := text_ret
gofunc(slotval1)
}
func (this *QWebView) LinkClicked(param1 *qt.QUrl) {
2025-02-01 13:45:16 +13:00
C.QWebView_linkClicked(this.h, (*C.QUrl)(param1.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) OnLinkClicked(slot func(param1 *qt.QUrl)) {
2025-02-01 13:45:16 +13:00
C.QWebView_connect_linkClicked(this.h, C.intptr_t(cgo.NewHandle(slot)))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebView_linkClicked
func miqt_exec_callback_QWebView_linkClicked(cb C.intptr_t, param1 *C.QUrl) {
2024-11-26 22:31:32 +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 *QWebView) SelectionChanged() {
2025-02-01 13:45:16 +13:00
C.QWebView_selectionChanged(this.h)
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) OnSelectionChanged(slot func()) {
2025-02-01 13:45:16 +13:00
C.QWebView_connect_selectionChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebView_selectionChanged
func miqt_exec_callback_QWebView_selectionChanged(cb C.intptr_t) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func())
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
gofunc()
}
func (this *QWebView) IconChanged() {
2025-02-01 13:45:16 +13:00
C.QWebView_iconChanged(this.h)
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) OnIconChanged(slot func()) {
2025-02-01 13:45:16 +13:00
C.QWebView_connect_iconChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebView_iconChanged
func miqt_exec_callback_QWebView_iconChanged(cb C.intptr_t) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func())
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
gofunc()
}
func (this *QWebView) UrlChanged(param1 *qt.QUrl) {
2025-02-01 13:45:16 +13:00
C.QWebView_urlChanged(this.h, (*C.QUrl)(param1.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) OnUrlChanged(slot func(param1 *qt.QUrl)) {
2025-02-01 13:45:16 +13:00
C.QWebView_connect_urlChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebView_urlChanged
func miqt_exec_callback_QWebView_urlChanged(cb C.intptr_t, param1 *C.QUrl) {
2024-11-26 22:31:32 +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 QWebView_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.QWebView_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 QWebView_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.QWebView_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 QWebView_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.QWebView_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 QWebView_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.QWebView_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 *QWebView) Load2(request *network.QNetworkRequest, operation network.QNetworkAccessManager__Operation) {
2025-02-01 13:45:16 +13:00
C.QWebView_load2(this.h, (*C.QNetworkRequest)(request.UnsafePointer()), (C.int)(operation))
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) Load3(request *network.QNetworkRequest, operation network.QNetworkAccessManager__Operation, body []byte) {
body_alias := C.struct_miqt_string{}
if len(body) > 0 {
body_alias.data = (*C.char)(unsafe.Pointer(&body[0]))
} else {
body_alias.data = (*C.char)(unsafe.Pointer(nil))
}
2024-11-26 22:31:32 +13:00
body_alias.len = C.size_t(len(body))
2025-02-01 13:45:16 +13:00
C.QWebView_load3(this.h, (*C.QNetworkRequest)(request.UnsafePointer()), (C.int)(operation), body_alias)
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) 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.QWebView_setHtml2(this.h, html_ms, (*C.QUrl)(baseUrl.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) 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-26 22:31:32 +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.QWebView_setContent2(this.h, data_alias, mimeType_ms)
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) 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-26 22:31:32 +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.QWebView_setContent3(this.h, data_alias, mimeType_ms, (*C.QUrl)(baseUrl.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) TriggerPageAction2(action QWebPage__WebAction, checked bool) {
2025-02-01 13:45:16 +13:00
C.QWebView_triggerPageAction2(this.h, (C.int)(action), (C.bool)(checked))
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) SetRenderHint2(hint qt.QPainter__RenderHint, enabled bool) {
2025-02-01 13:45:16 +13:00
C.QWebView_setRenderHint2(this.h, (C.int)(hint), (C.bool)(enabled))
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) FindText2(subString string, options QWebPage__FindFlag) bool {
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
return (bool)(C.QWebView_findText2(this.h, subString_ms, (C.int)(options)))
2024-11-26 22:31:32 +13:00
}
func (this *QWebView) callVirtualBase_InputMethodQuery(property qt.InputMethodQuery) *qt.QVariant {
2025-02-01 13:45:16 +13:00
_goptr := qt.UnsafeNewQVariant(unsafe.Pointer(C.QWebView_virtualbase_inputMethodQuery(unsafe.Pointer(this.h), (C.int)(property))))
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 *QWebView) OninputMethodQuery(slot func(super func(property qt.InputMethodQuery) *qt.QVariant, property qt.InputMethodQuery) *qt.QVariant) {
ok := C.QWebView_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_QWebView_inputMethodQuery
func miqt_exec_callback_QWebView_inputMethodQuery(self *C.QWebView, cb C.intptr_t, property C.int) *C.QVariant {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(property qt.InputMethodQuery) *qt.QVariant, property 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)(property)
virtualReturn := gofunc((&QWebView{h: self}).callVirtualBase_InputMethodQuery, slotval1)
return (*C.QVariant)(virtualReturn.UnsafePointer())
}
func (this *QWebView) callVirtualBase_SizeHint() *qt.QSize {
2025-02-01 13:45:16 +13:00
_goptr := qt.UnsafeNewQSize(unsafe.Pointer(C.QWebView_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 *QWebView) OnsizeHint(slot func(super func() *qt.QSize) *qt.QSize) {
ok := C.QWebView_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_QWebView_sizeHint
func miqt_exec_callback_QWebView_sizeHint(self *C.QWebView, 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((&QWebView{h: self}).callVirtualBase_SizeHint)
return (*C.QSize)(virtualReturn.UnsafePointer())
}
func (this *QWebView) callVirtualBase_Event(param1 *qt.QEvent) bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QWebView_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 *QWebView) Onevent(slot func(super func(param1 *qt.QEvent) bool, param1 *qt.QEvent) bool) {
ok := C.QWebView_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_QWebView_event
func miqt_exec_callback_QWebView_event(self *C.QWebView, 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((&QWebView{h: self}).callVirtualBase_Event, slotval1)
return (C.bool)(virtualReturn)
}
func (this *QWebView) callVirtualBase_ResizeEvent(param1 *qt.QResizeEvent) {
2025-02-01 13:45:16 +13:00
C.QWebView_virtualbase_resizeEvent(unsafe.Pointer(this.h), (*C.QResizeEvent)(param1.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebView) OnresizeEvent(slot func(super func(param1 *qt.QResizeEvent), param1 *qt.QResizeEvent)) {
ok := C.QWebView_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_QWebView_resizeEvent
func miqt_exec_callback_QWebView_resizeEvent(self *C.QWebView, cb C.intptr_t, param1 *C.QResizeEvent) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *qt.QResizeEvent), param1 *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(param1))
2024-11-26 22:31:32 +13:00
gofunc((&QWebView{h: self}).callVirtualBase_ResizeEvent, slotval1)
}
func (this *QWebView) callVirtualBase_PaintEvent(param1 *qt.QPaintEvent) {
2025-02-01 13:45:16 +13:00
C.QWebView_virtualbase_paintEvent(unsafe.Pointer(this.h), (*C.QPaintEvent)(param1.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebView) OnpaintEvent(slot func(super func(param1 *qt.QPaintEvent), param1 *qt.QPaintEvent)) {
ok := C.QWebView_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_QWebView_paintEvent
func miqt_exec_callback_QWebView_paintEvent(self *C.QWebView, cb C.intptr_t, param1 *C.QPaintEvent) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *qt.QPaintEvent), param1 *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(param1))
2024-11-26 22:31:32 +13:00
gofunc((&QWebView{h: self}).callVirtualBase_PaintEvent, slotval1)
}
func (this *QWebView) callVirtualBase_CreateWindow(typeVal QWebPage__WebWindowType) *QWebView {
2025-02-01 13:45:16 +13:00
return newQWebView(C.QWebView_virtualbase_createWindow(unsafe.Pointer(this.h), (C.int)(typeVal)))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebView) OncreateWindow(slot func(super func(typeVal QWebPage__WebWindowType) *QWebView, typeVal QWebPage__WebWindowType) *QWebView) {
ok := C.QWebView_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-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebView_createWindow
func miqt_exec_callback_QWebView_createWindow(self *C.QWebView, cb C.intptr_t, typeVal C.int) *C.QWebView {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(typeVal QWebPage__WebWindowType) *QWebView, typeVal QWebPage__WebWindowType) *QWebView)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (QWebPage__WebWindowType)(typeVal)
virtualReturn := gofunc((&QWebView{h: self}).callVirtualBase_CreateWindow, slotval1)
return virtualReturn.cPointer()
}
func (this *QWebView) callVirtualBase_ChangeEvent(param1 *qt.QEvent) {
2025-02-01 13:45:16 +13:00
C.QWebView_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 *QWebView) OnchangeEvent(slot func(super func(param1 *qt.QEvent), param1 *qt.QEvent)) {
ok := C.QWebView_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_QWebView_changeEvent
func miqt_exec_callback_QWebView_changeEvent(self *C.QWebView, 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((&QWebView{h: self}).callVirtualBase_ChangeEvent, slotval1)
}
func (this *QWebView) callVirtualBase_MouseMoveEvent(param1 *qt.QMouseEvent) {
2025-02-01 13:45:16 +13:00
C.QWebView_virtualbase_mouseMoveEvent(unsafe.Pointer(this.h), (*C.QMouseEvent)(param1.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebView) OnmouseMoveEvent(slot func(super func(param1 *qt.QMouseEvent), param1 *qt.QMouseEvent)) {
ok := C.QWebView_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_QWebView_mouseMoveEvent
func miqt_exec_callback_QWebView_mouseMoveEvent(self *C.QWebView, cb C.intptr_t, param1 *C.QMouseEvent) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *qt.QMouseEvent), param1 *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(param1))
2024-11-26 22:31:32 +13:00
gofunc((&QWebView{h: self}).callVirtualBase_MouseMoveEvent, slotval1)
}
func (this *QWebView) callVirtualBase_MousePressEvent(param1 *qt.QMouseEvent) {
2025-02-01 13:45:16 +13:00
C.QWebView_virtualbase_mousePressEvent(unsafe.Pointer(this.h), (*C.QMouseEvent)(param1.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebView) OnmousePressEvent(slot func(super func(param1 *qt.QMouseEvent), param1 *qt.QMouseEvent)) {
ok := C.QWebView_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_QWebView_mousePressEvent
func miqt_exec_callback_QWebView_mousePressEvent(self *C.QWebView, cb C.intptr_t, param1 *C.QMouseEvent) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *qt.QMouseEvent), param1 *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(param1))
2024-11-26 22:31:32 +13:00
gofunc((&QWebView{h: self}).callVirtualBase_MousePressEvent, slotval1)
}
func (this *QWebView) callVirtualBase_MouseDoubleClickEvent(param1 *qt.QMouseEvent) {
2025-02-01 13:45:16 +13:00
C.QWebView_virtualbase_mouseDoubleClickEvent(unsafe.Pointer(this.h), (*C.QMouseEvent)(param1.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebView) OnmouseDoubleClickEvent(slot func(super func(param1 *qt.QMouseEvent), param1 *qt.QMouseEvent)) {
ok := C.QWebView_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_QWebView_mouseDoubleClickEvent
func miqt_exec_callback_QWebView_mouseDoubleClickEvent(self *C.QWebView, cb C.intptr_t, param1 *C.QMouseEvent) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *qt.QMouseEvent), param1 *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(param1))
2024-11-26 22:31:32 +13:00
gofunc((&QWebView{h: self}).callVirtualBase_MouseDoubleClickEvent, slotval1)
}
func (this *QWebView) callVirtualBase_MouseReleaseEvent(param1 *qt.QMouseEvent) {
2025-02-01 13:45:16 +13:00
C.QWebView_virtualbase_mouseReleaseEvent(unsafe.Pointer(this.h), (*C.QMouseEvent)(param1.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebView) OnmouseReleaseEvent(slot func(super func(param1 *qt.QMouseEvent), param1 *qt.QMouseEvent)) {
ok := C.QWebView_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_QWebView_mouseReleaseEvent
func miqt_exec_callback_QWebView_mouseReleaseEvent(self *C.QWebView, cb C.intptr_t, param1 *C.QMouseEvent) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *qt.QMouseEvent), param1 *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(param1))
2024-11-26 22:31:32 +13:00
gofunc((&QWebView{h: self}).callVirtualBase_MouseReleaseEvent, slotval1)
}
func (this *QWebView) callVirtualBase_ContextMenuEvent(param1 *qt.QContextMenuEvent) {
2025-02-01 13:45:16 +13:00
C.QWebView_virtualbase_contextMenuEvent(unsafe.Pointer(this.h), (*C.QContextMenuEvent)(param1.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebView) OncontextMenuEvent(slot func(super func(param1 *qt.QContextMenuEvent), param1 *qt.QContextMenuEvent)) {
ok := C.QWebView_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_QWebView_contextMenuEvent
func miqt_exec_callback_QWebView_contextMenuEvent(self *C.QWebView, cb C.intptr_t, param1 *C.QContextMenuEvent) {
2024-11-26 22:31:32 +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-26 22:31:32 +13:00
gofunc((&QWebView{h: self}).callVirtualBase_ContextMenuEvent, slotval1)
}
func (this *QWebView) callVirtualBase_WheelEvent(param1 *qt.QWheelEvent) {
2025-02-01 13:45:16 +13:00
C.QWebView_virtualbase_wheelEvent(unsafe.Pointer(this.h), (*C.QWheelEvent)(param1.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebView) OnwheelEvent(slot func(super func(param1 *qt.QWheelEvent), param1 *qt.QWheelEvent)) {
ok := C.QWebView_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_QWebView_wheelEvent
func miqt_exec_callback_QWebView_wheelEvent(self *C.QWebView, cb C.intptr_t, param1 *C.QWheelEvent) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *qt.QWheelEvent), param1 *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(param1))
2024-11-26 22:31:32 +13:00
gofunc((&QWebView{h: self}).callVirtualBase_WheelEvent, slotval1)
}
func (this *QWebView) callVirtualBase_KeyPressEvent(param1 *qt.QKeyEvent) {
2025-02-01 13:45:16 +13:00
C.QWebView_virtualbase_keyPressEvent(unsafe.Pointer(this.h), (*C.QKeyEvent)(param1.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebView) OnkeyPressEvent(slot func(super func(param1 *qt.QKeyEvent), param1 *qt.QKeyEvent)) {
ok := C.QWebView_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_QWebView_keyPressEvent
func miqt_exec_callback_QWebView_keyPressEvent(self *C.QWebView, cb C.intptr_t, param1 *C.QKeyEvent) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *qt.QKeyEvent), param1 *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(param1))
2024-11-26 22:31:32 +13:00
gofunc((&QWebView{h: self}).callVirtualBase_KeyPressEvent, slotval1)
}
func (this *QWebView) callVirtualBase_KeyReleaseEvent(param1 *qt.QKeyEvent) {
2025-02-01 13:45:16 +13:00
C.QWebView_virtualbase_keyReleaseEvent(unsafe.Pointer(this.h), (*C.QKeyEvent)(param1.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebView) OnkeyReleaseEvent(slot func(super func(param1 *qt.QKeyEvent), param1 *qt.QKeyEvent)) {
ok := C.QWebView_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_QWebView_keyReleaseEvent
func miqt_exec_callback_QWebView_keyReleaseEvent(self *C.QWebView, cb C.intptr_t, param1 *C.QKeyEvent) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *qt.QKeyEvent), param1 *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(param1))
2024-11-26 22:31:32 +13:00
gofunc((&QWebView{h: self}).callVirtualBase_KeyReleaseEvent, slotval1)
}
func (this *QWebView) callVirtualBase_DragEnterEvent(param1 *qt.QDragEnterEvent) {
2025-02-01 13:45:16 +13:00
C.QWebView_virtualbase_dragEnterEvent(unsafe.Pointer(this.h), (*C.QDragEnterEvent)(param1.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebView) OndragEnterEvent(slot func(super func(param1 *qt.QDragEnterEvent), param1 *qt.QDragEnterEvent)) {
ok := C.QWebView_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_QWebView_dragEnterEvent
func miqt_exec_callback_QWebView_dragEnterEvent(self *C.QWebView, cb C.intptr_t, param1 *C.QDragEnterEvent) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *qt.QDragEnterEvent), param1 *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(param1))
2024-11-26 22:31:32 +13:00
gofunc((&QWebView{h: self}).callVirtualBase_DragEnterEvent, slotval1)
}
func (this *QWebView) callVirtualBase_DragLeaveEvent(param1 *qt.QDragLeaveEvent) {
2025-02-01 13:45:16 +13:00
C.QWebView_virtualbase_dragLeaveEvent(unsafe.Pointer(this.h), (*C.QDragLeaveEvent)(param1.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebView) OndragLeaveEvent(slot func(super func(param1 *qt.QDragLeaveEvent), param1 *qt.QDragLeaveEvent)) {
ok := C.QWebView_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_QWebView_dragLeaveEvent
func miqt_exec_callback_QWebView_dragLeaveEvent(self *C.QWebView, cb C.intptr_t, param1 *C.QDragLeaveEvent) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *qt.QDragLeaveEvent), param1 *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(param1))
2024-11-26 22:31:32 +13:00
gofunc((&QWebView{h: self}).callVirtualBase_DragLeaveEvent, slotval1)
}
func (this *QWebView) callVirtualBase_DragMoveEvent(param1 *qt.QDragMoveEvent) {
2025-02-01 13:45:16 +13:00
C.QWebView_virtualbase_dragMoveEvent(unsafe.Pointer(this.h), (*C.QDragMoveEvent)(param1.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebView) OndragMoveEvent(slot func(super func(param1 *qt.QDragMoveEvent), param1 *qt.QDragMoveEvent)) {
ok := C.QWebView_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_QWebView_dragMoveEvent
func miqt_exec_callback_QWebView_dragMoveEvent(self *C.QWebView, cb C.intptr_t, param1 *C.QDragMoveEvent) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *qt.QDragMoveEvent), param1 *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(param1))
2024-11-26 22:31:32 +13:00
gofunc((&QWebView{h: self}).callVirtualBase_DragMoveEvent, slotval1)
}
func (this *QWebView) callVirtualBase_DropEvent(param1 *qt.QDropEvent) {
2025-02-01 13:45:16 +13:00
C.QWebView_virtualbase_dropEvent(unsafe.Pointer(this.h), (*C.QDropEvent)(param1.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebView) OndropEvent(slot func(super func(param1 *qt.QDropEvent), param1 *qt.QDropEvent)) {
ok := C.QWebView_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_QWebView_dropEvent
func miqt_exec_callback_QWebView_dropEvent(self *C.QWebView, cb C.intptr_t, param1 *C.QDropEvent) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *qt.QDropEvent), param1 *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(param1))
2024-11-26 22:31:32 +13:00
gofunc((&QWebView{h: self}).callVirtualBase_DropEvent, slotval1)
}
func (this *QWebView) callVirtualBase_FocusInEvent(param1 *qt.QFocusEvent) {
2025-02-01 13:45:16 +13:00
C.QWebView_virtualbase_focusInEvent(unsafe.Pointer(this.h), (*C.QFocusEvent)(param1.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebView) OnfocusInEvent(slot func(super func(param1 *qt.QFocusEvent), param1 *qt.QFocusEvent)) {
ok := C.QWebView_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_QWebView_focusInEvent
func miqt_exec_callback_QWebView_focusInEvent(self *C.QWebView, cb C.intptr_t, param1 *C.QFocusEvent) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *qt.QFocusEvent), param1 *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(param1))
2024-11-26 22:31:32 +13:00
gofunc((&QWebView{h: self}).callVirtualBase_FocusInEvent, slotval1)
}
func (this *QWebView) callVirtualBase_FocusOutEvent(param1 *qt.QFocusEvent) {
2025-02-01 13:45:16 +13:00
C.QWebView_virtualbase_focusOutEvent(unsafe.Pointer(this.h), (*C.QFocusEvent)(param1.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebView) OnfocusOutEvent(slot func(super func(param1 *qt.QFocusEvent), param1 *qt.QFocusEvent)) {
ok := C.QWebView_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_QWebView_focusOutEvent
func miqt_exec_callback_QWebView_focusOutEvent(self *C.QWebView, cb C.intptr_t, param1 *C.QFocusEvent) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *qt.QFocusEvent), param1 *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(param1))
2024-11-26 22:31:32 +13:00
gofunc((&QWebView{h: self}).callVirtualBase_FocusOutEvent, slotval1)
}
func (this *QWebView) callVirtualBase_InputMethodEvent(param1 *qt.QInputMethodEvent) {
2025-02-01 13:45:16 +13:00
C.QWebView_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 *QWebView) OninputMethodEvent(slot func(super func(param1 *qt.QInputMethodEvent), param1 *qt.QInputMethodEvent)) {
ok := C.QWebView_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_QWebView_inputMethodEvent
func miqt_exec_callback_QWebView_inputMethodEvent(self *C.QWebView, 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((&QWebView{h: self}).callVirtualBase_InputMethodEvent, slotval1)
}
func (this *QWebView) callVirtualBase_FocusNextPrevChild(next bool) bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QWebView_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 *QWebView) OnfocusNextPrevChild(slot func(super func(next bool) bool, next bool) bool) {
ok := C.QWebView_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_QWebView_focusNextPrevChild
func miqt_exec_callback_QWebView_focusNextPrevChild(self *C.QWebView, 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((&QWebView{h: self}).callVirtualBase_FocusNextPrevChild, slotval1)
return (C.bool)(virtualReturn)
}
func (this *QWebView) callVirtualBase_DevType() int {
2025-02-01 13:45:16 +13:00
return (int)(C.QWebView_virtualbase_devType(unsafe.Pointer(this.h)))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebView) OndevType(slot func(super func() int) int) {
ok := C.QWebView_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_QWebView_devType
func miqt_exec_callback_QWebView_devType(self *C.QWebView, 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((&QWebView{h: self}).callVirtualBase_DevType)
return (C.int)(virtualReturn)
}
func (this *QWebView) callVirtualBase_SetVisible(visible bool) {
2025-02-01 13:45:16 +13:00
C.QWebView_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 *QWebView) OnsetVisible(slot func(super func(visible bool), visible bool)) {
ok := C.QWebView_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_QWebView_setVisible
func miqt_exec_callback_QWebView_setVisible(self *C.QWebView, 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((&QWebView{h: self}).callVirtualBase_SetVisible, slotval1)
}
func (this *QWebView) callVirtualBase_MinimumSizeHint() *qt.QSize {
2025-02-01 13:45:16 +13:00
_goptr := qt.UnsafeNewQSize(unsafe.Pointer(C.QWebView_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 *QWebView) OnminimumSizeHint(slot func(super func() *qt.QSize) *qt.QSize) {
ok := C.QWebView_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_QWebView_minimumSizeHint
func miqt_exec_callback_QWebView_minimumSizeHint(self *C.QWebView, 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((&QWebView{h: self}).callVirtualBase_MinimumSizeHint)
return (*C.QSize)(virtualReturn.UnsafePointer())
}
func (this *QWebView) callVirtualBase_HeightForWidth(param1 int) int {
2025-02-01 13:45:16 +13:00
return (int)(C.QWebView_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 *QWebView) OnheightForWidth(slot func(super func(param1 int) int, param1 int) int) {
ok := C.QWebView_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_QWebView_heightForWidth
func miqt_exec_callback_QWebView_heightForWidth(self *C.QWebView, 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((&QWebView{h: self}).callVirtualBase_HeightForWidth, slotval1)
return (C.int)(virtualReturn)
}
func (this *QWebView) callVirtualBase_HasHeightForWidth() bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QWebView_virtualbase_hasHeightForWidth(unsafe.Pointer(this.h)))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebView) OnhasHeightForWidth(slot func(super func() bool) bool) {
ok := C.QWebView_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_QWebView_hasHeightForWidth
func miqt_exec_callback_QWebView_hasHeightForWidth(self *C.QWebView, 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((&QWebView{h: self}).callVirtualBase_HasHeightForWidth)
return (C.bool)(virtualReturn)
}
func (this *QWebView) callVirtualBase_PaintEngine() *qt.QPaintEngine {
2025-02-01 13:45:16 +13:00
return qt.UnsafeNewQPaintEngine(unsafe.Pointer(C.QWebView_virtualbase_paintEngine(unsafe.Pointer(this.h))))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebView) OnpaintEngine(slot func(super func() *qt.QPaintEngine) *qt.QPaintEngine) {
ok := C.QWebView_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_QWebView_paintEngine
func miqt_exec_callback_QWebView_paintEngine(self *C.QWebView, 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((&QWebView{h: self}).callVirtualBase_PaintEngine)
return (*C.QPaintEngine)(virtualReturn.UnsafePointer())
}
func (this *QWebView) callVirtualBase_EnterEvent(event *qt.QEvent) {
2025-02-01 13:45:16 +13:00
C.QWebView_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 *QWebView) OnenterEvent(slot func(super func(event *qt.QEvent), event *qt.QEvent)) {
ok := C.QWebView_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_QWebView_enterEvent
func miqt_exec_callback_QWebView_enterEvent(self *C.QWebView, 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((&QWebView{h: self}).callVirtualBase_EnterEvent, slotval1)
}
func (this *QWebView) callVirtualBase_LeaveEvent(event *qt.QEvent) {
2025-02-01 13:45:16 +13:00
C.QWebView_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 *QWebView) OnleaveEvent(slot func(super func(event *qt.QEvent), event *qt.QEvent)) {
ok := C.QWebView_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_QWebView_leaveEvent
func miqt_exec_callback_QWebView_leaveEvent(self *C.QWebView, 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((&QWebView{h: self}).callVirtualBase_LeaveEvent, slotval1)
}
func (this *QWebView) callVirtualBase_MoveEvent(event *qt.QMoveEvent) {
2025-02-01 13:45:16 +13:00
C.QWebView_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 *QWebView) OnmoveEvent(slot func(super func(event *qt.QMoveEvent), event *qt.QMoveEvent)) {
ok := C.QWebView_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_QWebView_moveEvent
func miqt_exec_callback_QWebView_moveEvent(self *C.QWebView, 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((&QWebView{h: self}).callVirtualBase_MoveEvent, slotval1)
}
func (this *QWebView) callVirtualBase_CloseEvent(event *qt.QCloseEvent) {
2025-02-01 13:45:16 +13:00
C.QWebView_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 *QWebView) OncloseEvent(slot func(super func(event *qt.QCloseEvent), event *qt.QCloseEvent)) {
ok := C.QWebView_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_QWebView_closeEvent
func miqt_exec_callback_QWebView_closeEvent(self *C.QWebView, 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((&QWebView{h: self}).callVirtualBase_CloseEvent, slotval1)
}
func (this *QWebView) callVirtualBase_TabletEvent(event *qt.QTabletEvent) {
2025-02-01 13:45:16 +13:00
C.QWebView_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 *QWebView) OntabletEvent(slot func(super func(event *qt.QTabletEvent), event *qt.QTabletEvent)) {
ok := C.QWebView_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_QWebView_tabletEvent
func miqt_exec_callback_QWebView_tabletEvent(self *C.QWebView, 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((&QWebView{h: self}).callVirtualBase_TabletEvent, slotval1)
}
func (this *QWebView) callVirtualBase_ActionEvent(event *qt.QActionEvent) {
2025-02-01 13:45:16 +13:00
C.QWebView_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 *QWebView) OnactionEvent(slot func(super func(event *qt.QActionEvent), event *qt.QActionEvent)) {
ok := C.QWebView_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_QWebView_actionEvent
func miqt_exec_callback_QWebView_actionEvent(self *C.QWebView, 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((&QWebView{h: self}).callVirtualBase_ActionEvent, slotval1)
}
func (this *QWebView) callVirtualBase_ShowEvent(event *qt.QShowEvent) {
2025-02-01 13:45:16 +13:00
C.QWebView_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 *QWebView) OnshowEvent(slot func(super func(event *qt.QShowEvent), event *qt.QShowEvent)) {
ok := C.QWebView_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_QWebView_showEvent
func miqt_exec_callback_QWebView_showEvent(self *C.QWebView, 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((&QWebView{h: self}).callVirtualBase_ShowEvent, slotval1)
}
func (this *QWebView) callVirtualBase_HideEvent(event *qt.QHideEvent) {
2025-02-01 13:45:16 +13:00
C.QWebView_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 *QWebView) OnhideEvent(slot func(super func(event *qt.QHideEvent), event *qt.QHideEvent)) {
ok := C.QWebView_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_QWebView_hideEvent
func miqt_exec_callback_QWebView_hideEvent(self *C.QWebView, 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((&QWebView{h: self}).callVirtualBase_HideEvent, slotval1)
}
func (this *QWebView) 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.QWebView_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 *QWebView) OnnativeEvent(slot func(super func(eventType []byte, message unsafe.Pointer, result *int64) bool, eventType []byte, message unsafe.Pointer, result *int64) bool) {
ok := C.QWebView_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_QWebView_nativeEvent
func miqt_exec_callback_QWebView_nativeEvent(self *C.QWebView, 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((&QWebView{h: self}).callVirtualBase_NativeEvent, slotval1, slotval2, slotval3)
return (C.bool)(virtualReturn)
}
func (this *QWebView) callVirtualBase_Metric(param1 qt.QPaintDevice__PaintDeviceMetric) int {
2025-02-01 13:45:16 +13:00
return (int)(C.QWebView_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 *QWebView) Onmetric(slot func(super func(param1 qt.QPaintDevice__PaintDeviceMetric) int, param1 qt.QPaintDevice__PaintDeviceMetric) int) {
ok := C.QWebView_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_QWebView_metric
func miqt_exec_callback_QWebView_metric(self *C.QWebView, 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((&QWebView{h: self}).callVirtualBase_Metric, slotval1)
return (C.int)(virtualReturn)
}
func (this *QWebView) callVirtualBase_InitPainter(painter *qt.QPainter) {
2025-02-01 13:45:16 +13:00
C.QWebView_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 *QWebView) OninitPainter(slot func(super func(painter *qt.QPainter), painter *qt.QPainter)) {
ok := C.QWebView_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_QWebView_initPainter
func miqt_exec_callback_QWebView_initPainter(self *C.QWebView, 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((&QWebView{h: self}).callVirtualBase_InitPainter, slotval1)
}
func (this *QWebView) callVirtualBase_Redirected(offset *qt.QPoint) *qt.QPaintDevice {
2025-02-01 13:45:16 +13:00
return qt.UnsafeNewQPaintDevice(unsafe.Pointer(C.QWebView_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 *QWebView) Onredirected(slot func(super func(offset *qt.QPoint) *qt.QPaintDevice, offset *qt.QPoint) *qt.QPaintDevice) {
ok := C.QWebView_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_QWebView_redirected
func miqt_exec_callback_QWebView_redirected(self *C.QWebView, 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((&QWebView{h: self}).callVirtualBase_Redirected, slotval1)
return (*C.QPaintDevice)(virtualReturn.UnsafePointer())
}
func (this *QWebView) callVirtualBase_SharedPainter() *qt.QPainter {
2025-02-01 13:45:16 +13:00
return qt.UnsafeNewQPainter(unsafe.Pointer(C.QWebView_virtualbase_sharedPainter(unsafe.Pointer(this.h))))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebView) OnsharedPainter(slot func(super func() *qt.QPainter) *qt.QPainter) {
ok := C.QWebView_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_QWebView_sharedPainter
func miqt_exec_callback_QWebView_sharedPainter(self *C.QWebView, 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((&QWebView{h: self}).callVirtualBase_SharedPainter)
return (*C.QPainter)(virtualReturn.UnsafePointer())
}
func (this *QWebView) callVirtualBase_EventFilter(watched *qt.QObject, event *qt.QEvent) bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QWebView_virtualbase_eventFilter(unsafe.Pointer(this.h), (*C.QObject)(watched.UnsafePointer()), (*C.QEvent)(event.UnsafePointer())))
}
2025-02-01 13:45:16 +13:00
func (this *QWebView) OneventFilter(slot func(super func(watched *qt.QObject, event *qt.QEvent) bool, watched *qt.QObject, event *qt.QEvent) bool) {
ok := C.QWebView_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_QWebView_eventFilter
func miqt_exec_callback_QWebView_eventFilter(self *C.QWebView, 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((&QWebView{h: self}).callVirtualBase_EventFilter, slotval1, slotval2)
return (C.bool)(virtualReturn)
}
func (this *QWebView) callVirtualBase_TimerEvent(event *qt.QTimerEvent) {
2025-02-01 13:45:16 +13:00
C.QWebView_virtualbase_timerEvent(unsafe.Pointer(this.h), (*C.QTimerEvent)(event.UnsafePointer()))
}
2025-02-01 13:45:16 +13:00
func (this *QWebView) OntimerEvent(slot func(super func(event *qt.QTimerEvent), event *qt.QTimerEvent)) {
ok := C.QWebView_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_QWebView_timerEvent
func miqt_exec_callback_QWebView_timerEvent(self *C.QWebView, 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((&QWebView{h: self}).callVirtualBase_TimerEvent, slotval1)
}
func (this *QWebView) callVirtualBase_ChildEvent(event *qt.QChildEvent) {
2025-02-01 13:45:16 +13:00
C.QWebView_virtualbase_childEvent(unsafe.Pointer(this.h), (*C.QChildEvent)(event.UnsafePointer()))
}
2025-02-01 13:45:16 +13:00
func (this *QWebView) OnchildEvent(slot func(super func(event *qt.QChildEvent), event *qt.QChildEvent)) {
ok := C.QWebView_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_QWebView_childEvent
func miqt_exec_callback_QWebView_childEvent(self *C.QWebView, 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((&QWebView{h: self}).callVirtualBase_ChildEvent, slotval1)
}
func (this *QWebView) callVirtualBase_CustomEvent(event *qt.QEvent) {
2025-02-01 13:45:16 +13:00
C.QWebView_virtualbase_customEvent(unsafe.Pointer(this.h), (*C.QEvent)(event.UnsafePointer()))
}
2025-02-01 13:45:16 +13:00
func (this *QWebView) OncustomEvent(slot func(super func(event *qt.QEvent), event *qt.QEvent)) {
ok := C.QWebView_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_QWebView_customEvent
func miqt_exec_callback_QWebView_customEvent(self *C.QWebView, 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((&QWebView{h: self}).callVirtualBase_CustomEvent, slotval1)
}
func (this *QWebView) callVirtualBase_ConnectNotify(signal *qt.QMetaMethod) {
2025-02-01 13:45:16 +13:00
C.QWebView_virtualbase_connectNotify(unsafe.Pointer(this.h), (*C.QMetaMethod)(signal.UnsafePointer()))
}
2025-02-01 13:45:16 +13:00
func (this *QWebView) OnconnectNotify(slot func(super func(signal *qt.QMetaMethod), signal *qt.QMetaMethod)) {
ok := C.QWebView_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_QWebView_connectNotify
func miqt_exec_callback_QWebView_connectNotify(self *C.QWebView, 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((&QWebView{h: self}).callVirtualBase_ConnectNotify, slotval1)
}
func (this *QWebView) callVirtualBase_DisconnectNotify(signal *qt.QMetaMethod) {
2025-02-01 13:45:16 +13:00
C.QWebView_virtualbase_disconnectNotify(unsafe.Pointer(this.h), (*C.QMetaMethod)(signal.UnsafePointer()))
}
2025-02-01 13:45:16 +13:00
func (this *QWebView) OndisconnectNotify(slot func(super func(signal *qt.QMetaMethod), signal *qt.QMetaMethod)) {
ok := C.QWebView_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_QWebView_disconnectNotify
func miqt_exec_callback_QWebView_disconnectNotify(self *C.QWebView, 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((&QWebView{h: self}).callVirtualBase_DisconnectNotify, slotval1)
}
2024-11-26 22:31:32 +13:00
// Delete this object from C++ memory.
func (this *QWebView) Delete() {
2025-02-01 13:45:16 +13:00
C.QWebView_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 *QWebView) GoGC() {
runtime.SetFinalizer(this, func(this *QWebView) {
this.Delete()
runtime.KeepAlive(this.h)
})
}