2024-10-20 05:21:03 +00:00
|
|
|
package qt6
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
#include "gen_qmainwindow.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
*/
|
|
|
|
import "C"
|
|
|
|
|
|
|
|
import (
|
|
|
|
"runtime"
|
|
|
|
"runtime/cgo"
|
|
|
|
"unsafe"
|
|
|
|
)
|
|
|
|
|
|
|
|
type QMainWindow__DockOption int
|
|
|
|
|
|
|
|
const (
|
|
|
|
QMainWindow__AnimatedDocks QMainWindow__DockOption = 1
|
|
|
|
QMainWindow__AllowNestedDocks QMainWindow__DockOption = 2
|
|
|
|
QMainWindow__AllowTabbedDocks QMainWindow__DockOption = 4
|
|
|
|
QMainWindow__ForceTabbedDocks QMainWindow__DockOption = 8
|
|
|
|
QMainWindow__VerticalTabs QMainWindow__DockOption = 16
|
|
|
|
QMainWindow__GroupedDragging QMainWindow__DockOption = 32
|
|
|
|
)
|
|
|
|
|
|
|
|
type QMainWindow struct {
|
2024-11-19 06:29:06 +00:00
|
|
|
h *C.QMainWindow
|
|
|
|
isSubclass bool
|
2024-10-20 05:21:03 +00:00
|
|
|
*QWidget
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) cPointer() *C.QMainWindow {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// newQMainWindow constructs the type using only CGO pointers.
|
|
|
|
func newQMainWindow(h *C.QMainWindow, h_QWidget *C.QWidget, h_QObject *C.QObject, h_QPaintDevice *C.QPaintDevice) *QMainWindow {
|
2024-10-20 05:21:03 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-11-19 06:29:06 +00:00
|
|
|
return &QMainWindow{h: h,
|
|
|
|
QWidget: newQWidget(h_QWidget, h_QObject, h_QPaintDevice)}
|
2024-10-20 05:21:03 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// UnsafeNewQMainWindow constructs the type using only unsafe pointers.
|
|
|
|
func UnsafeNewQMainWindow(h unsafe.Pointer, h_QWidget unsafe.Pointer, h_QObject unsafe.Pointer, h_QPaintDevice unsafe.Pointer) *QMainWindow {
|
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
return &QMainWindow{h: (*C.QMainWindow)(h),
|
|
|
|
QWidget: UnsafeNewQWidget(h_QWidget, h_QObject, h_QPaintDevice)}
|
2024-10-20 05:21:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQMainWindow constructs a new QMainWindow object.
|
2024-10-26 00:46:42 +00:00
|
|
|
func NewQMainWindow(parent *QWidget) *QMainWindow {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QMainWindow *C.QMainWindow = nil
|
|
|
|
var outptr_QWidget *C.QWidget = nil
|
|
|
|
var outptr_QObject *C.QObject = nil
|
|
|
|
var outptr_QPaintDevice *C.QPaintDevice = nil
|
|
|
|
|
|
|
|
C.QMainWindow_new(parent.cPointer(), &outptr_QMainWindow, &outptr_QWidget, &outptr_QObject, &outptr_QPaintDevice)
|
|
|
|
ret := newQMainWindow(outptr_QMainWindow, outptr_QWidget, outptr_QObject, outptr_QPaintDevice)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-10-20 05:21:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQMainWindow2 constructs a new QMainWindow object.
|
2024-10-26 00:46:42 +00:00
|
|
|
func NewQMainWindow2() *QMainWindow {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QMainWindow *C.QMainWindow = nil
|
|
|
|
var outptr_QWidget *C.QWidget = nil
|
|
|
|
var outptr_QObject *C.QObject = nil
|
|
|
|
var outptr_QPaintDevice *C.QPaintDevice = nil
|
|
|
|
|
|
|
|
C.QMainWindow_new2(&outptr_QMainWindow, &outptr_QWidget, &outptr_QObject, &outptr_QPaintDevice)
|
|
|
|
ret := newQMainWindow(outptr_QMainWindow, outptr_QWidget, outptr_QObject, outptr_QPaintDevice)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-10-20 05:21:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQMainWindow3 constructs a new QMainWindow object.
|
|
|
|
func NewQMainWindow3(parent *QWidget, flags WindowType) *QMainWindow {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QMainWindow *C.QMainWindow = nil
|
|
|
|
var outptr_QWidget *C.QWidget = nil
|
|
|
|
var outptr_QObject *C.QObject = nil
|
|
|
|
var outptr_QPaintDevice *C.QPaintDevice = nil
|
|
|
|
|
|
|
|
C.QMainWindow_new3(parent.cPointer(), (C.int)(flags), &outptr_QMainWindow, &outptr_QWidget, &outptr_QObject, &outptr_QPaintDevice)
|
|
|
|
ret := newQMainWindow(outptr_QMainWindow, outptr_QWidget, outptr_QObject, outptr_QPaintDevice)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-10-20 05:21:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) MetaObject() *QMetaObject {
|
|
|
|
return UnsafeNewQMetaObject(unsafe.Pointer(C.QMainWindow_MetaObject(this.h)))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) Metacast(param1 string) unsafe.Pointer {
|
|
|
|
param1_Cstring := C.CString(param1)
|
|
|
|
defer C.free(unsafe.Pointer(param1_Cstring))
|
|
|
|
return (unsafe.Pointer)(C.QMainWindow_Metacast(this.h, param1_Cstring))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMainWindow_Tr(s string) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
|
|
|
var _ms C.struct_miqt_string = C.QMainWindow_Tr(s_Cstring)
|
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) IconSize() *QSize {
|
|
|
|
_ret := C.QMainWindow_IconSize(this.h)
|
|
|
|
_goptr := newQSize(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) SetIconSize(iconSize *QSize) {
|
|
|
|
C.QMainWindow_SetIconSize(this.h, iconSize.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) ToolButtonStyle() ToolButtonStyle {
|
|
|
|
return (ToolButtonStyle)(C.QMainWindow_ToolButtonStyle(this.h))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) SetToolButtonStyle(toolButtonStyle ToolButtonStyle) {
|
|
|
|
C.QMainWindow_SetToolButtonStyle(this.h, (C.int)(toolButtonStyle))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) IsAnimated() bool {
|
|
|
|
return (bool)(C.QMainWindow_IsAnimated(this.h))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) IsDockNestingEnabled() bool {
|
|
|
|
return (bool)(C.QMainWindow_IsDockNestingEnabled(this.h))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) DocumentMode() bool {
|
|
|
|
return (bool)(C.QMainWindow_DocumentMode(this.h))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) SetDocumentMode(enabled bool) {
|
|
|
|
C.QMainWindow_SetDocumentMode(this.h, (C.bool)(enabled))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) TabShape() QTabWidget__TabShape {
|
|
|
|
return (QTabWidget__TabShape)(C.QMainWindow_TabShape(this.h))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) SetTabShape(tabShape QTabWidget__TabShape) {
|
|
|
|
C.QMainWindow_SetTabShape(this.h, (C.int)(tabShape))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) TabPosition(area DockWidgetArea) QTabWidget__TabPosition {
|
|
|
|
return (QTabWidget__TabPosition)(C.QMainWindow_TabPosition(this.h, (C.int)(area)))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) SetTabPosition(areas DockWidgetArea, tabPosition QTabWidget__TabPosition) {
|
|
|
|
C.QMainWindow_SetTabPosition(this.h, (C.int)(areas), (C.int)(tabPosition))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) SetDockOptions(options QMainWindow__DockOption) {
|
|
|
|
C.QMainWindow_SetDockOptions(this.h, (C.int)(options))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) DockOptions() QMainWindow__DockOption {
|
|
|
|
return (QMainWindow__DockOption)(C.QMainWindow_DockOptions(this.h))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) IsSeparator(pos *QPoint) bool {
|
|
|
|
return (bool)(C.QMainWindow_IsSeparator(this.h, pos.cPointer()))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) MenuBar() *QMenuBar {
|
2024-11-19 06:29:06 +00:00
|
|
|
return UnsafeNewQMenuBar(unsafe.Pointer(C.QMainWindow_MenuBar(this.h)), nil, nil, nil)
|
2024-10-20 05:21:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) SetMenuBar(menubar *QMenuBar) {
|
|
|
|
C.QMainWindow_SetMenuBar(this.h, menubar.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) MenuWidget() *QWidget {
|
2024-11-19 06:29:06 +00:00
|
|
|
return UnsafeNewQWidget(unsafe.Pointer(C.QMainWindow_MenuWidget(this.h)), nil, nil)
|
2024-10-20 05:21:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) SetMenuWidget(menubar *QWidget) {
|
|
|
|
C.QMainWindow_SetMenuWidget(this.h, menubar.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) StatusBar() *QStatusBar {
|
2024-11-19 06:29:06 +00:00
|
|
|
return UnsafeNewQStatusBar(unsafe.Pointer(C.QMainWindow_StatusBar(this.h)), nil, nil, nil)
|
2024-10-20 05:21:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) SetStatusBar(statusbar *QStatusBar) {
|
|
|
|
C.QMainWindow_SetStatusBar(this.h, statusbar.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) CentralWidget() *QWidget {
|
2024-11-19 06:29:06 +00:00
|
|
|
return UnsafeNewQWidget(unsafe.Pointer(C.QMainWindow_CentralWidget(this.h)), nil, nil)
|
2024-10-20 05:21:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) SetCentralWidget(widget *QWidget) {
|
|
|
|
C.QMainWindow_SetCentralWidget(this.h, widget.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) TakeCentralWidget() *QWidget {
|
2024-11-19 06:29:06 +00:00
|
|
|
return UnsafeNewQWidget(unsafe.Pointer(C.QMainWindow_TakeCentralWidget(this.h)), nil, nil)
|
2024-10-20 05:21:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) SetCorner(corner Corner, area DockWidgetArea) {
|
|
|
|
C.QMainWindow_SetCorner(this.h, (C.int)(corner), (C.int)(area))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) Corner(corner Corner) DockWidgetArea {
|
|
|
|
return (DockWidgetArea)(C.QMainWindow_Corner(this.h, (C.int)(corner)))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) AddToolBarBreak() {
|
|
|
|
C.QMainWindow_AddToolBarBreak(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) InsertToolBarBreak(before *QToolBar) {
|
|
|
|
C.QMainWindow_InsertToolBarBreak(this.h, before.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) AddToolBar(area ToolBarArea, toolbar *QToolBar) {
|
|
|
|
C.QMainWindow_AddToolBar(this.h, (C.int)(area), toolbar.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) AddToolBarWithToolbar(toolbar *QToolBar) {
|
|
|
|
C.QMainWindow_AddToolBarWithToolbar(this.h, toolbar.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) AddToolBarWithTitle(title string) *QToolBar {
|
|
|
|
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))
|
2024-11-19 06:29:06 +00:00
|
|
|
return UnsafeNewQToolBar(unsafe.Pointer(C.QMainWindow_AddToolBarWithTitle(this.h, title_ms)), nil, nil, nil)
|
2024-10-20 05:21:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) InsertToolBar(before *QToolBar, toolbar *QToolBar) {
|
|
|
|
C.QMainWindow_InsertToolBar(this.h, before.cPointer(), toolbar.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) RemoveToolBar(toolbar *QToolBar) {
|
|
|
|
C.QMainWindow_RemoveToolBar(this.h, toolbar.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) RemoveToolBarBreak(before *QToolBar) {
|
|
|
|
C.QMainWindow_RemoveToolBarBreak(this.h, before.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) UnifiedTitleAndToolBarOnMac() bool {
|
|
|
|
return (bool)(C.QMainWindow_UnifiedTitleAndToolBarOnMac(this.h))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) ToolBarArea(toolbar *QToolBar) ToolBarArea {
|
|
|
|
return (ToolBarArea)(C.QMainWindow_ToolBarArea(this.h, toolbar.cPointer()))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) ToolBarBreak(toolbar *QToolBar) bool {
|
|
|
|
return (bool)(C.QMainWindow_ToolBarBreak(this.h, toolbar.cPointer()))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) AddDockWidget(area DockWidgetArea, dockwidget *QDockWidget) {
|
|
|
|
C.QMainWindow_AddDockWidget(this.h, (C.int)(area), dockwidget.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) AddDockWidget2(area DockWidgetArea, dockwidget *QDockWidget, orientation Orientation) {
|
|
|
|
C.QMainWindow_AddDockWidget2(this.h, (C.int)(area), dockwidget.cPointer(), (C.int)(orientation))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) SplitDockWidget(after *QDockWidget, dockwidget *QDockWidget, orientation Orientation) {
|
|
|
|
C.QMainWindow_SplitDockWidget(this.h, after.cPointer(), dockwidget.cPointer(), (C.int)(orientation))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) TabifyDockWidget(first *QDockWidget, second *QDockWidget) {
|
|
|
|
C.QMainWindow_TabifyDockWidget(this.h, first.cPointer(), second.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) TabifiedDockWidgets(dockwidget *QDockWidget) []*QDockWidget {
|
2024-11-04 07:18:27 +00:00
|
|
|
var _ma C.struct_miqt_array = C.QMainWindow_TabifiedDockWidgets(this.h, dockwidget.cPointer())
|
2024-10-20 05:21:03 +00:00
|
|
|
_ret := make([]*QDockWidget, int(_ma.len))
|
|
|
|
_outCast := (*[0xffff]*C.QDockWidget)(unsafe.Pointer(_ma.data)) // hey ya
|
|
|
|
for i := 0; i < int(_ma.len); i++ {
|
2024-11-19 06:29:06 +00:00
|
|
|
_ret[i] = UnsafeNewQDockWidget(unsafe.Pointer(_outCast[i]), nil, nil, nil)
|
2024-10-20 05:21:03 +00:00
|
|
|
}
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) RemoveDockWidget(dockwidget *QDockWidget) {
|
|
|
|
C.QMainWindow_RemoveDockWidget(this.h, dockwidget.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) RestoreDockWidget(dockwidget *QDockWidget) bool {
|
|
|
|
return (bool)(C.QMainWindow_RestoreDockWidget(this.h, dockwidget.cPointer()))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) DockWidgetArea(dockwidget *QDockWidget) DockWidgetArea {
|
|
|
|
return (DockWidgetArea)(C.QMainWindow_DockWidgetArea(this.h, dockwidget.cPointer()))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) ResizeDocks(docks []*QDockWidget, sizes []int, orientation Orientation) {
|
|
|
|
docks_CArray := (*[0xffff]*C.QDockWidget)(C.malloc(C.size_t(8 * len(docks))))
|
|
|
|
defer C.free(unsafe.Pointer(docks_CArray))
|
|
|
|
for i := range docks {
|
|
|
|
docks_CArray[i] = docks[i].cPointer()
|
|
|
|
}
|
2024-11-04 07:18:27 +00:00
|
|
|
docks_ma := C.struct_miqt_array{len: C.size_t(len(docks)), data: unsafe.Pointer(docks_CArray)}
|
2024-10-20 05:21:03 +00:00
|
|
|
sizes_CArray := (*[0xffff]C.int)(C.malloc(C.size_t(8 * len(sizes))))
|
|
|
|
defer C.free(unsafe.Pointer(sizes_CArray))
|
|
|
|
for i := range sizes {
|
|
|
|
sizes_CArray[i] = (C.int)(sizes[i])
|
|
|
|
}
|
2024-11-04 07:18:27 +00:00
|
|
|
sizes_ma := C.struct_miqt_array{len: C.size_t(len(sizes)), data: unsafe.Pointer(sizes_CArray)}
|
2024-10-20 05:21:03 +00:00
|
|
|
C.QMainWindow_ResizeDocks(this.h, docks_ma, sizes_ma, (C.int)(orientation))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) SaveState() []byte {
|
|
|
|
var _bytearray C.struct_miqt_string = C.QMainWindow_SaveState(this.h)
|
|
|
|
_ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len)))
|
|
|
|
C.free(unsafe.Pointer(_bytearray.data))
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) RestoreState(state []byte) bool {
|
|
|
|
state_alias := C.struct_miqt_string{}
|
|
|
|
state_alias.data = (*C.char)(unsafe.Pointer(&state[0]))
|
|
|
|
state_alias.len = C.size_t(len(state))
|
|
|
|
return (bool)(C.QMainWindow_RestoreState(this.h, state_alias))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) CreatePopupMenu() *QMenu {
|
2024-11-19 06:29:06 +00:00
|
|
|
return UnsafeNewQMenu(unsafe.Pointer(C.QMainWindow_CreatePopupMenu(this.h)), nil, nil, nil)
|
2024-10-20 05:21:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) SetAnimated(enabled bool) {
|
|
|
|
C.QMainWindow_SetAnimated(this.h, (C.bool)(enabled))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) SetDockNestingEnabled(enabled bool) {
|
|
|
|
C.QMainWindow_SetDockNestingEnabled(this.h, (C.bool)(enabled))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) SetUnifiedTitleAndToolBarOnMac(set bool) {
|
|
|
|
C.QMainWindow_SetUnifiedTitleAndToolBarOnMac(this.h, (C.bool)(set))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) IconSizeChanged(iconSize *QSize) {
|
|
|
|
C.QMainWindow_IconSizeChanged(this.h, iconSize.cPointer())
|
|
|
|
}
|
|
|
|
func (this *QMainWindow) OnIconSizeChanged(slot func(iconSize *QSize)) {
|
|
|
|
C.QMainWindow_connect_IconSizeChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMainWindow_IconSizeChanged
|
|
|
|
func miqt_exec_callback_QMainWindow_IconSizeChanged(cb C.intptr_t, iconSize *C.QSize) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(iconSize *QSize))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := UnsafeNewQSize(unsafe.Pointer(iconSize))
|
|
|
|
|
|
|
|
gofunc(slotval1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) ToolButtonStyleChanged(toolButtonStyle ToolButtonStyle) {
|
|
|
|
C.QMainWindow_ToolButtonStyleChanged(this.h, (C.int)(toolButtonStyle))
|
|
|
|
}
|
|
|
|
func (this *QMainWindow) OnToolButtonStyleChanged(slot func(toolButtonStyle ToolButtonStyle)) {
|
|
|
|
C.QMainWindow_connect_ToolButtonStyleChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMainWindow_ToolButtonStyleChanged
|
|
|
|
func miqt_exec_callback_QMainWindow_ToolButtonStyleChanged(cb C.intptr_t, toolButtonStyle C.int) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(toolButtonStyle ToolButtonStyle))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := (ToolButtonStyle)(toolButtonStyle)
|
|
|
|
|
|
|
|
gofunc(slotval1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) TabifiedDockWidgetActivated(dockWidget *QDockWidget) {
|
|
|
|
C.QMainWindow_TabifiedDockWidgetActivated(this.h, dockWidget.cPointer())
|
|
|
|
}
|
|
|
|
func (this *QMainWindow) OnTabifiedDockWidgetActivated(slot func(dockWidget *QDockWidget)) {
|
|
|
|
C.QMainWindow_connect_TabifiedDockWidgetActivated(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMainWindow_TabifiedDockWidgetActivated
|
|
|
|
func miqt_exec_callback_QMainWindow_TabifiedDockWidgetActivated(cb C.intptr_t, dockWidget *C.QDockWidget) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(dockWidget *QDockWidget))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
2024-11-19 06:29:06 +00:00
|
|
|
slotval1 := UnsafeNewQDockWidget(unsafe.Pointer(dockWidget), nil, nil, nil)
|
2024-10-20 05:21:03 +00:00
|
|
|
|
|
|
|
gofunc(slotval1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMainWindow_Tr2(s string, c string) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
|
|
|
c_Cstring := C.CString(c)
|
|
|
|
defer C.free(unsafe.Pointer(c_Cstring))
|
|
|
|
var _ms C.struct_miqt_string = C.QMainWindow_Tr2(s_Cstring, c_Cstring)
|
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMainWindow_Tr3(s string, c string, n int) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
|
|
|
c_Cstring := C.CString(c)
|
|
|
|
defer C.free(unsafe.Pointer(c_Cstring))
|
|
|
|
var _ms C.struct_miqt_string = C.QMainWindow_Tr3(s_Cstring, c_Cstring, (C.int)(n))
|
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) AddToolBarBreak1(area ToolBarArea) {
|
|
|
|
C.QMainWindow_AddToolBarBreak1(this.h, (C.int)(area))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) SaveState1(version int) []byte {
|
|
|
|
var _bytearray C.struct_miqt_string = C.QMainWindow_SaveState1(this.h, (C.int)(version))
|
|
|
|
_ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len)))
|
|
|
|
C.free(unsafe.Pointer(_bytearray.data))
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) RestoreState2(state []byte, version int) bool {
|
|
|
|
state_alias := C.struct_miqt_string{}
|
|
|
|
state_alias.data = (*C.char)(unsafe.Pointer(&state[0]))
|
|
|
|
state_alias.len = C.size_t(len(state))
|
|
|
|
return (bool)(C.QMainWindow_RestoreState2(this.h, state_alias, (C.int)(version)))
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
func (this *QMainWindow) callVirtualBase_CreatePopupMenu() *QMenu {
|
|
|
|
|
|
|
|
return UnsafeNewQMenu(unsafe.Pointer(C.QMainWindow_virtualbase_CreatePopupMenu(unsafe.Pointer(this.h))), nil, nil, nil)
|
|
|
|
}
|
|
|
|
func (this *QMainWindow) OnCreatePopupMenu(slot func(super func() *QMenu) *QMenu) {
|
|
|
|
C.QMainWindow_override_virtual_CreatePopupMenu(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMainWindow_CreatePopupMenu
|
|
|
|
func miqt_exec_callback_QMainWindow_CreatePopupMenu(self *C.QMainWindow, cb C.intptr_t) *C.QMenu {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QMenu) *QMenu)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QMainWindow{h: self}).callVirtualBase_CreatePopupMenu)
|
|
|
|
|
|
|
|
return virtualReturn.cPointer()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) callVirtualBase_ContextMenuEvent(event *QContextMenuEvent) {
|
|
|
|
|
|
|
|
C.QMainWindow_virtualbase_ContextMenuEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMainWindow) OnContextMenuEvent(slot func(super func(event *QContextMenuEvent), event *QContextMenuEvent)) {
|
|
|
|
C.QMainWindow_override_virtual_ContextMenuEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMainWindow_ContextMenuEvent
|
|
|
|
func miqt_exec_callback_QMainWindow_ContextMenuEvent(self *C.QMainWindow, cb C.intptr_t, event *C.QContextMenuEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QContextMenuEvent), event *QContextMenuEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := UnsafeNewQContextMenuEvent(unsafe.Pointer(event), nil, nil)
|
|
|
|
|
|
|
|
gofunc((&QMainWindow{h: self}).callVirtualBase_ContextMenuEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) callVirtualBase_Event(event *QEvent) bool {
|
|
|
|
|
|
|
|
return (bool)(C.QMainWindow_virtualbase_Event(unsafe.Pointer(this.h), event.cPointer()))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMainWindow) OnEvent(slot func(super func(event *QEvent) bool, event *QEvent) bool) {
|
|
|
|
C.QMainWindow_override_virtual_Event(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMainWindow_Event
|
|
|
|
func miqt_exec_callback_QMainWindow_Event(self *C.QMainWindow, cb C.intptr_t, event *C.QEvent) C.bool {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QEvent) bool, event *QEvent) bool)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := UnsafeNewQEvent(unsafe.Pointer(event))
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QMainWindow{h: self}).callVirtualBase_Event, slotval1)
|
|
|
|
|
|
|
|
return (C.bool)(virtualReturn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) callVirtualBase_DevType() int {
|
|
|
|
|
|
|
|
return (int)(C.QMainWindow_virtualbase_DevType(unsafe.Pointer(this.h)))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMainWindow) OnDevType(slot func(super func() int) int) {
|
|
|
|
C.QMainWindow_override_virtual_DevType(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMainWindow_DevType
|
|
|
|
func miqt_exec_callback_QMainWindow_DevType(self *C.QMainWindow, cb C.intptr_t) C.int {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func() int) int)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QMainWindow{h: self}).callVirtualBase_DevType)
|
|
|
|
|
|
|
|
return (C.int)(virtualReturn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) callVirtualBase_SetVisible(visible bool) {
|
|
|
|
|
|
|
|
C.QMainWindow_virtualbase_SetVisible(unsafe.Pointer(this.h), (C.bool)(visible))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMainWindow) OnSetVisible(slot func(super func(visible bool), visible bool)) {
|
|
|
|
C.QMainWindow_override_virtual_SetVisible(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMainWindow_SetVisible
|
|
|
|
func miqt_exec_callback_QMainWindow_SetVisible(self *C.QMainWindow, cb C.intptr_t, visible C.bool) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(visible bool), visible bool))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := (bool)(visible)
|
|
|
|
|
|
|
|
gofunc((&QMainWindow{h: self}).callVirtualBase_SetVisible, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) callVirtualBase_SizeHint() *QSize {
|
|
|
|
|
|
|
|
_ret := C.QMainWindow_virtualbase_SizeHint(unsafe.Pointer(this.h))
|
|
|
|
_goptr := newQSize(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMainWindow) OnSizeHint(slot func(super func() *QSize) *QSize) {
|
|
|
|
C.QMainWindow_override_virtual_SizeHint(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMainWindow_SizeHint
|
|
|
|
func miqt_exec_callback_QMainWindow_SizeHint(self *C.QMainWindow, cb C.intptr_t) *C.QSize {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QSize) *QSize)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QMainWindow{h: self}).callVirtualBase_SizeHint)
|
|
|
|
|
|
|
|
return virtualReturn.cPointer()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) callVirtualBase_MinimumSizeHint() *QSize {
|
|
|
|
|
|
|
|
_ret := C.QMainWindow_virtualbase_MinimumSizeHint(unsafe.Pointer(this.h))
|
|
|
|
_goptr := newQSize(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMainWindow) OnMinimumSizeHint(slot func(super func() *QSize) *QSize) {
|
|
|
|
C.QMainWindow_override_virtual_MinimumSizeHint(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMainWindow_MinimumSizeHint
|
|
|
|
func miqt_exec_callback_QMainWindow_MinimumSizeHint(self *C.QMainWindow, cb C.intptr_t) *C.QSize {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QSize) *QSize)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QMainWindow{h: self}).callVirtualBase_MinimumSizeHint)
|
|
|
|
|
|
|
|
return virtualReturn.cPointer()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) callVirtualBase_HeightForWidth(param1 int) int {
|
|
|
|
|
|
|
|
return (int)(C.QMainWindow_virtualbase_HeightForWidth(unsafe.Pointer(this.h), (C.int)(param1)))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMainWindow) OnHeightForWidth(slot func(super func(param1 int) int, param1 int) int) {
|
|
|
|
C.QMainWindow_override_virtual_HeightForWidth(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMainWindow_HeightForWidth
|
|
|
|
func miqt_exec_callback_QMainWindow_HeightForWidth(self *C.QMainWindow, cb C.intptr_t, param1 C.int) C.int {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 int) int, param1 int) int)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := (int)(param1)
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QMainWindow{h: self}).callVirtualBase_HeightForWidth, slotval1)
|
|
|
|
|
|
|
|
return (C.int)(virtualReturn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) callVirtualBase_HasHeightForWidth() bool {
|
|
|
|
|
|
|
|
return (bool)(C.QMainWindow_virtualbase_HasHeightForWidth(unsafe.Pointer(this.h)))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMainWindow) OnHasHeightForWidth(slot func(super func() bool) bool) {
|
|
|
|
C.QMainWindow_override_virtual_HasHeightForWidth(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMainWindow_HasHeightForWidth
|
|
|
|
func miqt_exec_callback_QMainWindow_HasHeightForWidth(self *C.QMainWindow, cb C.intptr_t) C.bool {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func() bool) bool)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QMainWindow{h: self}).callVirtualBase_HasHeightForWidth)
|
|
|
|
|
|
|
|
return (C.bool)(virtualReturn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) callVirtualBase_PaintEngine() *QPaintEngine {
|
|
|
|
|
|
|
|
return UnsafeNewQPaintEngine(unsafe.Pointer(C.QMainWindow_virtualbase_PaintEngine(unsafe.Pointer(this.h))))
|
|
|
|
}
|
|
|
|
func (this *QMainWindow) OnPaintEngine(slot func(super func() *QPaintEngine) *QPaintEngine) {
|
|
|
|
C.QMainWindow_override_virtual_PaintEngine(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMainWindow_PaintEngine
|
|
|
|
func miqt_exec_callback_QMainWindow_PaintEngine(self *C.QMainWindow, cb C.intptr_t) *C.QPaintEngine {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QPaintEngine) *QPaintEngine)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QMainWindow{h: self}).callVirtualBase_PaintEngine)
|
|
|
|
|
|
|
|
return virtualReturn.cPointer()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) callVirtualBase_MousePressEvent(event *QMouseEvent) {
|
|
|
|
|
|
|
|
C.QMainWindow_virtualbase_MousePressEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMainWindow) OnMousePressEvent(slot func(super func(event *QMouseEvent), event *QMouseEvent)) {
|
|
|
|
C.QMainWindow_override_virtual_MousePressEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMainWindow_MousePressEvent
|
|
|
|
func miqt_exec_callback_QMainWindow_MousePressEvent(self *C.QMainWindow, cb C.intptr_t, event *C.QMouseEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QMouseEvent), event *QMouseEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := UnsafeNewQMouseEvent(unsafe.Pointer(event), nil, nil, nil, nil)
|
|
|
|
|
|
|
|
gofunc((&QMainWindow{h: self}).callVirtualBase_MousePressEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) callVirtualBase_MouseReleaseEvent(event *QMouseEvent) {
|
|
|
|
|
|
|
|
C.QMainWindow_virtualbase_MouseReleaseEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMainWindow) OnMouseReleaseEvent(slot func(super func(event *QMouseEvent), event *QMouseEvent)) {
|
|
|
|
C.QMainWindow_override_virtual_MouseReleaseEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMainWindow_MouseReleaseEvent
|
|
|
|
func miqt_exec_callback_QMainWindow_MouseReleaseEvent(self *C.QMainWindow, cb C.intptr_t, event *C.QMouseEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QMouseEvent), event *QMouseEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := UnsafeNewQMouseEvent(unsafe.Pointer(event), nil, nil, nil, nil)
|
|
|
|
|
|
|
|
gofunc((&QMainWindow{h: self}).callVirtualBase_MouseReleaseEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) callVirtualBase_MouseDoubleClickEvent(event *QMouseEvent) {
|
|
|
|
|
|
|
|
C.QMainWindow_virtualbase_MouseDoubleClickEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMainWindow) OnMouseDoubleClickEvent(slot func(super func(event *QMouseEvent), event *QMouseEvent)) {
|
|
|
|
C.QMainWindow_override_virtual_MouseDoubleClickEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMainWindow_MouseDoubleClickEvent
|
|
|
|
func miqt_exec_callback_QMainWindow_MouseDoubleClickEvent(self *C.QMainWindow, cb C.intptr_t, event *C.QMouseEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QMouseEvent), event *QMouseEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := UnsafeNewQMouseEvent(unsafe.Pointer(event), nil, nil, nil, nil)
|
|
|
|
|
|
|
|
gofunc((&QMainWindow{h: self}).callVirtualBase_MouseDoubleClickEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) callVirtualBase_MouseMoveEvent(event *QMouseEvent) {
|
|
|
|
|
|
|
|
C.QMainWindow_virtualbase_MouseMoveEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMainWindow) OnMouseMoveEvent(slot func(super func(event *QMouseEvent), event *QMouseEvent)) {
|
|
|
|
C.QMainWindow_override_virtual_MouseMoveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMainWindow_MouseMoveEvent
|
|
|
|
func miqt_exec_callback_QMainWindow_MouseMoveEvent(self *C.QMainWindow, cb C.intptr_t, event *C.QMouseEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QMouseEvent), event *QMouseEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := UnsafeNewQMouseEvent(unsafe.Pointer(event), nil, nil, nil, nil)
|
|
|
|
|
|
|
|
gofunc((&QMainWindow{h: self}).callVirtualBase_MouseMoveEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) callVirtualBase_WheelEvent(event *QWheelEvent) {
|
|
|
|
|
|
|
|
C.QMainWindow_virtualbase_WheelEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMainWindow) OnWheelEvent(slot func(super func(event *QWheelEvent), event *QWheelEvent)) {
|
|
|
|
C.QMainWindow_override_virtual_WheelEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMainWindow_WheelEvent
|
|
|
|
func miqt_exec_callback_QMainWindow_WheelEvent(self *C.QMainWindow, cb C.intptr_t, event *C.QWheelEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QWheelEvent), event *QWheelEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := UnsafeNewQWheelEvent(unsafe.Pointer(event), nil, nil, nil, nil)
|
|
|
|
|
|
|
|
gofunc((&QMainWindow{h: self}).callVirtualBase_WheelEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) callVirtualBase_KeyPressEvent(event *QKeyEvent) {
|
|
|
|
|
|
|
|
C.QMainWindow_virtualbase_KeyPressEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMainWindow) OnKeyPressEvent(slot func(super func(event *QKeyEvent), event *QKeyEvent)) {
|
|
|
|
C.QMainWindow_override_virtual_KeyPressEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMainWindow_KeyPressEvent
|
|
|
|
func miqt_exec_callback_QMainWindow_KeyPressEvent(self *C.QMainWindow, cb C.intptr_t, event *C.QKeyEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QKeyEvent), event *QKeyEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := UnsafeNewQKeyEvent(unsafe.Pointer(event), nil, nil)
|
|
|
|
|
|
|
|
gofunc((&QMainWindow{h: self}).callVirtualBase_KeyPressEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) callVirtualBase_KeyReleaseEvent(event *QKeyEvent) {
|
|
|
|
|
|
|
|
C.QMainWindow_virtualbase_KeyReleaseEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMainWindow) OnKeyReleaseEvent(slot func(super func(event *QKeyEvent), event *QKeyEvent)) {
|
|
|
|
C.QMainWindow_override_virtual_KeyReleaseEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMainWindow_KeyReleaseEvent
|
|
|
|
func miqt_exec_callback_QMainWindow_KeyReleaseEvent(self *C.QMainWindow, cb C.intptr_t, event *C.QKeyEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QKeyEvent), event *QKeyEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := UnsafeNewQKeyEvent(unsafe.Pointer(event), nil, nil)
|
|
|
|
|
|
|
|
gofunc((&QMainWindow{h: self}).callVirtualBase_KeyReleaseEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) callVirtualBase_FocusInEvent(event *QFocusEvent) {
|
|
|
|
|
|
|
|
C.QMainWindow_virtualbase_FocusInEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMainWindow) OnFocusInEvent(slot func(super func(event *QFocusEvent), event *QFocusEvent)) {
|
|
|
|
C.QMainWindow_override_virtual_FocusInEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMainWindow_FocusInEvent
|
|
|
|
func miqt_exec_callback_QMainWindow_FocusInEvent(self *C.QMainWindow, cb C.intptr_t, event *C.QFocusEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QFocusEvent), event *QFocusEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := UnsafeNewQFocusEvent(unsafe.Pointer(event), nil)
|
|
|
|
|
|
|
|
gofunc((&QMainWindow{h: self}).callVirtualBase_FocusInEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) callVirtualBase_FocusOutEvent(event *QFocusEvent) {
|
|
|
|
|
|
|
|
C.QMainWindow_virtualbase_FocusOutEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMainWindow) OnFocusOutEvent(slot func(super func(event *QFocusEvent), event *QFocusEvent)) {
|
|
|
|
C.QMainWindow_override_virtual_FocusOutEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMainWindow_FocusOutEvent
|
|
|
|
func miqt_exec_callback_QMainWindow_FocusOutEvent(self *C.QMainWindow, cb C.intptr_t, event *C.QFocusEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QFocusEvent), event *QFocusEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := UnsafeNewQFocusEvent(unsafe.Pointer(event), nil)
|
|
|
|
|
|
|
|
gofunc((&QMainWindow{h: self}).callVirtualBase_FocusOutEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) callVirtualBase_EnterEvent(event *QEnterEvent) {
|
|
|
|
|
|
|
|
C.QMainWindow_virtualbase_EnterEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMainWindow) OnEnterEvent(slot func(super func(event *QEnterEvent), event *QEnterEvent)) {
|
|
|
|
C.QMainWindow_override_virtual_EnterEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMainWindow_EnterEvent
|
|
|
|
func miqt_exec_callback_QMainWindow_EnterEvent(self *C.QMainWindow, cb C.intptr_t, event *C.QEnterEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QEnterEvent), event *QEnterEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := UnsafeNewQEnterEvent(unsafe.Pointer(event), nil, nil, nil, nil)
|
|
|
|
|
|
|
|
gofunc((&QMainWindow{h: self}).callVirtualBase_EnterEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) callVirtualBase_LeaveEvent(event *QEvent) {
|
|
|
|
|
|
|
|
C.QMainWindow_virtualbase_LeaveEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMainWindow) OnLeaveEvent(slot func(super func(event *QEvent), event *QEvent)) {
|
|
|
|
C.QMainWindow_override_virtual_LeaveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMainWindow_LeaveEvent
|
|
|
|
func miqt_exec_callback_QMainWindow_LeaveEvent(self *C.QMainWindow, cb C.intptr_t, event *C.QEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QEvent), event *QEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := UnsafeNewQEvent(unsafe.Pointer(event))
|
|
|
|
|
|
|
|
gofunc((&QMainWindow{h: self}).callVirtualBase_LeaveEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) callVirtualBase_PaintEvent(event *QPaintEvent) {
|
|
|
|
|
|
|
|
C.QMainWindow_virtualbase_PaintEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMainWindow) OnPaintEvent(slot func(super func(event *QPaintEvent), event *QPaintEvent)) {
|
|
|
|
C.QMainWindow_override_virtual_PaintEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMainWindow_PaintEvent
|
|
|
|
func miqt_exec_callback_QMainWindow_PaintEvent(self *C.QMainWindow, cb C.intptr_t, event *C.QPaintEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QPaintEvent), event *QPaintEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := UnsafeNewQPaintEvent(unsafe.Pointer(event), nil)
|
|
|
|
|
|
|
|
gofunc((&QMainWindow{h: self}).callVirtualBase_PaintEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) callVirtualBase_MoveEvent(event *QMoveEvent) {
|
|
|
|
|
|
|
|
C.QMainWindow_virtualbase_MoveEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMainWindow) OnMoveEvent(slot func(super func(event *QMoveEvent), event *QMoveEvent)) {
|
|
|
|
C.QMainWindow_override_virtual_MoveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMainWindow_MoveEvent
|
|
|
|
func miqt_exec_callback_QMainWindow_MoveEvent(self *C.QMainWindow, cb C.intptr_t, event *C.QMoveEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QMoveEvent), event *QMoveEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := UnsafeNewQMoveEvent(unsafe.Pointer(event), nil)
|
|
|
|
|
|
|
|
gofunc((&QMainWindow{h: self}).callVirtualBase_MoveEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) callVirtualBase_ResizeEvent(event *QResizeEvent) {
|
|
|
|
|
|
|
|
C.QMainWindow_virtualbase_ResizeEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMainWindow) OnResizeEvent(slot func(super func(event *QResizeEvent), event *QResizeEvent)) {
|
|
|
|
C.QMainWindow_override_virtual_ResizeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMainWindow_ResizeEvent
|
|
|
|
func miqt_exec_callback_QMainWindow_ResizeEvent(self *C.QMainWindow, cb C.intptr_t, event *C.QResizeEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QResizeEvent), event *QResizeEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := UnsafeNewQResizeEvent(unsafe.Pointer(event), nil)
|
|
|
|
|
|
|
|
gofunc((&QMainWindow{h: self}).callVirtualBase_ResizeEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) callVirtualBase_CloseEvent(event *QCloseEvent) {
|
|
|
|
|
|
|
|
C.QMainWindow_virtualbase_CloseEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMainWindow) OnCloseEvent(slot func(super func(event *QCloseEvent), event *QCloseEvent)) {
|
|
|
|
C.QMainWindow_override_virtual_CloseEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMainWindow_CloseEvent
|
|
|
|
func miqt_exec_callback_QMainWindow_CloseEvent(self *C.QMainWindow, cb C.intptr_t, event *C.QCloseEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QCloseEvent), event *QCloseEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := UnsafeNewQCloseEvent(unsafe.Pointer(event), nil)
|
|
|
|
|
|
|
|
gofunc((&QMainWindow{h: self}).callVirtualBase_CloseEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) callVirtualBase_TabletEvent(event *QTabletEvent) {
|
|
|
|
|
|
|
|
C.QMainWindow_virtualbase_TabletEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMainWindow) OnTabletEvent(slot func(super func(event *QTabletEvent), event *QTabletEvent)) {
|
|
|
|
C.QMainWindow_override_virtual_TabletEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMainWindow_TabletEvent
|
|
|
|
func miqt_exec_callback_QMainWindow_TabletEvent(self *C.QMainWindow, cb C.intptr_t, event *C.QTabletEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QTabletEvent), event *QTabletEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := UnsafeNewQTabletEvent(unsafe.Pointer(event), nil, nil, nil, nil)
|
|
|
|
|
|
|
|
gofunc((&QMainWindow{h: self}).callVirtualBase_TabletEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) callVirtualBase_ActionEvent(event *QActionEvent) {
|
|
|
|
|
|
|
|
C.QMainWindow_virtualbase_ActionEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMainWindow) OnActionEvent(slot func(super func(event *QActionEvent), event *QActionEvent)) {
|
|
|
|
C.QMainWindow_override_virtual_ActionEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMainWindow_ActionEvent
|
|
|
|
func miqt_exec_callback_QMainWindow_ActionEvent(self *C.QMainWindow, cb C.intptr_t, event *C.QActionEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QActionEvent), event *QActionEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := UnsafeNewQActionEvent(unsafe.Pointer(event), nil)
|
|
|
|
|
|
|
|
gofunc((&QMainWindow{h: self}).callVirtualBase_ActionEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) callVirtualBase_DragEnterEvent(event *QDragEnterEvent) {
|
|
|
|
|
|
|
|
C.QMainWindow_virtualbase_DragEnterEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMainWindow) OnDragEnterEvent(slot func(super func(event *QDragEnterEvent), event *QDragEnterEvent)) {
|
|
|
|
C.QMainWindow_override_virtual_DragEnterEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMainWindow_DragEnterEvent
|
|
|
|
func miqt_exec_callback_QMainWindow_DragEnterEvent(self *C.QMainWindow, cb C.intptr_t, event *C.QDragEnterEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QDragEnterEvent), event *QDragEnterEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := UnsafeNewQDragEnterEvent(unsafe.Pointer(event), nil, nil, nil)
|
|
|
|
|
|
|
|
gofunc((&QMainWindow{h: self}).callVirtualBase_DragEnterEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) callVirtualBase_DragMoveEvent(event *QDragMoveEvent) {
|
|
|
|
|
|
|
|
C.QMainWindow_virtualbase_DragMoveEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMainWindow) OnDragMoveEvent(slot func(super func(event *QDragMoveEvent), event *QDragMoveEvent)) {
|
|
|
|
C.QMainWindow_override_virtual_DragMoveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMainWindow_DragMoveEvent
|
|
|
|
func miqt_exec_callback_QMainWindow_DragMoveEvent(self *C.QMainWindow, cb C.intptr_t, event *C.QDragMoveEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QDragMoveEvent), event *QDragMoveEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := UnsafeNewQDragMoveEvent(unsafe.Pointer(event), nil, nil)
|
|
|
|
|
|
|
|
gofunc((&QMainWindow{h: self}).callVirtualBase_DragMoveEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) callVirtualBase_DragLeaveEvent(event *QDragLeaveEvent) {
|
|
|
|
|
|
|
|
C.QMainWindow_virtualbase_DragLeaveEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMainWindow) OnDragLeaveEvent(slot func(super func(event *QDragLeaveEvent), event *QDragLeaveEvent)) {
|
|
|
|
C.QMainWindow_override_virtual_DragLeaveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMainWindow_DragLeaveEvent
|
|
|
|
func miqt_exec_callback_QMainWindow_DragLeaveEvent(self *C.QMainWindow, cb C.intptr_t, event *C.QDragLeaveEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QDragLeaveEvent), event *QDragLeaveEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := UnsafeNewQDragLeaveEvent(unsafe.Pointer(event), nil)
|
|
|
|
|
|
|
|
gofunc((&QMainWindow{h: self}).callVirtualBase_DragLeaveEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) callVirtualBase_DropEvent(event *QDropEvent) {
|
|
|
|
|
|
|
|
C.QMainWindow_virtualbase_DropEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMainWindow) OnDropEvent(slot func(super func(event *QDropEvent), event *QDropEvent)) {
|
|
|
|
C.QMainWindow_override_virtual_DropEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMainWindow_DropEvent
|
|
|
|
func miqt_exec_callback_QMainWindow_DropEvent(self *C.QMainWindow, cb C.intptr_t, event *C.QDropEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QDropEvent), event *QDropEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := UnsafeNewQDropEvent(unsafe.Pointer(event), nil)
|
|
|
|
|
|
|
|
gofunc((&QMainWindow{h: self}).callVirtualBase_DropEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) callVirtualBase_ShowEvent(event *QShowEvent) {
|
|
|
|
|
|
|
|
C.QMainWindow_virtualbase_ShowEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMainWindow) OnShowEvent(slot func(super func(event *QShowEvent), event *QShowEvent)) {
|
|
|
|
C.QMainWindow_override_virtual_ShowEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMainWindow_ShowEvent
|
|
|
|
func miqt_exec_callback_QMainWindow_ShowEvent(self *C.QMainWindow, cb C.intptr_t, event *C.QShowEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QShowEvent), event *QShowEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := UnsafeNewQShowEvent(unsafe.Pointer(event), nil)
|
|
|
|
|
|
|
|
gofunc((&QMainWindow{h: self}).callVirtualBase_ShowEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) callVirtualBase_HideEvent(event *QHideEvent) {
|
|
|
|
|
|
|
|
C.QMainWindow_virtualbase_HideEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMainWindow) OnHideEvent(slot func(super func(event *QHideEvent), event *QHideEvent)) {
|
|
|
|
C.QMainWindow_override_virtual_HideEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMainWindow_HideEvent
|
|
|
|
func miqt_exec_callback_QMainWindow_HideEvent(self *C.QMainWindow, cb C.intptr_t, event *C.QHideEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QHideEvent), event *QHideEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := UnsafeNewQHideEvent(unsafe.Pointer(event), nil)
|
|
|
|
|
|
|
|
gofunc((&QMainWindow{h: self}).callVirtualBase_HideEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *uintptr) bool {
|
|
|
|
eventType_alias := C.struct_miqt_string{}
|
|
|
|
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
|
|
|
eventType_alias.len = C.size_t(len(eventType))
|
|
|
|
|
|
|
|
return (bool)(C.QMainWindow_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.intptr_t)(unsafe.Pointer(result))))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMainWindow) OnNativeEvent(slot func(super func(eventType []byte, message unsafe.Pointer, result *uintptr) bool, eventType []byte, message unsafe.Pointer, result *uintptr) bool) {
|
|
|
|
C.QMainWindow_override_virtual_NativeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMainWindow_NativeEvent
|
|
|
|
func miqt_exec_callback_QMainWindow_NativeEvent(self *C.QMainWindow, cb C.intptr_t, eventType C.struct_miqt_string, message unsafe.Pointer, result *C.intptr_t) C.bool {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(eventType []byte, message unsafe.Pointer, result *uintptr) bool, eventType []byte, message unsafe.Pointer, result *uintptr) bool)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
var eventType_bytearray C.struct_miqt_string = eventType
|
|
|
|
eventType_ret := C.GoBytes(unsafe.Pointer(eventType_bytearray.data), C.int(int64(eventType_bytearray.len)))
|
|
|
|
C.free(unsafe.Pointer(eventType_bytearray.data))
|
|
|
|
slotval1 := eventType_ret
|
|
|
|
slotval2 := (unsafe.Pointer)(message)
|
|
|
|
|
|
|
|
slotval3 := (*uintptr)(unsafe.Pointer(result))
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QMainWindow{h: self}).callVirtualBase_NativeEvent, slotval1, slotval2, slotval3)
|
|
|
|
|
|
|
|
return (C.bool)(virtualReturn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) callVirtualBase_ChangeEvent(param1 *QEvent) {
|
|
|
|
|
|
|
|
C.QMainWindow_virtualbase_ChangeEvent(unsafe.Pointer(this.h), param1.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMainWindow) OnChangeEvent(slot func(super func(param1 *QEvent), param1 *QEvent)) {
|
|
|
|
C.QMainWindow_override_virtual_ChangeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMainWindow_ChangeEvent
|
|
|
|
func miqt_exec_callback_QMainWindow_ChangeEvent(self *C.QMainWindow, cb C.intptr_t, param1 *C.QEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QEvent), param1 *QEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := UnsafeNewQEvent(unsafe.Pointer(param1))
|
|
|
|
|
|
|
|
gofunc((&QMainWindow{h: self}).callVirtualBase_ChangeEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) callVirtualBase_Metric(param1 QPaintDevice__PaintDeviceMetric) int {
|
|
|
|
|
|
|
|
return (int)(C.QMainWindow_virtualbase_Metric(unsafe.Pointer(this.h), (C.int)(param1)))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMainWindow) OnMetric(slot func(super func(param1 QPaintDevice__PaintDeviceMetric) int, param1 QPaintDevice__PaintDeviceMetric) int) {
|
|
|
|
C.QMainWindow_override_virtual_Metric(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMainWindow_Metric
|
|
|
|
func miqt_exec_callback_QMainWindow_Metric(self *C.QMainWindow, cb C.intptr_t, param1 C.int) C.int {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 QPaintDevice__PaintDeviceMetric) int, param1 QPaintDevice__PaintDeviceMetric) int)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := (QPaintDevice__PaintDeviceMetric)(param1)
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QMainWindow{h: self}).callVirtualBase_Metric, slotval1)
|
|
|
|
|
|
|
|
return (C.int)(virtualReturn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) callVirtualBase_InitPainter(painter *QPainter) {
|
|
|
|
|
|
|
|
C.QMainWindow_virtualbase_InitPainter(unsafe.Pointer(this.h), painter.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMainWindow) OnInitPainter(slot func(super func(painter *QPainter), painter *QPainter)) {
|
|
|
|
C.QMainWindow_override_virtual_InitPainter(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMainWindow_InitPainter
|
|
|
|
func miqt_exec_callback_QMainWindow_InitPainter(self *C.QMainWindow, cb C.intptr_t, painter *C.QPainter) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(painter *QPainter), painter *QPainter))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := UnsafeNewQPainter(unsafe.Pointer(painter))
|
|
|
|
|
|
|
|
gofunc((&QMainWindow{h: self}).callVirtualBase_InitPainter, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) callVirtualBase_Redirected(offset *QPoint) *QPaintDevice {
|
|
|
|
|
|
|
|
return UnsafeNewQPaintDevice(unsafe.Pointer(C.QMainWindow_virtualbase_Redirected(unsafe.Pointer(this.h), offset.cPointer())))
|
|
|
|
}
|
|
|
|
func (this *QMainWindow) OnRedirected(slot func(super func(offset *QPoint) *QPaintDevice, offset *QPoint) *QPaintDevice) {
|
|
|
|
C.QMainWindow_override_virtual_Redirected(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMainWindow_Redirected
|
|
|
|
func miqt_exec_callback_QMainWindow_Redirected(self *C.QMainWindow, cb C.intptr_t, offset *C.QPoint) *C.QPaintDevice {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(offset *QPoint) *QPaintDevice, offset *QPoint) *QPaintDevice)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := UnsafeNewQPoint(unsafe.Pointer(offset))
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QMainWindow{h: self}).callVirtualBase_Redirected, slotval1)
|
|
|
|
|
|
|
|
return virtualReturn.cPointer()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) callVirtualBase_SharedPainter() *QPainter {
|
|
|
|
|
|
|
|
return UnsafeNewQPainter(unsafe.Pointer(C.QMainWindow_virtualbase_SharedPainter(unsafe.Pointer(this.h))))
|
|
|
|
}
|
|
|
|
func (this *QMainWindow) OnSharedPainter(slot func(super func() *QPainter) *QPainter) {
|
|
|
|
C.QMainWindow_override_virtual_SharedPainter(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMainWindow_SharedPainter
|
|
|
|
func miqt_exec_callback_QMainWindow_SharedPainter(self *C.QMainWindow, cb C.intptr_t) *C.QPainter {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QPainter) *QPainter)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QMainWindow{h: self}).callVirtualBase_SharedPainter)
|
|
|
|
|
|
|
|
return virtualReturn.cPointer()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) callVirtualBase_InputMethodEvent(param1 *QInputMethodEvent) {
|
|
|
|
|
|
|
|
C.QMainWindow_virtualbase_InputMethodEvent(unsafe.Pointer(this.h), param1.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMainWindow) OnInputMethodEvent(slot func(super func(param1 *QInputMethodEvent), param1 *QInputMethodEvent)) {
|
|
|
|
C.QMainWindow_override_virtual_InputMethodEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMainWindow_InputMethodEvent
|
|
|
|
func miqt_exec_callback_QMainWindow_InputMethodEvent(self *C.QMainWindow, cb C.intptr_t, param1 *C.QInputMethodEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QInputMethodEvent), param1 *QInputMethodEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := UnsafeNewQInputMethodEvent(unsafe.Pointer(param1), nil)
|
|
|
|
|
|
|
|
gofunc((&QMainWindow{h: self}).callVirtualBase_InputMethodEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) callVirtualBase_InputMethodQuery(param1 InputMethodQuery) *QVariant {
|
|
|
|
|
|
|
|
_ret := C.QMainWindow_virtualbase_InputMethodQuery(unsafe.Pointer(this.h), (C.int)(param1))
|
|
|
|
_goptr := newQVariant(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMainWindow) OnInputMethodQuery(slot func(super func(param1 InputMethodQuery) *QVariant, param1 InputMethodQuery) *QVariant) {
|
|
|
|
C.QMainWindow_override_virtual_InputMethodQuery(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMainWindow_InputMethodQuery
|
|
|
|
func miqt_exec_callback_QMainWindow_InputMethodQuery(self *C.QMainWindow, cb C.intptr_t, param1 C.int) *C.QVariant {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 InputMethodQuery) *QVariant, param1 InputMethodQuery) *QVariant)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := (InputMethodQuery)(param1)
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QMainWindow{h: self}).callVirtualBase_InputMethodQuery, slotval1)
|
|
|
|
|
|
|
|
return virtualReturn.cPointer()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMainWindow) callVirtualBase_FocusNextPrevChild(next bool) bool {
|
|
|
|
|
|
|
|
return (bool)(C.QMainWindow_virtualbase_FocusNextPrevChild(unsafe.Pointer(this.h), (C.bool)(next)))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QMainWindow) OnFocusNextPrevChild(slot func(super func(next bool) bool, next bool) bool) {
|
|
|
|
C.QMainWindow_override_virtual_FocusNextPrevChild(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QMainWindow_FocusNextPrevChild
|
|
|
|
func miqt_exec_callback_QMainWindow_FocusNextPrevChild(self *C.QMainWindow, cb C.intptr_t, next C.bool) C.bool {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(next bool) bool, next bool) bool)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := (bool)(next)
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QMainWindow{h: self}).callVirtualBase_FocusNextPrevChild, slotval1)
|
|
|
|
|
|
|
|
return (C.bool)(virtualReturn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2024-10-20 05:21:03 +00:00
|
|
|
// Delete this object from C++ memory.
|
|
|
|
func (this *QMainWindow) Delete() {
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QMainWindow_Delete(this.h, C.bool(this.isSubclass))
|
2024-10-20 05:21:03 +00: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 *QMainWindow) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QMainWindow) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|