package qt6 /* #include "gen_qfontcombobox.h" #include */ import "C" import ( "runtime" "runtime/cgo" "unsafe" ) type QFontComboBox__FontFilter int const ( QFontComboBox__AllFonts QFontComboBox__FontFilter = 0 QFontComboBox__ScalableFonts QFontComboBox__FontFilter = 1 QFontComboBox__NonScalableFonts QFontComboBox__FontFilter = 2 QFontComboBox__MonospacedFonts QFontComboBox__FontFilter = 4 QFontComboBox__ProportionalFonts QFontComboBox__FontFilter = 8 ) type QFontComboBox struct { h *C.QFontComboBox isSubclass bool *QComboBox } func (this *QFontComboBox) cPointer() *C.QFontComboBox { if this == nil { return nil } return this.h } func (this *QFontComboBox) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQFontComboBox constructs the type using only CGO pointers. func newQFontComboBox(h *C.QFontComboBox, h_QComboBox *C.QComboBox, h_QWidget *C.QWidget, h_QObject *C.QObject, h_QPaintDevice *C.QPaintDevice) *QFontComboBox { if h == nil { return nil } return &QFontComboBox{h: h, QComboBox: newQComboBox(h_QComboBox, h_QWidget, h_QObject, h_QPaintDevice)} } // UnsafeNewQFontComboBox constructs the type using only unsafe pointers. func UnsafeNewQFontComboBox(h unsafe.Pointer, h_QComboBox unsafe.Pointer, h_QWidget unsafe.Pointer, h_QObject unsafe.Pointer, h_QPaintDevice unsafe.Pointer) *QFontComboBox { if h == nil { return nil } return &QFontComboBox{h: (*C.QFontComboBox)(h), QComboBox: UnsafeNewQComboBox(h_QComboBox, h_QWidget, h_QObject, h_QPaintDevice)} } // NewQFontComboBox constructs a new QFontComboBox object. func NewQFontComboBox(parent *QWidget) *QFontComboBox { var outptr_QFontComboBox *C.QFontComboBox = nil var outptr_QComboBox *C.QComboBox = nil var outptr_QWidget *C.QWidget = nil var outptr_QObject *C.QObject = nil var outptr_QPaintDevice *C.QPaintDevice = nil C.QFontComboBox_new(parent.cPointer(), &outptr_QFontComboBox, &outptr_QComboBox, &outptr_QWidget, &outptr_QObject, &outptr_QPaintDevice) ret := newQFontComboBox(outptr_QFontComboBox, outptr_QComboBox, outptr_QWidget, outptr_QObject, outptr_QPaintDevice) ret.isSubclass = true return ret } // NewQFontComboBox2 constructs a new QFontComboBox object. func NewQFontComboBox2() *QFontComboBox { var outptr_QFontComboBox *C.QFontComboBox = nil var outptr_QComboBox *C.QComboBox = nil var outptr_QWidget *C.QWidget = nil var outptr_QObject *C.QObject = nil var outptr_QPaintDevice *C.QPaintDevice = nil C.QFontComboBox_new2(&outptr_QFontComboBox, &outptr_QComboBox, &outptr_QWidget, &outptr_QObject, &outptr_QPaintDevice) ret := newQFontComboBox(outptr_QFontComboBox, outptr_QComboBox, outptr_QWidget, outptr_QObject, outptr_QPaintDevice) ret.isSubclass = true return ret } func (this *QFontComboBox) MetaObject() *QMetaObject { return UnsafeNewQMetaObject(unsafe.Pointer(C.QFontComboBox_MetaObject(this.h))) } func (this *QFontComboBox) Metacast(param1 string) unsafe.Pointer { param1_Cstring := C.CString(param1) defer C.free(unsafe.Pointer(param1_Cstring)) return (unsafe.Pointer)(C.QFontComboBox_Metacast(this.h, param1_Cstring)) } func QFontComboBox_Tr(s string) string { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) var _ms C.struct_miqt_string = C.QFontComboBox_Tr(s_Cstring) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QFontComboBox) SetWritingSystem(writingSystem QFontDatabase__WritingSystem) { C.QFontComboBox_SetWritingSystem(this.h, (C.int)(writingSystem)) } func (this *QFontComboBox) WritingSystem() QFontDatabase__WritingSystem { return (QFontDatabase__WritingSystem)(C.QFontComboBox_WritingSystem(this.h)) } func (this *QFontComboBox) SetFontFilters(filters QFontComboBox__FontFilter) { C.QFontComboBox_SetFontFilters(this.h, (C.int)(filters)) } func (this *QFontComboBox) FontFilters() QFontComboBox__FontFilter { return (QFontComboBox__FontFilter)(C.QFontComboBox_FontFilters(this.h)) } func (this *QFontComboBox) CurrentFont() *QFont { _ret := C.QFontComboBox_CurrentFont(this.h) _goptr := newQFont(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QFontComboBox) SizeHint() *QSize { _ret := C.QFontComboBox_SizeHint(this.h) _goptr := newQSize(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QFontComboBox) SetSampleTextForSystem(writingSystem QFontDatabase__WritingSystem, sampleText string) { sampleText_ms := C.struct_miqt_string{} sampleText_ms.data = C.CString(sampleText) sampleText_ms.len = C.size_t(len(sampleText)) defer C.free(unsafe.Pointer(sampleText_ms.data)) C.QFontComboBox_SetSampleTextForSystem(this.h, (C.int)(writingSystem), sampleText_ms) } func (this *QFontComboBox) SampleTextForSystem(writingSystem QFontDatabase__WritingSystem) string { var _ms C.struct_miqt_string = C.QFontComboBox_SampleTextForSystem(this.h, (C.int)(writingSystem)) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QFontComboBox) SetSampleTextForFont(fontFamily string, sampleText string) { fontFamily_ms := C.struct_miqt_string{} fontFamily_ms.data = C.CString(fontFamily) fontFamily_ms.len = C.size_t(len(fontFamily)) defer C.free(unsafe.Pointer(fontFamily_ms.data)) sampleText_ms := C.struct_miqt_string{} sampleText_ms.data = C.CString(sampleText) sampleText_ms.len = C.size_t(len(sampleText)) defer C.free(unsafe.Pointer(sampleText_ms.data)) C.QFontComboBox_SetSampleTextForFont(this.h, fontFamily_ms, sampleText_ms) } func (this *QFontComboBox) SampleTextForFont(fontFamily string) string { fontFamily_ms := C.struct_miqt_string{} fontFamily_ms.data = C.CString(fontFamily) fontFamily_ms.len = C.size_t(len(fontFamily)) defer C.free(unsafe.Pointer(fontFamily_ms.data)) var _ms C.struct_miqt_string = C.QFontComboBox_SampleTextForFont(this.h, fontFamily_ms) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QFontComboBox) SetDisplayFont(fontFamily string, font *QFont) { fontFamily_ms := C.struct_miqt_string{} fontFamily_ms.data = C.CString(fontFamily) fontFamily_ms.len = C.size_t(len(fontFamily)) defer C.free(unsafe.Pointer(fontFamily_ms.data)) C.QFontComboBox_SetDisplayFont(this.h, fontFamily_ms, font.cPointer()) } func (this *QFontComboBox) SetCurrentFont(f *QFont) { C.QFontComboBox_SetCurrentFont(this.h, f.cPointer()) } func (this *QFontComboBox) CurrentFontChanged(f *QFont) { C.QFontComboBox_CurrentFontChanged(this.h, f.cPointer()) } func (this *QFontComboBox) OnCurrentFontChanged(slot func(f *QFont)) { C.QFontComboBox_connect_CurrentFontChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFontComboBox_CurrentFontChanged func miqt_exec_callback_QFontComboBox_CurrentFontChanged(cb C.intptr_t, f *C.QFont) { gofunc, ok := cgo.Handle(cb).Value().(func(f *QFont)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQFont(unsafe.Pointer(f)) gofunc(slotval1) } func QFontComboBox_Tr2(s string, c string) string { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) c_Cstring := C.CString(c) defer C.free(unsafe.Pointer(c_Cstring)) var _ms C.struct_miqt_string = C.QFontComboBox_Tr2(s_Cstring, c_Cstring) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func QFontComboBox_Tr3(s string, c string, n int) string { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) c_Cstring := C.CString(c) defer C.free(unsafe.Pointer(c_Cstring)) var _ms C.struct_miqt_string = C.QFontComboBox_Tr3(s_Cstring, c_Cstring, (C.int)(n)) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QFontComboBox) callVirtualBase_SizeHint() *QSize { _ret := C.QFontComboBox_virtualbase_SizeHint(unsafe.Pointer(this.h)) _goptr := newQSize(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QFontComboBox) OnSizeHint(slot func(super func() *QSize) *QSize) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QFontComboBox_override_virtual_SizeHint(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFontComboBox_SizeHint func miqt_exec_callback_QFontComboBox_SizeHint(self *C.QFontComboBox, cb C.intptr_t) *C.QSize { gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QSize) *QSize) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } virtualReturn := gofunc((&QFontComboBox{h: self}).callVirtualBase_SizeHint) return virtualReturn.cPointer() } func (this *QFontComboBox) callVirtualBase_Event(e *QEvent) bool { return (bool)(C.QFontComboBox_virtualbase_Event(unsafe.Pointer(this.h), e.cPointer())) } func (this *QFontComboBox) OnEvent(slot func(super func(e *QEvent) bool, e *QEvent) bool) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QFontComboBox_override_virtual_Event(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFontComboBox_Event func miqt_exec_callback_QFontComboBox_Event(self *C.QFontComboBox, cb C.intptr_t, e *C.QEvent) C.bool { gofunc, ok := cgo.Handle(cb).Value().(func(super func(e *QEvent) bool, e *QEvent) bool) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQEvent(unsafe.Pointer(e)) virtualReturn := gofunc((&QFontComboBox{h: self}).callVirtualBase_Event, slotval1) return (C.bool)(virtualReturn) } func (this *QFontComboBox) callVirtualBase_SetModel(model *QAbstractItemModel) { C.QFontComboBox_virtualbase_SetModel(unsafe.Pointer(this.h), model.cPointer()) } func (this *QFontComboBox) OnSetModel(slot func(super func(model *QAbstractItemModel), model *QAbstractItemModel)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QFontComboBox_override_virtual_SetModel(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFontComboBox_SetModel func miqt_exec_callback_QFontComboBox_SetModel(self *C.QFontComboBox, cb C.intptr_t, model *C.QAbstractItemModel) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(model *QAbstractItemModel), model *QAbstractItemModel)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQAbstractItemModel(unsafe.Pointer(model), nil) gofunc((&QFontComboBox{h: self}).callVirtualBase_SetModel, slotval1) } func (this *QFontComboBox) callVirtualBase_MinimumSizeHint() *QSize { _ret := C.QFontComboBox_virtualbase_MinimumSizeHint(unsafe.Pointer(this.h)) _goptr := newQSize(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QFontComboBox) OnMinimumSizeHint(slot func(super func() *QSize) *QSize) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QFontComboBox_override_virtual_MinimumSizeHint(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFontComboBox_MinimumSizeHint func miqt_exec_callback_QFontComboBox_MinimumSizeHint(self *C.QFontComboBox, cb C.intptr_t) *C.QSize { gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QSize) *QSize) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } virtualReturn := gofunc((&QFontComboBox{h: self}).callVirtualBase_MinimumSizeHint) return virtualReturn.cPointer() } func (this *QFontComboBox) callVirtualBase_ShowPopup() { C.QFontComboBox_virtualbase_ShowPopup(unsafe.Pointer(this.h)) } func (this *QFontComboBox) OnShowPopup(slot func(super func())) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QFontComboBox_override_virtual_ShowPopup(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFontComboBox_ShowPopup func miqt_exec_callback_QFontComboBox_ShowPopup(self *C.QFontComboBox, 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((&QFontComboBox{h: self}).callVirtualBase_ShowPopup) } func (this *QFontComboBox) callVirtualBase_HidePopup() { C.QFontComboBox_virtualbase_HidePopup(unsafe.Pointer(this.h)) } func (this *QFontComboBox) OnHidePopup(slot func(super func())) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QFontComboBox_override_virtual_HidePopup(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFontComboBox_HidePopup func miqt_exec_callback_QFontComboBox_HidePopup(self *C.QFontComboBox, 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((&QFontComboBox{h: self}).callVirtualBase_HidePopup) } func (this *QFontComboBox) callVirtualBase_InputMethodQuery(param1 InputMethodQuery) *QVariant { _ret := C.QFontComboBox_virtualbase_InputMethodQuery(unsafe.Pointer(this.h), (C.int)(param1)) _goptr := newQVariant(_ret) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QFontComboBox) OnInputMethodQuery(slot func(super func(param1 InputMethodQuery) *QVariant, param1 InputMethodQuery) *QVariant) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QFontComboBox_override_virtual_InputMethodQuery(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFontComboBox_InputMethodQuery func miqt_exec_callback_QFontComboBox_InputMethodQuery(self *C.QFontComboBox, cb C.intptr_t, param1 C.int) *C.QVariant { gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 InputMethodQuery) *QVariant, param1 InputMethodQuery) *QVariant) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := (InputMethodQuery)(param1) virtualReturn := gofunc((&QFontComboBox{h: self}).callVirtualBase_InputMethodQuery, slotval1) return virtualReturn.cPointer() } func (this *QFontComboBox) callVirtualBase_FocusInEvent(e *QFocusEvent) { C.QFontComboBox_virtualbase_FocusInEvent(unsafe.Pointer(this.h), e.cPointer()) } func (this *QFontComboBox) OnFocusInEvent(slot func(super func(e *QFocusEvent), e *QFocusEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QFontComboBox_override_virtual_FocusInEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFontComboBox_FocusInEvent func miqt_exec_callback_QFontComboBox_FocusInEvent(self *C.QFontComboBox, cb C.intptr_t, e *C.QFocusEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(e *QFocusEvent), e *QFocusEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQFocusEvent(unsafe.Pointer(e), nil) gofunc((&QFontComboBox{h: self}).callVirtualBase_FocusInEvent, slotval1) } func (this *QFontComboBox) callVirtualBase_FocusOutEvent(e *QFocusEvent) { C.QFontComboBox_virtualbase_FocusOutEvent(unsafe.Pointer(this.h), e.cPointer()) } func (this *QFontComboBox) OnFocusOutEvent(slot func(super func(e *QFocusEvent), e *QFocusEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QFontComboBox_override_virtual_FocusOutEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFontComboBox_FocusOutEvent func miqt_exec_callback_QFontComboBox_FocusOutEvent(self *C.QFontComboBox, cb C.intptr_t, e *C.QFocusEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(e *QFocusEvent), e *QFocusEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQFocusEvent(unsafe.Pointer(e), nil) gofunc((&QFontComboBox{h: self}).callVirtualBase_FocusOutEvent, slotval1) } func (this *QFontComboBox) callVirtualBase_ChangeEvent(e *QEvent) { C.QFontComboBox_virtualbase_ChangeEvent(unsafe.Pointer(this.h), e.cPointer()) } func (this *QFontComboBox) OnChangeEvent(slot func(super func(e *QEvent), e *QEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QFontComboBox_override_virtual_ChangeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFontComboBox_ChangeEvent func miqt_exec_callback_QFontComboBox_ChangeEvent(self *C.QFontComboBox, cb C.intptr_t, e *C.QEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(e *QEvent), e *QEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQEvent(unsafe.Pointer(e)) gofunc((&QFontComboBox{h: self}).callVirtualBase_ChangeEvent, slotval1) } func (this *QFontComboBox) callVirtualBase_ResizeEvent(e *QResizeEvent) { C.QFontComboBox_virtualbase_ResizeEvent(unsafe.Pointer(this.h), e.cPointer()) } func (this *QFontComboBox) OnResizeEvent(slot func(super func(e *QResizeEvent), e *QResizeEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QFontComboBox_override_virtual_ResizeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFontComboBox_ResizeEvent func miqt_exec_callback_QFontComboBox_ResizeEvent(self *C.QFontComboBox, cb C.intptr_t, e *C.QResizeEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(e *QResizeEvent), e *QResizeEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQResizeEvent(unsafe.Pointer(e), nil) gofunc((&QFontComboBox{h: self}).callVirtualBase_ResizeEvent, slotval1) } func (this *QFontComboBox) callVirtualBase_PaintEvent(e *QPaintEvent) { C.QFontComboBox_virtualbase_PaintEvent(unsafe.Pointer(this.h), e.cPointer()) } func (this *QFontComboBox) OnPaintEvent(slot func(super func(e *QPaintEvent), e *QPaintEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QFontComboBox_override_virtual_PaintEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFontComboBox_PaintEvent func miqt_exec_callback_QFontComboBox_PaintEvent(self *C.QFontComboBox, cb C.intptr_t, e *C.QPaintEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(e *QPaintEvent), e *QPaintEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQPaintEvent(unsafe.Pointer(e), nil) gofunc((&QFontComboBox{h: self}).callVirtualBase_PaintEvent, slotval1) } func (this *QFontComboBox) callVirtualBase_ShowEvent(e *QShowEvent) { C.QFontComboBox_virtualbase_ShowEvent(unsafe.Pointer(this.h), e.cPointer()) } func (this *QFontComboBox) OnShowEvent(slot func(super func(e *QShowEvent), e *QShowEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QFontComboBox_override_virtual_ShowEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFontComboBox_ShowEvent func miqt_exec_callback_QFontComboBox_ShowEvent(self *C.QFontComboBox, cb C.intptr_t, e *C.QShowEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(e *QShowEvent), e *QShowEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQShowEvent(unsafe.Pointer(e), nil) gofunc((&QFontComboBox{h: self}).callVirtualBase_ShowEvent, slotval1) } func (this *QFontComboBox) callVirtualBase_HideEvent(e *QHideEvent) { C.QFontComboBox_virtualbase_HideEvent(unsafe.Pointer(this.h), e.cPointer()) } func (this *QFontComboBox) OnHideEvent(slot func(super func(e *QHideEvent), e *QHideEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QFontComboBox_override_virtual_HideEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFontComboBox_HideEvent func miqt_exec_callback_QFontComboBox_HideEvent(self *C.QFontComboBox, cb C.intptr_t, e *C.QHideEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(e *QHideEvent), e *QHideEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQHideEvent(unsafe.Pointer(e), nil) gofunc((&QFontComboBox{h: self}).callVirtualBase_HideEvent, slotval1) } func (this *QFontComboBox) callVirtualBase_MousePressEvent(e *QMouseEvent) { C.QFontComboBox_virtualbase_MousePressEvent(unsafe.Pointer(this.h), e.cPointer()) } func (this *QFontComboBox) OnMousePressEvent(slot func(super func(e *QMouseEvent), e *QMouseEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QFontComboBox_override_virtual_MousePressEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFontComboBox_MousePressEvent func miqt_exec_callback_QFontComboBox_MousePressEvent(self *C.QFontComboBox, cb C.intptr_t, e *C.QMouseEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(e *QMouseEvent), e *QMouseEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQMouseEvent(unsafe.Pointer(e), nil, nil, nil, nil) gofunc((&QFontComboBox{h: self}).callVirtualBase_MousePressEvent, slotval1) } func (this *QFontComboBox) callVirtualBase_MouseReleaseEvent(e *QMouseEvent) { C.QFontComboBox_virtualbase_MouseReleaseEvent(unsafe.Pointer(this.h), e.cPointer()) } func (this *QFontComboBox) OnMouseReleaseEvent(slot func(super func(e *QMouseEvent), e *QMouseEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QFontComboBox_override_virtual_MouseReleaseEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFontComboBox_MouseReleaseEvent func miqt_exec_callback_QFontComboBox_MouseReleaseEvent(self *C.QFontComboBox, cb C.intptr_t, e *C.QMouseEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(e *QMouseEvent), e *QMouseEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQMouseEvent(unsafe.Pointer(e), nil, nil, nil, nil) gofunc((&QFontComboBox{h: self}).callVirtualBase_MouseReleaseEvent, slotval1) } func (this *QFontComboBox) callVirtualBase_KeyPressEvent(e *QKeyEvent) { C.QFontComboBox_virtualbase_KeyPressEvent(unsafe.Pointer(this.h), e.cPointer()) } func (this *QFontComboBox) OnKeyPressEvent(slot func(super func(e *QKeyEvent), e *QKeyEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QFontComboBox_override_virtual_KeyPressEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFontComboBox_KeyPressEvent func miqt_exec_callback_QFontComboBox_KeyPressEvent(self *C.QFontComboBox, cb C.intptr_t, e *C.QKeyEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(e *QKeyEvent), e *QKeyEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQKeyEvent(unsafe.Pointer(e), nil, nil) gofunc((&QFontComboBox{h: self}).callVirtualBase_KeyPressEvent, slotval1) } func (this *QFontComboBox) callVirtualBase_KeyReleaseEvent(e *QKeyEvent) { C.QFontComboBox_virtualbase_KeyReleaseEvent(unsafe.Pointer(this.h), e.cPointer()) } func (this *QFontComboBox) OnKeyReleaseEvent(slot func(super func(e *QKeyEvent), e *QKeyEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QFontComboBox_override_virtual_KeyReleaseEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFontComboBox_KeyReleaseEvent func miqt_exec_callback_QFontComboBox_KeyReleaseEvent(self *C.QFontComboBox, cb C.intptr_t, e *C.QKeyEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(e *QKeyEvent), e *QKeyEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQKeyEvent(unsafe.Pointer(e), nil, nil) gofunc((&QFontComboBox{h: self}).callVirtualBase_KeyReleaseEvent, slotval1) } func (this *QFontComboBox) callVirtualBase_WheelEvent(e *QWheelEvent) { C.QFontComboBox_virtualbase_WheelEvent(unsafe.Pointer(this.h), e.cPointer()) } func (this *QFontComboBox) OnWheelEvent(slot func(super func(e *QWheelEvent), e *QWheelEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QFontComboBox_override_virtual_WheelEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFontComboBox_WheelEvent func miqt_exec_callback_QFontComboBox_WheelEvent(self *C.QFontComboBox, cb C.intptr_t, e *C.QWheelEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(e *QWheelEvent), e *QWheelEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQWheelEvent(unsafe.Pointer(e), nil, nil, nil, nil) gofunc((&QFontComboBox{h: self}).callVirtualBase_WheelEvent, slotval1) } func (this *QFontComboBox) callVirtualBase_ContextMenuEvent(e *QContextMenuEvent) { C.QFontComboBox_virtualbase_ContextMenuEvent(unsafe.Pointer(this.h), e.cPointer()) } func (this *QFontComboBox) OnContextMenuEvent(slot func(super func(e *QContextMenuEvent), e *QContextMenuEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QFontComboBox_override_virtual_ContextMenuEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFontComboBox_ContextMenuEvent func miqt_exec_callback_QFontComboBox_ContextMenuEvent(self *C.QFontComboBox, cb C.intptr_t, e *C.QContextMenuEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(e *QContextMenuEvent), e *QContextMenuEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQContextMenuEvent(unsafe.Pointer(e), nil, nil) gofunc((&QFontComboBox{h: self}).callVirtualBase_ContextMenuEvent, slotval1) } func (this *QFontComboBox) callVirtualBase_InputMethodEvent(param1 *QInputMethodEvent) { C.QFontComboBox_virtualbase_InputMethodEvent(unsafe.Pointer(this.h), param1.cPointer()) } func (this *QFontComboBox) OnInputMethodEvent(slot func(super func(param1 *QInputMethodEvent), param1 *QInputMethodEvent)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QFontComboBox_override_virtual_InputMethodEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFontComboBox_InputMethodEvent func miqt_exec_callback_QFontComboBox_InputMethodEvent(self *C.QFontComboBox, cb C.intptr_t, param1 *C.QInputMethodEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QInputMethodEvent), param1 *QInputMethodEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQInputMethodEvent(unsafe.Pointer(param1), nil) gofunc((&QFontComboBox{h: self}).callVirtualBase_InputMethodEvent, slotval1) } func (this *QFontComboBox) callVirtualBase_InitStyleOption(option *QStyleOptionComboBox) { C.QFontComboBox_virtualbase_InitStyleOption(unsafe.Pointer(this.h), option.cPointer()) } func (this *QFontComboBox) OnInitStyleOption(slot func(super func(option *QStyleOptionComboBox), option *QStyleOptionComboBox)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QFontComboBox_override_virtual_InitStyleOption(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QFontComboBox_InitStyleOption func miqt_exec_callback_QFontComboBox_InitStyleOption(self *C.QFontComboBox, cb C.intptr_t, option *C.QStyleOptionComboBox) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(option *QStyleOptionComboBox), option *QStyleOptionComboBox)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := UnsafeNewQStyleOptionComboBox(unsafe.Pointer(option), nil, nil) gofunc((&QFontComboBox{h: self}).callVirtualBase_InitStyleOption, slotval1) } // Delete this object from C++ memory. func (this *QFontComboBox) Delete() { C.QFontComboBox_Delete(this.h, C.bool(this.isSubclass)) } // 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 *QFontComboBox) GoGC() { runtime.SetFinalizer(this, func(this *QFontComboBox) { this.Delete() runtime.KeepAlive(this.h) }) }