miqt/qt6/gen_qcombobox.go
2025-02-01 13:45:22 +13:00

2077 lines
71 KiB
Go

package qt6
/*
#include "gen_qcombobox.h"
#include <stdlib.h>
*/
import "C"
import (
"runtime"
"runtime/cgo"
"unsafe"
)
type QComboBox__InsertPolicy int
const (
QComboBox__NoInsert QComboBox__InsertPolicy = 0
QComboBox__InsertAtTop QComboBox__InsertPolicy = 1
QComboBox__InsertAtCurrent QComboBox__InsertPolicy = 2
QComboBox__InsertAtBottom QComboBox__InsertPolicy = 3
QComboBox__InsertAfterCurrent QComboBox__InsertPolicy = 4
QComboBox__InsertBeforeCurrent QComboBox__InsertPolicy = 5
QComboBox__InsertAlphabetically QComboBox__InsertPolicy = 6
)
type QComboBox__SizeAdjustPolicy int
const (
QComboBox__AdjustToContents QComboBox__SizeAdjustPolicy = 0
QComboBox__AdjustToContentsOnFirstShow QComboBox__SizeAdjustPolicy = 1
QComboBox__AdjustToMinimumContentsLengthWithIcon QComboBox__SizeAdjustPolicy = 2
)
type QComboBox struct {
h *C.QComboBox
*QWidget
}
func (this *QComboBox) cPointer() *C.QComboBox {
if this == nil {
return nil
}
return this.h
}
func (this *QComboBox) UnsafePointer() unsafe.Pointer {
if this == nil {
return nil
}
return unsafe.Pointer(this.h)
}
// newQComboBox constructs the type using only CGO pointers.
func newQComboBox(h *C.QComboBox) *QComboBox {
if h == nil {
return nil
}
var outptr_QWidget *C.QWidget = nil
C.QComboBox_virtbase(h, &outptr_QWidget)
return &QComboBox{h: h,
QWidget: newQWidget(outptr_QWidget)}
}
// UnsafeNewQComboBox constructs the type using only unsafe pointers.
func UnsafeNewQComboBox(h unsafe.Pointer) *QComboBox {
return newQComboBox((*C.QComboBox)(h))
}
// NewQComboBox constructs a new QComboBox object.
func NewQComboBox(parent *QWidget) *QComboBox {
return newQComboBox(C.QComboBox_new(parent.cPointer()))
}
// NewQComboBox2 constructs a new QComboBox object.
func NewQComboBox2() *QComboBox {
return newQComboBox(C.QComboBox_new2())
}
func (this *QComboBox) MetaObject() *QMetaObject {
return newQMetaObject(C.QComboBox_metaObject(this.h))
}
func (this *QComboBox) Metacast(param1 string) unsafe.Pointer {
param1_Cstring := C.CString(param1)
defer C.free(unsafe.Pointer(param1_Cstring))
return (unsafe.Pointer)(C.QComboBox_metacast(this.h, param1_Cstring))
}
func QComboBox_Tr(s string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
var _ms C.struct_miqt_string = C.QComboBox_tr(s_Cstring)
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func (this *QComboBox) MaxVisibleItems() int {
return (int)(C.QComboBox_maxVisibleItems(this.h))
}
func (this *QComboBox) SetMaxVisibleItems(maxItems int) {
C.QComboBox_setMaxVisibleItems(this.h, (C.int)(maxItems))
}
func (this *QComboBox) Count() int {
return (int)(C.QComboBox_count(this.h))
}
func (this *QComboBox) SetMaxCount(max int) {
C.QComboBox_setMaxCount(this.h, (C.int)(max))
}
func (this *QComboBox) MaxCount() int {
return (int)(C.QComboBox_maxCount(this.h))
}
func (this *QComboBox) DuplicatesEnabled() bool {
return (bool)(C.QComboBox_duplicatesEnabled(this.h))
}
func (this *QComboBox) SetDuplicatesEnabled(enable bool) {
C.QComboBox_setDuplicatesEnabled(this.h, (C.bool)(enable))
}
func (this *QComboBox) SetFrame(frame bool) {
C.QComboBox_setFrame(this.h, (C.bool)(frame))
}
func (this *QComboBox) HasFrame() bool {
return (bool)(C.QComboBox_hasFrame(this.h))
}
func (this *QComboBox) FindText(text string) int {
text_ms := C.struct_miqt_string{}
text_ms.data = C.CString(text)
text_ms.len = C.size_t(len(text))
defer C.free(unsafe.Pointer(text_ms.data))
return (int)(C.QComboBox_findText(this.h, text_ms))
}
func (this *QComboBox) FindData(data *QVariant) int {
return (int)(C.QComboBox_findData(this.h, data.cPointer()))
}
func (this *QComboBox) InsertPolicy() QComboBox__InsertPolicy {
return (QComboBox__InsertPolicy)(C.QComboBox_insertPolicy(this.h))
}
func (this *QComboBox) SetInsertPolicy(policy QComboBox__InsertPolicy) {
C.QComboBox_setInsertPolicy(this.h, (C.int)(policy))
}
func (this *QComboBox) SizeAdjustPolicy() QComboBox__SizeAdjustPolicy {
return (QComboBox__SizeAdjustPolicy)(C.QComboBox_sizeAdjustPolicy(this.h))
}
func (this *QComboBox) SetSizeAdjustPolicy(policy QComboBox__SizeAdjustPolicy) {
C.QComboBox_setSizeAdjustPolicy(this.h, (C.int)(policy))
}
func (this *QComboBox) MinimumContentsLength() int {
return (int)(C.QComboBox_minimumContentsLength(this.h))
}
func (this *QComboBox) SetMinimumContentsLength(characters int) {
C.QComboBox_setMinimumContentsLength(this.h, (C.int)(characters))
}
func (this *QComboBox) IconSize() *QSize {
_goptr := newQSize(C.QComboBox_iconSize(this.h))
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QComboBox) SetIconSize(size *QSize) {
C.QComboBox_setIconSize(this.h, size.cPointer())
}
func (this *QComboBox) SetPlaceholderText(placeholderText string) {
placeholderText_ms := C.struct_miqt_string{}
placeholderText_ms.data = C.CString(placeholderText)
placeholderText_ms.len = C.size_t(len(placeholderText))
defer C.free(unsafe.Pointer(placeholderText_ms.data))
C.QComboBox_setPlaceholderText(this.h, placeholderText_ms)
}
func (this *QComboBox) PlaceholderText() string {
var _ms C.struct_miqt_string = C.QComboBox_placeholderText(this.h)
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func (this *QComboBox) IsEditable() bool {
return (bool)(C.QComboBox_isEditable(this.h))
}
func (this *QComboBox) SetEditable(editable bool) {
C.QComboBox_setEditable(this.h, (C.bool)(editable))
}
func (this *QComboBox) SetLineEdit(edit *QLineEdit) {
C.QComboBox_setLineEdit(this.h, edit.cPointer())
}
func (this *QComboBox) LineEdit() *QLineEdit {
return newQLineEdit(C.QComboBox_lineEdit(this.h))
}
func (this *QComboBox) SetValidator(v *QValidator) {
C.QComboBox_setValidator(this.h, v.cPointer())
}
func (this *QComboBox) Validator() *QValidator {
return newQValidator(C.QComboBox_validator(this.h))
}
func (this *QComboBox) SetCompleter(c *QCompleter) {
C.QComboBox_setCompleter(this.h, c.cPointer())
}
func (this *QComboBox) Completer() *QCompleter {
return newQCompleter(C.QComboBox_completer(this.h))
}
func (this *QComboBox) ItemDelegate() *QAbstractItemDelegate {
return newQAbstractItemDelegate(C.QComboBox_itemDelegate(this.h))
}
func (this *QComboBox) SetItemDelegate(delegate *QAbstractItemDelegate) {
C.QComboBox_setItemDelegate(this.h, delegate.cPointer())
}
func (this *QComboBox) Model() *QAbstractItemModel {
return newQAbstractItemModel(C.QComboBox_model(this.h))
}
func (this *QComboBox) SetModel(model *QAbstractItemModel) {
C.QComboBox_setModel(this.h, model.cPointer())
}
func (this *QComboBox) RootModelIndex() *QModelIndex {
_goptr := newQModelIndex(C.QComboBox_rootModelIndex(this.h))
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QComboBox) SetRootModelIndex(index *QModelIndex) {
C.QComboBox_setRootModelIndex(this.h, index.cPointer())
}
func (this *QComboBox) ModelColumn() int {
return (int)(C.QComboBox_modelColumn(this.h))
}
func (this *QComboBox) SetModelColumn(visibleColumn int) {
C.QComboBox_setModelColumn(this.h, (C.int)(visibleColumn))
}
func (this *QComboBox) CurrentIndex() int {
return (int)(C.QComboBox_currentIndex(this.h))
}
func (this *QComboBox) CurrentText() string {
var _ms C.struct_miqt_string = C.QComboBox_currentText(this.h)
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func (this *QComboBox) CurrentData() *QVariant {
_goptr := newQVariant(C.QComboBox_currentData(this.h))
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QComboBox) ItemText(index int) string {
var _ms C.struct_miqt_string = C.QComboBox_itemText(this.h, (C.int)(index))
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func (this *QComboBox) ItemIcon(index int) *QIcon {
_goptr := newQIcon(C.QComboBox_itemIcon(this.h, (C.int)(index)))
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QComboBox) ItemData(index int) *QVariant {
_goptr := newQVariant(C.QComboBox_itemData(this.h, (C.int)(index)))
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QComboBox) AddItem(text string) {
text_ms := C.struct_miqt_string{}
text_ms.data = C.CString(text)
text_ms.len = C.size_t(len(text))
defer C.free(unsafe.Pointer(text_ms.data))
C.QComboBox_addItem(this.h, text_ms)
}
func (this *QComboBox) AddItem2(icon *QIcon, text string) {
text_ms := C.struct_miqt_string{}
text_ms.data = C.CString(text)
text_ms.len = C.size_t(len(text))
defer C.free(unsafe.Pointer(text_ms.data))
C.QComboBox_addItem2(this.h, icon.cPointer(), text_ms)
}
func (this *QComboBox) AddItems(texts []string) {
texts_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(texts))))
defer C.free(unsafe.Pointer(texts_CArray))
for i := range texts {
texts_i_ms := C.struct_miqt_string{}
texts_i_ms.data = C.CString(texts[i])
texts_i_ms.len = C.size_t(len(texts[i]))
defer C.free(unsafe.Pointer(texts_i_ms.data))
texts_CArray[i] = texts_i_ms
}
texts_ma := C.struct_miqt_array{len: C.size_t(len(texts)), data: unsafe.Pointer(texts_CArray)}
C.QComboBox_addItems(this.h, texts_ma)
}
func (this *QComboBox) InsertItem(index int, text string) {
text_ms := C.struct_miqt_string{}
text_ms.data = C.CString(text)
text_ms.len = C.size_t(len(text))
defer C.free(unsafe.Pointer(text_ms.data))
C.QComboBox_insertItem(this.h, (C.int)(index), text_ms)
}
func (this *QComboBox) InsertItem2(index int, icon *QIcon, text string) {
text_ms := C.struct_miqt_string{}
text_ms.data = C.CString(text)
text_ms.len = C.size_t(len(text))
defer C.free(unsafe.Pointer(text_ms.data))
C.QComboBox_insertItem2(this.h, (C.int)(index), icon.cPointer(), text_ms)
}
func (this *QComboBox) InsertItems(index int, texts []string) {
texts_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(texts))))
defer C.free(unsafe.Pointer(texts_CArray))
for i := range texts {
texts_i_ms := C.struct_miqt_string{}
texts_i_ms.data = C.CString(texts[i])
texts_i_ms.len = C.size_t(len(texts[i]))
defer C.free(unsafe.Pointer(texts_i_ms.data))
texts_CArray[i] = texts_i_ms
}
texts_ma := C.struct_miqt_array{len: C.size_t(len(texts)), data: unsafe.Pointer(texts_CArray)}
C.QComboBox_insertItems(this.h, (C.int)(index), texts_ma)
}
func (this *QComboBox) InsertSeparator(index int) {
C.QComboBox_insertSeparator(this.h, (C.int)(index))
}
func (this *QComboBox) RemoveItem(index int) {
C.QComboBox_removeItem(this.h, (C.int)(index))
}
func (this *QComboBox) SetItemText(index int, text string) {
text_ms := C.struct_miqt_string{}
text_ms.data = C.CString(text)
text_ms.len = C.size_t(len(text))
defer C.free(unsafe.Pointer(text_ms.data))
C.QComboBox_setItemText(this.h, (C.int)(index), text_ms)
}
func (this *QComboBox) SetItemIcon(index int, icon *QIcon) {
C.QComboBox_setItemIcon(this.h, (C.int)(index), icon.cPointer())
}
func (this *QComboBox) SetItemData(index int, value *QVariant) {
C.QComboBox_setItemData(this.h, (C.int)(index), value.cPointer())
}
func (this *QComboBox) View() *QAbstractItemView {
return newQAbstractItemView(C.QComboBox_view(this.h))
}
func (this *QComboBox) SetView(itemView *QAbstractItemView) {
C.QComboBox_setView(this.h, itemView.cPointer())
}
func (this *QComboBox) SizeHint() *QSize {
_goptr := newQSize(C.QComboBox_sizeHint(this.h))
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QComboBox) MinimumSizeHint() *QSize {
_goptr := newQSize(C.QComboBox_minimumSizeHint(this.h))
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QComboBox) ShowPopup() {
C.QComboBox_showPopup(this.h)
}
func (this *QComboBox) HidePopup() {
C.QComboBox_hidePopup(this.h)
}
func (this *QComboBox) Event(event *QEvent) bool {
return (bool)(C.QComboBox_event(this.h, event.cPointer()))
}
func (this *QComboBox) InputMethodQuery(param1 InputMethodQuery) *QVariant {
_goptr := newQVariant(C.QComboBox_inputMethodQuery(this.h, (C.int)(param1)))
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QComboBox) InputMethodQuery2(query InputMethodQuery, argument *QVariant) *QVariant {
_goptr := newQVariant(C.QComboBox_inputMethodQuery2(this.h, (C.int)(query), argument.cPointer()))
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QComboBox) Clear() {
C.QComboBox_clear(this.h)
}
func (this *QComboBox) ClearEditText() {
C.QComboBox_clearEditText(this.h)
}
func (this *QComboBox) SetEditText(text string) {
text_ms := C.struct_miqt_string{}
text_ms.data = C.CString(text)
text_ms.len = C.size_t(len(text))
defer C.free(unsafe.Pointer(text_ms.data))
C.QComboBox_setEditText(this.h, text_ms)
}
func (this *QComboBox) SetCurrentIndex(index int) {
C.QComboBox_setCurrentIndex(this.h, (C.int)(index))
}
func (this *QComboBox) SetCurrentText(text string) {
text_ms := C.struct_miqt_string{}
text_ms.data = C.CString(text)
text_ms.len = C.size_t(len(text))
defer C.free(unsafe.Pointer(text_ms.data))
C.QComboBox_setCurrentText(this.h, text_ms)
}
func (this *QComboBox) EditTextChanged(param1 string) {
param1_ms := C.struct_miqt_string{}
param1_ms.data = C.CString(param1)
param1_ms.len = C.size_t(len(param1))
defer C.free(unsafe.Pointer(param1_ms.data))
C.QComboBox_editTextChanged(this.h, param1_ms)
}
func (this *QComboBox) OnEditTextChanged(slot func(param1 string)) {
C.QComboBox_connect_editTextChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QComboBox_editTextChanged
func miqt_exec_callback_QComboBox_editTextChanged(cb C.intptr_t, param1 C.struct_miqt_string) {
gofunc, ok := cgo.Handle(cb).Value().(func(param1 string))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
var param1_ms C.struct_miqt_string = param1
param1_ret := C.GoStringN(param1_ms.data, C.int(int64(param1_ms.len)))
C.free(unsafe.Pointer(param1_ms.data))
slotval1 := param1_ret
gofunc(slotval1)
}
func (this *QComboBox) Activated(index int) {
C.QComboBox_activated(this.h, (C.int)(index))
}
func (this *QComboBox) OnActivated(slot func(index int)) {
C.QComboBox_connect_activated(this.h, C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QComboBox_activated
func miqt_exec_callback_QComboBox_activated(cb C.intptr_t, index C.int) {
gofunc, ok := cgo.Handle(cb).Value().(func(index int))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (int)(index)
gofunc(slotval1)
}
func (this *QComboBox) TextActivated(param1 string) {
param1_ms := C.struct_miqt_string{}
param1_ms.data = C.CString(param1)
param1_ms.len = C.size_t(len(param1))
defer C.free(unsafe.Pointer(param1_ms.data))
C.QComboBox_textActivated(this.h, param1_ms)
}
func (this *QComboBox) OnTextActivated(slot func(param1 string)) {
C.QComboBox_connect_textActivated(this.h, C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QComboBox_textActivated
func miqt_exec_callback_QComboBox_textActivated(cb C.intptr_t, param1 C.struct_miqt_string) {
gofunc, ok := cgo.Handle(cb).Value().(func(param1 string))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
var param1_ms C.struct_miqt_string = param1
param1_ret := C.GoStringN(param1_ms.data, C.int(int64(param1_ms.len)))
C.free(unsafe.Pointer(param1_ms.data))
slotval1 := param1_ret
gofunc(slotval1)
}
func (this *QComboBox) Highlighted(index int) {
C.QComboBox_highlighted(this.h, (C.int)(index))
}
func (this *QComboBox) OnHighlighted(slot func(index int)) {
C.QComboBox_connect_highlighted(this.h, C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QComboBox_highlighted
func miqt_exec_callback_QComboBox_highlighted(cb C.intptr_t, index C.int) {
gofunc, ok := cgo.Handle(cb).Value().(func(index int))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (int)(index)
gofunc(slotval1)
}
func (this *QComboBox) TextHighlighted(param1 string) {
param1_ms := C.struct_miqt_string{}
param1_ms.data = C.CString(param1)
param1_ms.len = C.size_t(len(param1))
defer C.free(unsafe.Pointer(param1_ms.data))
C.QComboBox_textHighlighted(this.h, param1_ms)
}
func (this *QComboBox) OnTextHighlighted(slot func(param1 string)) {
C.QComboBox_connect_textHighlighted(this.h, C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QComboBox_textHighlighted
func miqt_exec_callback_QComboBox_textHighlighted(cb C.intptr_t, param1 C.struct_miqt_string) {
gofunc, ok := cgo.Handle(cb).Value().(func(param1 string))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
var param1_ms C.struct_miqt_string = param1
param1_ret := C.GoStringN(param1_ms.data, C.int(int64(param1_ms.len)))
C.free(unsafe.Pointer(param1_ms.data))
slotval1 := param1_ret
gofunc(slotval1)
}
func (this *QComboBox) CurrentIndexChanged(index int) {
C.QComboBox_currentIndexChanged(this.h, (C.int)(index))
}
func (this *QComboBox) OnCurrentIndexChanged(slot func(index int)) {
C.QComboBox_connect_currentIndexChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QComboBox_currentIndexChanged
func miqt_exec_callback_QComboBox_currentIndexChanged(cb C.intptr_t, index C.int) {
gofunc, ok := cgo.Handle(cb).Value().(func(index int))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (int)(index)
gofunc(slotval1)
}
func (this *QComboBox) CurrentTextChanged(param1 string) {
param1_ms := C.struct_miqt_string{}
param1_ms.data = C.CString(param1)
param1_ms.len = C.size_t(len(param1))
defer C.free(unsafe.Pointer(param1_ms.data))
C.QComboBox_currentTextChanged(this.h, param1_ms)
}
func (this *QComboBox) OnCurrentTextChanged(slot func(param1 string)) {
C.QComboBox_connect_currentTextChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QComboBox_currentTextChanged
func miqt_exec_callback_QComboBox_currentTextChanged(cb C.intptr_t, param1 C.struct_miqt_string) {
gofunc, ok := cgo.Handle(cb).Value().(func(param1 string))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
var param1_ms C.struct_miqt_string = param1
param1_ret := C.GoStringN(param1_ms.data, C.int(int64(param1_ms.len)))
C.free(unsafe.Pointer(param1_ms.data))
slotval1 := param1_ret
gofunc(slotval1)
}
func QComboBox_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.QComboBox_tr2(s_Cstring, c_Cstring)
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func QComboBox_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.QComboBox_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 *QComboBox) FindText2(text string, flags MatchFlag) int {
text_ms := C.struct_miqt_string{}
text_ms.data = C.CString(text)
text_ms.len = C.size_t(len(text))
defer C.free(unsafe.Pointer(text_ms.data))
return (int)(C.QComboBox_findText2(this.h, text_ms, (C.int)(flags)))
}
func (this *QComboBox) FindData2(data *QVariant, role int) int {
return (int)(C.QComboBox_findData2(this.h, data.cPointer(), (C.int)(role)))
}
func (this *QComboBox) FindData3(data *QVariant, role int, flags MatchFlag) int {
return (int)(C.QComboBox_findData3(this.h, data.cPointer(), (C.int)(role), (C.int)(flags)))
}
func (this *QComboBox) CurrentData1(role int) *QVariant {
_goptr := newQVariant(C.QComboBox_currentData1(this.h, (C.int)(role)))
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QComboBox) ItemData2(index int, role int) *QVariant {
_goptr := newQVariant(C.QComboBox_itemData2(this.h, (C.int)(index), (C.int)(role)))
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QComboBox) AddItem22(text string, userData *QVariant) {
text_ms := C.struct_miqt_string{}
text_ms.data = C.CString(text)
text_ms.len = C.size_t(len(text))
defer C.free(unsafe.Pointer(text_ms.data))
C.QComboBox_addItem22(this.h, text_ms, userData.cPointer())
}
func (this *QComboBox) AddItem3(icon *QIcon, text string, userData *QVariant) {
text_ms := C.struct_miqt_string{}
text_ms.data = C.CString(text)
text_ms.len = C.size_t(len(text))
defer C.free(unsafe.Pointer(text_ms.data))
C.QComboBox_addItem3(this.h, icon.cPointer(), text_ms, userData.cPointer())
}
func (this *QComboBox) InsertItem3(index int, text string, userData *QVariant) {
text_ms := C.struct_miqt_string{}
text_ms.data = C.CString(text)
text_ms.len = C.size_t(len(text))
defer C.free(unsafe.Pointer(text_ms.data))
C.QComboBox_insertItem3(this.h, (C.int)(index), text_ms, userData.cPointer())
}
func (this *QComboBox) InsertItem4(index int, icon *QIcon, text string, userData *QVariant) {
text_ms := C.struct_miqt_string{}
text_ms.data = C.CString(text)
text_ms.len = C.size_t(len(text))
defer C.free(unsafe.Pointer(text_ms.data))
C.QComboBox_insertItem4(this.h, (C.int)(index), icon.cPointer(), text_ms, userData.cPointer())
}
func (this *QComboBox) SetItemData3(index int, value *QVariant, role int) {
C.QComboBox_setItemData3(this.h, (C.int)(index), value.cPointer(), (C.int)(role))
}
func (this *QComboBox) callVirtualBase_SetModel(model *QAbstractItemModel) {
C.QComboBox_virtualbase_setModel(unsafe.Pointer(this.h), model.cPointer())
}
func (this *QComboBox) OnsetModel(slot func(super func(model *QAbstractItemModel), model *QAbstractItemModel)) {
ok := C.QComboBox_override_virtual_setModel(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_setModel
func miqt_exec_callback_QComboBox_setModel(self *C.QComboBox, 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 := newQAbstractItemModel(model)
gofunc((&QComboBox{h: self}).callVirtualBase_SetModel, slotval1)
}
func (this *QComboBox) callVirtualBase_SizeHint() *QSize {
_goptr := newQSize(C.QComboBox_virtualbase_sizeHint(unsafe.Pointer(this.h)))
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QComboBox) OnsizeHint(slot func(super func() *QSize) *QSize) {
ok := C.QComboBox_override_virtual_sizeHint(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_sizeHint
func miqt_exec_callback_QComboBox_sizeHint(self *C.QComboBox, 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((&QComboBox{h: self}).callVirtualBase_SizeHint)
return virtualReturn.cPointer()
}
func (this *QComboBox) callVirtualBase_MinimumSizeHint() *QSize {
_goptr := newQSize(C.QComboBox_virtualbase_minimumSizeHint(unsafe.Pointer(this.h)))
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QComboBox) OnminimumSizeHint(slot func(super func() *QSize) *QSize) {
ok := C.QComboBox_override_virtual_minimumSizeHint(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_minimumSizeHint
func miqt_exec_callback_QComboBox_minimumSizeHint(self *C.QComboBox, 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((&QComboBox{h: self}).callVirtualBase_MinimumSizeHint)
return virtualReturn.cPointer()
}
func (this *QComboBox) callVirtualBase_ShowPopup() {
C.QComboBox_virtualbase_showPopup(unsafe.Pointer(this.h))
}
func (this *QComboBox) OnshowPopup(slot func(super func())) {
ok := C.QComboBox_override_virtual_showPopup(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_showPopup
func miqt_exec_callback_QComboBox_showPopup(self *C.QComboBox, 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((&QComboBox{h: self}).callVirtualBase_ShowPopup)
}
func (this *QComboBox) callVirtualBase_HidePopup() {
C.QComboBox_virtualbase_hidePopup(unsafe.Pointer(this.h))
}
func (this *QComboBox) OnhidePopup(slot func(super func())) {
ok := C.QComboBox_override_virtual_hidePopup(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_hidePopup
func miqt_exec_callback_QComboBox_hidePopup(self *C.QComboBox, 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((&QComboBox{h: self}).callVirtualBase_HidePopup)
}
func (this *QComboBox) callVirtualBase_Event(event *QEvent) bool {
return (bool)(C.QComboBox_virtualbase_event(unsafe.Pointer(this.h), event.cPointer()))
}
func (this *QComboBox) Onevent(slot func(super func(event *QEvent) bool, event *QEvent) bool) {
ok := C.QComboBox_override_virtual_event(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_event
func miqt_exec_callback_QComboBox_event(self *C.QComboBox, cb C.intptr_t, event *C.QEvent) C.bool {
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((&QComboBox{h: self}).callVirtualBase_Event, slotval1)
return (C.bool)(virtualReturn)
}
func (this *QComboBox) callVirtualBase_InputMethodQuery(param1 InputMethodQuery) *QVariant {
_goptr := newQVariant(C.QComboBox_virtualbase_inputMethodQuery(unsafe.Pointer(this.h), (C.int)(param1)))
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QComboBox) OninputMethodQuery(slot func(super func(param1 InputMethodQuery) *QVariant, param1 InputMethodQuery) *QVariant) {
ok := C.QComboBox_override_virtual_inputMethodQuery(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_inputMethodQuery
func miqt_exec_callback_QComboBox_inputMethodQuery(self *C.QComboBox, 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((&QComboBox{h: self}).callVirtualBase_InputMethodQuery, slotval1)
return virtualReturn.cPointer()
}
func (this *QComboBox) callVirtualBase_FocusInEvent(e *QFocusEvent) {
C.QComboBox_virtualbase_focusInEvent(unsafe.Pointer(this.h), e.cPointer())
}
func (this *QComboBox) OnfocusInEvent(slot func(super func(e *QFocusEvent), e *QFocusEvent)) {
ok := C.QComboBox_override_virtual_focusInEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_focusInEvent
func miqt_exec_callback_QComboBox_focusInEvent(self *C.QComboBox, 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 := newQFocusEvent(e)
gofunc((&QComboBox{h: self}).callVirtualBase_FocusInEvent, slotval1)
}
func (this *QComboBox) callVirtualBase_FocusOutEvent(e *QFocusEvent) {
C.QComboBox_virtualbase_focusOutEvent(unsafe.Pointer(this.h), e.cPointer())
}
func (this *QComboBox) OnfocusOutEvent(slot func(super func(e *QFocusEvent), e *QFocusEvent)) {
ok := C.QComboBox_override_virtual_focusOutEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_focusOutEvent
func miqt_exec_callback_QComboBox_focusOutEvent(self *C.QComboBox, 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 := newQFocusEvent(e)
gofunc((&QComboBox{h: self}).callVirtualBase_FocusOutEvent, slotval1)
}
func (this *QComboBox) callVirtualBase_ChangeEvent(e *QEvent) {
C.QComboBox_virtualbase_changeEvent(unsafe.Pointer(this.h), e.cPointer())
}
func (this *QComboBox) OnchangeEvent(slot func(super func(e *QEvent), e *QEvent)) {
ok := C.QComboBox_override_virtual_changeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_changeEvent
func miqt_exec_callback_QComboBox_changeEvent(self *C.QComboBox, 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 := newQEvent(e)
gofunc((&QComboBox{h: self}).callVirtualBase_ChangeEvent, slotval1)
}
func (this *QComboBox) callVirtualBase_ResizeEvent(e *QResizeEvent) {
C.QComboBox_virtualbase_resizeEvent(unsafe.Pointer(this.h), e.cPointer())
}
func (this *QComboBox) OnresizeEvent(slot func(super func(e *QResizeEvent), e *QResizeEvent)) {
ok := C.QComboBox_override_virtual_resizeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_resizeEvent
func miqt_exec_callback_QComboBox_resizeEvent(self *C.QComboBox, 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 := newQResizeEvent(e)
gofunc((&QComboBox{h: self}).callVirtualBase_ResizeEvent, slotval1)
}
func (this *QComboBox) callVirtualBase_PaintEvent(e *QPaintEvent) {
C.QComboBox_virtualbase_paintEvent(unsafe.Pointer(this.h), e.cPointer())
}
func (this *QComboBox) OnpaintEvent(slot func(super func(e *QPaintEvent), e *QPaintEvent)) {
ok := C.QComboBox_override_virtual_paintEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_paintEvent
func miqt_exec_callback_QComboBox_paintEvent(self *C.QComboBox, 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 := newQPaintEvent(e)
gofunc((&QComboBox{h: self}).callVirtualBase_PaintEvent, slotval1)
}
func (this *QComboBox) callVirtualBase_ShowEvent(e *QShowEvent) {
C.QComboBox_virtualbase_showEvent(unsafe.Pointer(this.h), e.cPointer())
}
func (this *QComboBox) OnshowEvent(slot func(super func(e *QShowEvent), e *QShowEvent)) {
ok := C.QComboBox_override_virtual_showEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_showEvent
func miqt_exec_callback_QComboBox_showEvent(self *C.QComboBox, 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 := newQShowEvent(e)
gofunc((&QComboBox{h: self}).callVirtualBase_ShowEvent, slotval1)
}
func (this *QComboBox) callVirtualBase_HideEvent(e *QHideEvent) {
C.QComboBox_virtualbase_hideEvent(unsafe.Pointer(this.h), e.cPointer())
}
func (this *QComboBox) OnhideEvent(slot func(super func(e *QHideEvent), e *QHideEvent)) {
ok := C.QComboBox_override_virtual_hideEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_hideEvent
func miqt_exec_callback_QComboBox_hideEvent(self *C.QComboBox, 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 := newQHideEvent(e)
gofunc((&QComboBox{h: self}).callVirtualBase_HideEvent, slotval1)
}
func (this *QComboBox) callVirtualBase_MousePressEvent(e *QMouseEvent) {
C.QComboBox_virtualbase_mousePressEvent(unsafe.Pointer(this.h), e.cPointer())
}
func (this *QComboBox) OnmousePressEvent(slot func(super func(e *QMouseEvent), e *QMouseEvent)) {
ok := C.QComboBox_override_virtual_mousePressEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_mousePressEvent
func miqt_exec_callback_QComboBox_mousePressEvent(self *C.QComboBox, 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 := newQMouseEvent(e)
gofunc((&QComboBox{h: self}).callVirtualBase_MousePressEvent, slotval1)
}
func (this *QComboBox) callVirtualBase_MouseReleaseEvent(e *QMouseEvent) {
C.QComboBox_virtualbase_mouseReleaseEvent(unsafe.Pointer(this.h), e.cPointer())
}
func (this *QComboBox) OnmouseReleaseEvent(slot func(super func(e *QMouseEvent), e *QMouseEvent)) {
ok := C.QComboBox_override_virtual_mouseReleaseEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_mouseReleaseEvent
func miqt_exec_callback_QComboBox_mouseReleaseEvent(self *C.QComboBox, 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 := newQMouseEvent(e)
gofunc((&QComboBox{h: self}).callVirtualBase_MouseReleaseEvent, slotval1)
}
func (this *QComboBox) callVirtualBase_KeyPressEvent(e *QKeyEvent) {
C.QComboBox_virtualbase_keyPressEvent(unsafe.Pointer(this.h), e.cPointer())
}
func (this *QComboBox) OnkeyPressEvent(slot func(super func(e *QKeyEvent), e *QKeyEvent)) {
ok := C.QComboBox_override_virtual_keyPressEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_keyPressEvent
func miqt_exec_callback_QComboBox_keyPressEvent(self *C.QComboBox, 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 := newQKeyEvent(e)
gofunc((&QComboBox{h: self}).callVirtualBase_KeyPressEvent, slotval1)
}
func (this *QComboBox) callVirtualBase_KeyReleaseEvent(e *QKeyEvent) {
C.QComboBox_virtualbase_keyReleaseEvent(unsafe.Pointer(this.h), e.cPointer())
}
func (this *QComboBox) OnkeyReleaseEvent(slot func(super func(e *QKeyEvent), e *QKeyEvent)) {
ok := C.QComboBox_override_virtual_keyReleaseEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_keyReleaseEvent
func miqt_exec_callback_QComboBox_keyReleaseEvent(self *C.QComboBox, 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 := newQKeyEvent(e)
gofunc((&QComboBox{h: self}).callVirtualBase_KeyReleaseEvent, slotval1)
}
func (this *QComboBox) callVirtualBase_WheelEvent(e *QWheelEvent) {
C.QComboBox_virtualbase_wheelEvent(unsafe.Pointer(this.h), e.cPointer())
}
func (this *QComboBox) OnwheelEvent(slot func(super func(e *QWheelEvent), e *QWheelEvent)) {
ok := C.QComboBox_override_virtual_wheelEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_wheelEvent
func miqt_exec_callback_QComboBox_wheelEvent(self *C.QComboBox, 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 := newQWheelEvent(e)
gofunc((&QComboBox{h: self}).callVirtualBase_WheelEvent, slotval1)
}
func (this *QComboBox) callVirtualBase_ContextMenuEvent(e *QContextMenuEvent) {
C.QComboBox_virtualbase_contextMenuEvent(unsafe.Pointer(this.h), e.cPointer())
}
func (this *QComboBox) OncontextMenuEvent(slot func(super func(e *QContextMenuEvent), e *QContextMenuEvent)) {
ok := C.QComboBox_override_virtual_contextMenuEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_contextMenuEvent
func miqt_exec_callback_QComboBox_contextMenuEvent(self *C.QComboBox, 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 := newQContextMenuEvent(e)
gofunc((&QComboBox{h: self}).callVirtualBase_ContextMenuEvent, slotval1)
}
func (this *QComboBox) callVirtualBase_InputMethodEvent(param1 *QInputMethodEvent) {
C.QComboBox_virtualbase_inputMethodEvent(unsafe.Pointer(this.h), param1.cPointer())
}
func (this *QComboBox) OninputMethodEvent(slot func(super func(param1 *QInputMethodEvent), param1 *QInputMethodEvent)) {
ok := C.QComboBox_override_virtual_inputMethodEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_inputMethodEvent
func miqt_exec_callback_QComboBox_inputMethodEvent(self *C.QComboBox, 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 := newQInputMethodEvent(param1)
gofunc((&QComboBox{h: self}).callVirtualBase_InputMethodEvent, slotval1)
}
func (this *QComboBox) callVirtualBase_InitStyleOption(option *QStyleOptionComboBox) {
C.QComboBox_virtualbase_initStyleOption(unsafe.Pointer(this.h), option.cPointer())
}
func (this *QComboBox) OninitStyleOption(slot func(super func(option *QStyleOptionComboBox), option *QStyleOptionComboBox)) {
ok := C.QComboBox_override_virtual_initStyleOption(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_initStyleOption
func miqt_exec_callback_QComboBox_initStyleOption(self *C.QComboBox, 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 := newQStyleOptionComboBox(option)
gofunc((&QComboBox{h: self}).callVirtualBase_InitStyleOption, slotval1)
}
func (this *QComboBox) callVirtualBase_DevType() int {
return (int)(C.QComboBox_virtualbase_devType(unsafe.Pointer(this.h)))
}
func (this *QComboBox) OndevType(slot func(super func() int) int) {
ok := C.QComboBox_override_virtual_devType(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_devType
func miqt_exec_callback_QComboBox_devType(self *C.QComboBox, cb C.intptr_t) C.int {
gofunc, ok := cgo.Handle(cb).Value().(func(super func() int) int)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
virtualReturn := gofunc((&QComboBox{h: self}).callVirtualBase_DevType)
return (C.int)(virtualReturn)
}
func (this *QComboBox) callVirtualBase_SetVisible(visible bool) {
C.QComboBox_virtualbase_setVisible(unsafe.Pointer(this.h), (C.bool)(visible))
}
func (this *QComboBox) OnsetVisible(slot func(super func(visible bool), visible bool)) {
ok := C.QComboBox_override_virtual_setVisible(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_setVisible
func miqt_exec_callback_QComboBox_setVisible(self *C.QComboBox, cb C.intptr_t, visible C.bool) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(visible bool), visible bool))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (bool)(visible)
gofunc((&QComboBox{h: self}).callVirtualBase_SetVisible, slotval1)
}
func (this *QComboBox) callVirtualBase_HeightForWidth(param1 int) int {
return (int)(C.QComboBox_virtualbase_heightForWidth(unsafe.Pointer(this.h), (C.int)(param1)))
}
func (this *QComboBox) OnheightForWidth(slot func(super func(param1 int) int, param1 int) int) {
ok := C.QComboBox_override_virtual_heightForWidth(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_heightForWidth
func miqt_exec_callback_QComboBox_heightForWidth(self *C.QComboBox, cb C.intptr_t, param1 C.int) C.int {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 int) int, param1 int) int)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (int)(param1)
virtualReturn := gofunc((&QComboBox{h: self}).callVirtualBase_HeightForWidth, slotval1)
return (C.int)(virtualReturn)
}
func (this *QComboBox) callVirtualBase_HasHeightForWidth() bool {
return (bool)(C.QComboBox_virtualbase_hasHeightForWidth(unsafe.Pointer(this.h)))
}
func (this *QComboBox) OnhasHeightForWidth(slot func(super func() bool) bool) {
ok := C.QComboBox_override_virtual_hasHeightForWidth(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_hasHeightForWidth
func miqt_exec_callback_QComboBox_hasHeightForWidth(self *C.QComboBox, cb C.intptr_t) C.bool {
gofunc, ok := cgo.Handle(cb).Value().(func(super func() bool) bool)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
virtualReturn := gofunc((&QComboBox{h: self}).callVirtualBase_HasHeightForWidth)
return (C.bool)(virtualReturn)
}
func (this *QComboBox) callVirtualBase_PaintEngine() *QPaintEngine {
return newQPaintEngine(C.QComboBox_virtualbase_paintEngine(unsafe.Pointer(this.h)))
}
func (this *QComboBox) OnpaintEngine(slot func(super func() *QPaintEngine) *QPaintEngine) {
ok := C.QComboBox_override_virtual_paintEngine(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_paintEngine
func miqt_exec_callback_QComboBox_paintEngine(self *C.QComboBox, cb C.intptr_t) *C.QPaintEngine {
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QPaintEngine) *QPaintEngine)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
virtualReturn := gofunc((&QComboBox{h: self}).callVirtualBase_PaintEngine)
return virtualReturn.cPointer()
}
func (this *QComboBox) callVirtualBase_MouseDoubleClickEvent(event *QMouseEvent) {
C.QComboBox_virtualbase_mouseDoubleClickEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QComboBox) OnmouseDoubleClickEvent(slot func(super func(event *QMouseEvent), event *QMouseEvent)) {
ok := C.QComboBox_override_virtual_mouseDoubleClickEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_mouseDoubleClickEvent
func miqt_exec_callback_QComboBox_mouseDoubleClickEvent(self *C.QComboBox, cb C.intptr_t, event *C.QMouseEvent) {
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((&QComboBox{h: self}).callVirtualBase_MouseDoubleClickEvent, slotval1)
}
func (this *QComboBox) callVirtualBase_MouseMoveEvent(event *QMouseEvent) {
C.QComboBox_virtualbase_mouseMoveEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QComboBox) OnmouseMoveEvent(slot func(super func(event *QMouseEvent), event *QMouseEvent)) {
ok := C.QComboBox_override_virtual_mouseMoveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_mouseMoveEvent
func miqt_exec_callback_QComboBox_mouseMoveEvent(self *C.QComboBox, cb C.intptr_t, event *C.QMouseEvent) {
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((&QComboBox{h: self}).callVirtualBase_MouseMoveEvent, slotval1)
}
func (this *QComboBox) callVirtualBase_EnterEvent(event *QEnterEvent) {
C.QComboBox_virtualbase_enterEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QComboBox) OnenterEvent(slot func(super func(event *QEnterEvent), event *QEnterEvent)) {
ok := C.QComboBox_override_virtual_enterEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_enterEvent
func miqt_exec_callback_QComboBox_enterEvent(self *C.QComboBox, cb C.intptr_t, event *C.QEnterEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QEnterEvent), event *QEnterEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQEnterEvent(event)
gofunc((&QComboBox{h: self}).callVirtualBase_EnterEvent, slotval1)
}
func (this *QComboBox) callVirtualBase_LeaveEvent(event *QEvent) {
C.QComboBox_virtualbase_leaveEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QComboBox) OnleaveEvent(slot func(super func(event *QEvent), event *QEvent)) {
ok := C.QComboBox_override_virtual_leaveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_leaveEvent
func miqt_exec_callback_QComboBox_leaveEvent(self *C.QComboBox, cb C.intptr_t, event *C.QEvent) {
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((&QComboBox{h: self}).callVirtualBase_LeaveEvent, slotval1)
}
func (this *QComboBox) callVirtualBase_MoveEvent(event *QMoveEvent) {
C.QComboBox_virtualbase_moveEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QComboBox) OnmoveEvent(slot func(super func(event *QMoveEvent), event *QMoveEvent)) {
ok := C.QComboBox_override_virtual_moveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_moveEvent
func miqt_exec_callback_QComboBox_moveEvent(self *C.QComboBox, cb C.intptr_t, event *C.QMoveEvent) {
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((&QComboBox{h: self}).callVirtualBase_MoveEvent, slotval1)
}
func (this *QComboBox) callVirtualBase_CloseEvent(event *QCloseEvent) {
C.QComboBox_virtualbase_closeEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QComboBox) OncloseEvent(slot func(super func(event *QCloseEvent), event *QCloseEvent)) {
ok := C.QComboBox_override_virtual_closeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_closeEvent
func miqt_exec_callback_QComboBox_closeEvent(self *C.QComboBox, cb C.intptr_t, event *C.QCloseEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QCloseEvent), event *QCloseEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQCloseEvent(event)
gofunc((&QComboBox{h: self}).callVirtualBase_CloseEvent, slotval1)
}
func (this *QComboBox) callVirtualBase_TabletEvent(event *QTabletEvent) {
C.QComboBox_virtualbase_tabletEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QComboBox) OntabletEvent(slot func(super func(event *QTabletEvent), event *QTabletEvent)) {
ok := C.QComboBox_override_virtual_tabletEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_tabletEvent
func miqt_exec_callback_QComboBox_tabletEvent(self *C.QComboBox, cb C.intptr_t, event *C.QTabletEvent) {
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((&QComboBox{h: self}).callVirtualBase_TabletEvent, slotval1)
}
func (this *QComboBox) callVirtualBase_ActionEvent(event *QActionEvent) {
C.QComboBox_virtualbase_actionEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QComboBox) OnactionEvent(slot func(super func(event *QActionEvent), event *QActionEvent)) {
ok := C.QComboBox_override_virtual_actionEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_actionEvent
func miqt_exec_callback_QComboBox_actionEvent(self *C.QComboBox, cb C.intptr_t, event *C.QActionEvent) {
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((&QComboBox{h: self}).callVirtualBase_ActionEvent, slotval1)
}
func (this *QComboBox) callVirtualBase_DragEnterEvent(event *QDragEnterEvent) {
C.QComboBox_virtualbase_dragEnterEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QComboBox) OndragEnterEvent(slot func(super func(event *QDragEnterEvent), event *QDragEnterEvent)) {
ok := C.QComboBox_override_virtual_dragEnterEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_dragEnterEvent
func miqt_exec_callback_QComboBox_dragEnterEvent(self *C.QComboBox, cb C.intptr_t, event *C.QDragEnterEvent) {
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((&QComboBox{h: self}).callVirtualBase_DragEnterEvent, slotval1)
}
func (this *QComboBox) callVirtualBase_DragMoveEvent(event *QDragMoveEvent) {
C.QComboBox_virtualbase_dragMoveEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QComboBox) OndragMoveEvent(slot func(super func(event *QDragMoveEvent), event *QDragMoveEvent)) {
ok := C.QComboBox_override_virtual_dragMoveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_dragMoveEvent
func miqt_exec_callback_QComboBox_dragMoveEvent(self *C.QComboBox, cb C.intptr_t, event *C.QDragMoveEvent) {
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((&QComboBox{h: self}).callVirtualBase_DragMoveEvent, slotval1)
}
func (this *QComboBox) callVirtualBase_DragLeaveEvent(event *QDragLeaveEvent) {
C.QComboBox_virtualbase_dragLeaveEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QComboBox) OndragLeaveEvent(slot func(super func(event *QDragLeaveEvent), event *QDragLeaveEvent)) {
ok := C.QComboBox_override_virtual_dragLeaveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_dragLeaveEvent
func miqt_exec_callback_QComboBox_dragLeaveEvent(self *C.QComboBox, cb C.intptr_t, event *C.QDragLeaveEvent) {
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((&QComboBox{h: self}).callVirtualBase_DragLeaveEvent, slotval1)
}
func (this *QComboBox) callVirtualBase_DropEvent(event *QDropEvent) {
C.QComboBox_virtualbase_dropEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QComboBox) OndropEvent(slot func(super func(event *QDropEvent), event *QDropEvent)) {
ok := C.QComboBox_override_virtual_dropEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_dropEvent
func miqt_exec_callback_QComboBox_dropEvent(self *C.QComboBox, cb C.intptr_t, event *C.QDropEvent) {
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((&QComboBox{h: self}).callVirtualBase_DropEvent, slotval1)
}
func (this *QComboBox) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *uintptr) bool {
eventType_alias := C.struct_miqt_string{}
if len(eventType) > 0 {
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
} else {
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
}
eventType_alias.len = C.size_t(len(eventType))
return (bool)(C.QComboBox_virtualbase_nativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.intptr_t)(unsafe.Pointer(result))))
}
func (this *QComboBox) OnnativeEvent(slot func(super func(eventType []byte, message unsafe.Pointer, result *uintptr) bool, eventType []byte, message unsafe.Pointer, result *uintptr) bool) {
ok := C.QComboBox_override_virtual_nativeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_nativeEvent
func miqt_exec_callback_QComboBox_nativeEvent(self *C.QComboBox, cb C.intptr_t, eventType C.struct_miqt_string, message unsafe.Pointer, result *C.intptr_t) C.bool {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(eventType []byte, message unsafe.Pointer, result *uintptr) bool, eventType []byte, message unsafe.Pointer, result *uintptr) 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 := (*uintptr)(unsafe.Pointer(result))
virtualReturn := gofunc((&QComboBox{h: self}).callVirtualBase_NativeEvent, slotval1, slotval2, slotval3)
return (C.bool)(virtualReturn)
}
func (this *QComboBox) callVirtualBase_Metric(param1 QPaintDevice__PaintDeviceMetric) int {
return (int)(C.QComboBox_virtualbase_metric(unsafe.Pointer(this.h), (C.int)(param1)))
}
func (this *QComboBox) Onmetric(slot func(super func(param1 QPaintDevice__PaintDeviceMetric) int, param1 QPaintDevice__PaintDeviceMetric) int) {
ok := C.QComboBox_override_virtual_metric(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_metric
func miqt_exec_callback_QComboBox_metric(self *C.QComboBox, cb C.intptr_t, param1 C.int) C.int {
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((&QComboBox{h: self}).callVirtualBase_Metric, slotval1)
return (C.int)(virtualReturn)
}
func (this *QComboBox) callVirtualBase_InitPainter(painter *QPainter) {
C.QComboBox_virtualbase_initPainter(unsafe.Pointer(this.h), painter.cPointer())
}
func (this *QComboBox) OninitPainter(slot func(super func(painter *QPainter), painter *QPainter)) {
ok := C.QComboBox_override_virtual_initPainter(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_initPainter
func miqt_exec_callback_QComboBox_initPainter(self *C.QComboBox, cb C.intptr_t, painter *C.QPainter) {
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((&QComboBox{h: self}).callVirtualBase_InitPainter, slotval1)
}
func (this *QComboBox) callVirtualBase_Redirected(offset *QPoint) *QPaintDevice {
return newQPaintDevice(C.QComboBox_virtualbase_redirected(unsafe.Pointer(this.h), offset.cPointer()))
}
func (this *QComboBox) Onredirected(slot func(super func(offset *QPoint) *QPaintDevice, offset *QPoint) *QPaintDevice) {
ok := C.QComboBox_override_virtual_redirected(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_redirected
func miqt_exec_callback_QComboBox_redirected(self *C.QComboBox, cb C.intptr_t, offset *C.QPoint) *C.QPaintDevice {
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((&QComboBox{h: self}).callVirtualBase_Redirected, slotval1)
return virtualReturn.cPointer()
}
func (this *QComboBox) callVirtualBase_SharedPainter() *QPainter {
return newQPainter(C.QComboBox_virtualbase_sharedPainter(unsafe.Pointer(this.h)))
}
func (this *QComboBox) OnsharedPainter(slot func(super func() *QPainter) *QPainter) {
ok := C.QComboBox_override_virtual_sharedPainter(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_sharedPainter
func miqt_exec_callback_QComboBox_sharedPainter(self *C.QComboBox, cb C.intptr_t) *C.QPainter {
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QPainter) *QPainter)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
virtualReturn := gofunc((&QComboBox{h: self}).callVirtualBase_SharedPainter)
return virtualReturn.cPointer()
}
func (this *QComboBox) callVirtualBase_FocusNextPrevChild(next bool) bool {
return (bool)(C.QComboBox_virtualbase_focusNextPrevChild(unsafe.Pointer(this.h), (C.bool)(next)))
}
func (this *QComboBox) OnfocusNextPrevChild(slot func(super func(next bool) bool, next bool) bool) {
ok := C.QComboBox_override_virtual_focusNextPrevChild(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_focusNextPrevChild
func miqt_exec_callback_QComboBox_focusNextPrevChild(self *C.QComboBox, cb C.intptr_t, next C.bool) C.bool {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(next bool) bool, next bool) bool)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (bool)(next)
virtualReturn := gofunc((&QComboBox{h: self}).callVirtualBase_FocusNextPrevChild, slotval1)
return (C.bool)(virtualReturn)
}
func (this *QComboBox) callVirtualBase_EventFilter(watched *QObject, event *QEvent) bool {
return (bool)(C.QComboBox_virtualbase_eventFilter(unsafe.Pointer(this.h), watched.cPointer(), event.cPointer()))
}
func (this *QComboBox) OneventFilter(slot func(super func(watched *QObject, event *QEvent) bool, watched *QObject, event *QEvent) bool) {
ok := C.QComboBox_override_virtual_eventFilter(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_eventFilter
func miqt_exec_callback_QComboBox_eventFilter(self *C.QComboBox, cb C.intptr_t, watched *C.QObject, event *C.QEvent) C.bool {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(watched *QObject, event *QEvent) bool, watched *QObject, event *QEvent) bool)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQObject(watched)
slotval2 := newQEvent(event)
virtualReturn := gofunc((&QComboBox{h: self}).callVirtualBase_EventFilter, slotval1, slotval2)
return (C.bool)(virtualReturn)
}
func (this *QComboBox) callVirtualBase_TimerEvent(event *QTimerEvent) {
C.QComboBox_virtualbase_timerEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QComboBox) OntimerEvent(slot func(super func(event *QTimerEvent), event *QTimerEvent)) {
ok := C.QComboBox_override_virtual_timerEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_timerEvent
func miqt_exec_callback_QComboBox_timerEvent(self *C.QComboBox, cb C.intptr_t, event *C.QTimerEvent) {
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((&QComboBox{h: self}).callVirtualBase_TimerEvent, slotval1)
}
func (this *QComboBox) callVirtualBase_ChildEvent(event *QChildEvent) {
C.QComboBox_virtualbase_childEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QComboBox) OnchildEvent(slot func(super func(event *QChildEvent), event *QChildEvent)) {
ok := C.QComboBox_override_virtual_childEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_childEvent
func miqt_exec_callback_QComboBox_childEvent(self *C.QComboBox, cb C.intptr_t, event *C.QChildEvent) {
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((&QComboBox{h: self}).callVirtualBase_ChildEvent, slotval1)
}
func (this *QComboBox) callVirtualBase_CustomEvent(event *QEvent) {
C.QComboBox_virtualbase_customEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QComboBox) OncustomEvent(slot func(super func(event *QEvent), event *QEvent)) {
ok := C.QComboBox_override_virtual_customEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_customEvent
func miqt_exec_callback_QComboBox_customEvent(self *C.QComboBox, cb C.intptr_t, event *C.QEvent) {
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((&QComboBox{h: self}).callVirtualBase_CustomEvent, slotval1)
}
func (this *QComboBox) callVirtualBase_ConnectNotify(signal *QMetaMethod) {
C.QComboBox_virtualbase_connectNotify(unsafe.Pointer(this.h), signal.cPointer())
}
func (this *QComboBox) OnconnectNotify(slot func(super func(signal *QMetaMethod), signal *QMetaMethod)) {
ok := C.QComboBox_override_virtual_connectNotify(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_connectNotify
func miqt_exec_callback_QComboBox_connectNotify(self *C.QComboBox, cb C.intptr_t, signal *C.QMetaMethod) {
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((&QComboBox{h: self}).callVirtualBase_ConnectNotify, slotval1)
}
func (this *QComboBox) callVirtualBase_DisconnectNotify(signal *QMetaMethod) {
C.QComboBox_virtualbase_disconnectNotify(unsafe.Pointer(this.h), signal.cPointer())
}
func (this *QComboBox) OndisconnectNotify(slot func(super func(signal *QMetaMethod), signal *QMetaMethod)) {
ok := C.QComboBox_override_virtual_disconnectNotify(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QComboBox_disconnectNotify
func miqt_exec_callback_QComboBox_disconnectNotify(self *C.QComboBox, cb C.intptr_t, signal *C.QMetaMethod) {
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((&QComboBox{h: self}).callVirtualBase_DisconnectNotify, slotval1)
}
// Delete this object from C++ memory.
func (this *QComboBox) Delete() {
C.QComboBox_delete(this.h)
}
// GoGC adds a Go Finalizer to this pointer, so that it will be deleted
// from C++ memory once it is unreachable from Go memory.
func (this *QComboBox) GoGC() {
runtime.SetFinalizer(this, func(this *QComboBox) {
this.Delete()
runtime.KeepAlive(this.h)
})
}