2024-08-25 16:08:24 +12:00
|
|
|
package qt
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
#include "gen_qfontdialog.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
*/
|
|
|
|
import "C"
|
|
|
|
|
|
|
|
import (
|
|
|
|
"runtime"
|
|
|
|
"runtime/cgo"
|
|
|
|
"unsafe"
|
|
|
|
)
|
|
|
|
|
2024-09-04 18:54:22 +12:00
|
|
|
type QFontDialog__FontDialogOption int
|
|
|
|
|
|
|
|
const (
|
2024-09-20 19:13:26 +12:00
|
|
|
QFontDialog__NoButtons QFontDialog__FontDialogOption = 1
|
|
|
|
QFontDialog__DontUseNativeDialog QFontDialog__FontDialogOption = 2
|
|
|
|
QFontDialog__ScalableFonts QFontDialog__FontDialogOption = 4
|
|
|
|
QFontDialog__NonScalableFonts QFontDialog__FontDialogOption = 8
|
|
|
|
QFontDialog__MonospacedFonts QFontDialog__FontDialogOption = 16
|
|
|
|
QFontDialog__ProportionalFonts QFontDialog__FontDialogOption = 32
|
2024-09-04 18:54:22 +12:00
|
|
|
)
|
|
|
|
|
2024-08-25 16:08:24 +12:00
|
|
|
type QFontDialog struct {
|
2025-01-18 17:57:48 +13:00
|
|
|
h *C.QFontDialog
|
2024-08-25 16:08:24 +12:00
|
|
|
*QDialog
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) cPointer() *C.QFontDialog {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
2024-10-16 18:07:56 +13:00
|
|
|
func (this *QFontDialog) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-11-19 19:29:06 +13:00
|
|
|
// newQFontDialog constructs the type using only CGO pointers.
|
2024-12-07 17:15:57 +13:00
|
|
|
func newQFontDialog(h *C.QFontDialog) *QFontDialog {
|
2024-09-01 14:23:55 +12:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-12-07 17:15:57 +13:00
|
|
|
var outptr_QDialog *C.QDialog = nil
|
|
|
|
C.QFontDialog_virtbase(h, &outptr_QDialog)
|
|
|
|
|
2024-11-19 19:29:06 +13:00
|
|
|
return &QFontDialog{h: h,
|
2024-12-07 17:15:57 +13:00
|
|
|
QDialog: newQDialog(outptr_QDialog)}
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
2024-11-19 19:29:06 +13:00
|
|
|
// UnsafeNewQFontDialog constructs the type using only unsafe pointers.
|
2024-12-07 17:15:57 +13:00
|
|
|
func UnsafeNewQFontDialog(h unsafe.Pointer) *QFontDialog {
|
|
|
|
return newQFontDialog((*C.QFontDialog)(h))
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQFontDialog constructs a new QFontDialog object.
|
2024-10-26 13:46:42 +13:00
|
|
|
func NewQFontDialog(parent *QWidget) *QFontDialog {
|
2024-11-19 19:29:06 +13:00
|
|
|
|
2025-01-18 17:57:48 +13:00
|
|
|
return newQFontDialog(C.QFontDialog_new(parent.cPointer()))
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQFontDialog2 constructs a new QFontDialog object.
|
2024-10-26 13:46:42 +13:00
|
|
|
func NewQFontDialog2() *QFontDialog {
|
2024-11-19 19:29:06 +13:00
|
|
|
|
2025-01-18 17:57:48 +13:00
|
|
|
return newQFontDialog(C.QFontDialog_new2())
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQFontDialog3 constructs a new QFontDialog object.
|
2024-10-26 13:46:42 +13:00
|
|
|
func NewQFontDialog3(initial *QFont) *QFontDialog {
|
2024-11-19 19:29:06 +13:00
|
|
|
|
2025-01-18 17:57:48 +13:00
|
|
|
return newQFontDialog(C.QFontDialog_new3(initial.cPointer()))
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQFontDialog4 constructs a new QFontDialog object.
|
|
|
|
func NewQFontDialog4(initial *QFont, parent *QWidget) *QFontDialog {
|
2024-11-19 19:29:06 +13:00
|
|
|
|
2025-01-18 17:57:48 +13:00
|
|
|
return newQFontDialog(C.QFontDialog_new4(initial.cPointer(), parent.cPointer()))
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) MetaObject() *QMetaObject {
|
2025-02-01 13:45:16 +13:00
|
|
|
return newQMetaObject(C.QFontDialog_metaObject(this.h))
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
2024-09-21 10:32:57 +12:00
|
|
|
func (this *QFontDialog) Metacast(param1 string) unsafe.Pointer {
|
|
|
|
param1_Cstring := C.CString(param1)
|
|
|
|
defer C.free(unsafe.Pointer(param1_Cstring))
|
2025-02-01 13:45:16 +13:00
|
|
|
return (unsafe.Pointer)(C.QFontDialog_metacast(this.h, param1_Cstring))
|
2024-09-21 10:32:57 +12:00
|
|
|
}
|
|
|
|
|
2024-08-25 16:08:24 +12:00
|
|
|
func QFontDialog_Tr(s string) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
2025-02-01 13:45:16 +13:00
|
|
|
var _ms C.struct_miqt_string = C.QFontDialog_tr(s_Cstring)
|
2024-10-19 12:53:33 +13:00
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
2024-09-15 10:29:05 +12:00
|
|
|
return _ret
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
func QFontDialog_TrUtf8(s string) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
2025-02-01 13:45:16 +13:00
|
|
|
var _ms C.struct_miqt_string = C.QFontDialog_trUtf8(s_Cstring)
|
2024-10-19 12:53:33 +13:00
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
2024-09-15 10:29:05 +12:00
|
|
|
return _ret
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) SetCurrentFont(font *QFont) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_setCurrentFont(this.h, font.cPointer())
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) CurrentFont() *QFont {
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQFont(C.QFontDialog_currentFont(this.h))
|
2024-09-15 10:29:05 +12:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) SelectedFont() *QFont {
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQFont(C.QFontDialog_selectedFont(this.h))
|
2024-09-15 10:29:05 +12:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
2024-09-04 18:54:22 +12:00
|
|
|
func (this *QFontDialog) SetOption(option QFontDialog__FontDialogOption) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_setOption(this.h, (C.int)(option))
|
2024-08-29 19:01:51 +12:00
|
|
|
}
|
|
|
|
|
2024-09-04 18:54:22 +12:00
|
|
|
func (this *QFontDialog) TestOption(option QFontDialog__FontDialogOption) bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QFontDialog_testOption(this.h, (C.int)(option)))
|
2024-08-29 19:01:51 +12:00
|
|
|
}
|
|
|
|
|
2024-09-20 18:40:03 +12:00
|
|
|
func (this *QFontDialog) SetOptions(options QFontDialog__FontDialogOption) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_setOptions(this.h, (C.int)(options))
|
2024-08-29 19:01:51 +12:00
|
|
|
}
|
|
|
|
|
2024-09-20 18:40:03 +12:00
|
|
|
func (this *QFontDialog) Options() QFontDialog__FontDialogOption {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (QFontDialog__FontDialogOption)(C.QFontDialog_options(this.h))
|
2024-08-29 19:01:51 +12:00
|
|
|
}
|
|
|
|
|
2024-08-25 16:08:24 +12:00
|
|
|
func (this *QFontDialog) SetVisible(visible bool) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_setVisible(this.h, (C.bool)(visible))
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
func QFontDialog_GetFont(ok *bool) *QFont {
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQFont(C.QFontDialog_getFont((*C.bool)(unsafe.Pointer(ok))))
|
2024-09-15 10:29:05 +12:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
2024-08-29 19:01:51 +12:00
|
|
|
func QFontDialog_GetFont2(ok *bool, initial *QFont) *QFont {
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQFont(C.QFontDialog_getFont2((*C.bool)(unsafe.Pointer(ok)), initial.cPointer()))
|
2024-09-15 10:29:05 +12:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-29 19:01:51 +12:00
|
|
|
}
|
|
|
|
|
2024-08-25 16:08:24 +12:00
|
|
|
func (this *QFontDialog) CurrentFontChanged(font *QFont) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_currentFontChanged(this.h, font.cPointer())
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
2024-09-15 10:29:05 +12:00
|
|
|
func (this *QFontDialog) OnCurrentFontChanged(slot func(font *QFont)) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_connect_currentFontChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
2024-09-15 10:29:05 +12:00
|
|
|
}
|
2024-08-25 16:08:24 +12:00
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_currentFontChanged
|
|
|
|
func miqt_exec_callback_QFontDialog_currentFontChanged(cb C.intptr_t, font *C.QFont) {
|
2024-10-13 19:06:06 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(font *QFont))
|
2024-09-15 10:29:05 +12:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
2024-09-15 10:29:05 +12:00
|
|
|
// Convert all CABI parameters to Go parameters
|
2024-12-07 15:02:06 +13:00
|
|
|
slotval1 := newQFont(font)
|
2024-09-15 10:29:05 +12:00
|
|
|
|
|
|
|
gofunc(slotval1)
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) FontSelected(font *QFont) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_fontSelected(this.h, font.cPointer())
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
2024-09-15 10:29:05 +12:00
|
|
|
func (this *QFontDialog) OnFontSelected(slot func(font *QFont)) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_connect_fontSelected(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
2024-09-15 10:29:05 +12:00
|
|
|
}
|
2024-08-25 16:08:24 +12:00
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_fontSelected
|
|
|
|
func miqt_exec_callback_QFontDialog_fontSelected(cb C.intptr_t, font *C.QFont) {
|
2024-10-13 19:06:06 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(font *QFont))
|
2024-09-15 10:29:05 +12:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
2024-09-15 10:29:05 +12:00
|
|
|
// Convert all CABI parameters to Go parameters
|
2024-12-07 15:02:06 +13:00
|
|
|
slotval1 := newQFont(font)
|
2024-09-15 10:29:05 +12:00
|
|
|
|
|
|
|
gofunc(slotval1)
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
func QFontDialog_Tr2(s string, c string) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
|
|
|
c_Cstring := C.CString(c)
|
|
|
|
defer C.free(unsafe.Pointer(c_Cstring))
|
2025-02-01 13:45:16 +13:00
|
|
|
var _ms C.struct_miqt_string = C.QFontDialog_tr2(s_Cstring, c_Cstring)
|
2024-10-19 12:53:33 +13:00
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
2024-09-15 10:29:05 +12:00
|
|
|
return _ret
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
func QFontDialog_Tr3(s string, c string, n int) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
|
|
|
c_Cstring := C.CString(c)
|
|
|
|
defer C.free(unsafe.Pointer(c_Cstring))
|
2025-02-01 13:45:16 +13:00
|
|
|
var _ms C.struct_miqt_string = C.QFontDialog_tr3(s_Cstring, c_Cstring, (C.int)(n))
|
2024-10-19 12:53:33 +13:00
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
2024-09-15 10:29:05 +12:00
|
|
|
return _ret
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
func QFontDialog_TrUtf82(s string, c string) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
|
|
|
c_Cstring := C.CString(c)
|
|
|
|
defer C.free(unsafe.Pointer(c_Cstring))
|
2025-02-01 13:45:16 +13:00
|
|
|
var _ms C.struct_miqt_string = C.QFontDialog_trUtf82(s_Cstring, c_Cstring)
|
2024-10-19 12:53:33 +13:00
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
2024-09-15 10:29:05 +12:00
|
|
|
return _ret
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
func QFontDialog_TrUtf83(s string, c string, n int) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
|
|
|
c_Cstring := C.CString(c)
|
|
|
|
defer C.free(unsafe.Pointer(c_Cstring))
|
2025-02-01 13:45:16 +13:00
|
|
|
var _ms C.struct_miqt_string = C.QFontDialog_trUtf83(s_Cstring, c_Cstring, (C.int)(n))
|
2024-10-19 12:53:33 +13:00
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
2024-09-15 10:29:05 +12:00
|
|
|
return _ret
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
2024-09-04 18:54:22 +12:00
|
|
|
func (this *QFontDialog) SetOption2(option QFontDialog__FontDialogOption, on bool) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_setOption2(this.h, (C.int)(option), (C.bool)(on))
|
2024-08-29 19:01:51 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
func QFontDialog_GetFont22(ok *bool, parent *QWidget) *QFont {
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQFont(C.QFontDialog_getFont22((*C.bool)(unsafe.Pointer(ok)), parent.cPointer()))
|
2024-09-15 10:29:05 +12:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-29 19:01:51 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
func QFontDialog_GetFont3(ok *bool, initial *QFont, parent *QWidget) *QFont {
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQFont(C.QFontDialog_getFont3((*C.bool)(unsafe.Pointer(ok)), initial.cPointer(), parent.cPointer()))
|
2024-09-15 10:29:05 +12:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-29 19:01:51 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
func QFontDialog_GetFont4(ok *bool, initial *QFont, parent *QWidget, title string) *QFont {
|
2024-10-19 12:53:33 +13:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQFont(C.QFontDialog_getFont4((*C.bool)(unsafe.Pointer(ok)), initial.cPointer(), parent.cPointer(), title_ms))
|
2024-09-15 10:29:05 +12:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-29 19:01:51 +12:00
|
|
|
}
|
|
|
|
|
2024-09-20 18:40:03 +12:00
|
|
|
func QFontDialog_GetFont5(ok *bool, initial *QFont, parent *QWidget, title string, options QFontDialog__FontDialogOption) *QFont {
|
2024-10-19 12:53:33 +13:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQFont(C.QFontDialog_getFont5((*C.bool)(unsafe.Pointer(ok)), initial.cPointer(), parent.cPointer(), title_ms, (C.int)(options)))
|
2024-09-15 10:29:05 +12:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
2024-11-19 19:29:06 +13:00
|
|
|
func (this *QFontDialog) callVirtualBase_SetVisible(visible bool) {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_virtualbase_setVisible(unsafe.Pointer(this.h), (C.bool)(visible))
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) OnsetVisible(slot func(super func(visible bool), visible bool)) {
|
|
|
|
ok := C.QFontDialog_override_virtual_setVisible(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-18 17:57:48 +13:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_setVisible
|
|
|
|
func miqt_exec_callback_QFontDialog_setVisible(self *C.QFontDialog, cb C.intptr_t, visible C.bool) {
|
2024-11-19 19:29:06 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(visible bool), visible bool))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := (bool)(visible)
|
|
|
|
|
|
|
|
gofunc((&QFontDialog{h: self}).callVirtualBase_SetVisible, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_ChangeEvent(event *QEvent) {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_virtualbase_changeEvent(unsafe.Pointer(this.h), event.cPointer())
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) OnchangeEvent(slot func(super func(event *QEvent), event *QEvent)) {
|
|
|
|
ok := C.QFontDialog_override_virtual_changeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-18 17:57:48 +13:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_changeEvent
|
|
|
|
func miqt_exec_callback_QFontDialog_changeEvent(self *C.QFontDialog, cb C.intptr_t, event *C.QEvent) {
|
2024-11-19 19:29:06 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QEvent), event *QEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
2024-12-07 15:02:06 +13:00
|
|
|
slotval1 := newQEvent(event)
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
gofunc((&QFontDialog{h: self}).callVirtualBase_ChangeEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_Done(result int) {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_virtualbase_done(unsafe.Pointer(this.h), (C.int)(result))
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) Ondone(slot func(super func(result int), result int)) {
|
|
|
|
ok := C.QFontDialog_override_virtual_done(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-18 17:57:48 +13:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_done
|
|
|
|
func miqt_exec_callback_QFontDialog_done(self *C.QFontDialog, cb C.intptr_t, result C.int) {
|
2024-11-19 19:29:06 +13:00
|
|
|
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((&QFontDialog{h: self}).callVirtualBase_Done, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_EventFilter(object *QObject, event *QEvent) bool {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QFontDialog_virtualbase_eventFilter(unsafe.Pointer(this.h), object.cPointer(), event.cPointer()))
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) OneventFilter(slot func(super func(object *QObject, event *QEvent) bool, object *QObject, event *QEvent) bool) {
|
|
|
|
ok := C.QFontDialog_override_virtual_eventFilter(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-18 17:57:48 +13:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_eventFilter
|
|
|
|
func miqt_exec_callback_QFontDialog_eventFilter(self *C.QFontDialog, cb C.intptr_t, object *C.QObject, event *C.QEvent) C.bool {
|
2024-11-19 19:29:06 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(object *QObject, event *QEvent) bool, object *QObject, event *QEvent) bool)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
2024-12-07 15:02:06 +13:00
|
|
|
slotval1 := newQObject(object)
|
|
|
|
|
|
|
|
slotval2 := newQEvent(event)
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
virtualReturn := gofunc((&QFontDialog{h: self}).callVirtualBase_EventFilter, slotval1, slotval2)
|
|
|
|
|
|
|
|
return (C.bool)(virtualReturn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_SizeHint() *QSize {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQSize(C.QFontDialog_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
|
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) OnsizeHint(slot func(super func() *QSize) *QSize) {
|
|
|
|
ok := C.QFontDialog_override_virtual_sizeHint(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-18 17:57:48 +13:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_sizeHint
|
|
|
|
func miqt_exec_callback_QFontDialog_sizeHint(self *C.QFontDialog, cb C.intptr_t) *C.QSize {
|
2024-11-19 19:29:06 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QSize) *QSize)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QFontDialog{h: self}).callVirtualBase_SizeHint)
|
|
|
|
|
|
|
|
return virtualReturn.cPointer()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_MinimumSizeHint() *QSize {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQSize(C.QFontDialog_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
|
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) OnminimumSizeHint(slot func(super func() *QSize) *QSize) {
|
|
|
|
ok := C.QFontDialog_override_virtual_minimumSizeHint(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-18 17:57:48 +13:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_minimumSizeHint
|
|
|
|
func miqt_exec_callback_QFontDialog_minimumSizeHint(self *C.QFontDialog, cb C.intptr_t) *C.QSize {
|
2024-11-19 19:29:06 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QSize) *QSize)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QFontDialog{h: self}).callVirtualBase_MinimumSizeHint)
|
|
|
|
|
|
|
|
return virtualReturn.cPointer()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_Open() {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_virtualbase_open(unsafe.Pointer(this.h))
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) Onopen(slot func(super func())) {
|
|
|
|
ok := C.QFontDialog_override_virtual_open(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-18 17:57:48 +13:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_open
|
|
|
|
func miqt_exec_callback_QFontDialog_open(self *C.QFontDialog, cb C.intptr_t) {
|
2024-11-19 19:29:06 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func()))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
gofunc((&QFontDialog{h: self}).callVirtualBase_Open)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_Exec() int {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
return (int)(C.QFontDialog_virtualbase_exec(unsafe.Pointer(this.h)))
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) Onexec(slot func(super func() int) int) {
|
|
|
|
ok := C.QFontDialog_override_virtual_exec(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-18 17:57:48 +13:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_exec
|
|
|
|
func miqt_exec_callback_QFontDialog_exec(self *C.QFontDialog, cb C.intptr_t) C.int {
|
2024-11-19 19:29:06 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func() int) int)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QFontDialog{h: self}).callVirtualBase_Exec)
|
|
|
|
|
|
|
|
return (C.int)(virtualReturn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_Accept() {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_virtualbase_accept(unsafe.Pointer(this.h))
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) Onaccept(slot func(super func())) {
|
|
|
|
ok := C.QFontDialog_override_virtual_accept(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-18 17:57:48 +13:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_accept
|
|
|
|
func miqt_exec_callback_QFontDialog_accept(self *C.QFontDialog, cb C.intptr_t) {
|
2024-11-19 19:29:06 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func()))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
gofunc((&QFontDialog{h: self}).callVirtualBase_Accept)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_Reject() {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_virtualbase_reject(unsafe.Pointer(this.h))
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) Onreject(slot func(super func())) {
|
|
|
|
ok := C.QFontDialog_override_virtual_reject(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-18 17:57:48 +13:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_reject
|
|
|
|
func miqt_exec_callback_QFontDialog_reject(self *C.QFontDialog, cb C.intptr_t) {
|
2024-11-19 19:29:06 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func()))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
gofunc((&QFontDialog{h: self}).callVirtualBase_Reject)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_KeyPressEvent(param1 *QKeyEvent) {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_virtualbase_keyPressEvent(unsafe.Pointer(this.h), param1.cPointer())
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) OnkeyPressEvent(slot func(super func(param1 *QKeyEvent), param1 *QKeyEvent)) {
|
|
|
|
ok := C.QFontDialog_override_virtual_keyPressEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-18 17:57:48 +13:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_keyPressEvent
|
|
|
|
func miqt_exec_callback_QFontDialog_keyPressEvent(self *C.QFontDialog, cb C.intptr_t, param1 *C.QKeyEvent) {
|
2024-11-19 19:29:06 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QKeyEvent), param1 *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 := newQKeyEvent(param1)
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
gofunc((&QFontDialog{h: self}).callVirtualBase_KeyPressEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_CloseEvent(param1 *QCloseEvent) {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_virtualbase_closeEvent(unsafe.Pointer(this.h), param1.cPointer())
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) OncloseEvent(slot func(super func(param1 *QCloseEvent), param1 *QCloseEvent)) {
|
|
|
|
ok := C.QFontDialog_override_virtual_closeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-18 17:57:48 +13:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_closeEvent
|
|
|
|
func miqt_exec_callback_QFontDialog_closeEvent(self *C.QFontDialog, cb C.intptr_t, param1 *C.QCloseEvent) {
|
2024-11-19 19:29:06 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QCloseEvent), param1 *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 := newQCloseEvent(param1)
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
gofunc((&QFontDialog{h: self}).callVirtualBase_CloseEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_ShowEvent(param1 *QShowEvent) {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_virtualbase_showEvent(unsafe.Pointer(this.h), param1.cPointer())
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) OnshowEvent(slot func(super func(param1 *QShowEvent), param1 *QShowEvent)) {
|
|
|
|
ok := C.QFontDialog_override_virtual_showEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-18 17:57:48 +13:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_showEvent
|
|
|
|
func miqt_exec_callback_QFontDialog_showEvent(self *C.QFontDialog, cb C.intptr_t, param1 *C.QShowEvent) {
|
2024-11-19 19:29:06 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QShowEvent), param1 *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 := newQShowEvent(param1)
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
gofunc((&QFontDialog{h: self}).callVirtualBase_ShowEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_ResizeEvent(param1 *QResizeEvent) {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_virtualbase_resizeEvent(unsafe.Pointer(this.h), param1.cPointer())
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) OnresizeEvent(slot func(super func(param1 *QResizeEvent), param1 *QResizeEvent)) {
|
|
|
|
ok := C.QFontDialog_override_virtual_resizeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-18 17:57:48 +13:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_resizeEvent
|
|
|
|
func miqt_exec_callback_QFontDialog_resizeEvent(self *C.QFontDialog, cb C.intptr_t, param1 *C.QResizeEvent) {
|
2024-11-19 19:29:06 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QResizeEvent), param1 *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 := newQResizeEvent(param1)
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
gofunc((&QFontDialog{h: self}).callVirtualBase_ResizeEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_ContextMenuEvent(param1 *QContextMenuEvent) {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_virtualbase_contextMenuEvent(unsafe.Pointer(this.h), param1.cPointer())
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) OncontextMenuEvent(slot func(super func(param1 *QContextMenuEvent), param1 *QContextMenuEvent)) {
|
|
|
|
ok := C.QFontDialog_override_virtual_contextMenuEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-18 17:57:48 +13:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_contextMenuEvent
|
|
|
|
func miqt_exec_callback_QFontDialog_contextMenuEvent(self *C.QFontDialog, cb C.intptr_t, param1 *C.QContextMenuEvent) {
|
2024-11-19 19:29:06 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QContextMenuEvent), param1 *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 := newQContextMenuEvent(param1)
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
gofunc((&QFontDialog{h: self}).callVirtualBase_ContextMenuEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2025-01-19 16:39:11 +13:00
|
|
|
func (this *QFontDialog) callVirtualBase_DevType() int {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
return (int)(C.QFontDialog_virtualbase_devType(unsafe.Pointer(this.h)))
|
2025-01-19 16:39:11 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) OndevType(slot func(super func() int) int) {
|
|
|
|
ok := C.QFontDialog_override_virtual_devType(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-19 16:39:11 +13:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_devType
|
|
|
|
func miqt_exec_callback_QFontDialog_devType(self *C.QFontDialog, cb C.intptr_t) C.int {
|
2025-01-19 16:39:11 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func() int) int)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QFontDialog{h: self}).callVirtualBase_DevType)
|
|
|
|
|
|
|
|
return (C.int)(virtualReturn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_HeightForWidth(param1 int) int {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
return (int)(C.QFontDialog_virtualbase_heightForWidth(unsafe.Pointer(this.h), (C.int)(param1)))
|
2025-01-19 16:39:11 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) OnheightForWidth(slot func(super func(param1 int) int, param1 int) int) {
|
|
|
|
ok := C.QFontDialog_override_virtual_heightForWidth(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-19 16:39:11 +13:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_heightForWidth
|
|
|
|
func miqt_exec_callback_QFontDialog_heightForWidth(self *C.QFontDialog, cb C.intptr_t, param1 C.int) C.int {
|
2025-01-19 16:39:11 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 int) int, param1 int) int)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := (int)(param1)
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QFontDialog{h: self}).callVirtualBase_HeightForWidth, slotval1)
|
|
|
|
|
|
|
|
return (C.int)(virtualReturn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_HasHeightForWidth() bool {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QFontDialog_virtualbase_hasHeightForWidth(unsafe.Pointer(this.h)))
|
2025-01-19 16:39:11 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) OnhasHeightForWidth(slot func(super func() bool) bool) {
|
|
|
|
ok := C.QFontDialog_override_virtual_hasHeightForWidth(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-19 16:39:11 +13:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_hasHeightForWidth
|
|
|
|
func miqt_exec_callback_QFontDialog_hasHeightForWidth(self *C.QFontDialog, cb C.intptr_t) C.bool {
|
2025-01-19 16:39:11 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func() bool) bool)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QFontDialog{h: self}).callVirtualBase_HasHeightForWidth)
|
|
|
|
|
|
|
|
return (C.bool)(virtualReturn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_PaintEngine() *QPaintEngine {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
return newQPaintEngine(C.QFontDialog_virtualbase_paintEngine(unsafe.Pointer(this.h)))
|
2025-01-19 16:39:11 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) OnpaintEngine(slot func(super func() *QPaintEngine) *QPaintEngine) {
|
|
|
|
ok := C.QFontDialog_override_virtual_paintEngine(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-19 16:39:11 +13:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_paintEngine
|
|
|
|
func miqt_exec_callback_QFontDialog_paintEngine(self *C.QFontDialog, cb C.intptr_t) *C.QPaintEngine {
|
2025-01-19 16:39:11 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QPaintEngine) *QPaintEngine)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QFontDialog{h: self}).callVirtualBase_PaintEngine)
|
|
|
|
|
|
|
|
return virtualReturn.cPointer()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_Event(event *QEvent) bool {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QFontDialog_virtualbase_event(unsafe.Pointer(this.h), event.cPointer()))
|
2025-01-19 16:39:11 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) Onevent(slot func(super func(event *QEvent) bool, event *QEvent) bool) {
|
|
|
|
ok := C.QFontDialog_override_virtual_event(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-19 16:39:11 +13:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_event
|
|
|
|
func miqt_exec_callback_QFontDialog_event(self *C.QFontDialog, cb C.intptr_t, event *C.QEvent) C.bool {
|
2025-01-19 16:39:11 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QEvent) bool, event *QEvent) bool)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQEvent(event)
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QFontDialog{h: self}).callVirtualBase_Event, slotval1)
|
|
|
|
|
|
|
|
return (C.bool)(virtualReturn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_MousePressEvent(event *QMouseEvent) {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_virtualbase_mousePressEvent(unsafe.Pointer(this.h), event.cPointer())
|
2025-01-19 16:39:11 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) OnmousePressEvent(slot func(super func(event *QMouseEvent), event *QMouseEvent)) {
|
|
|
|
ok := C.QFontDialog_override_virtual_mousePressEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-19 16:39:11 +13:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_mousePressEvent
|
|
|
|
func miqt_exec_callback_QFontDialog_mousePressEvent(self *C.QFontDialog, cb C.intptr_t, event *C.QMouseEvent) {
|
2025-01-19 16:39:11 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QMouseEvent), event *QMouseEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQMouseEvent(event)
|
|
|
|
|
|
|
|
gofunc((&QFontDialog{h: self}).callVirtualBase_MousePressEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_MouseReleaseEvent(event *QMouseEvent) {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_virtualbase_mouseReleaseEvent(unsafe.Pointer(this.h), event.cPointer())
|
2025-01-19 16:39:11 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) OnmouseReleaseEvent(slot func(super func(event *QMouseEvent), event *QMouseEvent)) {
|
|
|
|
ok := C.QFontDialog_override_virtual_mouseReleaseEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-19 16:39:11 +13:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_mouseReleaseEvent
|
|
|
|
func miqt_exec_callback_QFontDialog_mouseReleaseEvent(self *C.QFontDialog, cb C.intptr_t, event *C.QMouseEvent) {
|
2025-01-19 16:39:11 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QMouseEvent), event *QMouseEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQMouseEvent(event)
|
|
|
|
|
|
|
|
gofunc((&QFontDialog{h: self}).callVirtualBase_MouseReleaseEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_MouseDoubleClickEvent(event *QMouseEvent) {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_virtualbase_mouseDoubleClickEvent(unsafe.Pointer(this.h), event.cPointer())
|
2025-01-19 16:39:11 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) OnmouseDoubleClickEvent(slot func(super func(event *QMouseEvent), event *QMouseEvent)) {
|
|
|
|
ok := C.QFontDialog_override_virtual_mouseDoubleClickEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-19 16:39:11 +13:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_mouseDoubleClickEvent
|
|
|
|
func miqt_exec_callback_QFontDialog_mouseDoubleClickEvent(self *C.QFontDialog, cb C.intptr_t, event *C.QMouseEvent) {
|
2025-01-19 16:39:11 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QMouseEvent), event *QMouseEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQMouseEvent(event)
|
|
|
|
|
|
|
|
gofunc((&QFontDialog{h: self}).callVirtualBase_MouseDoubleClickEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_MouseMoveEvent(event *QMouseEvent) {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_virtualbase_mouseMoveEvent(unsafe.Pointer(this.h), event.cPointer())
|
2025-01-19 16:39:11 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) OnmouseMoveEvent(slot func(super func(event *QMouseEvent), event *QMouseEvent)) {
|
|
|
|
ok := C.QFontDialog_override_virtual_mouseMoveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-19 16:39:11 +13:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_mouseMoveEvent
|
|
|
|
func miqt_exec_callback_QFontDialog_mouseMoveEvent(self *C.QFontDialog, cb C.intptr_t, event *C.QMouseEvent) {
|
2025-01-19 16:39:11 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QMouseEvent), event *QMouseEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQMouseEvent(event)
|
|
|
|
|
|
|
|
gofunc((&QFontDialog{h: self}).callVirtualBase_MouseMoveEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_WheelEvent(event *QWheelEvent) {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_virtualbase_wheelEvent(unsafe.Pointer(this.h), event.cPointer())
|
2025-01-19 16:39:11 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) OnwheelEvent(slot func(super func(event *QWheelEvent), event *QWheelEvent)) {
|
|
|
|
ok := C.QFontDialog_override_virtual_wheelEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-19 16:39:11 +13:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_wheelEvent
|
|
|
|
func miqt_exec_callback_QFontDialog_wheelEvent(self *C.QFontDialog, cb C.intptr_t, event *C.QWheelEvent) {
|
2025-01-19 16:39:11 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QWheelEvent), event *QWheelEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQWheelEvent(event)
|
|
|
|
|
|
|
|
gofunc((&QFontDialog{h: self}).callVirtualBase_WheelEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_KeyReleaseEvent(event *QKeyEvent) {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_virtualbase_keyReleaseEvent(unsafe.Pointer(this.h), event.cPointer())
|
2025-01-19 16:39:11 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) OnkeyReleaseEvent(slot func(super func(event *QKeyEvent), event *QKeyEvent)) {
|
|
|
|
ok := C.QFontDialog_override_virtual_keyReleaseEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-19 16:39:11 +13:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_keyReleaseEvent
|
|
|
|
func miqt_exec_callback_QFontDialog_keyReleaseEvent(self *C.QFontDialog, cb C.intptr_t, event *C.QKeyEvent) {
|
2025-01-19 16:39:11 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QKeyEvent), event *QKeyEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQKeyEvent(event)
|
|
|
|
|
|
|
|
gofunc((&QFontDialog{h: self}).callVirtualBase_KeyReleaseEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_FocusInEvent(event *QFocusEvent) {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_virtualbase_focusInEvent(unsafe.Pointer(this.h), event.cPointer())
|
2025-01-19 16:39:11 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) OnfocusInEvent(slot func(super func(event *QFocusEvent), event *QFocusEvent)) {
|
|
|
|
ok := C.QFontDialog_override_virtual_focusInEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-19 16:39:11 +13:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_focusInEvent
|
|
|
|
func miqt_exec_callback_QFontDialog_focusInEvent(self *C.QFontDialog, cb C.intptr_t, event *C.QFocusEvent) {
|
2025-01-19 16:39:11 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QFocusEvent), event *QFocusEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQFocusEvent(event)
|
|
|
|
|
|
|
|
gofunc((&QFontDialog{h: self}).callVirtualBase_FocusInEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_FocusOutEvent(event *QFocusEvent) {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_virtualbase_focusOutEvent(unsafe.Pointer(this.h), event.cPointer())
|
2025-01-19 16:39:11 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) OnfocusOutEvent(slot func(super func(event *QFocusEvent), event *QFocusEvent)) {
|
|
|
|
ok := C.QFontDialog_override_virtual_focusOutEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-19 16:39:11 +13:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_focusOutEvent
|
|
|
|
func miqt_exec_callback_QFontDialog_focusOutEvent(self *C.QFontDialog, cb C.intptr_t, event *C.QFocusEvent) {
|
2025-01-19 16:39:11 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QFocusEvent), event *QFocusEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQFocusEvent(event)
|
|
|
|
|
|
|
|
gofunc((&QFontDialog{h: self}).callVirtualBase_FocusOutEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_EnterEvent(event *QEvent) {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_virtualbase_enterEvent(unsafe.Pointer(this.h), event.cPointer())
|
2025-01-19 16:39:11 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) OnenterEvent(slot func(super func(event *QEvent), event *QEvent)) {
|
|
|
|
ok := C.QFontDialog_override_virtual_enterEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-19 16:39:11 +13:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_enterEvent
|
|
|
|
func miqt_exec_callback_QFontDialog_enterEvent(self *C.QFontDialog, cb C.intptr_t, event *C.QEvent) {
|
2025-01-19 16:39:11 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QEvent), event *QEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQEvent(event)
|
|
|
|
|
|
|
|
gofunc((&QFontDialog{h: self}).callVirtualBase_EnterEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_LeaveEvent(event *QEvent) {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_virtualbase_leaveEvent(unsafe.Pointer(this.h), event.cPointer())
|
2025-01-19 16:39:11 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) OnleaveEvent(slot func(super func(event *QEvent), event *QEvent)) {
|
|
|
|
ok := C.QFontDialog_override_virtual_leaveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-19 16:39:11 +13:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_leaveEvent
|
|
|
|
func miqt_exec_callback_QFontDialog_leaveEvent(self *C.QFontDialog, cb C.intptr_t, event *C.QEvent) {
|
2025-01-19 16:39:11 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QEvent), event *QEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQEvent(event)
|
|
|
|
|
|
|
|
gofunc((&QFontDialog{h: self}).callVirtualBase_LeaveEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_PaintEvent(event *QPaintEvent) {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_virtualbase_paintEvent(unsafe.Pointer(this.h), event.cPointer())
|
2025-01-19 16:39:11 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) OnpaintEvent(slot func(super func(event *QPaintEvent), event *QPaintEvent)) {
|
|
|
|
ok := C.QFontDialog_override_virtual_paintEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-19 16:39:11 +13:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_paintEvent
|
|
|
|
func miqt_exec_callback_QFontDialog_paintEvent(self *C.QFontDialog, cb C.intptr_t, event *C.QPaintEvent) {
|
2025-01-19 16:39:11 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QPaintEvent), event *QPaintEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQPaintEvent(event)
|
|
|
|
|
|
|
|
gofunc((&QFontDialog{h: self}).callVirtualBase_PaintEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_MoveEvent(event *QMoveEvent) {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_virtualbase_moveEvent(unsafe.Pointer(this.h), event.cPointer())
|
2025-01-19 16:39:11 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) OnmoveEvent(slot func(super func(event *QMoveEvent), event *QMoveEvent)) {
|
|
|
|
ok := C.QFontDialog_override_virtual_moveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-19 16:39:11 +13:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_moveEvent
|
|
|
|
func miqt_exec_callback_QFontDialog_moveEvent(self *C.QFontDialog, cb C.intptr_t, event *C.QMoveEvent) {
|
2025-01-19 16:39:11 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QMoveEvent), event *QMoveEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQMoveEvent(event)
|
|
|
|
|
|
|
|
gofunc((&QFontDialog{h: self}).callVirtualBase_MoveEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_TabletEvent(event *QTabletEvent) {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_virtualbase_tabletEvent(unsafe.Pointer(this.h), event.cPointer())
|
2025-01-19 16:39:11 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) OntabletEvent(slot func(super func(event *QTabletEvent), event *QTabletEvent)) {
|
|
|
|
ok := C.QFontDialog_override_virtual_tabletEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-19 16:39:11 +13:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_tabletEvent
|
|
|
|
func miqt_exec_callback_QFontDialog_tabletEvent(self *C.QFontDialog, cb C.intptr_t, event *C.QTabletEvent) {
|
2025-01-19 16:39:11 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QTabletEvent), event *QTabletEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQTabletEvent(event)
|
|
|
|
|
|
|
|
gofunc((&QFontDialog{h: self}).callVirtualBase_TabletEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_ActionEvent(event *QActionEvent) {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_virtualbase_actionEvent(unsafe.Pointer(this.h), event.cPointer())
|
2025-01-19 16:39:11 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) OnactionEvent(slot func(super func(event *QActionEvent), event *QActionEvent)) {
|
|
|
|
ok := C.QFontDialog_override_virtual_actionEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-19 16:39:11 +13:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_actionEvent
|
|
|
|
func miqt_exec_callback_QFontDialog_actionEvent(self *C.QFontDialog, cb C.intptr_t, event *C.QActionEvent) {
|
2025-01-19 16:39:11 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QActionEvent), event *QActionEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQActionEvent(event)
|
|
|
|
|
|
|
|
gofunc((&QFontDialog{h: self}).callVirtualBase_ActionEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_DragEnterEvent(event *QDragEnterEvent) {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_virtualbase_dragEnterEvent(unsafe.Pointer(this.h), event.cPointer())
|
2025-01-19 16:39:11 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) OndragEnterEvent(slot func(super func(event *QDragEnterEvent), event *QDragEnterEvent)) {
|
|
|
|
ok := C.QFontDialog_override_virtual_dragEnterEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-19 16:39:11 +13:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_dragEnterEvent
|
|
|
|
func miqt_exec_callback_QFontDialog_dragEnterEvent(self *C.QFontDialog, cb C.intptr_t, event *C.QDragEnterEvent) {
|
2025-01-19 16:39:11 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QDragEnterEvent), event *QDragEnterEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQDragEnterEvent(event)
|
|
|
|
|
|
|
|
gofunc((&QFontDialog{h: self}).callVirtualBase_DragEnterEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_DragMoveEvent(event *QDragMoveEvent) {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_virtualbase_dragMoveEvent(unsafe.Pointer(this.h), event.cPointer())
|
2025-01-19 16:39:11 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) OndragMoveEvent(slot func(super func(event *QDragMoveEvent), event *QDragMoveEvent)) {
|
|
|
|
ok := C.QFontDialog_override_virtual_dragMoveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-19 16:39:11 +13:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_dragMoveEvent
|
|
|
|
func miqt_exec_callback_QFontDialog_dragMoveEvent(self *C.QFontDialog, cb C.intptr_t, event *C.QDragMoveEvent) {
|
2025-01-19 16:39:11 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QDragMoveEvent), event *QDragMoveEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQDragMoveEvent(event)
|
|
|
|
|
|
|
|
gofunc((&QFontDialog{h: self}).callVirtualBase_DragMoveEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_DragLeaveEvent(event *QDragLeaveEvent) {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_virtualbase_dragLeaveEvent(unsafe.Pointer(this.h), event.cPointer())
|
2025-01-19 16:39:11 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) OndragLeaveEvent(slot func(super func(event *QDragLeaveEvent), event *QDragLeaveEvent)) {
|
|
|
|
ok := C.QFontDialog_override_virtual_dragLeaveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-19 16:39:11 +13:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_dragLeaveEvent
|
|
|
|
func miqt_exec_callback_QFontDialog_dragLeaveEvent(self *C.QFontDialog, cb C.intptr_t, event *C.QDragLeaveEvent) {
|
2025-01-19 16:39:11 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QDragLeaveEvent), event *QDragLeaveEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQDragLeaveEvent(event)
|
|
|
|
|
|
|
|
gofunc((&QFontDialog{h: self}).callVirtualBase_DragLeaveEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_DropEvent(event *QDropEvent) {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_virtualbase_dropEvent(unsafe.Pointer(this.h), event.cPointer())
|
2025-01-19 16:39:11 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) OndropEvent(slot func(super func(event *QDropEvent), event *QDropEvent)) {
|
|
|
|
ok := C.QFontDialog_override_virtual_dropEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-19 16:39:11 +13:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_dropEvent
|
|
|
|
func miqt_exec_callback_QFontDialog_dropEvent(self *C.QFontDialog, cb C.intptr_t, event *C.QDropEvent) {
|
2025-01-19 16:39:11 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QDropEvent), event *QDropEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQDropEvent(event)
|
|
|
|
|
|
|
|
gofunc((&QFontDialog{h: self}).callVirtualBase_DropEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_HideEvent(event *QHideEvent) {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_virtualbase_hideEvent(unsafe.Pointer(this.h), event.cPointer())
|
2025-01-19 16:39:11 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) OnhideEvent(slot func(super func(event *QHideEvent), event *QHideEvent)) {
|
|
|
|
ok := C.QFontDialog_override_virtual_hideEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-19 16:39:11 +13:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_hideEvent
|
|
|
|
func miqt_exec_callback_QFontDialog_hideEvent(self *C.QFontDialog, cb C.intptr_t, event *C.QHideEvent) {
|
2025-01-19 16:39:11 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QHideEvent), event *QHideEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQHideEvent(event)
|
|
|
|
|
|
|
|
gofunc((&QFontDialog{h: self}).callVirtualBase_HideEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
|
|
|
eventType_alias := C.struct_miqt_string{}
|
2025-01-24 18:51:12 +13:00
|
|
|
if len(eventType) > 0 {
|
|
|
|
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
|
|
|
} else {
|
|
|
|
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
|
|
|
}
|
2025-01-19 16:39:11 +13:00
|
|
|
eventType_alias.len = C.size_t(len(eventType))
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QFontDialog_virtualbase_nativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
2025-01-19 16:39:11 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) OnnativeEvent(slot func(super func(eventType []byte, message unsafe.Pointer, result *int64) bool, eventType []byte, message unsafe.Pointer, result *int64) bool) {
|
|
|
|
ok := C.QFontDialog_override_virtual_nativeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-19 16:39:11 +13:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_nativeEvent
|
|
|
|
func miqt_exec_callback_QFontDialog_nativeEvent(self *C.QFontDialog, cb C.intptr_t, eventType C.struct_miqt_string, message unsafe.Pointer, result *C.long) C.bool {
|
2025-01-19 16:39:11 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(eventType []byte, message unsafe.Pointer, result *int64) bool, eventType []byte, message unsafe.Pointer, result *int64) bool)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
var eventType_bytearray C.struct_miqt_string = eventType
|
|
|
|
eventType_ret := C.GoBytes(unsafe.Pointer(eventType_bytearray.data), C.int(int64(eventType_bytearray.len)))
|
|
|
|
C.free(unsafe.Pointer(eventType_bytearray.data))
|
|
|
|
slotval1 := eventType_ret
|
|
|
|
slotval2 := (unsafe.Pointer)(message)
|
|
|
|
|
|
|
|
slotval3 := (*int64)(unsafe.Pointer(result))
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QFontDialog{h: self}).callVirtualBase_NativeEvent, slotval1, slotval2, slotval3)
|
|
|
|
|
|
|
|
return (C.bool)(virtualReturn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_Metric(param1 QPaintDevice__PaintDeviceMetric) int {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
return (int)(C.QFontDialog_virtualbase_metric(unsafe.Pointer(this.h), (C.int)(param1)))
|
2025-01-19 16:39:11 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) Onmetric(slot func(super func(param1 QPaintDevice__PaintDeviceMetric) int, param1 QPaintDevice__PaintDeviceMetric) int) {
|
|
|
|
ok := C.QFontDialog_override_virtual_metric(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-19 16:39:11 +13:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_metric
|
|
|
|
func miqt_exec_callback_QFontDialog_metric(self *C.QFontDialog, cb C.intptr_t, param1 C.int) C.int {
|
2025-01-19 16:39:11 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 QPaintDevice__PaintDeviceMetric) int, param1 QPaintDevice__PaintDeviceMetric) int)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := (QPaintDevice__PaintDeviceMetric)(param1)
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QFontDialog{h: self}).callVirtualBase_Metric, slotval1)
|
|
|
|
|
|
|
|
return (C.int)(virtualReturn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_InitPainter(painter *QPainter) {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_virtualbase_initPainter(unsafe.Pointer(this.h), painter.cPointer())
|
2025-01-19 16:39:11 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) OninitPainter(slot func(super func(painter *QPainter), painter *QPainter)) {
|
|
|
|
ok := C.QFontDialog_override_virtual_initPainter(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-19 16:39:11 +13:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_initPainter
|
|
|
|
func miqt_exec_callback_QFontDialog_initPainter(self *C.QFontDialog, cb C.intptr_t, painter *C.QPainter) {
|
2025-01-19 16:39:11 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(painter *QPainter), painter *QPainter))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQPainter(painter)
|
|
|
|
|
|
|
|
gofunc((&QFontDialog{h: self}).callVirtualBase_InitPainter, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_Redirected(offset *QPoint) *QPaintDevice {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
return newQPaintDevice(C.QFontDialog_virtualbase_redirected(unsafe.Pointer(this.h), offset.cPointer()))
|
2025-01-19 16:39:11 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) Onredirected(slot func(super func(offset *QPoint) *QPaintDevice, offset *QPoint) *QPaintDevice) {
|
|
|
|
ok := C.QFontDialog_override_virtual_redirected(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-19 16:39:11 +13:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_redirected
|
|
|
|
func miqt_exec_callback_QFontDialog_redirected(self *C.QFontDialog, cb C.intptr_t, offset *C.QPoint) *C.QPaintDevice {
|
2025-01-19 16:39:11 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(offset *QPoint) *QPaintDevice, offset *QPoint) *QPaintDevice)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQPoint(offset)
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QFontDialog{h: self}).callVirtualBase_Redirected, slotval1)
|
|
|
|
|
|
|
|
return virtualReturn.cPointer()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_SharedPainter() *QPainter {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
return newQPainter(C.QFontDialog_virtualbase_sharedPainter(unsafe.Pointer(this.h)))
|
2025-01-19 16:39:11 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) OnsharedPainter(slot func(super func() *QPainter) *QPainter) {
|
|
|
|
ok := C.QFontDialog_override_virtual_sharedPainter(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-19 16:39:11 +13:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_sharedPainter
|
|
|
|
func miqt_exec_callback_QFontDialog_sharedPainter(self *C.QFontDialog, cb C.intptr_t) *C.QPainter {
|
2025-01-19 16:39:11 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QPainter) *QPainter)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QFontDialog{h: self}).callVirtualBase_SharedPainter)
|
|
|
|
|
|
|
|
return virtualReturn.cPointer()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_InputMethodEvent(param1 *QInputMethodEvent) {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_virtualbase_inputMethodEvent(unsafe.Pointer(this.h), param1.cPointer())
|
2025-01-19 16:39:11 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) OninputMethodEvent(slot func(super func(param1 *QInputMethodEvent), param1 *QInputMethodEvent)) {
|
|
|
|
ok := C.QFontDialog_override_virtual_inputMethodEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-19 16:39:11 +13:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_inputMethodEvent
|
|
|
|
func miqt_exec_callback_QFontDialog_inputMethodEvent(self *C.QFontDialog, cb C.intptr_t, param1 *C.QInputMethodEvent) {
|
2025-01-19 16:39:11 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QInputMethodEvent), param1 *QInputMethodEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQInputMethodEvent(param1)
|
|
|
|
|
|
|
|
gofunc((&QFontDialog{h: self}).callVirtualBase_InputMethodEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_InputMethodQuery(param1 InputMethodQuery) *QVariant {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQVariant(C.QFontDialog_virtualbase_inputMethodQuery(unsafe.Pointer(this.h), (C.int)(param1)))
|
2025-01-19 16:39:11 +13:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) OninputMethodQuery(slot func(super func(param1 InputMethodQuery) *QVariant, param1 InputMethodQuery) *QVariant) {
|
|
|
|
ok := C.QFontDialog_override_virtual_inputMethodQuery(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-19 16:39:11 +13:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_inputMethodQuery
|
|
|
|
func miqt_exec_callback_QFontDialog_inputMethodQuery(self *C.QFontDialog, cb C.intptr_t, param1 C.int) *C.QVariant {
|
2025-01-19 16:39:11 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 InputMethodQuery) *QVariant, param1 InputMethodQuery) *QVariant)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := (InputMethodQuery)(param1)
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QFontDialog{h: self}).callVirtualBase_InputMethodQuery, slotval1)
|
|
|
|
|
|
|
|
return virtualReturn.cPointer()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_FocusNextPrevChild(next bool) bool {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QFontDialog_virtualbase_focusNextPrevChild(unsafe.Pointer(this.h), (C.bool)(next)))
|
2025-01-19 16:39:11 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) OnfocusNextPrevChild(slot func(super func(next bool) bool, next bool) bool) {
|
|
|
|
ok := C.QFontDialog_override_virtual_focusNextPrevChild(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-19 16:39:11 +13:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_focusNextPrevChild
|
|
|
|
func miqt_exec_callback_QFontDialog_focusNextPrevChild(self *C.QFontDialog, cb C.intptr_t, next C.bool) C.bool {
|
2025-01-19 16:39:11 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(next bool) bool, next bool) bool)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := (bool)(next)
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QFontDialog{h: self}).callVirtualBase_FocusNextPrevChild, slotval1)
|
|
|
|
|
|
|
|
return (C.bool)(virtualReturn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_TimerEvent(event *QTimerEvent) {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_virtualbase_timerEvent(unsafe.Pointer(this.h), event.cPointer())
|
2025-01-19 16:39:11 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) OntimerEvent(slot func(super func(event *QTimerEvent), event *QTimerEvent)) {
|
|
|
|
ok := C.QFontDialog_override_virtual_timerEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-19 16:39:11 +13:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_timerEvent
|
|
|
|
func miqt_exec_callback_QFontDialog_timerEvent(self *C.QFontDialog, cb C.intptr_t, event *C.QTimerEvent) {
|
2025-01-19 16:39:11 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QTimerEvent), event *QTimerEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQTimerEvent(event)
|
|
|
|
|
|
|
|
gofunc((&QFontDialog{h: self}).callVirtualBase_TimerEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_ChildEvent(event *QChildEvent) {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_virtualbase_childEvent(unsafe.Pointer(this.h), event.cPointer())
|
2025-01-19 16:39:11 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) OnchildEvent(slot func(super func(event *QChildEvent), event *QChildEvent)) {
|
|
|
|
ok := C.QFontDialog_override_virtual_childEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-19 16:39:11 +13:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_childEvent
|
|
|
|
func miqt_exec_callback_QFontDialog_childEvent(self *C.QFontDialog, cb C.intptr_t, event *C.QChildEvent) {
|
2025-01-19 16:39:11 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QChildEvent), event *QChildEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQChildEvent(event)
|
|
|
|
|
|
|
|
gofunc((&QFontDialog{h: self}).callVirtualBase_ChildEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_CustomEvent(event *QEvent) {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_virtualbase_customEvent(unsafe.Pointer(this.h), event.cPointer())
|
2025-01-19 16:39:11 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) OncustomEvent(slot func(super func(event *QEvent), event *QEvent)) {
|
|
|
|
ok := C.QFontDialog_override_virtual_customEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-19 16:39:11 +13:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_customEvent
|
|
|
|
func miqt_exec_callback_QFontDialog_customEvent(self *C.QFontDialog, cb C.intptr_t, event *C.QEvent) {
|
2025-01-19 16:39:11 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QEvent), event *QEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQEvent(event)
|
|
|
|
|
|
|
|
gofunc((&QFontDialog{h: self}).callVirtualBase_CustomEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_ConnectNotify(signal *QMetaMethod) {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_virtualbase_connectNotify(unsafe.Pointer(this.h), signal.cPointer())
|
2025-01-19 16:39:11 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) OnconnectNotify(slot func(super func(signal *QMetaMethod), signal *QMetaMethod)) {
|
|
|
|
ok := C.QFontDialog_override_virtual_connectNotify(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-19 16:39:11 +13:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_connectNotify
|
|
|
|
func miqt_exec_callback_QFontDialog_connectNotify(self *C.QFontDialog, cb C.intptr_t, signal *C.QMetaMethod) {
|
2025-01-19 16:39:11 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(signal *QMetaMethod), signal *QMetaMethod))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQMetaMethod(signal)
|
|
|
|
|
|
|
|
gofunc((&QFontDialog{h: self}).callVirtualBase_ConnectNotify, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFontDialog) callVirtualBase_DisconnectNotify(signal *QMetaMethod) {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_virtualbase_disconnectNotify(unsafe.Pointer(this.h), signal.cPointer())
|
2025-01-19 16:39:11 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QFontDialog) OndisconnectNotify(slot func(super func(signal *QMetaMethod), signal *QMetaMethod)) {
|
|
|
|
ok := C.QFontDialog_override_virtual_disconnectNotify(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-19 16:39:11 +13:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QFontDialog_disconnectNotify
|
|
|
|
func miqt_exec_callback_QFontDialog_disconnectNotify(self *C.QFontDialog, cb C.intptr_t, signal *C.QMetaMethod) {
|
2025-01-19 16:39:11 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(signal *QMetaMethod), signal *QMetaMethod))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := newQMetaMethod(signal)
|
|
|
|
|
|
|
|
gofunc((&QFontDialog{h: self}).callVirtualBase_DisconnectNotify, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2024-09-15 10:29:05 +12:00
|
|
|
// Delete this object from C++ memory.
|
2024-08-25 16:08:24 +12:00
|
|
|
func (this *QFontDialog) Delete() {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QFontDialog_delete(this.h)
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
2024-09-15 10:29:05 +12: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 *QFontDialog) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QFontDialog) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|