miqt/qt/gen_qfontcombobox.go

698 lines
24 KiB
Go
Raw Normal View History

package qt
/*
#include "gen_qfontcombobox.h"
#include <stdlib.h>
*/
import "C"
import (
"runtime"
"runtime/cgo"
"unsafe"
)
2024-09-04 06:54:22 +00:00
type QFontComboBox__FontFilter int
const (
2024-09-20 07:13:26 +00:00
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
2024-09-04 06:54:22 +00:00
)
type QFontComboBox struct {
2024-11-19 06:29:06 +00:00
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)
}
2024-11-19 06:29:06 +00:00
// 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 {
2024-09-01 02:23:55 +00:00
if h == nil {
return nil
}
2024-11-19 06:29:06 +00:00
return &QFontComboBox{h: h,
QComboBox: newQComboBox(h_QComboBox, h_QWidget, h_QObject, h_QPaintDevice)}
}
2024-11-19 06:29:06 +00:00
// 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 {
2024-11-19 06:29:06 +00:00
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 {
2024-11-19 06:29:06 +00:00
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 QFontComboBox_TrUtf8(s string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
var _ms C.struct_miqt_string = C.QFontComboBox_TrUtf8(s_Cstring)
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
2024-09-04 06:54:22 +00:00
func (this *QFontComboBox) SetWritingSystem(writingSystem QFontDatabase__WritingSystem) {
C.QFontComboBox_SetWritingSystem(this.h, (C.int)(writingSystem))
2024-08-29 07:01:51 +00:00
}
2024-09-04 06:54:22 +00:00
func (this *QFontComboBox) WritingSystem() QFontDatabase__WritingSystem {
return (QFontDatabase__WritingSystem)(C.QFontComboBox_WritingSystem(this.h))
2024-08-29 07:01:51 +00:00
}
func (this *QFontComboBox) SetFontFilters(filters QFontComboBox__FontFilter) {
C.QFontComboBox_SetFontFilters(this.h, (C.int)(filters))
2024-08-29 07:01:51 +00:00
}
func (this *QFontComboBox) FontFilters() QFontComboBox__FontFilter {
return (QFontComboBox__FontFilter)(C.QFontComboBox_FontFilters(this.h))
2024-08-29 07:01:51 +00:00
}
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) 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 QFontComboBox_TrUtf82(s string, c string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
c_Cstring := C.CString(c)
defer C.free(unsafe.Pointer(c_Cstring))
var _ms C.struct_miqt_string = C.QFontComboBox_TrUtf82(s_Cstring, c_Cstring)
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func QFontComboBox_TrUtf83(s string, c string, n int) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
c_Cstring := C.CString(c)
defer C.free(unsafe.Pointer(c_Cstring))
var _ms C.struct_miqt_string = C.QFontComboBox_TrUtf83(s_Cstring, c_Cstring, (C.int)(n))
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
2024-11-19 06:29:06 +00:00
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) {
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) {
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_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) {
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())) {
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())) {
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) {
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)) {
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)) {
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)) {
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)) {
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)) {
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)) {
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)) {
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)) {
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)
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)) {
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)
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)) {
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)) {
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)) {
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)
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)) {
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)) {
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)
}
// Delete this object from C++ memory.
func (this *QFontComboBox) Delete() {
2024-11-19 06:29:06 +00:00
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)
})
}