package printsupport /* #include "gen_qpagesetupdialog.h" #include */ import "C" import ( "github.com/mappu/miqt/qt" "runtime" "runtime/cgo" "unsafe" ) type QPageSetupDialog struct { h *C.QPageSetupDialog *qt.QDialog } func (this *QPageSetupDialog) cPointer() *C.QPageSetupDialog { if this == nil { return nil } return this.h } func (this *QPageSetupDialog) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQPageSetupDialog constructs the type using only CGO pointers. func newQPageSetupDialog(h *C.QPageSetupDialog) *QPageSetupDialog { if h == nil { return nil } var outptr_QDialog *C.QDialog = nil C.QPageSetupDialog_virtbase(h, &outptr_QDialog) return &QPageSetupDialog{h: h, QDialog: qt.UnsafeNewQDialog(unsafe.Pointer(outptr_QDialog))} } // UnsafeNewQPageSetupDialog constructs the type using only unsafe pointers. func UnsafeNewQPageSetupDialog(h unsafe.Pointer) *QPageSetupDialog { return newQPageSetupDialog((*C.QPageSetupDialog)(h)) } // NewQPageSetupDialog constructs a new QPageSetupDialog object. func NewQPageSetupDialog(parent *qt.QWidget) *QPageSetupDialog { return newQPageSetupDialog(C.QPageSetupDialog_new((*C.QWidget)(parent.UnsafePointer()))) } // NewQPageSetupDialog2 constructs a new QPageSetupDialog object. func NewQPageSetupDialog2(printer *QPrinter) *QPageSetupDialog { return newQPageSetupDialog(C.QPageSetupDialog_new2(printer.cPointer())) } // NewQPageSetupDialog3 constructs a new QPageSetupDialog object. func NewQPageSetupDialog3() *QPageSetupDialog { return newQPageSetupDialog(C.QPageSetupDialog_new3()) } // NewQPageSetupDialog4 constructs a new QPageSetupDialog object. func NewQPageSetupDialog4(printer *QPrinter, parent *qt.QWidget) *QPageSetupDialog { return newQPageSetupDialog(C.QPageSetupDialog_new4(printer.cPointer(), (*C.QWidget)(parent.UnsafePointer()))) } func (this *QPageSetupDialog) MetaObject() *qt.QMetaObject { return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QPageSetupDialog_metaObject(this.h))) } func (this *QPageSetupDialog) Metacast(param1 string) unsafe.Pointer { param1_Cstring := C.CString(param1) defer C.free(unsafe.Pointer(param1_Cstring)) return (unsafe.Pointer)(C.QPageSetupDialog_metacast(this.h, param1_Cstring)) } func QPageSetupDialog_Tr(s string) string { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) var _ms C.struct_miqt_string = C.QPageSetupDialog_tr(s_Cstring) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func QPageSetupDialog_TrUtf8(s string) string { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) var _ms C.struct_miqt_string = C.QPageSetupDialog_trUtf8(s_Cstring) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QPageSetupDialog) Exec() int { return (int)(C.QPageSetupDialog_exec(this.h)) } func (this *QPageSetupDialog) Done(result int) { C.QPageSetupDialog_done(this.h, (C.int)(result)) } func (this *QPageSetupDialog) Printer() *QPrinter { return newQPrinter(C.QPageSetupDialog_printer(this.h)) } func QPageSetupDialog_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.QPageSetupDialog_tr2(s_Cstring, c_Cstring) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func QPageSetupDialog_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.QPageSetupDialog_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 QPageSetupDialog_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)) var _ms C.struct_miqt_string = C.QPageSetupDialog_trUtf82(s_Cstring, c_Cstring) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func QPageSetupDialog_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)) var _ms C.struct_miqt_string = C.QPageSetupDialog_trUtf83(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 *QPageSetupDialog) callVirtualBase_Exec() int { return (int)(C.QPageSetupDialog_virtualbase_exec(unsafe.Pointer(this.h))) } func (this *QPageSetupDialog) Onexec(slot func(super func() int) int) { ok := C.QPageSetupDialog_override_virtual_exec(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) if !ok { panic("miqt: can only override virtual methods for directly constructed types") } } //export miqt_exec_callback_QPageSetupDialog_exec func miqt_exec_callback_QPageSetupDialog_exec(self *C.QPageSetupDialog, 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((&QPageSetupDialog{h: self}).callVirtualBase_Exec) return (C.int)(virtualReturn) } func (this *QPageSetupDialog) callVirtualBase_Done(result int) { C.QPageSetupDialog_virtualbase_done(unsafe.Pointer(this.h), (C.int)(result)) } func (this *QPageSetupDialog) Ondone(slot func(super func(result int), result int)) { ok := C.QPageSetupDialog_override_virtual_done(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) if !ok { panic("miqt: can only override virtual methods for directly constructed types") } } //export miqt_exec_callback_QPageSetupDialog_done func miqt_exec_callback_QPageSetupDialog_done(self *C.QPageSetupDialog, cb C.intptr_t, result C.int) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(result int), result int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := (int)(result) gofunc((&QPageSetupDialog{h: self}).callVirtualBase_Done, slotval1) } func (this *QPageSetupDialog) callVirtualBase_SetVisible(visible bool) { C.QPageSetupDialog_virtualbase_setVisible(unsafe.Pointer(this.h), (C.bool)(visible)) } func (this *QPageSetupDialog) OnsetVisible(slot func(super func(visible bool), visible bool)) { ok := C.QPageSetupDialog_override_virtual_setVisible(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) if !ok { panic("miqt: can only override virtual methods for directly constructed types") } } //export miqt_exec_callback_QPageSetupDialog_setVisible func miqt_exec_callback_QPageSetupDialog_setVisible(self *C.QPageSetupDialog, 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((&QPageSetupDialog{h: self}).callVirtualBase_SetVisible, slotval1) } func (this *QPageSetupDialog) callVirtualBase_SizeHint() *qt.QSize { _goptr := qt.UnsafeNewQSize(unsafe.Pointer(C.QPageSetupDialog_virtualbase_sizeHint(unsafe.Pointer(this.h)))) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QPageSetupDialog) OnsizeHint(slot func(super func() *qt.QSize) *qt.QSize) { ok := C.QPageSetupDialog_override_virtual_sizeHint(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) if !ok { panic("miqt: can only override virtual methods for directly constructed types") } } //export miqt_exec_callback_QPageSetupDialog_sizeHint func miqt_exec_callback_QPageSetupDialog_sizeHint(self *C.QPageSetupDialog, cb C.intptr_t) *C.QSize { gofunc, ok := cgo.Handle(cb).Value().(func(super func() *qt.QSize) *qt.QSize) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } virtualReturn := gofunc((&QPageSetupDialog{h: self}).callVirtualBase_SizeHint) return (*C.QSize)(virtualReturn.UnsafePointer()) } func (this *QPageSetupDialog) callVirtualBase_MinimumSizeHint() *qt.QSize { _goptr := qt.UnsafeNewQSize(unsafe.Pointer(C.QPageSetupDialog_virtualbase_minimumSizeHint(unsafe.Pointer(this.h)))) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QPageSetupDialog) OnminimumSizeHint(slot func(super func() *qt.QSize) *qt.QSize) { ok := C.QPageSetupDialog_override_virtual_minimumSizeHint(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) if !ok { panic("miqt: can only override virtual methods for directly constructed types") } } //export miqt_exec_callback_QPageSetupDialog_minimumSizeHint func miqt_exec_callback_QPageSetupDialog_minimumSizeHint(self *C.QPageSetupDialog, cb C.intptr_t) *C.QSize { gofunc, ok := cgo.Handle(cb).Value().(func(super func() *qt.QSize) *qt.QSize) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } virtualReturn := gofunc((&QPageSetupDialog{h: self}).callVirtualBase_MinimumSizeHint) return (*C.QSize)(virtualReturn.UnsafePointer()) } func (this *QPageSetupDialog) callVirtualBase_Open() { C.QPageSetupDialog_virtualbase_open(unsafe.Pointer(this.h)) } func (this *QPageSetupDialog) Onopen(slot func(super func())) { ok := C.QPageSetupDialog_override_virtual_open(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) if !ok { panic("miqt: can only override virtual methods for directly constructed types") } } //export miqt_exec_callback_QPageSetupDialog_open func miqt_exec_callback_QPageSetupDialog_open(self *C.QPageSetupDialog, cb C.intptr_t) { gofunc, ok := cgo.Handle(cb).Value().(func(super func())) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } gofunc((&QPageSetupDialog{h: self}).callVirtualBase_Open) } func (this *QPageSetupDialog) callVirtualBase_Accept() { C.QPageSetupDialog_virtualbase_accept(unsafe.Pointer(this.h)) } func (this *QPageSetupDialog) Onaccept(slot func(super func())) { ok := C.QPageSetupDialog_override_virtual_accept(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) if !ok { panic("miqt: can only override virtual methods for directly constructed types") } } //export miqt_exec_callback_QPageSetupDialog_accept func miqt_exec_callback_QPageSetupDialog_accept(self *C.QPageSetupDialog, cb C.intptr_t) { gofunc, ok := cgo.Handle(cb).Value().(func(super func())) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } gofunc((&QPageSetupDialog{h: self}).callVirtualBase_Accept) } func (this *QPageSetupDialog) callVirtualBase_Reject() { C.QPageSetupDialog_virtualbase_reject(unsafe.Pointer(this.h)) } func (this *QPageSetupDialog) Onreject(slot func(super func())) { ok := C.QPageSetupDialog_override_virtual_reject(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) if !ok { panic("miqt: can only override virtual methods for directly constructed types") } } //export miqt_exec_callback_QPageSetupDialog_reject func miqt_exec_callback_QPageSetupDialog_reject(self *C.QPageSetupDialog, cb C.intptr_t) { gofunc, ok := cgo.Handle(cb).Value().(func(super func())) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } gofunc((&QPageSetupDialog{h: self}).callVirtualBase_Reject) } func (this *QPageSetupDialog) callVirtualBase_KeyPressEvent(param1 *qt.QKeyEvent) { C.QPageSetupDialog_virtualbase_keyPressEvent(unsafe.Pointer(this.h), (*C.QKeyEvent)(param1.UnsafePointer())) } func (this *QPageSetupDialog) OnkeyPressEvent(slot func(super func(param1 *qt.QKeyEvent), param1 *qt.QKeyEvent)) { ok := C.QPageSetupDialog_override_virtual_keyPressEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) if !ok { panic("miqt: can only override virtual methods for directly constructed types") } } //export miqt_exec_callback_QPageSetupDialog_keyPressEvent func miqt_exec_callback_QPageSetupDialog_keyPressEvent(self *C.QPageSetupDialog, cb C.intptr_t, param1 *C.QKeyEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *qt.QKeyEvent), param1 *qt.QKeyEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := qt.UnsafeNewQKeyEvent(unsafe.Pointer(param1)) gofunc((&QPageSetupDialog{h: self}).callVirtualBase_KeyPressEvent, slotval1) } func (this *QPageSetupDialog) callVirtualBase_CloseEvent(param1 *qt.QCloseEvent) { C.QPageSetupDialog_virtualbase_closeEvent(unsafe.Pointer(this.h), (*C.QCloseEvent)(param1.UnsafePointer())) } func (this *QPageSetupDialog) OncloseEvent(slot func(super func(param1 *qt.QCloseEvent), param1 *qt.QCloseEvent)) { ok := C.QPageSetupDialog_override_virtual_closeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) if !ok { panic("miqt: can only override virtual methods for directly constructed types") } } //export miqt_exec_callback_QPageSetupDialog_closeEvent func miqt_exec_callback_QPageSetupDialog_closeEvent(self *C.QPageSetupDialog, cb C.intptr_t, param1 *C.QCloseEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *qt.QCloseEvent), param1 *qt.QCloseEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := qt.UnsafeNewQCloseEvent(unsafe.Pointer(param1)) gofunc((&QPageSetupDialog{h: self}).callVirtualBase_CloseEvent, slotval1) } func (this *QPageSetupDialog) callVirtualBase_ShowEvent(param1 *qt.QShowEvent) { C.QPageSetupDialog_virtualbase_showEvent(unsafe.Pointer(this.h), (*C.QShowEvent)(param1.UnsafePointer())) } func (this *QPageSetupDialog) OnshowEvent(slot func(super func(param1 *qt.QShowEvent), param1 *qt.QShowEvent)) { ok := C.QPageSetupDialog_override_virtual_showEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) if !ok { panic("miqt: can only override virtual methods for directly constructed types") } } //export miqt_exec_callback_QPageSetupDialog_showEvent func miqt_exec_callback_QPageSetupDialog_showEvent(self *C.QPageSetupDialog, cb C.intptr_t, param1 *C.QShowEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *qt.QShowEvent), param1 *qt.QShowEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := qt.UnsafeNewQShowEvent(unsafe.Pointer(param1)) gofunc((&QPageSetupDialog{h: self}).callVirtualBase_ShowEvent, slotval1) } func (this *QPageSetupDialog) callVirtualBase_ResizeEvent(param1 *qt.QResizeEvent) { C.QPageSetupDialog_virtualbase_resizeEvent(unsafe.Pointer(this.h), (*C.QResizeEvent)(param1.UnsafePointer())) } func (this *QPageSetupDialog) OnresizeEvent(slot func(super func(param1 *qt.QResizeEvent), param1 *qt.QResizeEvent)) { ok := C.QPageSetupDialog_override_virtual_resizeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) if !ok { panic("miqt: can only override virtual methods for directly constructed types") } } //export miqt_exec_callback_QPageSetupDialog_resizeEvent func miqt_exec_callback_QPageSetupDialog_resizeEvent(self *C.QPageSetupDialog, cb C.intptr_t, param1 *C.QResizeEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *qt.QResizeEvent), param1 *qt.QResizeEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := qt.UnsafeNewQResizeEvent(unsafe.Pointer(param1)) gofunc((&QPageSetupDialog{h: self}).callVirtualBase_ResizeEvent, slotval1) } func (this *QPageSetupDialog) callVirtualBase_ContextMenuEvent(param1 *qt.QContextMenuEvent) { C.QPageSetupDialog_virtualbase_contextMenuEvent(unsafe.Pointer(this.h), (*C.QContextMenuEvent)(param1.UnsafePointer())) } func (this *QPageSetupDialog) OncontextMenuEvent(slot func(super func(param1 *qt.QContextMenuEvent), param1 *qt.QContextMenuEvent)) { ok := C.QPageSetupDialog_override_virtual_contextMenuEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) if !ok { panic("miqt: can only override virtual methods for directly constructed types") } } //export miqt_exec_callback_QPageSetupDialog_contextMenuEvent func miqt_exec_callback_QPageSetupDialog_contextMenuEvent(self *C.QPageSetupDialog, cb C.intptr_t, param1 *C.QContextMenuEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *qt.QContextMenuEvent), param1 *qt.QContextMenuEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := qt.UnsafeNewQContextMenuEvent(unsafe.Pointer(param1)) gofunc((&QPageSetupDialog{h: self}).callVirtualBase_ContextMenuEvent, slotval1) } func (this *QPageSetupDialog) callVirtualBase_EventFilter(param1 *qt.QObject, param2 *qt.QEvent) bool { return (bool)(C.QPageSetupDialog_virtualbase_eventFilter(unsafe.Pointer(this.h), (*C.QObject)(param1.UnsafePointer()), (*C.QEvent)(param2.UnsafePointer()))) } func (this *QPageSetupDialog) OneventFilter(slot func(super func(param1 *qt.QObject, param2 *qt.QEvent) bool, param1 *qt.QObject, param2 *qt.QEvent) bool) { ok := C.QPageSetupDialog_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") } } //export miqt_exec_callback_QPageSetupDialog_eventFilter func miqt_exec_callback_QPageSetupDialog_eventFilter(self *C.QPageSetupDialog, cb C.intptr_t, param1 *C.QObject, param2 *C.QEvent) C.bool { gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *qt.QObject, param2 *qt.QEvent) bool, param1 *qt.QObject, param2 *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(param1)) slotval2 := qt.UnsafeNewQEvent(unsafe.Pointer(param2)) virtualReturn := gofunc((&QPageSetupDialog{h: self}).callVirtualBase_EventFilter, slotval1, slotval2) return (C.bool)(virtualReturn) } func (this *QPageSetupDialog) callVirtualBase_DevType() int { return (int)(C.QPageSetupDialog_virtualbase_devType(unsafe.Pointer(this.h))) } func (this *QPageSetupDialog) OndevType(slot func(super func() int) int) { ok := C.QPageSetupDialog_override_virtual_devType(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) if !ok { panic("miqt: can only override virtual methods for directly constructed types") } } //export miqt_exec_callback_QPageSetupDialog_devType func miqt_exec_callback_QPageSetupDialog_devType(self *C.QPageSetupDialog, 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((&QPageSetupDialog{h: self}).callVirtualBase_DevType) return (C.int)(virtualReturn) } func (this *QPageSetupDialog) callVirtualBase_HeightForWidth(param1 int) int { return (int)(C.QPageSetupDialog_virtualbase_heightForWidth(unsafe.Pointer(this.h), (C.int)(param1))) } func (this *QPageSetupDialog) OnheightForWidth(slot func(super func(param1 int) int, param1 int) int) { ok := C.QPageSetupDialog_override_virtual_heightForWidth(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) if !ok { panic("miqt: can only override virtual methods for directly constructed types") } } //export miqt_exec_callback_QPageSetupDialog_heightForWidth func miqt_exec_callback_QPageSetupDialog_heightForWidth(self *C.QPageSetupDialog, 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((&QPageSetupDialog{h: self}).callVirtualBase_HeightForWidth, slotval1) return (C.int)(virtualReturn) } func (this *QPageSetupDialog) callVirtualBase_HasHeightForWidth() bool { return (bool)(C.QPageSetupDialog_virtualbase_hasHeightForWidth(unsafe.Pointer(this.h))) } func (this *QPageSetupDialog) OnhasHeightForWidth(slot func(super func() bool) bool) { ok := C.QPageSetupDialog_override_virtual_hasHeightForWidth(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) if !ok { panic("miqt: can only override virtual methods for directly constructed types") } } //export miqt_exec_callback_QPageSetupDialog_hasHeightForWidth func miqt_exec_callback_QPageSetupDialog_hasHeightForWidth(self *C.QPageSetupDialog, 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((&QPageSetupDialog{h: self}).callVirtualBase_HasHeightForWidth) return (C.bool)(virtualReturn) } func (this *QPageSetupDialog) callVirtualBase_PaintEngine() *qt.QPaintEngine { return qt.UnsafeNewQPaintEngine(unsafe.Pointer(C.QPageSetupDialog_virtualbase_paintEngine(unsafe.Pointer(this.h)))) } func (this *QPageSetupDialog) OnpaintEngine(slot func(super func() *qt.QPaintEngine) *qt.QPaintEngine) { ok := C.QPageSetupDialog_override_virtual_paintEngine(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) if !ok { panic("miqt: can only override virtual methods for directly constructed types") } } //export miqt_exec_callback_QPageSetupDialog_paintEngine func miqt_exec_callback_QPageSetupDialog_paintEngine(self *C.QPageSetupDialog, cb C.intptr_t) *C.QPaintEngine { gofunc, ok := cgo.Handle(cb).Value().(func(super func() *qt.QPaintEngine) *qt.QPaintEngine) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } virtualReturn := gofunc((&QPageSetupDialog{h: self}).callVirtualBase_PaintEngine) return (*C.QPaintEngine)(virtualReturn.UnsafePointer()) } func (this *QPageSetupDialog) callVirtualBase_Event(event *qt.QEvent) bool { return (bool)(C.QPageSetupDialog_virtualbase_event(unsafe.Pointer(this.h), (*C.QEvent)(event.UnsafePointer()))) } func (this *QPageSetupDialog) Onevent(slot func(super func(event *qt.QEvent) bool, event *qt.QEvent) bool) { ok := C.QPageSetupDialog_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") } } //export miqt_exec_callback_QPageSetupDialog_event func miqt_exec_callback_QPageSetupDialog_event(self *C.QPageSetupDialog, cb C.intptr_t, event *C.QEvent) C.bool { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QEvent) bool, event *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(event)) virtualReturn := gofunc((&QPageSetupDialog{h: self}).callVirtualBase_Event, slotval1) return (C.bool)(virtualReturn) } func (this *QPageSetupDialog) callVirtualBase_MousePressEvent(event *qt.QMouseEvent) { C.QPageSetupDialog_virtualbase_mousePressEvent(unsafe.Pointer(this.h), (*C.QMouseEvent)(event.UnsafePointer())) } func (this *QPageSetupDialog) OnmousePressEvent(slot func(super func(event *qt.QMouseEvent), event *qt.QMouseEvent)) { ok := C.QPageSetupDialog_override_virtual_mousePressEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) if !ok { panic("miqt: can only override virtual methods for directly constructed types") } } //export miqt_exec_callback_QPageSetupDialog_mousePressEvent func miqt_exec_callback_QPageSetupDialog_mousePressEvent(self *C.QPageSetupDialog, cb C.intptr_t, event *C.QMouseEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QMouseEvent), event *qt.QMouseEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := qt.UnsafeNewQMouseEvent(unsafe.Pointer(event)) gofunc((&QPageSetupDialog{h: self}).callVirtualBase_MousePressEvent, slotval1) } func (this *QPageSetupDialog) callVirtualBase_MouseReleaseEvent(event *qt.QMouseEvent) { C.QPageSetupDialog_virtualbase_mouseReleaseEvent(unsafe.Pointer(this.h), (*C.QMouseEvent)(event.UnsafePointer())) } func (this *QPageSetupDialog) OnmouseReleaseEvent(slot func(super func(event *qt.QMouseEvent), event *qt.QMouseEvent)) { ok := C.QPageSetupDialog_override_virtual_mouseReleaseEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) if !ok { panic("miqt: can only override virtual methods for directly constructed types") } } //export miqt_exec_callback_QPageSetupDialog_mouseReleaseEvent func miqt_exec_callback_QPageSetupDialog_mouseReleaseEvent(self *C.QPageSetupDialog, cb C.intptr_t, event *C.QMouseEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QMouseEvent), event *qt.QMouseEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := qt.UnsafeNewQMouseEvent(unsafe.Pointer(event)) gofunc((&QPageSetupDialog{h: self}).callVirtualBase_MouseReleaseEvent, slotval1) } func (this *QPageSetupDialog) callVirtualBase_MouseDoubleClickEvent(event *qt.QMouseEvent) { C.QPageSetupDialog_virtualbase_mouseDoubleClickEvent(unsafe.Pointer(this.h), (*C.QMouseEvent)(event.UnsafePointer())) } func (this *QPageSetupDialog) OnmouseDoubleClickEvent(slot func(super func(event *qt.QMouseEvent), event *qt.QMouseEvent)) { ok := C.QPageSetupDialog_override_virtual_mouseDoubleClickEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) if !ok { panic("miqt: can only override virtual methods for directly constructed types") } } //export miqt_exec_callback_QPageSetupDialog_mouseDoubleClickEvent func miqt_exec_callback_QPageSetupDialog_mouseDoubleClickEvent(self *C.QPageSetupDialog, cb C.intptr_t, event *C.QMouseEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QMouseEvent), event *qt.QMouseEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := qt.UnsafeNewQMouseEvent(unsafe.Pointer(event)) gofunc((&QPageSetupDialog{h: self}).callVirtualBase_MouseDoubleClickEvent, slotval1) } func (this *QPageSetupDialog) callVirtualBase_MouseMoveEvent(event *qt.QMouseEvent) { C.QPageSetupDialog_virtualbase_mouseMoveEvent(unsafe.Pointer(this.h), (*C.QMouseEvent)(event.UnsafePointer())) } func (this *QPageSetupDialog) OnmouseMoveEvent(slot func(super func(event *qt.QMouseEvent), event *qt.QMouseEvent)) { ok := C.QPageSetupDialog_override_virtual_mouseMoveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) if !ok { panic("miqt: can only override virtual methods for directly constructed types") } } //export miqt_exec_callback_QPageSetupDialog_mouseMoveEvent func miqt_exec_callback_QPageSetupDialog_mouseMoveEvent(self *C.QPageSetupDialog, cb C.intptr_t, event *C.QMouseEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QMouseEvent), event *qt.QMouseEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := qt.UnsafeNewQMouseEvent(unsafe.Pointer(event)) gofunc((&QPageSetupDialog{h: self}).callVirtualBase_MouseMoveEvent, slotval1) } func (this *QPageSetupDialog) callVirtualBase_WheelEvent(event *qt.QWheelEvent) { C.QPageSetupDialog_virtualbase_wheelEvent(unsafe.Pointer(this.h), (*C.QWheelEvent)(event.UnsafePointer())) } func (this *QPageSetupDialog) OnwheelEvent(slot func(super func(event *qt.QWheelEvent), event *qt.QWheelEvent)) { ok := C.QPageSetupDialog_override_virtual_wheelEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) if !ok { panic("miqt: can only override virtual methods for directly constructed types") } } //export miqt_exec_callback_QPageSetupDialog_wheelEvent func miqt_exec_callback_QPageSetupDialog_wheelEvent(self *C.QPageSetupDialog, cb C.intptr_t, event *C.QWheelEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QWheelEvent), event *qt.QWheelEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := qt.UnsafeNewQWheelEvent(unsafe.Pointer(event)) gofunc((&QPageSetupDialog{h: self}).callVirtualBase_WheelEvent, slotval1) } func (this *QPageSetupDialog) callVirtualBase_KeyReleaseEvent(event *qt.QKeyEvent) { C.QPageSetupDialog_virtualbase_keyReleaseEvent(unsafe.Pointer(this.h), (*C.QKeyEvent)(event.UnsafePointer())) } func (this *QPageSetupDialog) OnkeyReleaseEvent(slot func(super func(event *qt.QKeyEvent), event *qt.QKeyEvent)) { ok := C.QPageSetupDialog_override_virtual_keyReleaseEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) if !ok { panic("miqt: can only override virtual methods for directly constructed types") } } //export miqt_exec_callback_QPageSetupDialog_keyReleaseEvent func miqt_exec_callback_QPageSetupDialog_keyReleaseEvent(self *C.QPageSetupDialog, cb C.intptr_t, event *C.QKeyEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QKeyEvent), event *qt.QKeyEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := qt.UnsafeNewQKeyEvent(unsafe.Pointer(event)) gofunc((&QPageSetupDialog{h: self}).callVirtualBase_KeyReleaseEvent, slotval1) } func (this *QPageSetupDialog) callVirtualBase_FocusInEvent(event *qt.QFocusEvent) { C.QPageSetupDialog_virtualbase_focusInEvent(unsafe.Pointer(this.h), (*C.QFocusEvent)(event.UnsafePointer())) } func (this *QPageSetupDialog) OnfocusInEvent(slot func(super func(event *qt.QFocusEvent), event *qt.QFocusEvent)) { ok := C.QPageSetupDialog_override_virtual_focusInEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) if !ok { panic("miqt: can only override virtual methods for directly constructed types") } } //export miqt_exec_callback_QPageSetupDialog_focusInEvent func miqt_exec_callback_QPageSetupDialog_focusInEvent(self *C.QPageSetupDialog, cb C.intptr_t, event *C.QFocusEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QFocusEvent), event *qt.QFocusEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := qt.UnsafeNewQFocusEvent(unsafe.Pointer(event)) gofunc((&QPageSetupDialog{h: self}).callVirtualBase_FocusInEvent, slotval1) } func (this *QPageSetupDialog) callVirtualBase_FocusOutEvent(event *qt.QFocusEvent) { C.QPageSetupDialog_virtualbase_focusOutEvent(unsafe.Pointer(this.h), (*C.QFocusEvent)(event.UnsafePointer())) } func (this *QPageSetupDialog) OnfocusOutEvent(slot func(super func(event *qt.QFocusEvent), event *qt.QFocusEvent)) { ok := C.QPageSetupDialog_override_virtual_focusOutEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) if !ok { panic("miqt: can only override virtual methods for directly constructed types") } } //export miqt_exec_callback_QPageSetupDialog_focusOutEvent func miqt_exec_callback_QPageSetupDialog_focusOutEvent(self *C.QPageSetupDialog, cb C.intptr_t, event *C.QFocusEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QFocusEvent), event *qt.QFocusEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := qt.UnsafeNewQFocusEvent(unsafe.Pointer(event)) gofunc((&QPageSetupDialog{h: self}).callVirtualBase_FocusOutEvent, slotval1) } func (this *QPageSetupDialog) callVirtualBase_EnterEvent(event *qt.QEvent) { C.QPageSetupDialog_virtualbase_enterEvent(unsafe.Pointer(this.h), (*C.QEvent)(event.UnsafePointer())) } func (this *QPageSetupDialog) OnenterEvent(slot func(super func(event *qt.QEvent), event *qt.QEvent)) { ok := C.QPageSetupDialog_override_virtual_enterEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) if !ok { panic("miqt: can only override virtual methods for directly constructed types") } } //export miqt_exec_callback_QPageSetupDialog_enterEvent func miqt_exec_callback_QPageSetupDialog_enterEvent(self *C.QPageSetupDialog, cb C.intptr_t, event *C.QEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QEvent), event *qt.QEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := qt.UnsafeNewQEvent(unsafe.Pointer(event)) gofunc((&QPageSetupDialog{h: self}).callVirtualBase_EnterEvent, slotval1) } func (this *QPageSetupDialog) callVirtualBase_LeaveEvent(event *qt.QEvent) { C.QPageSetupDialog_virtualbase_leaveEvent(unsafe.Pointer(this.h), (*C.QEvent)(event.UnsafePointer())) } func (this *QPageSetupDialog) OnleaveEvent(slot func(super func(event *qt.QEvent), event *qt.QEvent)) { ok := C.QPageSetupDialog_override_virtual_leaveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) if !ok { panic("miqt: can only override virtual methods for directly constructed types") } } //export miqt_exec_callback_QPageSetupDialog_leaveEvent func miqt_exec_callback_QPageSetupDialog_leaveEvent(self *C.QPageSetupDialog, cb C.intptr_t, event *C.QEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QEvent), event *qt.QEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := qt.UnsafeNewQEvent(unsafe.Pointer(event)) gofunc((&QPageSetupDialog{h: self}).callVirtualBase_LeaveEvent, slotval1) } func (this *QPageSetupDialog) callVirtualBase_PaintEvent(event *qt.QPaintEvent) { C.QPageSetupDialog_virtualbase_paintEvent(unsafe.Pointer(this.h), (*C.QPaintEvent)(event.UnsafePointer())) } func (this *QPageSetupDialog) OnpaintEvent(slot func(super func(event *qt.QPaintEvent), event *qt.QPaintEvent)) { ok := C.QPageSetupDialog_override_virtual_paintEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) if !ok { panic("miqt: can only override virtual methods for directly constructed types") } } //export miqt_exec_callback_QPageSetupDialog_paintEvent func miqt_exec_callback_QPageSetupDialog_paintEvent(self *C.QPageSetupDialog, cb C.intptr_t, event *C.QPaintEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QPaintEvent), event *qt.QPaintEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := qt.UnsafeNewQPaintEvent(unsafe.Pointer(event)) gofunc((&QPageSetupDialog{h: self}).callVirtualBase_PaintEvent, slotval1) } func (this *QPageSetupDialog) callVirtualBase_MoveEvent(event *qt.QMoveEvent) { C.QPageSetupDialog_virtualbase_moveEvent(unsafe.Pointer(this.h), (*C.QMoveEvent)(event.UnsafePointer())) } func (this *QPageSetupDialog) OnmoveEvent(slot func(super func(event *qt.QMoveEvent), event *qt.QMoveEvent)) { ok := C.QPageSetupDialog_override_virtual_moveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) if !ok { panic("miqt: can only override virtual methods for directly constructed types") } } //export miqt_exec_callback_QPageSetupDialog_moveEvent func miqt_exec_callback_QPageSetupDialog_moveEvent(self *C.QPageSetupDialog, cb C.intptr_t, event *C.QMoveEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QMoveEvent), event *qt.QMoveEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := qt.UnsafeNewQMoveEvent(unsafe.Pointer(event)) gofunc((&QPageSetupDialog{h: self}).callVirtualBase_MoveEvent, slotval1) } func (this *QPageSetupDialog) callVirtualBase_TabletEvent(event *qt.QTabletEvent) { C.QPageSetupDialog_virtualbase_tabletEvent(unsafe.Pointer(this.h), (*C.QTabletEvent)(event.UnsafePointer())) } func (this *QPageSetupDialog) OntabletEvent(slot func(super func(event *qt.QTabletEvent), event *qt.QTabletEvent)) { ok := C.QPageSetupDialog_override_virtual_tabletEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) if !ok { panic("miqt: can only override virtual methods for directly constructed types") } } //export miqt_exec_callback_QPageSetupDialog_tabletEvent func miqt_exec_callback_QPageSetupDialog_tabletEvent(self *C.QPageSetupDialog, cb C.intptr_t, event *C.QTabletEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QTabletEvent), event *qt.QTabletEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := qt.UnsafeNewQTabletEvent(unsafe.Pointer(event)) gofunc((&QPageSetupDialog{h: self}).callVirtualBase_TabletEvent, slotval1) } func (this *QPageSetupDialog) callVirtualBase_ActionEvent(event *qt.QActionEvent) { C.QPageSetupDialog_virtualbase_actionEvent(unsafe.Pointer(this.h), (*C.QActionEvent)(event.UnsafePointer())) } func (this *QPageSetupDialog) OnactionEvent(slot func(super func(event *qt.QActionEvent), event *qt.QActionEvent)) { ok := C.QPageSetupDialog_override_virtual_actionEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) if !ok { panic("miqt: can only override virtual methods for directly constructed types") } } //export miqt_exec_callback_QPageSetupDialog_actionEvent func miqt_exec_callback_QPageSetupDialog_actionEvent(self *C.QPageSetupDialog, cb C.intptr_t, event *C.QActionEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QActionEvent), event *qt.QActionEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := qt.UnsafeNewQActionEvent(unsafe.Pointer(event)) gofunc((&QPageSetupDialog{h: self}).callVirtualBase_ActionEvent, slotval1) } func (this *QPageSetupDialog) callVirtualBase_DragEnterEvent(event *qt.QDragEnterEvent) { C.QPageSetupDialog_virtualbase_dragEnterEvent(unsafe.Pointer(this.h), (*C.QDragEnterEvent)(event.UnsafePointer())) } func (this *QPageSetupDialog) OndragEnterEvent(slot func(super func(event *qt.QDragEnterEvent), event *qt.QDragEnterEvent)) { ok := C.QPageSetupDialog_override_virtual_dragEnterEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) if !ok { panic("miqt: can only override virtual methods for directly constructed types") } } //export miqt_exec_callback_QPageSetupDialog_dragEnterEvent func miqt_exec_callback_QPageSetupDialog_dragEnterEvent(self *C.QPageSetupDialog, cb C.intptr_t, event *C.QDragEnterEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QDragEnterEvent), event *qt.QDragEnterEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := qt.UnsafeNewQDragEnterEvent(unsafe.Pointer(event)) gofunc((&QPageSetupDialog{h: self}).callVirtualBase_DragEnterEvent, slotval1) } func (this *QPageSetupDialog) callVirtualBase_DragMoveEvent(event *qt.QDragMoveEvent) { C.QPageSetupDialog_virtualbase_dragMoveEvent(unsafe.Pointer(this.h), (*C.QDragMoveEvent)(event.UnsafePointer())) } func (this *QPageSetupDialog) OndragMoveEvent(slot func(super func(event *qt.QDragMoveEvent), event *qt.QDragMoveEvent)) { ok := C.QPageSetupDialog_override_virtual_dragMoveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) if !ok { panic("miqt: can only override virtual methods for directly constructed types") } } //export miqt_exec_callback_QPageSetupDialog_dragMoveEvent func miqt_exec_callback_QPageSetupDialog_dragMoveEvent(self *C.QPageSetupDialog, cb C.intptr_t, event *C.QDragMoveEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QDragMoveEvent), event *qt.QDragMoveEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := qt.UnsafeNewQDragMoveEvent(unsafe.Pointer(event)) gofunc((&QPageSetupDialog{h: self}).callVirtualBase_DragMoveEvent, slotval1) } func (this *QPageSetupDialog) callVirtualBase_DragLeaveEvent(event *qt.QDragLeaveEvent) { C.QPageSetupDialog_virtualbase_dragLeaveEvent(unsafe.Pointer(this.h), (*C.QDragLeaveEvent)(event.UnsafePointer())) } func (this *QPageSetupDialog) OndragLeaveEvent(slot func(super func(event *qt.QDragLeaveEvent), event *qt.QDragLeaveEvent)) { ok := C.QPageSetupDialog_override_virtual_dragLeaveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) if !ok { panic("miqt: can only override virtual methods for directly constructed types") } } //export miqt_exec_callback_QPageSetupDialog_dragLeaveEvent func miqt_exec_callback_QPageSetupDialog_dragLeaveEvent(self *C.QPageSetupDialog, cb C.intptr_t, event *C.QDragLeaveEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QDragLeaveEvent), event *qt.QDragLeaveEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := qt.UnsafeNewQDragLeaveEvent(unsafe.Pointer(event)) gofunc((&QPageSetupDialog{h: self}).callVirtualBase_DragLeaveEvent, slotval1) } func (this *QPageSetupDialog) callVirtualBase_DropEvent(event *qt.QDropEvent) { C.QPageSetupDialog_virtualbase_dropEvent(unsafe.Pointer(this.h), (*C.QDropEvent)(event.UnsafePointer())) } func (this *QPageSetupDialog) OndropEvent(slot func(super func(event *qt.QDropEvent), event *qt.QDropEvent)) { ok := C.QPageSetupDialog_override_virtual_dropEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) if !ok { panic("miqt: can only override virtual methods for directly constructed types") } } //export miqt_exec_callback_QPageSetupDialog_dropEvent func miqt_exec_callback_QPageSetupDialog_dropEvent(self *C.QPageSetupDialog, cb C.intptr_t, event *C.QDropEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QDropEvent), event *qt.QDropEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := qt.UnsafeNewQDropEvent(unsafe.Pointer(event)) gofunc((&QPageSetupDialog{h: self}).callVirtualBase_DropEvent, slotval1) } func (this *QPageSetupDialog) callVirtualBase_HideEvent(event *qt.QHideEvent) { C.QPageSetupDialog_virtualbase_hideEvent(unsafe.Pointer(this.h), (*C.QHideEvent)(event.UnsafePointer())) } func (this *QPageSetupDialog) OnhideEvent(slot func(super func(event *qt.QHideEvent), event *qt.QHideEvent)) { ok := C.QPageSetupDialog_override_virtual_hideEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) if !ok { panic("miqt: can only override virtual methods for directly constructed types") } } //export miqt_exec_callback_QPageSetupDialog_hideEvent func miqt_exec_callback_QPageSetupDialog_hideEvent(self *C.QPageSetupDialog, cb C.intptr_t, event *C.QHideEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QHideEvent), event *qt.QHideEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := qt.UnsafeNewQHideEvent(unsafe.Pointer(event)) gofunc((&QPageSetupDialog{h: self}).callVirtualBase_HideEvent, slotval1) } func (this *QPageSetupDialog) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool { eventType_alias := C.struct_miqt_string{} if len(eventType) > 0 { eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0])) } else { eventType_alias.data = (*C.char)(unsafe.Pointer(nil)) } eventType_alias.len = C.size_t(len(eventType)) return (bool)(C.QPageSetupDialog_virtualbase_nativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result)))) } func (this *QPageSetupDialog) OnnativeEvent(slot func(super func(eventType []byte, message unsafe.Pointer, result *int64) bool, eventType []byte, message unsafe.Pointer, result *int64) bool) { ok := C.QPageSetupDialog_override_virtual_nativeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) if !ok { panic("miqt: can only override virtual methods for directly constructed types") } } //export miqt_exec_callback_QPageSetupDialog_nativeEvent func miqt_exec_callback_QPageSetupDialog_nativeEvent(self *C.QPageSetupDialog, cb C.intptr_t, eventType C.struct_miqt_string, message unsafe.Pointer, result *C.long) C.bool { gofunc, ok := cgo.Handle(cb).Value().(func(super func(eventType []byte, message unsafe.Pointer, result *int64) bool, eventType []byte, message unsafe.Pointer, result *int64) bool) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters var eventType_bytearray C.struct_miqt_string = eventType eventType_ret := C.GoBytes(unsafe.Pointer(eventType_bytearray.data), C.int(int64(eventType_bytearray.len))) C.free(unsafe.Pointer(eventType_bytearray.data)) slotval1 := eventType_ret slotval2 := (unsafe.Pointer)(message) slotval3 := (*int64)(unsafe.Pointer(result)) virtualReturn := gofunc((&QPageSetupDialog{h: self}).callVirtualBase_NativeEvent, slotval1, slotval2, slotval3) return (C.bool)(virtualReturn) } func (this *QPageSetupDialog) callVirtualBase_ChangeEvent(param1 *qt.QEvent) { C.QPageSetupDialog_virtualbase_changeEvent(unsafe.Pointer(this.h), (*C.QEvent)(param1.UnsafePointer())) } func (this *QPageSetupDialog) OnchangeEvent(slot func(super func(param1 *qt.QEvent), param1 *qt.QEvent)) { ok := C.QPageSetupDialog_override_virtual_changeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) if !ok { panic("miqt: can only override virtual methods for directly constructed types") } } //export miqt_exec_callback_QPageSetupDialog_changeEvent func miqt_exec_callback_QPageSetupDialog_changeEvent(self *C.QPageSetupDialog, cb C.intptr_t, param1 *C.QEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *qt.QEvent), param1 *qt.QEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := qt.UnsafeNewQEvent(unsafe.Pointer(param1)) gofunc((&QPageSetupDialog{h: self}).callVirtualBase_ChangeEvent, slotval1) } func (this *QPageSetupDialog) callVirtualBase_Metric(param1 qt.QPaintDevice__PaintDeviceMetric) int { return (int)(C.QPageSetupDialog_virtualbase_metric(unsafe.Pointer(this.h), (C.int)(param1))) } func (this *QPageSetupDialog) Onmetric(slot func(super func(param1 qt.QPaintDevice__PaintDeviceMetric) int, param1 qt.QPaintDevice__PaintDeviceMetric) int) { ok := C.QPageSetupDialog_override_virtual_metric(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) if !ok { panic("miqt: can only override virtual methods for directly constructed types") } } //export miqt_exec_callback_QPageSetupDialog_metric func miqt_exec_callback_QPageSetupDialog_metric(self *C.QPageSetupDialog, cb C.intptr_t, param1 C.int) C.int { gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 qt.QPaintDevice__PaintDeviceMetric) int, param1 qt.QPaintDevice__PaintDeviceMetric) int) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := (qt.QPaintDevice__PaintDeviceMetric)(param1) virtualReturn := gofunc((&QPageSetupDialog{h: self}).callVirtualBase_Metric, slotval1) return (C.int)(virtualReturn) } func (this *QPageSetupDialog) callVirtualBase_InitPainter(painter *qt.QPainter) { C.QPageSetupDialog_virtualbase_initPainter(unsafe.Pointer(this.h), (*C.QPainter)(painter.UnsafePointer())) } func (this *QPageSetupDialog) OninitPainter(slot func(super func(painter *qt.QPainter), painter *qt.QPainter)) { ok := C.QPageSetupDialog_override_virtual_initPainter(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) if !ok { panic("miqt: can only override virtual methods for directly constructed types") } } //export miqt_exec_callback_QPageSetupDialog_initPainter func miqt_exec_callback_QPageSetupDialog_initPainter(self *C.QPageSetupDialog, cb C.intptr_t, painter *C.QPainter) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(painter *qt.QPainter), painter *qt.QPainter)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := qt.UnsafeNewQPainter(unsafe.Pointer(painter)) gofunc((&QPageSetupDialog{h: self}).callVirtualBase_InitPainter, slotval1) } func (this *QPageSetupDialog) callVirtualBase_Redirected(offset *qt.QPoint) *qt.QPaintDevice { return qt.UnsafeNewQPaintDevice(unsafe.Pointer(C.QPageSetupDialog_virtualbase_redirected(unsafe.Pointer(this.h), (*C.QPoint)(offset.UnsafePointer())))) } func (this *QPageSetupDialog) Onredirected(slot func(super func(offset *qt.QPoint) *qt.QPaintDevice, offset *qt.QPoint) *qt.QPaintDevice) { ok := C.QPageSetupDialog_override_virtual_redirected(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) if !ok { panic("miqt: can only override virtual methods for directly constructed types") } } //export miqt_exec_callback_QPageSetupDialog_redirected func miqt_exec_callback_QPageSetupDialog_redirected(self *C.QPageSetupDialog, cb C.intptr_t, offset *C.QPoint) *C.QPaintDevice { gofunc, ok := cgo.Handle(cb).Value().(func(super func(offset *qt.QPoint) *qt.QPaintDevice, offset *qt.QPoint) *qt.QPaintDevice) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := qt.UnsafeNewQPoint(unsafe.Pointer(offset)) virtualReturn := gofunc((&QPageSetupDialog{h: self}).callVirtualBase_Redirected, slotval1) return (*C.QPaintDevice)(virtualReturn.UnsafePointer()) } func (this *QPageSetupDialog) callVirtualBase_SharedPainter() *qt.QPainter { return qt.UnsafeNewQPainter(unsafe.Pointer(C.QPageSetupDialog_virtualbase_sharedPainter(unsafe.Pointer(this.h)))) } func (this *QPageSetupDialog) OnsharedPainter(slot func(super func() *qt.QPainter) *qt.QPainter) { ok := C.QPageSetupDialog_override_virtual_sharedPainter(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) if !ok { panic("miqt: can only override virtual methods for directly constructed types") } } //export miqt_exec_callback_QPageSetupDialog_sharedPainter func miqt_exec_callback_QPageSetupDialog_sharedPainter(self *C.QPageSetupDialog, cb C.intptr_t) *C.QPainter { gofunc, ok := cgo.Handle(cb).Value().(func(super func() *qt.QPainter) *qt.QPainter) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } virtualReturn := gofunc((&QPageSetupDialog{h: self}).callVirtualBase_SharedPainter) return (*C.QPainter)(virtualReturn.UnsafePointer()) } func (this *QPageSetupDialog) callVirtualBase_InputMethodEvent(param1 *qt.QInputMethodEvent) { C.QPageSetupDialog_virtualbase_inputMethodEvent(unsafe.Pointer(this.h), (*C.QInputMethodEvent)(param1.UnsafePointer())) } func (this *QPageSetupDialog) OninputMethodEvent(slot func(super func(param1 *qt.QInputMethodEvent), param1 *qt.QInputMethodEvent)) { ok := C.QPageSetupDialog_override_virtual_inputMethodEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) if !ok { panic("miqt: can only override virtual methods for directly constructed types") } } //export miqt_exec_callback_QPageSetupDialog_inputMethodEvent func miqt_exec_callback_QPageSetupDialog_inputMethodEvent(self *C.QPageSetupDialog, cb C.intptr_t, param1 *C.QInputMethodEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *qt.QInputMethodEvent), param1 *qt.QInputMethodEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := qt.UnsafeNewQInputMethodEvent(unsafe.Pointer(param1)) gofunc((&QPageSetupDialog{h: self}).callVirtualBase_InputMethodEvent, slotval1) } func (this *QPageSetupDialog) callVirtualBase_InputMethodQuery(param1 qt.InputMethodQuery) *qt.QVariant { _goptr := qt.UnsafeNewQVariant(unsafe.Pointer(C.QPageSetupDialog_virtualbase_inputMethodQuery(unsafe.Pointer(this.h), (C.int)(param1)))) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QPageSetupDialog) OninputMethodQuery(slot func(super func(param1 qt.InputMethodQuery) *qt.QVariant, param1 qt.InputMethodQuery) *qt.QVariant) { ok := C.QPageSetupDialog_override_virtual_inputMethodQuery(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) if !ok { panic("miqt: can only override virtual methods for directly constructed types") } } //export miqt_exec_callback_QPageSetupDialog_inputMethodQuery func miqt_exec_callback_QPageSetupDialog_inputMethodQuery(self *C.QPageSetupDialog, cb C.intptr_t, param1 C.int) *C.QVariant { gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 qt.InputMethodQuery) *qt.QVariant, param1 qt.InputMethodQuery) *qt.QVariant) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := (qt.InputMethodQuery)(param1) virtualReturn := gofunc((&QPageSetupDialog{h: self}).callVirtualBase_InputMethodQuery, slotval1) return (*C.QVariant)(virtualReturn.UnsafePointer()) } func (this *QPageSetupDialog) callVirtualBase_FocusNextPrevChild(next bool) bool { return (bool)(C.QPageSetupDialog_virtualbase_focusNextPrevChild(unsafe.Pointer(this.h), (C.bool)(next))) } func (this *QPageSetupDialog) OnfocusNextPrevChild(slot func(super func(next bool) bool, next bool) bool) { ok := C.QPageSetupDialog_override_virtual_focusNextPrevChild(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) if !ok { panic("miqt: can only override virtual methods for directly constructed types") } } //export miqt_exec_callback_QPageSetupDialog_focusNextPrevChild func miqt_exec_callback_QPageSetupDialog_focusNextPrevChild(self *C.QPageSetupDialog, 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((&QPageSetupDialog{h: self}).callVirtualBase_FocusNextPrevChild, slotval1) return (C.bool)(virtualReturn) } func (this *QPageSetupDialog) callVirtualBase_TimerEvent(event *qt.QTimerEvent) { C.QPageSetupDialog_virtualbase_timerEvent(unsafe.Pointer(this.h), (*C.QTimerEvent)(event.UnsafePointer())) } func (this *QPageSetupDialog) OntimerEvent(slot func(super func(event *qt.QTimerEvent), event *qt.QTimerEvent)) { ok := C.QPageSetupDialog_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") } } //export miqt_exec_callback_QPageSetupDialog_timerEvent func miqt_exec_callback_QPageSetupDialog_timerEvent(self *C.QPageSetupDialog, cb C.intptr_t, event *C.QTimerEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QTimerEvent), event *qt.QTimerEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := qt.UnsafeNewQTimerEvent(unsafe.Pointer(event)) gofunc((&QPageSetupDialog{h: self}).callVirtualBase_TimerEvent, slotval1) } func (this *QPageSetupDialog) callVirtualBase_ChildEvent(event *qt.QChildEvent) { C.QPageSetupDialog_virtualbase_childEvent(unsafe.Pointer(this.h), (*C.QChildEvent)(event.UnsafePointer())) } func (this *QPageSetupDialog) OnchildEvent(slot func(super func(event *qt.QChildEvent), event *qt.QChildEvent)) { ok := C.QPageSetupDialog_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") } } //export miqt_exec_callback_QPageSetupDialog_childEvent func miqt_exec_callback_QPageSetupDialog_childEvent(self *C.QPageSetupDialog, cb C.intptr_t, event *C.QChildEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QChildEvent), event *qt.QChildEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := qt.UnsafeNewQChildEvent(unsafe.Pointer(event)) gofunc((&QPageSetupDialog{h: self}).callVirtualBase_ChildEvent, slotval1) } func (this *QPageSetupDialog) callVirtualBase_CustomEvent(event *qt.QEvent) { C.QPageSetupDialog_virtualbase_customEvent(unsafe.Pointer(this.h), (*C.QEvent)(event.UnsafePointer())) } func (this *QPageSetupDialog) OncustomEvent(slot func(super func(event *qt.QEvent), event *qt.QEvent)) { ok := C.QPageSetupDialog_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") } } //export miqt_exec_callback_QPageSetupDialog_customEvent func miqt_exec_callback_QPageSetupDialog_customEvent(self *C.QPageSetupDialog, cb C.intptr_t, event *C.QEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QEvent), event *qt.QEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := qt.UnsafeNewQEvent(unsafe.Pointer(event)) gofunc((&QPageSetupDialog{h: self}).callVirtualBase_CustomEvent, slotval1) } func (this *QPageSetupDialog) callVirtualBase_ConnectNotify(signal *qt.QMetaMethod) { C.QPageSetupDialog_virtualbase_connectNotify(unsafe.Pointer(this.h), (*C.QMetaMethod)(signal.UnsafePointer())) } func (this *QPageSetupDialog) OnconnectNotify(slot func(super func(signal *qt.QMetaMethod), signal *qt.QMetaMethod)) { ok := C.QPageSetupDialog_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") } } //export miqt_exec_callback_QPageSetupDialog_connectNotify func miqt_exec_callback_QPageSetupDialog_connectNotify(self *C.QPageSetupDialog, cb C.intptr_t, signal *C.QMetaMethod) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(signal *qt.QMetaMethod), signal *qt.QMetaMethod)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := qt.UnsafeNewQMetaMethod(unsafe.Pointer(signal)) gofunc((&QPageSetupDialog{h: self}).callVirtualBase_ConnectNotify, slotval1) } func (this *QPageSetupDialog) callVirtualBase_DisconnectNotify(signal *qt.QMetaMethod) { C.QPageSetupDialog_virtualbase_disconnectNotify(unsafe.Pointer(this.h), (*C.QMetaMethod)(signal.UnsafePointer())) } func (this *QPageSetupDialog) OndisconnectNotify(slot func(super func(signal *qt.QMetaMethod), signal *qt.QMetaMethod)) { ok := C.QPageSetupDialog_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") } } //export miqt_exec_callback_QPageSetupDialog_disconnectNotify func miqt_exec_callback_QPageSetupDialog_disconnectNotify(self *C.QPageSetupDialog, cb C.intptr_t, signal *C.QMetaMethod) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(signal *qt.QMetaMethod), signal *qt.QMetaMethod)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := qt.UnsafeNewQMetaMethod(unsafe.Pointer(signal)) gofunc((&QPageSetupDialog{h: self}).callVirtualBase_DisconnectNotify, slotval1) } // Delete this object from C++ memory. func (this *QPageSetupDialog) Delete() { C.QPageSetupDialog_delete(this.h) } // 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 *QPageSetupDialog) GoGC() { runtime.SetFinalizer(this, func(this *QPageSetupDialog) { this.Delete() runtime.KeepAlive(this.h) }) }