2024-11-04 22:13:59 +13:00
|
|
|
package printsupport
|
2024-10-16 18:08:07 +13:00
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
#include "gen_qpagesetupdialog.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
*/
|
|
|
|
import "C"
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/mappu/miqt/qt"
|
|
|
|
"runtime"
|
2024-11-19 19:29:06 +13:00
|
|
|
"runtime/cgo"
|
2024-10-16 18:08:07 +13:00
|
|
|
"unsafe"
|
|
|
|
)
|
|
|
|
|
|
|
|
type QPageSetupDialog struct {
|
2025-01-18 17:57:48 +13:00
|
|
|
h *C.QPageSetupDialog
|
2024-10-16 18:08:07 +13:00
|
|
|
*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)
|
|
|
|
}
|
|
|
|
|
2024-11-19 19:29:06 +13:00
|
|
|
// newQPageSetupDialog constructs the type using only CGO pointers.
|
2024-12-07 17:15:57 +13:00
|
|
|
func newQPageSetupDialog(h *C.QPageSetupDialog) *QPageSetupDialog {
|
2024-10-16 18:08:07 +13:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-12-07 17:15:57 +13:00
|
|
|
var outptr_QDialog *C.QDialog = nil
|
|
|
|
C.QPageSetupDialog_virtbase(h, &outptr_QDialog)
|
|
|
|
|
2024-11-19 19:29:06 +13:00
|
|
|
return &QPageSetupDialog{h: h,
|
2024-12-07 17:15:57 +13:00
|
|
|
QDialog: qt.UnsafeNewQDialog(unsafe.Pointer(outptr_QDialog))}
|
2024-10-16 18:08:07 +13:00
|
|
|
}
|
|
|
|
|
2024-11-19 19:29:06 +13:00
|
|
|
// UnsafeNewQPageSetupDialog constructs the type using only unsafe pointers.
|
2024-12-07 17:15:57 +13:00
|
|
|
func UnsafeNewQPageSetupDialog(h unsafe.Pointer) *QPageSetupDialog {
|
|
|
|
return newQPageSetupDialog((*C.QPageSetupDialog)(h))
|
2024-10-16 18:08:07 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQPageSetupDialog constructs a new QPageSetupDialog object.
|
2024-10-26 13:46:42 +13:00
|
|
|
func NewQPageSetupDialog(parent *qt.QWidget) *QPageSetupDialog {
|
2024-11-19 19:29:06 +13:00
|
|
|
|
2025-01-18 17:57:48 +13:00
|
|
|
return newQPageSetupDialog(C.QPageSetupDialog_new((*C.QWidget)(parent.UnsafePointer())))
|
2024-10-16 18:08:07 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQPageSetupDialog2 constructs a new QPageSetupDialog object.
|
2024-10-26 13:46:42 +13:00
|
|
|
func NewQPageSetupDialog2(printer *QPrinter) *QPageSetupDialog {
|
2024-11-19 19:29:06 +13:00
|
|
|
|
2025-01-18 17:57:48 +13:00
|
|
|
return newQPageSetupDialog(C.QPageSetupDialog_new2(printer.cPointer()))
|
2024-10-16 18:08:07 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQPageSetupDialog3 constructs a new QPageSetupDialog object.
|
2024-10-26 13:46:42 +13:00
|
|
|
func NewQPageSetupDialog3() *QPageSetupDialog {
|
2024-11-19 19:29:06 +13:00
|
|
|
|
2025-01-18 17:57:48 +13:00
|
|
|
return newQPageSetupDialog(C.QPageSetupDialog_new3())
|
2024-10-16 18:08:07 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQPageSetupDialog4 constructs a new QPageSetupDialog object.
|
2024-10-26 13:46:42 +13:00
|
|
|
func NewQPageSetupDialog4(printer *QPrinter, parent *qt.QWidget) *QPageSetupDialog {
|
2024-11-19 19:29:06 +13:00
|
|
|
|
2025-01-18 17:57:48 +13:00
|
|
|
return newQPageSetupDialog(C.QPageSetupDialog_new4(printer.cPointer(), (*C.QWidget)(parent.UnsafePointer())))
|
2024-10-16 18:08:07 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
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))
|
2024-10-19 12:53:33 +13:00
|
|
|
return (unsafe.Pointer)(C.QPageSetupDialog_Metacast(this.h, param1_Cstring))
|
2024-10-16 18:08:07 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func QPageSetupDialog_Tr(s string) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
2024-10-19 12:53:33 +13:00
|
|
|
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))
|
2024-10-16 18:08:07 +13:00
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func QPageSetupDialog_TrUtf8(s string) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
2024-10-19 12:53:33 +13:00
|
|
|
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))
|
2024-10-16 18:08:07 +13:00
|
|
|
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 {
|
2024-12-07 17:15:57 +13:00
|
|
|
return newQPrinter(C.QPageSetupDialog_Printer(this.h))
|
2024-10-16 18:08:07 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
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))
|
2024-10-19 12:53:33 +13:00
|
|
|
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))
|
2024-10-16 18:08:07 +13:00
|
|
|
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))
|
2024-10-19 12:53:33 +13:00
|
|
|
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))
|
2024-10-16 18:08:07 +13:00
|
|
|
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))
|
2024-10-19 12:53:33 +13:00
|
|
|
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))
|
2024-10-16 18:08:07 +13:00
|
|
|
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))
|
2024-10-19 12:53:33 +13:00
|
|
|
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))
|
2024-10-16 18:08:07 +13:00
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
2024-11-19 19:29:06 +13:00
|
|
|
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) {
|
2025-01-18 17:57:48 +13:00
|
|
|
ok := C.QPageSetupDialog_override_virtual_Exec(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
//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)) {
|
2025-01-18 17:57:48 +13:00
|
|
|
ok := C.QPageSetupDialog_override_virtual_Done(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
//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)) {
|
2025-01-18 17:57:48 +13:00
|
|
|
ok := C.QPageSetupDialog_override_virtual_SetVisible(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
//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 {
|
|
|
|
|
2024-12-07 15:02:06 +13:00
|
|
|
_goptr := qt.UnsafeNewQSize(unsafe.Pointer(C.QPageSetupDialog_virtualbase_SizeHint(unsafe.Pointer(this.h))))
|
2024-11-19 19:29:06 +13:00
|
|
|
_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) {
|
2025-01-18 17:57:48 +13:00
|
|
|
ok := C.QPageSetupDialog_override_virtual_SizeHint(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
//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 {
|
|
|
|
|
2024-12-07 15:02:06 +13:00
|
|
|
_goptr := qt.UnsafeNewQSize(unsafe.Pointer(C.QPageSetupDialog_virtualbase_MinimumSizeHint(unsafe.Pointer(this.h))))
|
2024-11-19 19:29:06 +13:00
|
|
|
_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) {
|
2025-01-18 17:57:48 +13:00
|
|
|
ok := C.QPageSetupDialog_override_virtual_MinimumSizeHint(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
//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())) {
|
2025-01-18 17:57:48 +13:00
|
|
|
ok := C.QPageSetupDialog_override_virtual_Open(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
//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())) {
|
2025-01-18 17:57:48 +13:00
|
|
|
ok := C.QPageSetupDialog_override_virtual_Accept(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
//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())) {
|
2025-01-18 17:57:48 +13:00
|
|
|
ok := C.QPageSetupDialog_override_virtual_Reject(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
//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)) {
|
2025-01-18 17:57:48 +13:00
|
|
|
ok := C.QPageSetupDialog_override_virtual_KeyPressEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
//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
|
2024-12-07 17:15:57 +13:00
|
|
|
slotval1 := qt.UnsafeNewQKeyEvent(unsafe.Pointer(param1))
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
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)) {
|
2025-01-18 17:57:48 +13:00
|
|
|
ok := C.QPageSetupDialog_override_virtual_CloseEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
//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
|
2024-12-07 17:15:57 +13:00
|
|
|
slotval1 := qt.UnsafeNewQCloseEvent(unsafe.Pointer(param1))
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
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)) {
|
2025-01-18 17:57:48 +13:00
|
|
|
ok := C.QPageSetupDialog_override_virtual_ShowEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
//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
|
2024-12-07 17:15:57 +13:00
|
|
|
slotval1 := qt.UnsafeNewQShowEvent(unsafe.Pointer(param1))
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
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)) {
|
2025-01-18 17:57:48 +13:00
|
|
|
ok := C.QPageSetupDialog_override_virtual_ResizeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
//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
|
2024-12-07 17:15:57 +13:00
|
|
|
slotval1 := qt.UnsafeNewQResizeEvent(unsafe.Pointer(param1))
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
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)) {
|
2025-01-18 17:57:48 +13:00
|
|
|
ok := C.QPageSetupDialog_override_virtual_ContextMenuEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
//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
|
2024-12-07 17:15:57 +13:00
|
|
|
slotval1 := qt.UnsafeNewQContextMenuEvent(unsafe.Pointer(param1))
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
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) {
|
2025-01-18 17:57:48 +13:00
|
|
|
ok := C.QPageSetupDialog_override_virtual_EventFilter(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
//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))
|
2024-12-07 15:02:06 +13:00
|
|
|
|
2024-11-19 19:29:06 +13:00
|
|
|
slotval2 := qt.UnsafeNewQEvent(unsafe.Pointer(param2))
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QPageSetupDialog{h: self}).callVirtualBase_EventFilter, slotval1, slotval2)
|
|
|
|
|
|
|
|
return (C.bool)(virtualReturn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2025-01-19 16:39:11 +13:00
|
|
|
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{}
|
|
|
|
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
|
|
|
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)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2024-10-16 18:08:07 +13:00
|
|
|
// Delete this object from C++ memory.
|
|
|
|
func (this *QPageSetupDialog) Delete() {
|
2025-01-18 17:42:41 +13:00
|
|
|
C.QPageSetupDialog_Delete(this.h)
|
2024-10-16 18:08:07 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
// GoGC adds a Go Finalizer to this pointer, so that it will be deleted
|
|
|
|
// from C++ memory once it is unreachable from Go memory.
|
|
|
|
func (this *QPageSetupDialog) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QPageSetupDialog) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|