miqt/qt/webkit/gen_qwebpage.go

2337 lines
88 KiB
Go
Raw Normal View History

2024-11-26 22:31:32 +13:00
package webkit
/*
#include "gen_qwebpage.h"
#include <stdlib.h>
*/
import "C"
import (
"github.com/mappu/miqt/qt"
"github.com/mappu/miqt/qt/network"
"runtime"
"runtime/cgo"
"unsafe"
)
type QWebPage__NavigationType int
const (
QWebPage__NavigationTypeLinkClicked QWebPage__NavigationType = 0
QWebPage__NavigationTypeFormSubmitted QWebPage__NavigationType = 1
QWebPage__NavigationTypeBackOrForward QWebPage__NavigationType = 2
QWebPage__NavigationTypeReload QWebPage__NavigationType = 3
QWebPage__NavigationTypeFormResubmitted QWebPage__NavigationType = 4
QWebPage__NavigationTypeOther QWebPage__NavigationType = 5
)
type QWebPage__WebAction int
const (
QWebPage__NoWebAction QWebPage__WebAction = -1
QWebPage__OpenLink QWebPage__WebAction = 0
QWebPage__OpenLinkInNewWindow QWebPage__WebAction = 1
QWebPage__OpenFrameInNewWindow QWebPage__WebAction = 2
QWebPage__DownloadLinkToDisk QWebPage__WebAction = 3
QWebPage__CopyLinkToClipboard QWebPage__WebAction = 4
QWebPage__OpenImageInNewWindow QWebPage__WebAction = 5
QWebPage__DownloadImageToDisk QWebPage__WebAction = 6
QWebPage__CopyImageToClipboard QWebPage__WebAction = 7
QWebPage__Back QWebPage__WebAction = 8
QWebPage__Forward QWebPage__WebAction = 9
QWebPage__Stop QWebPage__WebAction = 10
QWebPage__Reload QWebPage__WebAction = 11
QWebPage__Cut QWebPage__WebAction = 12
QWebPage__Copy QWebPage__WebAction = 13
QWebPage__Paste QWebPage__WebAction = 14
QWebPage__Undo QWebPage__WebAction = 15
QWebPage__Redo QWebPage__WebAction = 16
QWebPage__MoveToNextChar QWebPage__WebAction = 17
QWebPage__MoveToPreviousChar QWebPage__WebAction = 18
QWebPage__MoveToNextWord QWebPage__WebAction = 19
QWebPage__MoveToPreviousWord QWebPage__WebAction = 20
QWebPage__MoveToNextLine QWebPage__WebAction = 21
QWebPage__MoveToPreviousLine QWebPage__WebAction = 22
QWebPage__MoveToStartOfLine QWebPage__WebAction = 23
QWebPage__MoveToEndOfLine QWebPage__WebAction = 24
QWebPage__MoveToStartOfBlock QWebPage__WebAction = 25
QWebPage__MoveToEndOfBlock QWebPage__WebAction = 26
QWebPage__MoveToStartOfDocument QWebPage__WebAction = 27
QWebPage__MoveToEndOfDocument QWebPage__WebAction = 28
QWebPage__SelectNextChar QWebPage__WebAction = 29
QWebPage__SelectPreviousChar QWebPage__WebAction = 30
QWebPage__SelectNextWord QWebPage__WebAction = 31
QWebPage__SelectPreviousWord QWebPage__WebAction = 32
QWebPage__SelectNextLine QWebPage__WebAction = 33
QWebPage__SelectPreviousLine QWebPage__WebAction = 34
QWebPage__SelectStartOfLine QWebPage__WebAction = 35
QWebPage__SelectEndOfLine QWebPage__WebAction = 36
QWebPage__SelectStartOfBlock QWebPage__WebAction = 37
QWebPage__SelectEndOfBlock QWebPage__WebAction = 38
QWebPage__SelectStartOfDocument QWebPage__WebAction = 39
QWebPage__SelectEndOfDocument QWebPage__WebAction = 40
QWebPage__DeleteStartOfWord QWebPage__WebAction = 41
QWebPage__DeleteEndOfWord QWebPage__WebAction = 42
QWebPage__SetTextDirectionDefault QWebPage__WebAction = 43
QWebPage__SetTextDirectionLeftToRight QWebPage__WebAction = 44
QWebPage__SetTextDirectionRightToLeft QWebPage__WebAction = 45
QWebPage__ToggleBold QWebPage__WebAction = 46
QWebPage__ToggleItalic QWebPage__WebAction = 47
QWebPage__ToggleUnderline QWebPage__WebAction = 48
QWebPage__InspectElement QWebPage__WebAction = 49
QWebPage__InsertParagraphSeparator QWebPage__WebAction = 50
QWebPage__InsertLineSeparator QWebPage__WebAction = 51
QWebPage__SelectAll QWebPage__WebAction = 52
QWebPage__ReloadAndBypassCache QWebPage__WebAction = 53
QWebPage__PasteAndMatchStyle QWebPage__WebAction = 54
QWebPage__RemoveFormat QWebPage__WebAction = 55
QWebPage__ToggleStrikethrough QWebPage__WebAction = 56
QWebPage__ToggleSubscript QWebPage__WebAction = 57
QWebPage__ToggleSuperscript QWebPage__WebAction = 58
QWebPage__InsertUnorderedList QWebPage__WebAction = 59
QWebPage__InsertOrderedList QWebPage__WebAction = 60
QWebPage__Indent QWebPage__WebAction = 61
QWebPage__Outdent QWebPage__WebAction = 62
QWebPage__AlignCenter QWebPage__WebAction = 63
QWebPage__AlignJustified QWebPage__WebAction = 64
QWebPage__AlignLeft QWebPage__WebAction = 65
QWebPage__AlignRight QWebPage__WebAction = 66
QWebPage__StopScheduledPageRefresh QWebPage__WebAction = 67
QWebPage__CopyImageUrlToClipboard QWebPage__WebAction = 68
QWebPage__OpenLinkInThisWindow QWebPage__WebAction = 69
QWebPage__DownloadMediaToDisk QWebPage__WebAction = 70
QWebPage__CopyMediaUrlToClipboard QWebPage__WebAction = 71
QWebPage__ToggleMediaControls QWebPage__WebAction = 72
QWebPage__ToggleMediaLoop QWebPage__WebAction = 73
QWebPage__ToggleMediaPlayPause QWebPage__WebAction = 74
QWebPage__ToggleMediaMute QWebPage__WebAction = 75
QWebPage__ToggleVideoFullscreen QWebPage__WebAction = 76
QWebPage__RequestClose QWebPage__WebAction = 77
QWebPage__Unselect QWebPage__WebAction = 78
QWebPage__WebActionCount QWebPage__WebAction = 79
)
type QWebPage__FindFlag int
const (
QWebPage__FindBackward QWebPage__FindFlag = 1
QWebPage__FindCaseSensitively QWebPage__FindFlag = 2
QWebPage__FindWrapsAroundDocument QWebPage__FindFlag = 4
QWebPage__HighlightAllOccurrences QWebPage__FindFlag = 8
QWebPage__FindAtWordBeginningsOnly QWebPage__FindFlag = 16
QWebPage__TreatMedialCapitalAsWordBeginning QWebPage__FindFlag = 32
QWebPage__FindBeginsInSelection QWebPage__FindFlag = 64
QWebPage__FindAtWordEndingsOnly QWebPage__FindFlag = 128
QWebPage__FindExactMatchOnly QWebPage__FindFlag = 144
)
type QWebPage__LinkDelegationPolicy int
const (
QWebPage__DontDelegateLinks QWebPage__LinkDelegationPolicy = 0
QWebPage__DelegateExternalLinks QWebPage__LinkDelegationPolicy = 1
QWebPage__DelegateAllLinks QWebPage__LinkDelegationPolicy = 2
)
type QWebPage__WebWindowType int
const (
QWebPage__WebBrowserWindow QWebPage__WebWindowType = 0
QWebPage__WebModalDialog QWebPage__WebWindowType = 1
)
type QWebPage__PermissionPolicy int
const (
QWebPage__PermissionUnknown QWebPage__PermissionPolicy = 0
QWebPage__PermissionGrantedByUser QWebPage__PermissionPolicy = 1
QWebPage__PermissionDeniedByUser QWebPage__PermissionPolicy = 2
)
type QWebPage__Feature int
const (
QWebPage__Notifications QWebPage__Feature = 0
QWebPage__Geolocation QWebPage__Feature = 1
)
type QWebPage__VisibilityState int
const (
QWebPage__VisibilityStateVisible QWebPage__VisibilityState = 0
QWebPage__VisibilityStateHidden QWebPage__VisibilityState = 1
QWebPage__VisibilityStatePrerender QWebPage__VisibilityState = 2
QWebPage__VisibilityStateUnloaded QWebPage__VisibilityState = 3
)
type QWebPage__MessageSource int
const (
QWebPage__XmlMessageSource QWebPage__MessageSource = 0
QWebPage__JSMessageSource QWebPage__MessageSource = 1
QWebPage__NetworkMessageSource QWebPage__MessageSource = 2
QWebPage__ConsoleAPIMessageSource QWebPage__MessageSource = 3
QWebPage__StorageMessageSource QWebPage__MessageSource = 4
QWebPage__AppCacheMessageSource QWebPage__MessageSource = 5
QWebPage__RenderingMessageSource QWebPage__MessageSource = 6
QWebPage__CSSMessageSource QWebPage__MessageSource = 7
QWebPage__SecurityMessageSource QWebPage__MessageSource = 8
QWebPage__ContentBlockerMessageSource QWebPage__MessageSource = 9
QWebPage__OtherMessageSource QWebPage__MessageSource = 10
)
type QWebPage__MessageLevel int
const (
QWebPage__LogMessageLevel QWebPage__MessageLevel = 1
QWebPage__WarningMessageLevel QWebPage__MessageLevel = 2
QWebPage__ErrorMessageLevel QWebPage__MessageLevel = 3
QWebPage__DebugMessageLevel QWebPage__MessageLevel = 4
QWebPage__InfoMessageLevel QWebPage__MessageLevel = 5
)
type QWebPage__Extension int
const (
QWebPage__ChooseMultipleFilesExtension QWebPage__Extension = 0
QWebPage__ErrorPageExtension QWebPage__Extension = 1
)
type QWebPage__ErrorDomain int
const (
QWebPage__QtNetwork QWebPage__ErrorDomain = 0
QWebPage__Http QWebPage__ErrorDomain = 1
QWebPage__WebKit QWebPage__ErrorDomain = 2
)
type QWebPage struct {
h *C.QWebPage
2024-11-26 22:31:32 +13:00
*qt.QObject
}
func (this *QWebPage) cPointer() *C.QWebPage {
if this == nil {
return nil
}
return this.h
}
func (this *QWebPage) UnsafePointer() unsafe.Pointer {
if this == nil {
return nil
}
return unsafe.Pointer(this.h)
}
// newQWebPage constructs the type using only CGO pointers.
2024-12-07 17:15:57 +13:00
func newQWebPage(h *C.QWebPage) *QWebPage {
2024-11-26 22:31:32 +13:00
if h == nil {
return nil
}
2024-12-07 17:15:57 +13:00
var outptr_QObject *C.QObject = nil
C.QWebPage_virtbase(h, &outptr_QObject)
2024-11-26 22:31:32 +13:00
return &QWebPage{h: h,
2024-12-07 17:15:57 +13:00
QObject: qt.UnsafeNewQObject(unsafe.Pointer(outptr_QObject))}
2024-11-26 22:31:32 +13:00
}
// UnsafeNewQWebPage constructs the type using only unsafe pointers.
2024-12-07 17:15:57 +13:00
func UnsafeNewQWebPage(h unsafe.Pointer) *QWebPage {
return newQWebPage((*C.QWebPage)(h))
2024-11-26 22:31:32 +13:00
}
// NewQWebPage constructs a new QWebPage object.
func NewQWebPage() *QWebPage {
return newQWebPage(C.QWebPage_new())
2024-11-26 22:31:32 +13:00
}
// NewQWebPage2 constructs a new QWebPage object.
func NewQWebPage2(parent *qt.QObject) *QWebPage {
return newQWebPage(C.QWebPage_new2((*C.QObject)(parent.UnsafePointer())))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) MetaObject() *qt.QMetaObject {
2025-02-01 13:45:16 +13:00
return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QWebPage_metaObject(this.h)))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) 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.QWebPage_metacast(this.h, param1_Cstring))
2024-11-26 22:31:32 +13:00
}
func QWebPage_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.QWebPage_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 QWebPage_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.QWebPage_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 *QWebPage) MainFrame() *QWebFrame {
2025-02-01 13:45:16 +13:00
return newQWebFrame(C.QWebPage_mainFrame(this.h))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) CurrentFrame() *QWebFrame {
2025-02-01 13:45:16 +13:00
return newQWebFrame(C.QWebPage_currentFrame(this.h))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) FrameAt(pos *qt.QPoint) *QWebFrame {
2025-02-01 13:45:16 +13:00
return newQWebFrame(C.QWebPage_frameAt(this.h, (*C.QPoint)(pos.UnsafePointer())))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) History() *QWebHistory {
2025-02-01 13:45:16 +13:00
return newQWebHistory(C.QWebPage_history(this.h))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) Settings() *QWebSettings {
2025-02-01 13:45:16 +13:00
return newQWebSettings(C.QWebPage_settings(this.h))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) SetView(view *qt.QWidget) {
2025-02-01 13:45:16 +13:00
C.QWebPage_setView(this.h, (*C.QWidget)(view.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) View() *qt.QWidget {
2025-02-01 13:45:16 +13:00
return qt.UnsafeNewQWidget(unsafe.Pointer(C.QWebPage_view(this.h)))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) IsModified() bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QWebPage_isModified(this.h))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) UndoStack() *qt.QUndoStack {
2025-02-01 13:45:16 +13:00
return qt.UnsafeNewQUndoStack(unsafe.Pointer(C.QWebPage_undoStack(this.h)))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) SetNetworkAccessManager(manager *network.QNetworkAccessManager) {
2025-02-01 13:45:16 +13:00
C.QWebPage_setNetworkAccessManager(this.h, (*C.QNetworkAccessManager)(manager.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) NetworkAccessManager() *network.QNetworkAccessManager {
2025-02-01 13:45:16 +13:00
return network.UnsafeNewQNetworkAccessManager(unsafe.Pointer(C.QWebPage_networkAccessManager(this.h)))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) SetPluginFactory(factory *QWebPluginFactory) {
2025-02-01 13:45:16 +13:00
C.QWebPage_setPluginFactory(this.h, factory.cPointer())
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) PluginFactory() *QWebPluginFactory {
2025-02-01 13:45:16 +13:00
return newQWebPluginFactory(C.QWebPage_pluginFactory(this.h))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) TotalBytes() uint64 {
2025-02-01 13:45:16 +13:00
return (uint64)(C.QWebPage_totalBytes(this.h))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) BytesReceived() uint64 {
2025-02-01 13:45:16 +13:00
return (uint64)(C.QWebPage_bytesReceived(this.h))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) VisibilityState() QWebPage__VisibilityState {
2025-02-01 13:45:16 +13:00
return (QWebPage__VisibilityState)(C.QWebPage_visibilityState(this.h))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) SetVisibilityState(visibilityState QWebPage__VisibilityState) {
2025-02-01 13:45:16 +13:00
C.QWebPage_setVisibilityState(this.h, (C.int)(visibilityState))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) RecentlyAudible() bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QWebPage_recentlyAudible(this.h))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) HasSelection() bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QWebPage_hasSelection(this.h))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) SelectedText() string {
2025-02-01 13:45:16 +13:00
var _ms C.struct_miqt_string = C.QWebPage_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 *QWebPage) SelectedHtml() string {
2025-02-01 13:45:16 +13:00
var _ms C.struct_miqt_string = C.QWebPage_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 *QWebPage) Action(action QWebPage__WebAction) *qt.QAction {
2025-02-01 13:45:16 +13:00
return qt.UnsafeNewQAction(unsafe.Pointer(C.QWebPage_action(this.h, (C.int)(action))))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) CustomAction(action int) *qt.QAction {
2025-02-01 13:45:16 +13:00
return qt.UnsafeNewQAction(unsafe.Pointer(C.QWebPage_customAction(this.h, (C.int)(action))))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) TriggerAction(action QWebPage__WebAction, checked bool) {
2025-02-01 13:45:16 +13:00
C.QWebPage_triggerAction(this.h, (C.int)(action), (C.bool)(checked))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) SetDevicePixelRatio(ratio float64) {
2025-02-01 13:45:16 +13:00
C.QWebPage_setDevicePixelRatio(this.h, (C.double)(ratio))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) DevicePixelRatio() float64 {
2025-02-01 13:45:16 +13:00
return (float64)(C.QWebPage_devicePixelRatio(this.h))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) ResetDevicePixelRatio() {
2025-02-01 13:45:16 +13:00
C.QWebPage_resetDevicePixelRatio(this.h)
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) ViewportSize() *qt.QSize {
2025-02-01 13:45:16 +13:00
_goptr := qt.UnsafeNewQSize(unsafe.Pointer(C.QWebPage_viewportSize(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 *QWebPage) SetViewportSize(size *qt.QSize) {
2025-02-01 13:45:16 +13:00
C.QWebPage_setViewportSize(this.h, (*C.QSize)(size.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) ViewportAttributesForSize(availableSize *qt.QSize) *QWebPage__ViewportAttributes {
2025-02-01 13:45:16 +13:00
_goptr := newQWebPage__ViewportAttributes(C.QWebPage_viewportAttributesForSize(this.h, (*C.QSize)(availableSize.UnsafePointer())))
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 *QWebPage) PreferredContentsSize() *qt.QSize {
2025-02-01 13:45:16 +13:00
_goptr := qt.UnsafeNewQSize(unsafe.Pointer(C.QWebPage_preferredContentsSize(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 *QWebPage) SetPreferredContentsSize(size *qt.QSize) {
2025-02-01 13:45:16 +13:00
C.QWebPage_setPreferredContentsSize(this.h, (*C.QSize)(size.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) SetActualVisibleContentRect(rect *qt.QRect) {
2025-02-01 13:45:16 +13:00
C.QWebPage_setActualVisibleContentRect(this.h, (*C.QRect)(rect.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) Event(param1 *qt.QEvent) bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QWebPage_event(this.h, (*C.QEvent)(param1.UnsafePointer())))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) FocusNextPrevChild(next bool) bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QWebPage_focusNextPrevChild(this.h, (C.bool)(next)))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) InputMethodQuery(property qt.InputMethodQuery) *qt.QVariant {
2025-02-01 13:45:16 +13:00
_goptr := qt.UnsafeNewQVariant(unsafe.Pointer(C.QWebPage_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 *QWebPage) 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.QWebPage_findText(this.h, subString_ms))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) SetForwardUnsupportedContent(forward bool) {
2025-02-01 13:45:16 +13:00
C.QWebPage_setForwardUnsupportedContent(this.h, (C.bool)(forward))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) ForwardUnsupportedContent() bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QWebPage_forwardUnsupportedContent(this.h))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) SetLinkDelegationPolicy(policy QWebPage__LinkDelegationPolicy) {
2025-02-01 13:45:16 +13:00
C.QWebPage_setLinkDelegationPolicy(this.h, (C.int)(policy))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) LinkDelegationPolicy() QWebPage__LinkDelegationPolicy {
2025-02-01 13:45:16 +13:00
return (QWebPage__LinkDelegationPolicy)(C.QWebPage_linkDelegationPolicy(this.h))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) SetPalette(palette *qt.QPalette) {
2025-02-01 13:45:16 +13:00
C.QWebPage_setPalette(this.h, (*C.QPalette)(palette.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) Palette() *qt.QPalette {
2025-02-01 13:45:16 +13:00
_goptr := qt.UnsafeNewQPalette(unsafe.Pointer(C.QWebPage_palette(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 *QWebPage) SetContentEditable(editable bool) {
2025-02-01 13:45:16 +13:00
C.QWebPage_setContentEditable(this.h, (C.bool)(editable))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) IsContentEditable() bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QWebPage_isContentEditable(this.h))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) SwallowContextMenuEvent(event *qt.QContextMenuEvent) bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QWebPage_swallowContextMenuEvent(this.h, (*C.QContextMenuEvent)(event.UnsafePointer())))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) UpdatePositionDependentActions(pos *qt.QPoint) {
2025-02-01 13:45:16 +13:00
C.QWebPage_updatePositionDependentActions(this.h, (*C.QPoint)(pos.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) CreateStandardContextMenu() *qt.QMenu {
2025-02-01 13:45:16 +13:00
return qt.UnsafeNewQMenu(unsafe.Pointer(C.QWebPage_createStandardContextMenu(this.h)))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) SetFeaturePermission(frame *QWebFrame, feature QWebPage__Feature, policy QWebPage__PermissionPolicy) {
2025-02-01 13:45:16 +13:00
C.QWebPage_setFeaturePermission(this.h, frame.cPointer(), (C.int)(feature), (C.int)(policy))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) SupportedContentTypes() []string {
2025-02-01 13:45:16 +13:00
var _ma C.struct_miqt_array = C.QWebPage_supportedContentTypes(this.h)
2024-11-26 22:31:32 +13:00
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
var _lv_ms C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms.data))
_ret[i] = _lv_ret
}
return _ret
}
func (this *QWebPage) SupportsContentType(mimeType string) bool {
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
return (bool)(C.QWebPage_supportsContentType(this.h, mimeType_ms))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) Extension(extension QWebPage__Extension, option *QWebPage__ExtensionOption, output *QWebPage__ExtensionReturn) bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QWebPage_extension(this.h, (C.int)(extension), option.cPointer(), output.cPointer()))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) SupportsExtension(extension QWebPage__Extension) bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QWebPage_supportsExtension(this.h, (C.int)(extension)))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) ShouldInterruptJavaScript() bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QWebPage_shouldInterruptJavaScript(this.h))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) LoadStarted() {
2025-02-01 13:45:16 +13:00
C.QWebPage_loadStarted(this.h)
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) OnLoadStarted(slot func()) {
2025-02-01 13:45:16 +13:00
C.QWebPage_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_QWebPage_loadStarted
func miqt_exec_callback_QWebPage_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 *QWebPage) LoadProgress(progress int) {
2025-02-01 13:45:16 +13:00
C.QWebPage_loadProgress(this.h, (C.int)(progress))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) OnLoadProgress(slot func(progress int)) {
2025-02-01 13:45:16 +13:00
C.QWebPage_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_QWebPage_loadProgress
func miqt_exec_callback_QWebPage_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 *QWebPage) LoadFinished(ok bool) {
2025-02-01 13:45:16 +13:00
C.QWebPage_loadFinished(this.h, (C.bool)(ok))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) OnLoadFinished(slot func(ok bool)) {
2025-02-01 13:45:16 +13:00
C.QWebPage_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_QWebPage_loadFinished
func miqt_exec_callback_QWebPage_loadFinished(cb C.intptr_t, ok C.bool) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(ok bool))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (bool)(ok)
gofunc(slotval1)
}
func (this *QWebPage) LinkHovered(link string, title string, textContent string) {
link_ms := C.struct_miqt_string{}
link_ms.data = C.CString(link)
link_ms.len = C.size_t(len(link))
defer C.free(unsafe.Pointer(link_ms.data))
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))
textContent_ms := C.struct_miqt_string{}
textContent_ms.data = C.CString(textContent)
textContent_ms.len = C.size_t(len(textContent))
defer C.free(unsafe.Pointer(textContent_ms.data))
2025-02-01 13:45:16 +13:00
C.QWebPage_linkHovered(this.h, link_ms, title_ms, textContent_ms)
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) OnLinkHovered(slot func(link string, title string, textContent string)) {
2025-02-01 13:45:16 +13:00
C.QWebPage_connect_linkHovered(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_QWebPage_linkHovered
func miqt_exec_callback_QWebPage_linkHovered(cb C.intptr_t, link C.struct_miqt_string, title C.struct_miqt_string, textContent C.struct_miqt_string) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(link string, title string, textContent string))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
var link_ms C.struct_miqt_string = link
link_ret := C.GoStringN(link_ms.data, C.int(int64(link_ms.len)))
C.free(unsafe.Pointer(link_ms.data))
slotval1 := link_ret
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))
slotval2 := title_ret
var textContent_ms C.struct_miqt_string = textContent
textContent_ret := C.GoStringN(textContent_ms.data, C.int(int64(textContent_ms.len)))
C.free(unsafe.Pointer(textContent_ms.data))
slotval3 := textContent_ret
gofunc(slotval1, slotval2, slotval3)
}
func (this *QWebPage) 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.QWebPage_statusBarMessage(this.h, text_ms)
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) OnStatusBarMessage(slot func(text string)) {
2025-02-01 13:45:16 +13:00
C.QWebPage_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_QWebPage_statusBarMessage
func miqt_exec_callback_QWebPage_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 *QWebPage) SelectionChanged() {
2025-02-01 13:45:16 +13:00
C.QWebPage_selectionChanged(this.h)
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) OnSelectionChanged(slot func()) {
2025-02-01 13:45:16 +13:00
C.QWebPage_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_QWebPage_selectionChanged
func miqt_exec_callback_QWebPage_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 *QWebPage) FrameCreated(frame *QWebFrame) {
2025-02-01 13:45:16 +13:00
C.QWebPage_frameCreated(this.h, frame.cPointer())
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) OnFrameCreated(slot func(frame *QWebFrame)) {
2025-02-01 13:45:16 +13:00
C.QWebPage_connect_frameCreated(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_QWebPage_frameCreated
func miqt_exec_callback_QWebPage_frameCreated(cb C.intptr_t, frame *C.QWebFrame) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(frame *QWebFrame))
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 := newQWebFrame(frame)
2024-11-26 22:31:32 +13:00
gofunc(slotval1)
}
func (this *QWebPage) GeometryChangeRequested(geom *qt.QRect) {
2025-02-01 13:45:16 +13:00
C.QWebPage_geometryChangeRequested(this.h, (*C.QRect)(geom.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) OnGeometryChangeRequested(slot func(geom *qt.QRect)) {
2025-02-01 13:45:16 +13:00
C.QWebPage_connect_geometryChangeRequested(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_QWebPage_geometryChangeRequested
func miqt_exec_callback_QWebPage_geometryChangeRequested(cb C.intptr_t, geom *C.QRect) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(geom *qt.QRect))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := qt.UnsafeNewQRect(unsafe.Pointer(geom))
gofunc(slotval1)
}
func (this *QWebPage) RepaintRequested(dirtyRect *qt.QRect) {
2025-02-01 13:45:16 +13:00
C.QWebPage_repaintRequested(this.h, (*C.QRect)(dirtyRect.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) OnRepaintRequested(slot func(dirtyRect *qt.QRect)) {
2025-02-01 13:45:16 +13:00
C.QWebPage_connect_repaintRequested(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_QWebPage_repaintRequested
func miqt_exec_callback_QWebPage_repaintRequested(cb C.intptr_t, dirtyRect *C.QRect) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(dirtyRect *qt.QRect))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := qt.UnsafeNewQRect(unsafe.Pointer(dirtyRect))
gofunc(slotval1)
}
func (this *QWebPage) ScrollRequested(dx int, dy int, scrollViewRect *qt.QRect) {
2025-02-01 13:45:16 +13:00
C.QWebPage_scrollRequested(this.h, (C.int)(dx), (C.int)(dy), (*C.QRect)(scrollViewRect.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) OnScrollRequested(slot func(dx int, dy int, scrollViewRect *qt.QRect)) {
2025-02-01 13:45:16 +13:00
C.QWebPage_connect_scrollRequested(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_QWebPage_scrollRequested
func miqt_exec_callback_QWebPage_scrollRequested(cb C.intptr_t, dx C.int, dy C.int, scrollViewRect *C.QRect) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(dx int, dy int, scrollViewRect *qt.QRect))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (int)(dx)
slotval2 := (int)(dy)
slotval3 := qt.UnsafeNewQRect(unsafe.Pointer(scrollViewRect))
gofunc(slotval1, slotval2, slotval3)
}
func (this *QWebPage) WindowCloseRequested() {
2025-02-01 13:45:16 +13:00
C.QWebPage_windowCloseRequested(this.h)
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) OnWindowCloseRequested(slot func()) {
2025-02-01 13:45:16 +13:00
C.QWebPage_connect_windowCloseRequested(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_QWebPage_windowCloseRequested
func miqt_exec_callback_QWebPage_windowCloseRequested(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 *QWebPage) PrintRequested(frame *QWebFrame) {
2025-02-01 13:45:16 +13:00
C.QWebPage_printRequested(this.h, frame.cPointer())
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) OnPrintRequested(slot func(frame *QWebFrame)) {
2025-02-01 13:45:16 +13:00
C.QWebPage_connect_printRequested(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_QWebPage_printRequested
func miqt_exec_callback_QWebPage_printRequested(cb C.intptr_t, frame *C.QWebFrame) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(frame *QWebFrame))
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 := newQWebFrame(frame)
2024-11-26 22:31:32 +13:00
gofunc(slotval1)
}
func (this *QWebPage) LinkClicked(url *qt.QUrl) {
2025-02-01 13:45:16 +13:00
C.QWebPage_linkClicked(this.h, (*C.QUrl)(url.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) OnLinkClicked(slot func(url *qt.QUrl)) {
2025-02-01 13:45:16 +13:00
C.QWebPage_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_QWebPage_linkClicked
func miqt_exec_callback_QWebPage_linkClicked(cb C.intptr_t, url *C.QUrl) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(url *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(url))
gofunc(slotval1)
}
func (this *QWebPage) ToolBarVisibilityChangeRequested(visible bool) {
2025-02-01 13:45:16 +13:00
C.QWebPage_toolBarVisibilityChangeRequested(this.h, (C.bool)(visible))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) OnToolBarVisibilityChangeRequested(slot func(visible bool)) {
2025-02-01 13:45:16 +13:00
C.QWebPage_connect_toolBarVisibilityChangeRequested(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_QWebPage_toolBarVisibilityChangeRequested
func miqt_exec_callback_QWebPage_toolBarVisibilityChangeRequested(cb C.intptr_t, visible C.bool) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(visible bool))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (bool)(visible)
gofunc(slotval1)
}
func (this *QWebPage) StatusBarVisibilityChangeRequested(visible bool) {
2025-02-01 13:45:16 +13:00
C.QWebPage_statusBarVisibilityChangeRequested(this.h, (C.bool)(visible))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) OnStatusBarVisibilityChangeRequested(slot func(visible bool)) {
2025-02-01 13:45:16 +13:00
C.QWebPage_connect_statusBarVisibilityChangeRequested(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_QWebPage_statusBarVisibilityChangeRequested
func miqt_exec_callback_QWebPage_statusBarVisibilityChangeRequested(cb C.intptr_t, visible C.bool) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(visible bool))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (bool)(visible)
gofunc(slotval1)
}
func (this *QWebPage) MenuBarVisibilityChangeRequested(visible bool) {
2025-02-01 13:45:16 +13:00
C.QWebPage_menuBarVisibilityChangeRequested(this.h, (C.bool)(visible))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) OnMenuBarVisibilityChangeRequested(slot func(visible bool)) {
2025-02-01 13:45:16 +13:00
C.QWebPage_connect_menuBarVisibilityChangeRequested(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_QWebPage_menuBarVisibilityChangeRequested
func miqt_exec_callback_QWebPage_menuBarVisibilityChangeRequested(cb C.intptr_t, visible C.bool) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(visible bool))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (bool)(visible)
gofunc(slotval1)
}
func (this *QWebPage) UnsupportedContent(reply *network.QNetworkReply) {
2025-02-01 13:45:16 +13:00
C.QWebPage_unsupportedContent(this.h, (*C.QNetworkReply)(reply.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) OnUnsupportedContent(slot func(reply *network.QNetworkReply)) {
2025-02-01 13:45:16 +13:00
C.QWebPage_connect_unsupportedContent(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_QWebPage_unsupportedContent
func miqt_exec_callback_QWebPage_unsupportedContent(cb C.intptr_t, reply *C.QNetworkReply) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(reply *network.QNetworkReply))
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 := network.UnsafeNewQNetworkReply(unsafe.Pointer(reply))
2024-11-26 22:31:32 +13:00
gofunc(slotval1)
}
func (this *QWebPage) DownloadRequested(request *network.QNetworkRequest) {
2025-02-01 13:45:16 +13:00
C.QWebPage_downloadRequested(this.h, (*C.QNetworkRequest)(request.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) OnDownloadRequested(slot func(request *network.QNetworkRequest)) {
2025-02-01 13:45:16 +13:00
C.QWebPage_connect_downloadRequested(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_QWebPage_downloadRequested
func miqt_exec_callback_QWebPage_downloadRequested(cb C.intptr_t, request *C.QNetworkRequest) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(request *network.QNetworkRequest))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := network.UnsafeNewQNetworkRequest(unsafe.Pointer(request))
gofunc(slotval1)
}
func (this *QWebPage) FocusedElementChanged(element *QWebElement) {
2025-02-01 13:45:16 +13:00
C.QWebPage_focusedElementChanged(this.h, element.cPointer())
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) OnFocusedElementChanged(slot func(element *QWebElement)) {
2025-02-01 13:45:16 +13:00
C.QWebPage_connect_focusedElementChanged(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_QWebPage_focusedElementChanged
func miqt_exec_callback_QWebPage_focusedElementChanged(cb C.intptr_t, element *C.QWebElement) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(element *QWebElement))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQWebElement(element)
2024-11-26 22:31:32 +13:00
gofunc(slotval1)
}
func (this *QWebPage) MicroFocusChanged() {
2025-02-01 13:45:16 +13:00
C.QWebPage_microFocusChanged(this.h)
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) OnMicroFocusChanged(slot func()) {
2025-02-01 13:45:16 +13:00
C.QWebPage_connect_microFocusChanged(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_QWebPage_microFocusChanged
func miqt_exec_callback_QWebPage_microFocusChanged(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 *QWebPage) ContentsChanged() {
2025-02-01 13:45:16 +13:00
C.QWebPage_contentsChanged(this.h)
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) OnContentsChanged(slot func()) {
2025-02-01 13:45:16 +13:00
C.QWebPage_connect_contentsChanged(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_QWebPage_contentsChanged
func miqt_exec_callback_QWebPage_contentsChanged(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 *QWebPage) DatabaseQuotaExceeded(frame *QWebFrame, databaseName string) {
databaseName_ms := C.struct_miqt_string{}
databaseName_ms.data = C.CString(databaseName)
databaseName_ms.len = C.size_t(len(databaseName))
defer C.free(unsafe.Pointer(databaseName_ms.data))
2025-02-01 13:45:16 +13:00
C.QWebPage_databaseQuotaExceeded(this.h, frame.cPointer(), databaseName_ms)
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) OnDatabaseQuotaExceeded(slot func(frame *QWebFrame, databaseName string)) {
2025-02-01 13:45:16 +13:00
C.QWebPage_connect_databaseQuotaExceeded(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_QWebPage_databaseQuotaExceeded
func miqt_exec_callback_QWebPage_databaseQuotaExceeded(cb C.intptr_t, frame *C.QWebFrame, databaseName C.struct_miqt_string) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(frame *QWebFrame, databaseName string))
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 := newQWebFrame(frame)
2024-11-26 22:31:32 +13:00
var databaseName_ms C.struct_miqt_string = databaseName
databaseName_ret := C.GoStringN(databaseName_ms.data, C.int(int64(databaseName_ms.len)))
C.free(unsafe.Pointer(databaseName_ms.data))
slotval2 := databaseName_ret
gofunc(slotval1, slotval2)
}
func (this *QWebPage) ApplicationCacheQuotaExceeded(origin *QWebSecurityOrigin, defaultOriginQuota uint64, totalSpaceNeeded uint64) {
2025-02-01 13:45:16 +13:00
C.QWebPage_applicationCacheQuotaExceeded(this.h, origin.cPointer(), (C.ulonglong)(defaultOriginQuota), (C.ulonglong)(totalSpaceNeeded))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) OnApplicationCacheQuotaExceeded(slot func(origin *QWebSecurityOrigin, defaultOriginQuota uint64, totalSpaceNeeded uint64)) {
2025-02-01 13:45:16 +13:00
C.QWebPage_connect_applicationCacheQuotaExceeded(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_QWebPage_applicationCacheQuotaExceeded
func miqt_exec_callback_QWebPage_applicationCacheQuotaExceeded(cb C.intptr_t, origin *C.QWebSecurityOrigin, defaultOriginQuota C.ulonglong, totalSpaceNeeded C.ulonglong) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(origin *QWebSecurityOrigin, defaultOriginQuota uint64, totalSpaceNeeded uint64))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQWebSecurityOrigin(origin)
2024-11-26 22:31:32 +13:00
slotval2 := (uint64)(defaultOriginQuota)
slotval3 := (uint64)(totalSpaceNeeded)
gofunc(slotval1, slotval2, slotval3)
}
func (this *QWebPage) SaveFrameStateRequested(frame *QWebFrame, item *QWebHistoryItem) {
2025-02-01 13:45:16 +13:00
C.QWebPage_saveFrameStateRequested(this.h, frame.cPointer(), item.cPointer())
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) OnSaveFrameStateRequested(slot func(frame *QWebFrame, item *QWebHistoryItem)) {
2025-02-01 13:45:16 +13:00
C.QWebPage_connect_saveFrameStateRequested(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_QWebPage_saveFrameStateRequested
func miqt_exec_callback_QWebPage_saveFrameStateRequested(cb C.intptr_t, frame *C.QWebFrame, item *C.QWebHistoryItem) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(frame *QWebFrame, item *QWebHistoryItem))
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 := newQWebFrame(frame)
slotval2 := newQWebHistoryItem(item)
2024-11-26 22:31:32 +13:00
gofunc(slotval1, slotval2)
}
func (this *QWebPage) RestoreFrameStateRequested(frame *QWebFrame) {
2025-02-01 13:45:16 +13:00
C.QWebPage_restoreFrameStateRequested(this.h, frame.cPointer())
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) OnRestoreFrameStateRequested(slot func(frame *QWebFrame)) {
2025-02-01 13:45:16 +13:00
C.QWebPage_connect_restoreFrameStateRequested(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_QWebPage_restoreFrameStateRequested
func miqt_exec_callback_QWebPage_restoreFrameStateRequested(cb C.intptr_t, frame *C.QWebFrame) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(frame *QWebFrame))
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 := newQWebFrame(frame)
2024-11-26 22:31:32 +13:00
gofunc(slotval1)
}
func (this *QWebPage) ViewportChangeRequested() {
2025-02-01 13:45:16 +13:00
C.QWebPage_viewportChangeRequested(this.h)
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) OnViewportChangeRequested(slot func()) {
2025-02-01 13:45:16 +13:00
C.QWebPage_connect_viewportChangeRequested(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_QWebPage_viewportChangeRequested
func miqt_exec_callback_QWebPage_viewportChangeRequested(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 *QWebPage) FeaturePermissionRequested(frame *QWebFrame, feature QWebPage__Feature) {
2025-02-01 13:45:16 +13:00
C.QWebPage_featurePermissionRequested(this.h, frame.cPointer(), (C.int)(feature))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) OnFeaturePermissionRequested(slot func(frame *QWebFrame, feature QWebPage__Feature)) {
2025-02-01 13:45:16 +13:00
C.QWebPage_connect_featurePermissionRequested(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_QWebPage_featurePermissionRequested
func miqt_exec_callback_QWebPage_featurePermissionRequested(cb C.intptr_t, frame *C.QWebFrame, feature C.int) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(frame *QWebFrame, feature QWebPage__Feature))
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 := newQWebFrame(frame)
2024-11-26 22:31:32 +13:00
slotval2 := (QWebPage__Feature)(feature)
gofunc(slotval1, slotval2)
}
func (this *QWebPage) FeaturePermissionRequestCanceled(frame *QWebFrame, feature QWebPage__Feature) {
2025-02-01 13:45:16 +13:00
C.QWebPage_featurePermissionRequestCanceled(this.h, frame.cPointer(), (C.int)(feature))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) OnFeaturePermissionRequestCanceled(slot func(frame *QWebFrame, feature QWebPage__Feature)) {
2025-02-01 13:45:16 +13:00
C.QWebPage_connect_featurePermissionRequestCanceled(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_QWebPage_featurePermissionRequestCanceled
func miqt_exec_callback_QWebPage_featurePermissionRequestCanceled(cb C.intptr_t, frame *C.QWebFrame, feature C.int) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(frame *QWebFrame, feature QWebPage__Feature))
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 := newQWebFrame(frame)
2024-11-26 22:31:32 +13:00
slotval2 := (QWebPage__Feature)(feature)
gofunc(slotval1, slotval2)
}
func (this *QWebPage) FullScreenRequested(fullScreenRequest QWebFullScreenRequest) {
2025-02-01 13:45:16 +13:00
C.QWebPage_fullScreenRequested(this.h, fullScreenRequest.cPointer())
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) OnFullScreenRequested(slot func(fullScreenRequest QWebFullScreenRequest)) {
2025-02-01 13:45:16 +13:00
C.QWebPage_connect_fullScreenRequested(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_QWebPage_fullScreenRequested
func miqt_exec_callback_QWebPage_fullScreenRequested(cb C.intptr_t, fullScreenRequest *C.QWebFullScreenRequest) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(fullScreenRequest QWebFullScreenRequest))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
fullScreenRequest_goptr := newQWebFullScreenRequest(fullScreenRequest)
2024-11-26 22:31:32 +13:00
fullScreenRequest_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
slotval1 := *fullScreenRequest_goptr
gofunc(slotval1)
}
func (this *QWebPage) ConsoleMessageReceived(source QWebPage__MessageSource, level QWebPage__MessageLevel, message string, lineNumber int, sourceID string) {
message_ms := C.struct_miqt_string{}
message_ms.data = C.CString(message)
message_ms.len = C.size_t(len(message))
defer C.free(unsafe.Pointer(message_ms.data))
sourceID_ms := C.struct_miqt_string{}
sourceID_ms.data = C.CString(sourceID)
sourceID_ms.len = C.size_t(len(sourceID))
defer C.free(unsafe.Pointer(sourceID_ms.data))
2025-02-01 13:45:16 +13:00
C.QWebPage_consoleMessageReceived(this.h, (C.int)(source), (C.int)(level), message_ms, (C.int)(lineNumber), sourceID_ms)
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) OnConsoleMessageReceived(slot func(source QWebPage__MessageSource, level QWebPage__MessageLevel, message string, lineNumber int, sourceID string)) {
2025-02-01 13:45:16 +13:00
C.QWebPage_connect_consoleMessageReceived(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_QWebPage_consoleMessageReceived
func miqt_exec_callback_QWebPage_consoleMessageReceived(cb C.intptr_t, source C.int, level C.int, message C.struct_miqt_string, lineNumber C.int, sourceID C.struct_miqt_string) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(source QWebPage__MessageSource, level QWebPage__MessageLevel, message string, lineNumber int, sourceID string))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (QWebPage__MessageSource)(source)
slotval2 := (QWebPage__MessageLevel)(level)
var message_ms C.struct_miqt_string = message
message_ret := C.GoStringN(message_ms.data, C.int(int64(message_ms.len)))
C.free(unsafe.Pointer(message_ms.data))
slotval3 := message_ret
slotval4 := (int)(lineNumber)
var sourceID_ms C.struct_miqt_string = sourceID
sourceID_ret := C.GoStringN(sourceID_ms.data, C.int(int64(sourceID_ms.len)))
C.free(unsafe.Pointer(sourceID_ms.data))
slotval5 := sourceID_ret
gofunc(slotval1, slotval2, slotval3, slotval4, slotval5)
}
func (this *QWebPage) RecentlyAudibleChanged(recentlyAudible bool) {
2025-02-01 13:45:16 +13:00
C.QWebPage_recentlyAudibleChanged(this.h, (C.bool)(recentlyAudible))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) OnRecentlyAudibleChanged(slot func(recentlyAudible bool)) {
2025-02-01 13:45:16 +13:00
C.QWebPage_connect_recentlyAudibleChanged(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_QWebPage_recentlyAudibleChanged
func miqt_exec_callback_QWebPage_recentlyAudibleChanged(cb C.intptr_t, recentlyAudible C.bool) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(recentlyAudible bool))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (bool)(recentlyAudible)
gofunc(slotval1)
}
func QWebPage_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.QWebPage_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 QWebPage_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.QWebPage_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 QWebPage_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.QWebPage_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 QWebPage_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.QWebPage_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 *QWebPage) 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.QWebPage_findText2(this.h, subString_ms, (C.int)(options)))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage) callVirtualBase_TriggerAction(action QWebPage__WebAction, checked bool) {
2025-02-01 13:45:16 +13:00
C.QWebPage_virtualbase_triggerAction(unsafe.Pointer(this.h), (C.int)(action), (C.bool)(checked))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebPage) OntriggerAction(slot func(super func(action QWebPage__WebAction, checked bool), action QWebPage__WebAction, checked bool)) {
ok := C.QWebPage_override_virtual_triggerAction(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_QWebPage_triggerAction
func miqt_exec_callback_QWebPage_triggerAction(self *C.QWebPage, cb C.intptr_t, action C.int, checked C.bool) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(action QWebPage__WebAction, checked bool), action QWebPage__WebAction, checked bool))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (QWebPage__WebAction)(action)
slotval2 := (bool)(checked)
gofunc((&QWebPage{h: self}).callVirtualBase_TriggerAction, slotval1, slotval2)
}
func (this *QWebPage) callVirtualBase_Event(param1 *qt.QEvent) bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QWebPage_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 *QWebPage) Onevent(slot func(super func(param1 *qt.QEvent) bool, param1 *qt.QEvent) bool) {
ok := C.QWebPage_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_QWebPage_event
func miqt_exec_callback_QWebPage_event(self *C.QWebPage, 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((&QWebPage{h: self}).callVirtualBase_Event, slotval1)
return (C.bool)(virtualReturn)
}
func (this *QWebPage) callVirtualBase_Extension(extension QWebPage__Extension, option *QWebPage__ExtensionOption, output *QWebPage__ExtensionReturn) bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QWebPage_virtualbase_extension(unsafe.Pointer(this.h), (C.int)(extension), option.cPointer(), output.cPointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebPage) Onextension(slot func(super func(extension QWebPage__Extension, option *QWebPage__ExtensionOption, output *QWebPage__ExtensionReturn) bool, extension QWebPage__Extension, option *QWebPage__ExtensionOption, output *QWebPage__ExtensionReturn) bool) {
ok := C.QWebPage_override_virtual_extension(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_QWebPage_extension
func miqt_exec_callback_QWebPage_extension(self *C.QWebPage, cb C.intptr_t, extension C.int, option *C.QWebPage__ExtensionOption, output *C.QWebPage__ExtensionReturn) C.bool {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(extension QWebPage__Extension, option *QWebPage__ExtensionOption, output *QWebPage__ExtensionReturn) bool, extension QWebPage__Extension, option *QWebPage__ExtensionOption, output *QWebPage__ExtensionReturn) bool)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (QWebPage__Extension)(extension)
slotval2 := newQWebPage__ExtensionOption(option)
slotval3 := newQWebPage__ExtensionReturn(output)
2024-11-26 22:31:32 +13:00
virtualReturn := gofunc((&QWebPage{h: self}).callVirtualBase_Extension, slotval1, slotval2, slotval3)
return (C.bool)(virtualReturn)
}
func (this *QWebPage) callVirtualBase_SupportsExtension(extension QWebPage__Extension) bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QWebPage_virtualbase_supportsExtension(unsafe.Pointer(this.h), (C.int)(extension)))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebPage) OnsupportsExtension(slot func(super func(extension QWebPage__Extension) bool, extension QWebPage__Extension) bool) {
ok := C.QWebPage_override_virtual_supportsExtension(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_QWebPage_supportsExtension
func miqt_exec_callback_QWebPage_supportsExtension(self *C.QWebPage, cb C.intptr_t, extension C.int) C.bool {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(extension QWebPage__Extension) bool, extension QWebPage__Extension) bool)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (QWebPage__Extension)(extension)
virtualReturn := gofunc((&QWebPage{h: self}).callVirtualBase_SupportsExtension, slotval1)
return (C.bool)(virtualReturn)
}
func (this *QWebPage) callVirtualBase_ShouldInterruptJavaScript() bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QWebPage_virtualbase_shouldInterruptJavaScript(unsafe.Pointer(this.h)))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebPage) OnshouldInterruptJavaScript(slot func(super func() bool) bool) {
ok := C.QWebPage_override_virtual_shouldInterruptJavaScript(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_QWebPage_shouldInterruptJavaScript
func miqt_exec_callback_QWebPage_shouldInterruptJavaScript(self *C.QWebPage, 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((&QWebPage{h: self}).callVirtualBase_ShouldInterruptJavaScript)
return (C.bool)(virtualReturn)
}
func (this *QWebPage) callVirtualBase_CreateWindow(typeVal QWebPage__WebWindowType) *QWebPage {
2025-02-01 13:45:16 +13:00
return newQWebPage(C.QWebPage_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 *QWebPage) OncreateWindow(slot func(super func(typeVal QWebPage__WebWindowType) *QWebPage, typeVal QWebPage__WebWindowType) *QWebPage) {
ok := C.QWebPage_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_QWebPage_createWindow
func miqt_exec_callback_QWebPage_createWindow(self *C.QWebPage, cb C.intptr_t, typeVal C.int) *C.QWebPage {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(typeVal QWebPage__WebWindowType) *QWebPage, typeVal QWebPage__WebWindowType) *QWebPage)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (QWebPage__WebWindowType)(typeVal)
virtualReturn := gofunc((&QWebPage{h: self}).callVirtualBase_CreateWindow, slotval1)
return virtualReturn.cPointer()
}
func (this *QWebPage) callVirtualBase_CreatePlugin(classid string, url *qt.QUrl, paramNames []string, paramValues []string) *qt.QObject {
classid_ms := C.struct_miqt_string{}
classid_ms.data = C.CString(classid)
classid_ms.len = C.size_t(len(classid))
defer C.free(unsafe.Pointer(classid_ms.data))
paramNames_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(paramNames))))
defer C.free(unsafe.Pointer(paramNames_CArray))
for i := range paramNames {
paramNames_i_ms := C.struct_miqt_string{}
paramNames_i_ms.data = C.CString(paramNames[i])
paramNames_i_ms.len = C.size_t(len(paramNames[i]))
defer C.free(unsafe.Pointer(paramNames_i_ms.data))
paramNames_CArray[i] = paramNames_i_ms
}
paramNames_ma := C.struct_miqt_array{len: C.size_t(len(paramNames)), data: unsafe.Pointer(paramNames_CArray)}
paramValues_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(paramValues))))
defer C.free(unsafe.Pointer(paramValues_CArray))
for i := range paramValues {
paramValues_i_ms := C.struct_miqt_string{}
paramValues_i_ms.data = C.CString(paramValues[i])
paramValues_i_ms.len = C.size_t(len(paramValues[i]))
defer C.free(unsafe.Pointer(paramValues_i_ms.data))
paramValues_CArray[i] = paramValues_i_ms
}
paramValues_ma := C.struct_miqt_array{len: C.size_t(len(paramValues)), data: unsafe.Pointer(paramValues_CArray)}
2025-02-01 13:45:16 +13:00
return qt.UnsafeNewQObject(unsafe.Pointer(C.QWebPage_virtualbase_createPlugin(unsafe.Pointer(this.h), classid_ms, (*C.QUrl)(url.UnsafePointer()), paramNames_ma, paramValues_ma)))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebPage) OncreatePlugin(slot func(super func(classid string, url *qt.QUrl, paramNames []string, paramValues []string) *qt.QObject, classid string, url *qt.QUrl, paramNames []string, paramValues []string) *qt.QObject) {
ok := C.QWebPage_override_virtual_createPlugin(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_QWebPage_createPlugin
func miqt_exec_callback_QWebPage_createPlugin(self *C.QWebPage, cb C.intptr_t, classid C.struct_miqt_string, url *C.QUrl, paramNames C.struct_miqt_array, paramValues C.struct_miqt_array) *C.QObject {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(classid string, url *qt.QUrl, paramNames []string, paramValues []string) *qt.QObject, classid string, url *qt.QUrl, paramNames []string, paramValues []string) *qt.QObject)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
var classid_ms C.struct_miqt_string = classid
classid_ret := C.GoStringN(classid_ms.data, C.int(int64(classid_ms.len)))
C.free(unsafe.Pointer(classid_ms.data))
slotval1 := classid_ret
slotval2 := qt.UnsafeNewQUrl(unsafe.Pointer(url))
2024-11-26 22:31:32 +13:00
var paramNames_ma C.struct_miqt_array = paramNames
paramNames_ret := make([]string, int(paramNames_ma.len))
paramNames_outCast := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(paramNames_ma.data)) // hey ya
for i := 0; i < int(paramNames_ma.len); i++ {
var paramNames_lv_ms C.struct_miqt_string = paramNames_outCast[i]
paramNames_lv_ret := C.GoStringN(paramNames_lv_ms.data, C.int(int64(paramNames_lv_ms.len)))
C.free(unsafe.Pointer(paramNames_lv_ms.data))
paramNames_ret[i] = paramNames_lv_ret
}
slotval3 := paramNames_ret
var paramValues_ma C.struct_miqt_array = paramValues
paramValues_ret := make([]string, int(paramValues_ma.len))
paramValues_outCast := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(paramValues_ma.data)) // hey ya
for i := 0; i < int(paramValues_ma.len); i++ {
var paramValues_lv_ms C.struct_miqt_string = paramValues_outCast[i]
paramValues_lv_ret := C.GoStringN(paramValues_lv_ms.data, C.int(int64(paramValues_lv_ms.len)))
C.free(unsafe.Pointer(paramValues_lv_ms.data))
paramValues_ret[i] = paramValues_lv_ret
}
slotval4 := paramValues_ret
virtualReturn := gofunc((&QWebPage{h: self}).callVirtualBase_CreatePlugin, slotval1, slotval2, slotval3, slotval4)
return (*C.QObject)(virtualReturn.UnsafePointer())
}
func (this *QWebPage) callVirtualBase_AcceptNavigationRequest(frame *QWebFrame, request *network.QNetworkRequest, typeVal QWebPage__NavigationType) bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QWebPage_virtualbase_acceptNavigationRequest(unsafe.Pointer(this.h), frame.cPointer(), (*C.QNetworkRequest)(request.UnsafePointer()), (C.int)(typeVal)))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebPage) OnacceptNavigationRequest(slot func(super func(frame *QWebFrame, request *network.QNetworkRequest, typeVal QWebPage__NavigationType) bool, frame *QWebFrame, request *network.QNetworkRequest, typeVal QWebPage__NavigationType) bool) {
ok := C.QWebPage_override_virtual_acceptNavigationRequest(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_QWebPage_acceptNavigationRequest
func miqt_exec_callback_QWebPage_acceptNavigationRequest(self *C.QWebPage, cb C.intptr_t, frame *C.QWebFrame, request *C.QNetworkRequest, typeVal C.int) C.bool {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(frame *QWebFrame, request *network.QNetworkRequest, typeVal QWebPage__NavigationType) bool, frame *QWebFrame, request *network.QNetworkRequest, typeVal QWebPage__NavigationType) bool)
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 := newQWebFrame(frame)
2024-11-26 22:31:32 +13:00
slotval2 := network.UnsafeNewQNetworkRequest(unsafe.Pointer(request))
2024-11-26 22:31:32 +13:00
slotval3 := (QWebPage__NavigationType)(typeVal)
virtualReturn := gofunc((&QWebPage{h: self}).callVirtualBase_AcceptNavigationRequest, slotval1, slotval2, slotval3)
return (C.bool)(virtualReturn)
}
func (this *QWebPage) callVirtualBase_ChooseFile(originatingFrame *QWebFrame, oldFile string) string {
oldFile_ms := C.struct_miqt_string{}
oldFile_ms.data = C.CString(oldFile)
oldFile_ms.len = C.size_t(len(oldFile))
defer C.free(unsafe.Pointer(oldFile_ms.data))
2025-02-01 13:45:16 +13:00
var _ms C.struct_miqt_string = C.QWebPage_virtualbase_chooseFile(unsafe.Pointer(this.h), originatingFrame.cPointer(), oldFile_ms)
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
}
2025-02-01 13:45:16 +13:00
func (this *QWebPage) OnchooseFile(slot func(super func(originatingFrame *QWebFrame, oldFile string) string, originatingFrame *QWebFrame, oldFile string) string) {
ok := C.QWebPage_override_virtual_chooseFile(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_QWebPage_chooseFile
func miqt_exec_callback_QWebPage_chooseFile(self *C.QWebPage, cb C.intptr_t, originatingFrame *C.QWebFrame, oldFile C.struct_miqt_string) C.struct_miqt_string {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(originatingFrame *QWebFrame, oldFile string) string, originatingFrame *QWebFrame, oldFile string) string)
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 := newQWebFrame(originatingFrame)
2024-11-26 22:31:32 +13:00
var oldFile_ms C.struct_miqt_string = oldFile
oldFile_ret := C.GoStringN(oldFile_ms.data, C.int(int64(oldFile_ms.len)))
C.free(unsafe.Pointer(oldFile_ms.data))
slotval2 := oldFile_ret
virtualReturn := gofunc((&QWebPage{h: self}).callVirtualBase_ChooseFile, slotval1, slotval2)
virtualReturn_ms := C.struct_miqt_string{}
virtualReturn_ms.data = C.CString(virtualReturn)
virtualReturn_ms.len = C.size_t(len(virtualReturn))
defer C.free(unsafe.Pointer(virtualReturn_ms.data))
return virtualReturn_ms
}
func (this *QWebPage) callVirtualBase_JavaScriptAlert(originatingFrame *QWebFrame, msg string) {
msg_ms := C.struct_miqt_string{}
msg_ms.data = C.CString(msg)
msg_ms.len = C.size_t(len(msg))
defer C.free(unsafe.Pointer(msg_ms.data))
2025-02-01 13:45:16 +13:00
C.QWebPage_virtualbase_javaScriptAlert(unsafe.Pointer(this.h), originatingFrame.cPointer(), msg_ms)
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebPage) OnjavaScriptAlert(slot func(super func(originatingFrame *QWebFrame, msg string), originatingFrame *QWebFrame, msg string)) {
ok := C.QWebPage_override_virtual_javaScriptAlert(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_QWebPage_javaScriptAlert
func miqt_exec_callback_QWebPage_javaScriptAlert(self *C.QWebPage, cb C.intptr_t, originatingFrame *C.QWebFrame, msg C.struct_miqt_string) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(originatingFrame *QWebFrame, msg string), originatingFrame *QWebFrame, msg string))
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 := newQWebFrame(originatingFrame)
2024-11-26 22:31:32 +13:00
var msg_ms C.struct_miqt_string = msg
msg_ret := C.GoStringN(msg_ms.data, C.int(int64(msg_ms.len)))
C.free(unsafe.Pointer(msg_ms.data))
slotval2 := msg_ret
gofunc((&QWebPage{h: self}).callVirtualBase_JavaScriptAlert, slotval1, slotval2)
}
func (this *QWebPage) callVirtualBase_JavaScriptConfirm(originatingFrame *QWebFrame, msg string) bool {
msg_ms := C.struct_miqt_string{}
msg_ms.data = C.CString(msg)
msg_ms.len = C.size_t(len(msg))
defer C.free(unsafe.Pointer(msg_ms.data))
2025-02-01 13:45:16 +13:00
return (bool)(C.QWebPage_virtualbase_javaScriptConfirm(unsafe.Pointer(this.h), originatingFrame.cPointer(), msg_ms))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebPage) OnjavaScriptConfirm(slot func(super func(originatingFrame *QWebFrame, msg string) bool, originatingFrame *QWebFrame, msg string) bool) {
ok := C.QWebPage_override_virtual_javaScriptConfirm(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_QWebPage_javaScriptConfirm
func miqt_exec_callback_QWebPage_javaScriptConfirm(self *C.QWebPage, cb C.intptr_t, originatingFrame *C.QWebFrame, msg C.struct_miqt_string) C.bool {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(originatingFrame *QWebFrame, msg string) bool, originatingFrame *QWebFrame, msg string) bool)
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 := newQWebFrame(originatingFrame)
2024-11-26 22:31:32 +13:00
var msg_ms C.struct_miqt_string = msg
msg_ret := C.GoStringN(msg_ms.data, C.int(int64(msg_ms.len)))
C.free(unsafe.Pointer(msg_ms.data))
slotval2 := msg_ret
virtualReturn := gofunc((&QWebPage{h: self}).callVirtualBase_JavaScriptConfirm, slotval1, slotval2)
return (C.bool)(virtualReturn)
}
func (this *QWebPage) callVirtualBase_JavaScriptConsoleMessage(message string, lineNumber int, sourceID string) {
message_ms := C.struct_miqt_string{}
message_ms.data = C.CString(message)
message_ms.len = C.size_t(len(message))
defer C.free(unsafe.Pointer(message_ms.data))
sourceID_ms := C.struct_miqt_string{}
sourceID_ms.data = C.CString(sourceID)
sourceID_ms.len = C.size_t(len(sourceID))
defer C.free(unsafe.Pointer(sourceID_ms.data))
2025-02-01 13:45:16 +13:00
C.QWebPage_virtualbase_javaScriptConsoleMessage(unsafe.Pointer(this.h), message_ms, (C.int)(lineNumber), sourceID_ms)
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebPage) OnjavaScriptConsoleMessage(slot func(super func(message string, lineNumber int, sourceID string), message string, lineNumber int, sourceID string)) {
ok := C.QWebPage_override_virtual_javaScriptConsoleMessage(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_QWebPage_javaScriptConsoleMessage
func miqt_exec_callback_QWebPage_javaScriptConsoleMessage(self *C.QWebPage, cb C.intptr_t, message C.struct_miqt_string, lineNumber C.int, sourceID C.struct_miqt_string) {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(message string, lineNumber int, sourceID string), message string, lineNumber int, sourceID string))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
var message_ms C.struct_miqt_string = message
message_ret := C.GoStringN(message_ms.data, C.int(int64(message_ms.len)))
C.free(unsafe.Pointer(message_ms.data))
slotval1 := message_ret
slotval2 := (int)(lineNumber)
var sourceID_ms C.struct_miqt_string = sourceID
sourceID_ret := C.GoStringN(sourceID_ms.data, C.int(int64(sourceID_ms.len)))
C.free(unsafe.Pointer(sourceID_ms.data))
slotval3 := sourceID_ret
gofunc((&QWebPage{h: self}).callVirtualBase_JavaScriptConsoleMessage, slotval1, slotval2, slotval3)
}
func (this *QWebPage) callVirtualBase_UserAgentForUrl(url *qt.QUrl) string {
2025-02-01 13:45:16 +13:00
var _ms C.struct_miqt_string = C.QWebPage_virtualbase_userAgentForUrl(unsafe.Pointer(this.h), (*C.QUrl)(url.UnsafePointer()))
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
}
2025-02-01 13:45:16 +13:00
func (this *QWebPage) OnuserAgentForUrl(slot func(super func(url *qt.QUrl) string, url *qt.QUrl) string) {
ok := C.QWebPage_override_virtual_userAgentForUrl(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_QWebPage_userAgentForUrl
func miqt_exec_callback_QWebPage_userAgentForUrl(self *C.QWebPage, cb C.intptr_t, url *C.QUrl) C.struct_miqt_string {
2024-11-26 22:31:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(url *qt.QUrl) string, url *qt.QUrl) string)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := qt.UnsafeNewQUrl(unsafe.Pointer(url))
virtualReturn := gofunc((&QWebPage{h: self}).callVirtualBase_UserAgentForUrl, slotval1)
virtualReturn_ms := C.struct_miqt_string{}
virtualReturn_ms.data = C.CString(virtualReturn)
virtualReturn_ms.len = C.size_t(len(virtualReturn))
defer C.free(unsafe.Pointer(virtualReturn_ms.data))
return virtualReturn_ms
}
func (this *QWebPage) callVirtualBase_EventFilter(watched *qt.QObject, event *qt.QEvent) bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QWebPage_virtualbase_eventFilter(unsafe.Pointer(this.h), (*C.QObject)(watched.UnsafePointer()), (*C.QEvent)(event.UnsafePointer())))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebPage) OneventFilter(slot func(super func(watched *qt.QObject, event *qt.QEvent) bool, watched *qt.QObject, event *qt.QEvent) bool) {
ok := C.QWebPage_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")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebPage_eventFilter
func miqt_exec_callback_QWebPage_eventFilter(self *C.QWebPage, cb C.intptr_t, watched *C.QObject, event *C.QEvent) C.bool {
2024-11-26 22:31:32 +13:00
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))
2024-11-26 22:31:32 +13:00
slotval2 := qt.UnsafeNewQEvent(unsafe.Pointer(event))
virtualReturn := gofunc((&QWebPage{h: self}).callVirtualBase_EventFilter, slotval1, slotval2)
return (C.bool)(virtualReturn)
}
func (this *QWebPage) callVirtualBase_TimerEvent(event *qt.QTimerEvent) {
2025-02-01 13:45:16 +13:00
C.QWebPage_virtualbase_timerEvent(unsafe.Pointer(this.h), (*C.QTimerEvent)(event.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebPage) OntimerEvent(slot func(super func(event *qt.QTimerEvent), event *qt.QTimerEvent)) {
ok := C.QWebPage_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")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebPage_timerEvent
func miqt_exec_callback_QWebPage_timerEvent(self *C.QWebPage, cb C.intptr_t, event *C.QTimerEvent) {
2024-11-26 22:31:32 +13:00
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
2024-12-07 17:15:57 +13:00
slotval1 := qt.UnsafeNewQTimerEvent(unsafe.Pointer(event))
2024-11-26 22:31:32 +13:00
gofunc((&QWebPage{h: self}).callVirtualBase_TimerEvent, slotval1)
}
func (this *QWebPage) callVirtualBase_ChildEvent(event *qt.QChildEvent) {
2025-02-01 13:45:16 +13:00
C.QWebPage_virtualbase_childEvent(unsafe.Pointer(this.h), (*C.QChildEvent)(event.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebPage) OnchildEvent(slot func(super func(event *qt.QChildEvent), event *qt.QChildEvent)) {
ok := C.QWebPage_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")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebPage_childEvent
func miqt_exec_callback_QWebPage_childEvent(self *C.QWebPage, cb C.intptr_t, event *C.QChildEvent) {
2024-11-26 22:31:32 +13:00
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
2024-12-07 17:15:57 +13:00
slotval1 := qt.UnsafeNewQChildEvent(unsafe.Pointer(event))
2024-11-26 22:31:32 +13:00
gofunc((&QWebPage{h: self}).callVirtualBase_ChildEvent, slotval1)
}
func (this *QWebPage) callVirtualBase_CustomEvent(event *qt.QEvent) {
2025-02-01 13:45:16 +13:00
C.QWebPage_virtualbase_customEvent(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 *QWebPage) OncustomEvent(slot func(super func(event *qt.QEvent), event *qt.QEvent)) {
ok := C.QWebPage_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")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebPage_customEvent
func miqt_exec_callback_QWebPage_customEvent(self *C.QWebPage, 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((&QWebPage{h: self}).callVirtualBase_CustomEvent, slotval1)
}
func (this *QWebPage) callVirtualBase_ConnectNotify(signal *qt.QMetaMethod) {
2025-02-01 13:45:16 +13:00
C.QWebPage_virtualbase_connectNotify(unsafe.Pointer(this.h), (*C.QMetaMethod)(signal.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebPage) OnconnectNotify(slot func(super func(signal *qt.QMetaMethod), signal *qt.QMetaMethod)) {
ok := C.QWebPage_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")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebPage_connectNotify
func miqt_exec_callback_QWebPage_connectNotify(self *C.QWebPage, cb C.intptr_t, signal *C.QMetaMethod) {
2024-11-26 22:31:32 +13:00
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((&QWebPage{h: self}).callVirtualBase_ConnectNotify, slotval1)
}
func (this *QWebPage) callVirtualBase_DisconnectNotify(signal *qt.QMetaMethod) {
2025-02-01 13:45:16 +13:00
C.QWebPage_virtualbase_disconnectNotify(unsafe.Pointer(this.h), (*C.QMetaMethod)(signal.UnsafePointer()))
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebPage) OndisconnectNotify(slot func(super func(signal *qt.QMetaMethod), signal *qt.QMetaMethod)) {
ok := C.QWebPage_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")
}
2024-11-26 22:31:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebPage_disconnectNotify
func miqt_exec_callback_QWebPage_disconnectNotify(self *C.QWebPage, cb C.intptr_t, signal *C.QMetaMethod) {
2024-11-26 22:31:32 +13:00
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((&QWebPage{h: self}).callVirtualBase_DisconnectNotify, slotval1)
}
// Delete this object from C++ memory.
func (this *QWebPage) Delete() {
2025-02-01 13:45:16 +13:00
C.QWebPage_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 *QWebPage) GoGC() {
runtime.SetFinalizer(this, func(this *QWebPage) {
this.Delete()
runtime.KeepAlive(this.h)
})
}
type QWebPage__ViewportAttributes struct {
h *C.QWebPage__ViewportAttributes
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage__ViewportAttributes) cPointer() *C.QWebPage__ViewportAttributes {
if this == nil {
return nil
}
return this.h
}
func (this *QWebPage__ViewportAttributes) UnsafePointer() unsafe.Pointer {
if this == nil {
return nil
}
return unsafe.Pointer(this.h)
}
// newQWebPage__ViewportAttributes constructs the type using only CGO pointers.
func newQWebPage__ViewportAttributes(h *C.QWebPage__ViewportAttributes) *QWebPage__ViewportAttributes {
if h == nil {
return nil
}
2024-12-07 17:15:57 +13:00
2024-11-26 22:31:32 +13:00
return &QWebPage__ViewportAttributes{h: h}
}
// UnsafeNewQWebPage__ViewportAttributes constructs the type using only unsafe pointers.
func UnsafeNewQWebPage__ViewportAttributes(h unsafe.Pointer) *QWebPage__ViewportAttributes {
2024-12-07 17:15:57 +13:00
return newQWebPage__ViewportAttributes((*C.QWebPage__ViewportAttributes)(h))
2024-11-26 22:31:32 +13:00
}
// NewQWebPage__ViewportAttributes constructs a new QWebPage::ViewportAttributes object.
func NewQWebPage__ViewportAttributes() *QWebPage__ViewportAttributes {
return newQWebPage__ViewportAttributes(C.QWebPage__ViewportAttributes_new())
2024-11-26 22:31:32 +13:00
}
// NewQWebPage__ViewportAttributes2 constructs a new QWebPage::ViewportAttributes object.
func NewQWebPage__ViewportAttributes2(other *QWebPage__ViewportAttributes) *QWebPage__ViewportAttributes {
return newQWebPage__ViewportAttributes(C.QWebPage__ViewportAttributes_new2(other.cPointer()))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage__ViewportAttributes) OperatorAssign(other *QWebPage__ViewportAttributes) {
2025-02-01 13:45:16 +13:00
C.QWebPage__ViewportAttributes_operatorAssign(this.h, other.cPointer())
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage__ViewportAttributes) InitialScaleFactor() float64 {
2025-02-01 13:45:16 +13:00
return (float64)(C.QWebPage__ViewportAttributes_initialScaleFactor(this.h))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage__ViewportAttributes) MinimumScaleFactor() float64 {
2025-02-01 13:45:16 +13:00
return (float64)(C.QWebPage__ViewportAttributes_minimumScaleFactor(this.h))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage__ViewportAttributes) MaximumScaleFactor() float64 {
2025-02-01 13:45:16 +13:00
return (float64)(C.QWebPage__ViewportAttributes_maximumScaleFactor(this.h))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage__ViewportAttributes) DevicePixelRatio() float64 {
2025-02-01 13:45:16 +13:00
return (float64)(C.QWebPage__ViewportAttributes_devicePixelRatio(this.h))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage__ViewportAttributes) IsUserScalable() bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QWebPage__ViewportAttributes_isUserScalable(this.h))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage__ViewportAttributes) IsValid() bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QWebPage__ViewportAttributes_isValid(this.h))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage__ViewportAttributes) Size() *qt.QSizeF {
2025-02-01 13:45:16 +13:00
_goptr := qt.UnsafeNewQSizeF(unsafe.Pointer(C.QWebPage__ViewportAttributes_size(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
}
// Delete this object from C++ memory.
func (this *QWebPage__ViewportAttributes) Delete() {
2025-02-01 13:45:16 +13:00
C.QWebPage__ViewportAttributes_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 *QWebPage__ViewportAttributes) GoGC() {
runtime.SetFinalizer(this, func(this *QWebPage__ViewportAttributes) {
this.Delete()
runtime.KeepAlive(this.h)
})
}
type QWebPage__ExtensionOption struct {
h *C.QWebPage__ExtensionOption
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage__ExtensionOption) cPointer() *C.QWebPage__ExtensionOption {
if this == nil {
return nil
}
return this.h
}
func (this *QWebPage__ExtensionOption) UnsafePointer() unsafe.Pointer {
if this == nil {
return nil
}
return unsafe.Pointer(this.h)
}
// newQWebPage__ExtensionOption constructs the type using only CGO pointers.
func newQWebPage__ExtensionOption(h *C.QWebPage__ExtensionOption) *QWebPage__ExtensionOption {
if h == nil {
return nil
}
2024-12-07 17:15:57 +13:00
2024-11-26 22:31:32 +13:00
return &QWebPage__ExtensionOption{h: h}
}
// UnsafeNewQWebPage__ExtensionOption constructs the type using only unsafe pointers.
func UnsafeNewQWebPage__ExtensionOption(h unsafe.Pointer) *QWebPage__ExtensionOption {
2024-12-07 17:15:57 +13:00
return newQWebPage__ExtensionOption((*C.QWebPage__ExtensionOption)(h))
2024-11-26 22:31:32 +13:00
}
// NewQWebPage__ExtensionOption constructs a new QWebPage::ExtensionOption object.
func NewQWebPage__ExtensionOption(param1 *QWebPage__ExtensionOption) *QWebPage__ExtensionOption {
return newQWebPage__ExtensionOption(C.QWebPage__ExtensionOption_new(param1.cPointer()))
2024-11-26 22:31:32 +13:00
}
// Delete this object from C++ memory.
func (this *QWebPage__ExtensionOption) Delete() {
2025-02-01 13:45:16 +13:00
C.QWebPage__ExtensionOption_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 *QWebPage__ExtensionOption) GoGC() {
runtime.SetFinalizer(this, func(this *QWebPage__ExtensionOption) {
this.Delete()
runtime.KeepAlive(this.h)
})
}
type QWebPage__ExtensionReturn struct {
h *C.QWebPage__ExtensionReturn
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage__ExtensionReturn) cPointer() *C.QWebPage__ExtensionReturn {
if this == nil {
return nil
}
return this.h
}
func (this *QWebPage__ExtensionReturn) UnsafePointer() unsafe.Pointer {
if this == nil {
return nil
}
return unsafe.Pointer(this.h)
}
// newQWebPage__ExtensionReturn constructs the type using only CGO pointers.
func newQWebPage__ExtensionReturn(h *C.QWebPage__ExtensionReturn) *QWebPage__ExtensionReturn {
if h == nil {
return nil
}
2024-12-07 17:15:57 +13:00
2024-11-26 22:31:32 +13:00
return &QWebPage__ExtensionReturn{h: h}
}
// UnsafeNewQWebPage__ExtensionReturn constructs the type using only unsafe pointers.
func UnsafeNewQWebPage__ExtensionReturn(h unsafe.Pointer) *QWebPage__ExtensionReturn {
2024-12-07 17:15:57 +13:00
return newQWebPage__ExtensionReturn((*C.QWebPage__ExtensionReturn)(h))
2024-11-26 22:31:32 +13:00
}
// NewQWebPage__ExtensionReturn constructs a new QWebPage::ExtensionReturn object.
func NewQWebPage__ExtensionReturn(param1 *QWebPage__ExtensionReturn) *QWebPage__ExtensionReturn {
return newQWebPage__ExtensionReturn(C.QWebPage__ExtensionReturn_new(param1.cPointer()))
2024-11-26 22:31:32 +13:00
}
// NewQWebPage__ExtensionReturn2 constructs a new QWebPage::ExtensionReturn object.
func NewQWebPage__ExtensionReturn2() *QWebPage__ExtensionReturn {
return newQWebPage__ExtensionReturn(C.QWebPage__ExtensionReturn_new2())
2024-11-26 22:31:32 +13:00
}
// Delete this object from C++ memory.
func (this *QWebPage__ExtensionReturn) Delete() {
2025-02-01 13:45:16 +13:00
C.QWebPage__ExtensionReturn_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 *QWebPage__ExtensionReturn) GoGC() {
runtime.SetFinalizer(this, func(this *QWebPage__ExtensionReturn) {
this.Delete()
runtime.KeepAlive(this.h)
})
}
type QWebPage__ChooseMultipleFilesExtensionOption struct {
h *C.QWebPage__ChooseMultipleFilesExtensionOption
2024-11-26 22:31:32 +13:00
*QWebPage__ExtensionOption
}
func (this *QWebPage__ChooseMultipleFilesExtensionOption) cPointer() *C.QWebPage__ChooseMultipleFilesExtensionOption {
if this == nil {
return nil
}
return this.h
}
func (this *QWebPage__ChooseMultipleFilesExtensionOption) UnsafePointer() unsafe.Pointer {
if this == nil {
return nil
}
return unsafe.Pointer(this.h)
}
// newQWebPage__ChooseMultipleFilesExtensionOption constructs the type using only CGO pointers.
2024-12-07 17:15:57 +13:00
func newQWebPage__ChooseMultipleFilesExtensionOption(h *C.QWebPage__ChooseMultipleFilesExtensionOption) *QWebPage__ChooseMultipleFilesExtensionOption {
2024-11-26 22:31:32 +13:00
if h == nil {
return nil
}
2024-12-07 17:15:57 +13:00
var outptr_QWebPage__ExtensionOption *C.QWebPage__ExtensionOption = nil
C.QWebPage__ChooseMultipleFilesExtensionOption_virtbase(h, &outptr_QWebPage__ExtensionOption)
2024-11-26 22:31:32 +13:00
return &QWebPage__ChooseMultipleFilesExtensionOption{h: h,
2024-12-07 17:15:57 +13:00
QWebPage__ExtensionOption: newQWebPage__ExtensionOption(outptr_QWebPage__ExtensionOption)}
2024-11-26 22:31:32 +13:00
}
// UnsafeNewQWebPage__ChooseMultipleFilesExtensionOption constructs the type using only unsafe pointers.
2024-12-07 17:15:57 +13:00
func UnsafeNewQWebPage__ChooseMultipleFilesExtensionOption(h unsafe.Pointer) *QWebPage__ChooseMultipleFilesExtensionOption {
return newQWebPage__ChooseMultipleFilesExtensionOption((*C.QWebPage__ChooseMultipleFilesExtensionOption)(h))
2024-11-26 22:31:32 +13:00
}
// Delete this object from C++ memory.
func (this *QWebPage__ChooseMultipleFilesExtensionOption) Delete() {
2025-02-01 13:45:16 +13:00
C.QWebPage__ChooseMultipleFilesExtensionOption_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 *QWebPage__ChooseMultipleFilesExtensionOption) GoGC() {
runtime.SetFinalizer(this, func(this *QWebPage__ChooseMultipleFilesExtensionOption) {
this.Delete()
runtime.KeepAlive(this.h)
})
}
type QWebPage__ChooseMultipleFilesExtensionReturn struct {
h *C.QWebPage__ChooseMultipleFilesExtensionReturn
2024-11-26 22:31:32 +13:00
*QWebPage__ExtensionReturn
}
func (this *QWebPage__ChooseMultipleFilesExtensionReturn) cPointer() *C.QWebPage__ChooseMultipleFilesExtensionReturn {
if this == nil {
return nil
}
return this.h
}
func (this *QWebPage__ChooseMultipleFilesExtensionReturn) UnsafePointer() unsafe.Pointer {
if this == nil {
return nil
}
return unsafe.Pointer(this.h)
}
// newQWebPage__ChooseMultipleFilesExtensionReturn constructs the type using only CGO pointers.
2024-12-07 17:15:57 +13:00
func newQWebPage__ChooseMultipleFilesExtensionReturn(h *C.QWebPage__ChooseMultipleFilesExtensionReturn) *QWebPage__ChooseMultipleFilesExtensionReturn {
2024-11-26 22:31:32 +13:00
if h == nil {
return nil
}
2024-12-07 17:15:57 +13:00
var outptr_QWebPage__ExtensionReturn *C.QWebPage__ExtensionReturn = nil
C.QWebPage__ChooseMultipleFilesExtensionReturn_virtbase(h, &outptr_QWebPage__ExtensionReturn)
2024-11-26 22:31:32 +13:00
return &QWebPage__ChooseMultipleFilesExtensionReturn{h: h,
2024-12-07 17:15:57 +13:00
QWebPage__ExtensionReturn: newQWebPage__ExtensionReturn(outptr_QWebPage__ExtensionReturn)}
2024-11-26 22:31:32 +13:00
}
// UnsafeNewQWebPage__ChooseMultipleFilesExtensionReturn constructs the type using only unsafe pointers.
2024-12-07 17:15:57 +13:00
func UnsafeNewQWebPage__ChooseMultipleFilesExtensionReturn(h unsafe.Pointer) *QWebPage__ChooseMultipleFilesExtensionReturn {
return newQWebPage__ChooseMultipleFilesExtensionReturn((*C.QWebPage__ChooseMultipleFilesExtensionReturn)(h))
2024-11-26 22:31:32 +13:00
}
// Delete this object from C++ memory.
func (this *QWebPage__ChooseMultipleFilesExtensionReturn) Delete() {
2025-02-01 13:45:16 +13:00
C.QWebPage__ChooseMultipleFilesExtensionReturn_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 *QWebPage__ChooseMultipleFilesExtensionReturn) GoGC() {
runtime.SetFinalizer(this, func(this *QWebPage__ChooseMultipleFilesExtensionReturn) {
this.Delete()
runtime.KeepAlive(this.h)
})
}
type QWebPage__ErrorPageExtensionOption struct {
h *C.QWebPage__ErrorPageExtensionOption
2024-11-26 22:31:32 +13:00
*QWebPage__ExtensionOption
}
func (this *QWebPage__ErrorPageExtensionOption) cPointer() *C.QWebPage__ErrorPageExtensionOption {
if this == nil {
return nil
}
return this.h
}
func (this *QWebPage__ErrorPageExtensionOption) UnsafePointer() unsafe.Pointer {
if this == nil {
return nil
}
return unsafe.Pointer(this.h)
}
// newQWebPage__ErrorPageExtensionOption constructs the type using only CGO pointers.
2024-12-07 17:15:57 +13:00
func newQWebPage__ErrorPageExtensionOption(h *C.QWebPage__ErrorPageExtensionOption) *QWebPage__ErrorPageExtensionOption {
2024-11-26 22:31:32 +13:00
if h == nil {
return nil
}
2024-12-07 17:15:57 +13:00
var outptr_QWebPage__ExtensionOption *C.QWebPage__ExtensionOption = nil
C.QWebPage__ErrorPageExtensionOption_virtbase(h, &outptr_QWebPage__ExtensionOption)
2024-11-26 22:31:32 +13:00
return &QWebPage__ErrorPageExtensionOption{h: h,
2024-12-07 17:15:57 +13:00
QWebPage__ExtensionOption: newQWebPage__ExtensionOption(outptr_QWebPage__ExtensionOption)}
2024-11-26 22:31:32 +13:00
}
// UnsafeNewQWebPage__ErrorPageExtensionOption constructs the type using only unsafe pointers.
2024-12-07 17:15:57 +13:00
func UnsafeNewQWebPage__ErrorPageExtensionOption(h unsafe.Pointer) *QWebPage__ErrorPageExtensionOption {
return newQWebPage__ErrorPageExtensionOption((*C.QWebPage__ErrorPageExtensionOption)(h))
2024-11-26 22:31:32 +13:00
}
// NewQWebPage__ErrorPageExtensionOption constructs a new QWebPage::ErrorPageExtensionOption object.
func NewQWebPage__ErrorPageExtensionOption(param1 *QWebPage__ErrorPageExtensionOption) *QWebPage__ErrorPageExtensionOption {
return newQWebPage__ErrorPageExtensionOption(C.QWebPage__ErrorPageExtensionOption_new(param1.cPointer()))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage__ErrorPageExtensionOption) OperatorAssign(param1 *QWebPage__ErrorPageExtensionOption) {
2025-02-01 13:45:16 +13:00
C.QWebPage__ErrorPageExtensionOption_operatorAssign(this.h, param1.cPointer())
2024-11-26 22:31:32 +13:00
}
// Delete this object from C++ memory.
func (this *QWebPage__ErrorPageExtensionOption) Delete() {
2025-02-01 13:45:16 +13:00
C.QWebPage__ErrorPageExtensionOption_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 *QWebPage__ErrorPageExtensionOption) GoGC() {
runtime.SetFinalizer(this, func(this *QWebPage__ErrorPageExtensionOption) {
this.Delete()
runtime.KeepAlive(this.h)
})
}
type QWebPage__ErrorPageExtensionReturn struct {
h *C.QWebPage__ErrorPageExtensionReturn
2024-11-26 22:31:32 +13:00
*QWebPage__ExtensionReturn
}
func (this *QWebPage__ErrorPageExtensionReturn) cPointer() *C.QWebPage__ErrorPageExtensionReturn {
if this == nil {
return nil
}
return this.h
}
func (this *QWebPage__ErrorPageExtensionReturn) UnsafePointer() unsafe.Pointer {
if this == nil {
return nil
}
return unsafe.Pointer(this.h)
}
// newQWebPage__ErrorPageExtensionReturn constructs the type using only CGO pointers.
2024-12-07 17:15:57 +13:00
func newQWebPage__ErrorPageExtensionReturn(h *C.QWebPage__ErrorPageExtensionReturn) *QWebPage__ErrorPageExtensionReturn {
2024-11-26 22:31:32 +13:00
if h == nil {
return nil
}
2024-12-07 17:15:57 +13:00
var outptr_QWebPage__ExtensionReturn *C.QWebPage__ExtensionReturn = nil
C.QWebPage__ErrorPageExtensionReturn_virtbase(h, &outptr_QWebPage__ExtensionReturn)
2024-11-26 22:31:32 +13:00
return &QWebPage__ErrorPageExtensionReturn{h: h,
2024-12-07 17:15:57 +13:00
QWebPage__ExtensionReturn: newQWebPage__ExtensionReturn(outptr_QWebPage__ExtensionReturn)}
2024-11-26 22:31:32 +13:00
}
// UnsafeNewQWebPage__ErrorPageExtensionReturn constructs the type using only unsafe pointers.
2024-12-07 17:15:57 +13:00
func UnsafeNewQWebPage__ErrorPageExtensionReturn(h unsafe.Pointer) *QWebPage__ErrorPageExtensionReturn {
return newQWebPage__ErrorPageExtensionReturn((*C.QWebPage__ErrorPageExtensionReturn)(h))
2024-11-26 22:31:32 +13:00
}
// NewQWebPage__ErrorPageExtensionReturn constructs a new QWebPage::ErrorPageExtensionReturn object.
func NewQWebPage__ErrorPageExtensionReturn() *QWebPage__ErrorPageExtensionReturn {
return newQWebPage__ErrorPageExtensionReturn(C.QWebPage__ErrorPageExtensionReturn_new())
2024-11-26 22:31:32 +13:00
}
// NewQWebPage__ErrorPageExtensionReturn2 constructs a new QWebPage::ErrorPageExtensionReturn object.
func NewQWebPage__ErrorPageExtensionReturn2(param1 *QWebPage__ErrorPageExtensionReturn) *QWebPage__ErrorPageExtensionReturn {
return newQWebPage__ErrorPageExtensionReturn(C.QWebPage__ErrorPageExtensionReturn_new2(param1.cPointer()))
2024-11-26 22:31:32 +13:00
}
func (this *QWebPage__ErrorPageExtensionReturn) OperatorAssign(param1 *QWebPage__ErrorPageExtensionReturn) {
2025-02-01 13:45:16 +13:00
C.QWebPage__ErrorPageExtensionReturn_operatorAssign(this.h, param1.cPointer())
2024-11-26 22:31:32 +13:00
}
// Delete this object from C++ memory.
func (this *QWebPage__ErrorPageExtensionReturn) Delete() {
2025-02-01 13:45:16 +13:00
C.QWebPage__ErrorPageExtensionReturn_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 *QWebPage__ErrorPageExtensionReturn) GoGC() {
runtime.SetFinalizer(this, func(this *QWebPage__ErrorPageExtensionReturn) {
this.Delete()
runtime.KeepAlive(this.h)
})
}