miqt/qt/gen_qcolumnview.go

1941 lines
75 KiB
Go
Raw Normal View History

package qt
/*
#include "gen_qcolumnview.h"
#include <stdlib.h>
*/
import "C"
import (
"runtime"
"runtime/cgo"
"unsafe"
)
type QColumnView struct {
2024-11-19 06:29:06 +00:00
h *C.QColumnView
isSubclass bool
*QAbstractItemView
}
func (this *QColumnView) cPointer() *C.QColumnView {
if this == nil {
return nil
}
return this.h
}
func (this *QColumnView) UnsafePointer() unsafe.Pointer {
if this == nil {
return nil
}
return unsafe.Pointer(this.h)
}
2024-11-19 06:29:06 +00:00
// newQColumnView constructs the type using only CGO pointers.
func newQColumnView(h *C.QColumnView, h_QAbstractItemView *C.QAbstractItemView, h_QAbstractScrollArea *C.QAbstractScrollArea, h_QFrame *C.QFrame, h_QWidget *C.QWidget, h_QObject *C.QObject, h_QPaintDevice *C.QPaintDevice) *QColumnView {
2024-09-01 02:23:55 +00:00
if h == nil {
return nil
}
2024-11-19 06:29:06 +00:00
return &QColumnView{h: h,
QAbstractItemView: newQAbstractItemView(h_QAbstractItemView, h_QAbstractScrollArea, h_QFrame, h_QWidget, h_QObject, h_QPaintDevice)}
}
2024-11-19 06:29:06 +00:00
// UnsafeNewQColumnView constructs the type using only unsafe pointers.
func UnsafeNewQColumnView(h unsafe.Pointer, h_QAbstractItemView unsafe.Pointer, h_QAbstractScrollArea unsafe.Pointer, h_QFrame unsafe.Pointer, h_QWidget unsafe.Pointer, h_QObject unsafe.Pointer, h_QPaintDevice unsafe.Pointer) *QColumnView {
if h == nil {
return nil
}
return &QColumnView{h: (*C.QColumnView)(h),
QAbstractItemView: UnsafeNewQAbstractItemView(h_QAbstractItemView, h_QAbstractScrollArea, h_QFrame, h_QWidget, h_QObject, h_QPaintDevice)}
}
// NewQColumnView constructs a new QColumnView object.
func NewQColumnView(parent *QWidget) *QColumnView {
2024-11-19 06:29:06 +00:00
var outptr_QColumnView *C.QColumnView = nil
var outptr_QAbstractItemView *C.QAbstractItemView = nil
var outptr_QAbstractScrollArea *C.QAbstractScrollArea = nil
var outptr_QFrame *C.QFrame = nil
var outptr_QWidget *C.QWidget = nil
var outptr_QObject *C.QObject = nil
var outptr_QPaintDevice *C.QPaintDevice = nil
C.QColumnView_new(parent.cPointer(), &outptr_QColumnView, &outptr_QAbstractItemView, &outptr_QAbstractScrollArea, &outptr_QFrame, &outptr_QWidget, &outptr_QObject, &outptr_QPaintDevice)
ret := newQColumnView(outptr_QColumnView, outptr_QAbstractItemView, outptr_QAbstractScrollArea, outptr_QFrame, outptr_QWidget, outptr_QObject, outptr_QPaintDevice)
ret.isSubclass = true
return ret
}
// NewQColumnView2 constructs a new QColumnView object.
func NewQColumnView2() *QColumnView {
2024-11-19 06:29:06 +00:00
var outptr_QColumnView *C.QColumnView = nil
var outptr_QAbstractItemView *C.QAbstractItemView = nil
var outptr_QAbstractScrollArea *C.QAbstractScrollArea = nil
var outptr_QFrame *C.QFrame = nil
var outptr_QWidget *C.QWidget = nil
var outptr_QObject *C.QObject = nil
var outptr_QPaintDevice *C.QPaintDevice = nil
C.QColumnView_new2(&outptr_QColumnView, &outptr_QAbstractItemView, &outptr_QAbstractScrollArea, &outptr_QFrame, &outptr_QWidget, &outptr_QObject, &outptr_QPaintDevice)
ret := newQColumnView(outptr_QColumnView, outptr_QAbstractItemView, outptr_QAbstractScrollArea, outptr_QFrame, outptr_QWidget, outptr_QObject, outptr_QPaintDevice)
ret.isSubclass = true
return ret
}
func (this *QColumnView) MetaObject() *QMetaObject {
return UnsafeNewQMetaObject(unsafe.Pointer(C.QColumnView_MetaObject(this.h)))
}
func (this *QColumnView) Metacast(param1 string) unsafe.Pointer {
param1_Cstring := C.CString(param1)
defer C.free(unsafe.Pointer(param1_Cstring))
return (unsafe.Pointer)(C.QColumnView_Metacast(this.h, param1_Cstring))
}
func QColumnView_Tr(s string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
var _ms C.struct_miqt_string = C.QColumnView_Tr(s_Cstring)
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func QColumnView_TrUtf8(s string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
var _ms C.struct_miqt_string = C.QColumnView_TrUtf8(s_Cstring)
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func (this *QColumnView) UpdatePreviewWidget(index *QModelIndex) {
C.QColumnView_UpdatePreviewWidget(this.h, index.cPointer())
}
func (this *QColumnView) OnUpdatePreviewWidget(slot func(index *QModelIndex)) {
C.QColumnView_connect_UpdatePreviewWidget(this.h, C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_UpdatePreviewWidget
func miqt_exec_callback_QColumnView_UpdatePreviewWidget(cb C.intptr_t, index *C.QModelIndex) {
gofunc, ok := cgo.Handle(cb).Value().(func(index *QModelIndex))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := UnsafeNewQModelIndex(unsafe.Pointer(index))
gofunc(slotval1)
}
func (this *QColumnView) IndexAt(point *QPoint) *QModelIndex {
_ret := C.QColumnView_IndexAt(this.h, point.cPointer())
_goptr := newQModelIndex(_ret)
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
2024-11-19 06:29:06 +00:00
func (this *QColumnView) ScrollTo(index *QModelIndex, hint QAbstractItemView__ScrollHint) {
C.QColumnView_ScrollTo(this.h, index.cPointer(), (C.int)(hint))
2024-08-29 07:01:51 +00:00
}
func (this *QColumnView) SizeHint() *QSize {
_ret := C.QColumnView_SizeHint(this.h)
_goptr := newQSize(_ret)
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QColumnView) VisualRect(index *QModelIndex) *QRect {
_ret := C.QColumnView_VisualRect(this.h, index.cPointer())
_goptr := newQRect(_ret)
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QColumnView) SetModel(model *QAbstractItemModel) {
C.QColumnView_SetModel(this.h, model.cPointer())
}
func (this *QColumnView) SetSelectionModel(selectionModel *QItemSelectionModel) {
C.QColumnView_SetSelectionModel(this.h, selectionModel.cPointer())
}
func (this *QColumnView) SetRootIndex(index *QModelIndex) {
C.QColumnView_SetRootIndex(this.h, index.cPointer())
}
func (this *QColumnView) SelectAll() {
C.QColumnView_SelectAll(this.h)
}
func (this *QColumnView) SetResizeGripsVisible(visible bool) {
C.QColumnView_SetResizeGripsVisible(this.h, (C.bool)(visible))
}
func (this *QColumnView) ResizeGripsVisible() bool {
return (bool)(C.QColumnView_ResizeGripsVisible(this.h))
}
func (this *QColumnView) PreviewWidget() *QWidget {
2024-11-19 06:29:06 +00:00
return UnsafeNewQWidget(unsafe.Pointer(C.QColumnView_PreviewWidget(this.h)), nil, nil)
}
func (this *QColumnView) SetPreviewWidget(widget *QWidget) {
C.QColumnView_SetPreviewWidget(this.h, widget.cPointer())
}
func (this *QColumnView) SetColumnWidths(list []int) {
list_CArray := (*[0xffff]C.int)(C.malloc(C.size_t(8 * len(list))))
defer C.free(unsafe.Pointer(list_CArray))
for i := range list {
list_CArray[i] = (C.int)(list[i])
}
list_ma := C.struct_miqt_array{len: C.size_t(len(list)), data: unsafe.Pointer(list_CArray)}
C.QColumnView_SetColumnWidths(this.h, list_ma)
}
func (this *QColumnView) ColumnWidths() []int {
var _ma C.struct_miqt_array = C.QColumnView_ColumnWidths(this.h)
_ret := make([]int, int(_ma.len))
_outCast := (*[0xffff]C.int)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = (int)(_outCast[i])
}
return _ret
}
func QColumnView_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.QColumnView_Tr2(s_Cstring, c_Cstring)
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func QColumnView_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.QColumnView_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 QColumnView_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.QColumnView_TrUtf82(s_Cstring, c_Cstring)
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func QColumnView_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.QColumnView_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 *QColumnView) callVirtualBase_IndexAt(point *QPoint) *QModelIndex {
_ret := C.QColumnView_virtualbase_IndexAt(unsafe.Pointer(this.h), point.cPointer())
_goptr := newQModelIndex(_ret)
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QColumnView) OnIndexAt(slot func(super func(point *QPoint) *QModelIndex, point *QPoint) *QModelIndex) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_IndexAt(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_IndexAt
func miqt_exec_callback_QColumnView_IndexAt(self *C.QColumnView, cb C.intptr_t, point *C.QPoint) *C.QModelIndex {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(point *QPoint) *QModelIndex, point *QPoint) *QModelIndex)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := UnsafeNewQPoint(unsafe.Pointer(point))
virtualReturn := gofunc((&QColumnView{h: self}).callVirtualBase_IndexAt, slotval1)
return virtualReturn.cPointer()
}
func (this *QColumnView) callVirtualBase_ScrollTo(index *QModelIndex, hint QAbstractItemView__ScrollHint) {
C.QColumnView_virtualbase_ScrollTo(unsafe.Pointer(this.h), index.cPointer(), (C.int)(hint))
}
func (this *QColumnView) OnScrollTo(slot func(super func(index *QModelIndex, hint QAbstractItemView__ScrollHint), index *QModelIndex, hint QAbstractItemView__ScrollHint)) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_ScrollTo(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_ScrollTo
func miqt_exec_callback_QColumnView_ScrollTo(self *C.QColumnView, cb C.intptr_t, index *C.QModelIndex, hint C.int) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(index *QModelIndex, hint QAbstractItemView__ScrollHint), index *QModelIndex, hint QAbstractItemView__ScrollHint))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := UnsafeNewQModelIndex(unsafe.Pointer(index))
slotval2 := (QAbstractItemView__ScrollHint)(hint)
gofunc((&QColumnView{h: self}).callVirtualBase_ScrollTo, slotval1, slotval2)
}
func (this *QColumnView) callVirtualBase_SizeHint() *QSize {
_ret := C.QColumnView_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 *QColumnView) OnSizeHint(slot func(super func() *QSize) *QSize) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_SizeHint(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_SizeHint
func miqt_exec_callback_QColumnView_SizeHint(self *C.QColumnView, 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((&QColumnView{h: self}).callVirtualBase_SizeHint)
return virtualReturn.cPointer()
}
func (this *QColumnView) callVirtualBase_VisualRect(index *QModelIndex) *QRect {
_ret := C.QColumnView_virtualbase_VisualRect(unsafe.Pointer(this.h), index.cPointer())
_goptr := newQRect(_ret)
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QColumnView) OnVisualRect(slot func(super func(index *QModelIndex) *QRect, index *QModelIndex) *QRect) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_VisualRect(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_VisualRect
func miqt_exec_callback_QColumnView_VisualRect(self *C.QColumnView, cb C.intptr_t, index *C.QModelIndex) *C.QRect {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(index *QModelIndex) *QRect, index *QModelIndex) *QRect)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := UnsafeNewQModelIndex(unsafe.Pointer(index))
virtualReturn := gofunc((&QColumnView{h: self}).callVirtualBase_VisualRect, slotval1)
return virtualReturn.cPointer()
}
func (this *QColumnView) callVirtualBase_SetModel(model *QAbstractItemModel) {
C.QColumnView_virtualbase_SetModel(unsafe.Pointer(this.h), model.cPointer())
}
func (this *QColumnView) OnSetModel(slot func(super func(model *QAbstractItemModel), model *QAbstractItemModel)) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_SetModel(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_SetModel
func miqt_exec_callback_QColumnView_SetModel(self *C.QColumnView, cb C.intptr_t, model *C.QAbstractItemModel) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(model *QAbstractItemModel), model *QAbstractItemModel))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := UnsafeNewQAbstractItemModel(unsafe.Pointer(model), nil)
gofunc((&QColumnView{h: self}).callVirtualBase_SetModel, slotval1)
}
func (this *QColumnView) callVirtualBase_SetSelectionModel(selectionModel *QItemSelectionModel) {
C.QColumnView_virtualbase_SetSelectionModel(unsafe.Pointer(this.h), selectionModel.cPointer())
}
func (this *QColumnView) OnSetSelectionModel(slot func(super func(selectionModel *QItemSelectionModel), selectionModel *QItemSelectionModel)) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_SetSelectionModel(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_SetSelectionModel
func miqt_exec_callback_QColumnView_SetSelectionModel(self *C.QColumnView, cb C.intptr_t, selectionModel *C.QItemSelectionModel) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(selectionModel *QItemSelectionModel), selectionModel *QItemSelectionModel))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := UnsafeNewQItemSelectionModel(unsafe.Pointer(selectionModel), nil)
gofunc((&QColumnView{h: self}).callVirtualBase_SetSelectionModel, slotval1)
}
func (this *QColumnView) callVirtualBase_SetRootIndex(index *QModelIndex) {
C.QColumnView_virtualbase_SetRootIndex(unsafe.Pointer(this.h), index.cPointer())
}
func (this *QColumnView) OnSetRootIndex(slot func(super func(index *QModelIndex), index *QModelIndex)) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_SetRootIndex(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_SetRootIndex
func miqt_exec_callback_QColumnView_SetRootIndex(self *C.QColumnView, cb C.intptr_t, index *C.QModelIndex) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(index *QModelIndex), index *QModelIndex))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := UnsafeNewQModelIndex(unsafe.Pointer(index))
gofunc((&QColumnView{h: self}).callVirtualBase_SetRootIndex, slotval1)
}
func (this *QColumnView) callVirtualBase_SelectAll() {
C.QColumnView_virtualbase_SelectAll(unsafe.Pointer(this.h))
}
func (this *QColumnView) OnSelectAll(slot func(super func())) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_SelectAll(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_SelectAll
func miqt_exec_callback_QColumnView_SelectAll(self *C.QColumnView, 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((&QColumnView{h: self}).callVirtualBase_SelectAll)
}
func (this *QColumnView) callVirtualBase_IsIndexHidden(index *QModelIndex) bool {
return (bool)(C.QColumnView_virtualbase_IsIndexHidden(unsafe.Pointer(this.h), index.cPointer()))
}
func (this *QColumnView) OnIsIndexHidden(slot func(super func(index *QModelIndex) bool, index *QModelIndex) bool) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_IsIndexHidden(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_IsIndexHidden
func miqt_exec_callback_QColumnView_IsIndexHidden(self *C.QColumnView, cb C.intptr_t, index *C.QModelIndex) C.bool {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(index *QModelIndex) bool, index *QModelIndex) bool)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := UnsafeNewQModelIndex(unsafe.Pointer(index))
virtualReturn := gofunc((&QColumnView{h: self}).callVirtualBase_IsIndexHidden, slotval1)
return (C.bool)(virtualReturn)
}
func (this *QColumnView) callVirtualBase_MoveCursor(cursorAction QAbstractItemView__CursorAction, modifiers KeyboardModifier) *QModelIndex {
_ret := C.QColumnView_virtualbase_MoveCursor(unsafe.Pointer(this.h), (C.int)(cursorAction), (C.int)(modifiers))
_goptr := newQModelIndex(_ret)
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QColumnView) OnMoveCursor(slot func(super func(cursorAction QAbstractItemView__CursorAction, modifiers KeyboardModifier) *QModelIndex, cursorAction QAbstractItemView__CursorAction, modifiers KeyboardModifier) *QModelIndex) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_MoveCursor(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_MoveCursor
func miqt_exec_callback_QColumnView_MoveCursor(self *C.QColumnView, cb C.intptr_t, cursorAction C.int, modifiers C.int) *C.QModelIndex {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(cursorAction QAbstractItemView__CursorAction, modifiers KeyboardModifier) *QModelIndex, cursorAction QAbstractItemView__CursorAction, modifiers KeyboardModifier) *QModelIndex)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (QAbstractItemView__CursorAction)(cursorAction)
slotval2 := (KeyboardModifier)(modifiers)
virtualReturn := gofunc((&QColumnView{h: self}).callVirtualBase_MoveCursor, slotval1, slotval2)
return virtualReturn.cPointer()
}
func (this *QColumnView) callVirtualBase_ResizeEvent(event *QResizeEvent) {
C.QColumnView_virtualbase_ResizeEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QColumnView) OnResizeEvent(slot func(super func(event *QResizeEvent), event *QResizeEvent)) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_ResizeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_ResizeEvent
func miqt_exec_callback_QColumnView_ResizeEvent(self *C.QColumnView, cb C.intptr_t, event *C.QResizeEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QResizeEvent), event *QResizeEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := UnsafeNewQResizeEvent(unsafe.Pointer(event), nil)
gofunc((&QColumnView{h: self}).callVirtualBase_ResizeEvent, slotval1)
}
func (this *QColumnView) callVirtualBase_SetSelection(rect *QRect, command QItemSelectionModel__SelectionFlag) {
C.QColumnView_virtualbase_SetSelection(unsafe.Pointer(this.h), rect.cPointer(), (C.int)(command))
}
func (this *QColumnView) OnSetSelection(slot func(super func(rect *QRect, command QItemSelectionModel__SelectionFlag), rect *QRect, command QItemSelectionModel__SelectionFlag)) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_SetSelection(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_SetSelection
func miqt_exec_callback_QColumnView_SetSelection(self *C.QColumnView, cb C.intptr_t, rect *C.QRect, command C.int) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(rect *QRect, command QItemSelectionModel__SelectionFlag), rect *QRect, command QItemSelectionModel__SelectionFlag))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := UnsafeNewQRect(unsafe.Pointer(rect))
slotval2 := (QItemSelectionModel__SelectionFlag)(command)
gofunc((&QColumnView{h: self}).callVirtualBase_SetSelection, slotval1, slotval2)
}
func (this *QColumnView) callVirtualBase_VisualRegionForSelection(selection *QItemSelection) *QRegion {
_ret := C.QColumnView_virtualbase_VisualRegionForSelection(unsafe.Pointer(this.h), selection.cPointer())
_goptr := newQRegion(_ret)
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QColumnView) OnVisualRegionForSelection(slot func(super func(selection *QItemSelection) *QRegion, selection *QItemSelection) *QRegion) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
C.QColumnView_override_virtual_VisualRegionForSelection(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_VisualRegionForSelection
func miqt_exec_callback_QColumnView_VisualRegionForSelection(self *C.QColumnView, cb C.intptr_t, selection *C.QItemSelection) *C.QRegion {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(selection *QItemSelection) *QRegion, selection *QItemSelection) *QRegion)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := UnsafeNewQItemSelection(unsafe.Pointer(selection))
virtualReturn := gofunc((&QColumnView{h: self}).callVirtualBase_VisualRegionForSelection, slotval1)
return virtualReturn.cPointer()
}
2024-11-19 06:29:06 +00:00
func (this *QColumnView) callVirtualBase_HorizontalOffset() int {
return (int)(C.QColumnView_virtualbase_HorizontalOffset(unsafe.Pointer(this.h)))
}
func (this *QColumnView) OnHorizontalOffset(slot func(super func() int) int) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_HorizontalOffset(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_HorizontalOffset
func miqt_exec_callback_QColumnView_HorizontalOffset(self *C.QColumnView, 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((&QColumnView{h: self}).callVirtualBase_HorizontalOffset)
return (C.int)(virtualReturn)
}
func (this *QColumnView) callVirtualBase_VerticalOffset() int {
return (int)(C.QColumnView_virtualbase_VerticalOffset(unsafe.Pointer(this.h)))
}
func (this *QColumnView) OnVerticalOffset(slot func(super func() int) int) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_VerticalOffset(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_VerticalOffset
func miqt_exec_callback_QColumnView_VerticalOffset(self *C.QColumnView, 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((&QColumnView{h: self}).callVirtualBase_VerticalOffset)
return (C.int)(virtualReturn)
}
func (this *QColumnView) callVirtualBase_RowsInserted(parent *QModelIndex, start int, end int) {
C.QColumnView_virtualbase_RowsInserted(unsafe.Pointer(this.h), parent.cPointer(), (C.int)(start), (C.int)(end))
}
func (this *QColumnView) OnRowsInserted(slot func(super func(parent *QModelIndex, start int, end int), parent *QModelIndex, start int, end int)) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_RowsInserted(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_RowsInserted
func miqt_exec_callback_QColumnView_RowsInserted(self *C.QColumnView, cb C.intptr_t, parent *C.QModelIndex, start C.int, end C.int) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(parent *QModelIndex, start int, end int), parent *QModelIndex, start int, end int))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := UnsafeNewQModelIndex(unsafe.Pointer(parent))
slotval2 := (int)(start)
slotval3 := (int)(end)
gofunc((&QColumnView{h: self}).callVirtualBase_RowsInserted, slotval1, slotval2, slotval3)
}
func (this *QColumnView) callVirtualBase_CurrentChanged(current *QModelIndex, previous *QModelIndex) {
C.QColumnView_virtualbase_CurrentChanged(unsafe.Pointer(this.h), current.cPointer(), previous.cPointer())
}
func (this *QColumnView) OnCurrentChanged(slot func(super func(current *QModelIndex, previous *QModelIndex), current *QModelIndex, previous *QModelIndex)) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_CurrentChanged(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_CurrentChanged
func miqt_exec_callback_QColumnView_CurrentChanged(self *C.QColumnView, cb C.intptr_t, current *C.QModelIndex, previous *C.QModelIndex) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(current *QModelIndex, previous *QModelIndex), current *QModelIndex, previous *QModelIndex))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := UnsafeNewQModelIndex(unsafe.Pointer(current))
slotval2 := UnsafeNewQModelIndex(unsafe.Pointer(previous))
gofunc((&QColumnView{h: self}).callVirtualBase_CurrentChanged, slotval1, slotval2)
}
func (this *QColumnView) callVirtualBase_ScrollContentsBy(dx int, dy int) {
C.QColumnView_virtualbase_ScrollContentsBy(unsafe.Pointer(this.h), (C.int)(dx), (C.int)(dy))
}
func (this *QColumnView) OnScrollContentsBy(slot func(super func(dx int, dy int), dx int, dy int)) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_ScrollContentsBy(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_ScrollContentsBy
func miqt_exec_callback_QColumnView_ScrollContentsBy(self *C.QColumnView, cb C.intptr_t, dx C.int, dy C.int) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(dx int, dy int), dx int, dy int))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (int)(dx)
slotval2 := (int)(dy)
gofunc((&QColumnView{h: self}).callVirtualBase_ScrollContentsBy, slotval1, slotval2)
}
func (this *QColumnView) callVirtualBase_CreateColumn(rootIndex *QModelIndex) *QAbstractItemView {
return UnsafeNewQAbstractItemView(unsafe.Pointer(C.QColumnView_virtualbase_CreateColumn(unsafe.Pointer(this.h), rootIndex.cPointer())), nil, nil, nil, nil, nil)
}
func (this *QColumnView) OnCreateColumn(slot func(super func(rootIndex *QModelIndex) *QAbstractItemView, rootIndex *QModelIndex) *QAbstractItemView) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_CreateColumn(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_CreateColumn
func miqt_exec_callback_QColumnView_CreateColumn(self *C.QColumnView, cb C.intptr_t, rootIndex *C.QModelIndex) *C.QAbstractItemView {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(rootIndex *QModelIndex) *QAbstractItemView, rootIndex *QModelIndex) *QAbstractItemView)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := UnsafeNewQModelIndex(unsafe.Pointer(rootIndex))
virtualReturn := gofunc((&QColumnView{h: self}).callVirtualBase_CreateColumn, slotval1)
return virtualReturn.cPointer()
}
func (this *QColumnView) callVirtualBase_KeyboardSearch(search string) {
search_ms := C.struct_miqt_string{}
search_ms.data = C.CString(search)
search_ms.len = C.size_t(len(search))
defer C.free(unsafe.Pointer(search_ms.data))
C.QColumnView_virtualbase_KeyboardSearch(unsafe.Pointer(this.h), search_ms)
}
func (this *QColumnView) OnKeyboardSearch(slot func(super func(search string), search string)) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_KeyboardSearch(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_KeyboardSearch
func miqt_exec_callback_QColumnView_KeyboardSearch(self *C.QColumnView, cb C.intptr_t, search C.struct_miqt_string) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(search string), search string))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
var search_ms C.struct_miqt_string = search
search_ret := C.GoStringN(search_ms.data, C.int(int64(search_ms.len)))
C.free(unsafe.Pointer(search_ms.data))
slotval1 := search_ret
gofunc((&QColumnView{h: self}).callVirtualBase_KeyboardSearch, slotval1)
}
func (this *QColumnView) callVirtualBase_SizeHintForRow(row int) int {
return (int)(C.QColumnView_virtualbase_SizeHintForRow(unsafe.Pointer(this.h), (C.int)(row)))
}
func (this *QColumnView) OnSizeHintForRow(slot func(super func(row int) int, row int) int) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_SizeHintForRow(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_SizeHintForRow
func miqt_exec_callback_QColumnView_SizeHintForRow(self *C.QColumnView, cb C.intptr_t, row C.int) C.int {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(row int) int, row int) int)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (int)(row)
virtualReturn := gofunc((&QColumnView{h: self}).callVirtualBase_SizeHintForRow, slotval1)
return (C.int)(virtualReturn)
}
func (this *QColumnView) callVirtualBase_SizeHintForColumn(column int) int {
return (int)(C.QColumnView_virtualbase_SizeHintForColumn(unsafe.Pointer(this.h), (C.int)(column)))
}
func (this *QColumnView) OnSizeHintForColumn(slot func(super func(column int) int, column int) int) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_SizeHintForColumn(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_SizeHintForColumn
func miqt_exec_callback_QColumnView_SizeHintForColumn(self *C.QColumnView, cb C.intptr_t, column C.int) C.int {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(column int) int, column int) int)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (int)(column)
virtualReturn := gofunc((&QColumnView{h: self}).callVirtualBase_SizeHintForColumn, slotval1)
return (C.int)(virtualReturn)
}
func (this *QColumnView) callVirtualBase_InputMethodQuery(query InputMethodQuery) *QVariant {
_ret := C.QColumnView_virtualbase_InputMethodQuery(unsafe.Pointer(this.h), (C.int)(query))
_goptr := newQVariant(_ret)
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QColumnView) OnInputMethodQuery(slot func(super func(query InputMethodQuery) *QVariant, query InputMethodQuery) *QVariant) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_InputMethodQuery(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_InputMethodQuery
func miqt_exec_callback_QColumnView_InputMethodQuery(self *C.QColumnView, cb C.intptr_t, query C.int) *C.QVariant {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(query InputMethodQuery) *QVariant, query InputMethodQuery) *QVariant)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (InputMethodQuery)(query)
virtualReturn := gofunc((&QColumnView{h: self}).callVirtualBase_InputMethodQuery, slotval1)
return virtualReturn.cPointer()
}
func (this *QColumnView) callVirtualBase_Reset() {
C.QColumnView_virtualbase_Reset(unsafe.Pointer(this.h))
}
func (this *QColumnView) OnReset(slot func(super func())) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_Reset(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_Reset
func miqt_exec_callback_QColumnView_Reset(self *C.QColumnView, 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((&QColumnView{h: self}).callVirtualBase_Reset)
}
func (this *QColumnView) callVirtualBase_DoItemsLayout() {
C.QColumnView_virtualbase_DoItemsLayout(unsafe.Pointer(this.h))
}
func (this *QColumnView) OnDoItemsLayout(slot func(super func())) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_DoItemsLayout(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_DoItemsLayout
func miqt_exec_callback_QColumnView_DoItemsLayout(self *C.QColumnView, 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((&QColumnView{h: self}).callVirtualBase_DoItemsLayout)
}
func (this *QColumnView) callVirtualBase_DataChanged(topLeft *QModelIndex, bottomRight *QModelIndex, roles []int) {
roles_CArray := (*[0xffff]C.int)(C.malloc(C.size_t(8 * len(roles))))
defer C.free(unsafe.Pointer(roles_CArray))
for i := range roles {
roles_CArray[i] = (C.int)(roles[i])
}
roles_ma := C.struct_miqt_array{len: C.size_t(len(roles)), data: unsafe.Pointer(roles_CArray)}
C.QColumnView_virtualbase_DataChanged(unsafe.Pointer(this.h), topLeft.cPointer(), bottomRight.cPointer(), roles_ma)
}
func (this *QColumnView) OnDataChanged(slot func(super func(topLeft *QModelIndex, bottomRight *QModelIndex, roles []int), topLeft *QModelIndex, bottomRight *QModelIndex, roles []int)) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_DataChanged(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_DataChanged
func miqt_exec_callback_QColumnView_DataChanged(self *C.QColumnView, cb C.intptr_t, topLeft *C.QModelIndex, bottomRight *C.QModelIndex, roles C.struct_miqt_array) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(topLeft *QModelIndex, bottomRight *QModelIndex, roles []int), topLeft *QModelIndex, bottomRight *QModelIndex, roles []int))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := UnsafeNewQModelIndex(unsafe.Pointer(topLeft))
slotval2 := UnsafeNewQModelIndex(unsafe.Pointer(bottomRight))
var roles_ma C.struct_miqt_array = roles
roles_ret := make([]int, int(roles_ma.len))
roles_outCast := (*[0xffff]C.int)(unsafe.Pointer(roles_ma.data)) // hey ya
for i := 0; i < int(roles_ma.len); i++ {
roles_ret[i] = (int)(roles_outCast[i])
}
slotval3 := roles_ret
gofunc((&QColumnView{h: self}).callVirtualBase_DataChanged, slotval1, slotval2, slotval3)
}
func (this *QColumnView) callVirtualBase_RowsAboutToBeRemoved(parent *QModelIndex, start int, end int) {
C.QColumnView_virtualbase_RowsAboutToBeRemoved(unsafe.Pointer(this.h), parent.cPointer(), (C.int)(start), (C.int)(end))
}
func (this *QColumnView) OnRowsAboutToBeRemoved(slot func(super func(parent *QModelIndex, start int, end int), parent *QModelIndex, start int, end int)) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_RowsAboutToBeRemoved(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_RowsAboutToBeRemoved
func miqt_exec_callback_QColumnView_RowsAboutToBeRemoved(self *C.QColumnView, cb C.intptr_t, parent *C.QModelIndex, start C.int, end C.int) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(parent *QModelIndex, start int, end int), parent *QModelIndex, start int, end int))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := UnsafeNewQModelIndex(unsafe.Pointer(parent))
slotval2 := (int)(start)
slotval3 := (int)(end)
gofunc((&QColumnView{h: self}).callVirtualBase_RowsAboutToBeRemoved, slotval1, slotval2, slotval3)
}
func (this *QColumnView) callVirtualBase_SelectionChanged(selected *QItemSelection, deselected *QItemSelection) {
C.QColumnView_virtualbase_SelectionChanged(unsafe.Pointer(this.h), selected.cPointer(), deselected.cPointer())
}
func (this *QColumnView) OnSelectionChanged(slot func(super func(selected *QItemSelection, deselected *QItemSelection), selected *QItemSelection, deselected *QItemSelection)) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
C.QColumnView_override_virtual_SelectionChanged(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_SelectionChanged
func miqt_exec_callback_QColumnView_SelectionChanged(self *C.QColumnView, cb C.intptr_t, selected *C.QItemSelection, deselected *C.QItemSelection) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(selected *QItemSelection, deselected *QItemSelection), selected *QItemSelection, deselected *QItemSelection))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := UnsafeNewQItemSelection(unsafe.Pointer(selected))
slotval2 := UnsafeNewQItemSelection(unsafe.Pointer(deselected))
gofunc((&QColumnView{h: self}).callVirtualBase_SelectionChanged, slotval1, slotval2)
}
2024-11-19 06:29:06 +00:00
func (this *QColumnView) callVirtualBase_UpdateEditorData() {
C.QColumnView_virtualbase_UpdateEditorData(unsafe.Pointer(this.h))
}
func (this *QColumnView) OnUpdateEditorData(slot func(super func())) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_UpdateEditorData(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_UpdateEditorData
func miqt_exec_callback_QColumnView_UpdateEditorData(self *C.QColumnView, 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((&QColumnView{h: self}).callVirtualBase_UpdateEditorData)
}
func (this *QColumnView) callVirtualBase_UpdateEditorGeometries() {
C.QColumnView_virtualbase_UpdateEditorGeometries(unsafe.Pointer(this.h))
}
func (this *QColumnView) OnUpdateEditorGeometries(slot func(super func())) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_UpdateEditorGeometries(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_UpdateEditorGeometries
func miqt_exec_callback_QColumnView_UpdateEditorGeometries(self *C.QColumnView, 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((&QColumnView{h: self}).callVirtualBase_UpdateEditorGeometries)
}
func (this *QColumnView) callVirtualBase_UpdateGeometries() {
C.QColumnView_virtualbase_UpdateGeometries(unsafe.Pointer(this.h))
}
func (this *QColumnView) OnUpdateGeometries(slot func(super func())) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_UpdateGeometries(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_UpdateGeometries
func miqt_exec_callback_QColumnView_UpdateGeometries(self *C.QColumnView, 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((&QColumnView{h: self}).callVirtualBase_UpdateGeometries)
}
func (this *QColumnView) callVirtualBase_VerticalScrollbarAction(action int) {
C.QColumnView_virtualbase_VerticalScrollbarAction(unsafe.Pointer(this.h), (C.int)(action))
}
func (this *QColumnView) OnVerticalScrollbarAction(slot func(super func(action int), action int)) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_VerticalScrollbarAction(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_VerticalScrollbarAction
func miqt_exec_callback_QColumnView_VerticalScrollbarAction(self *C.QColumnView, cb C.intptr_t, action C.int) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(action int), action int))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (int)(action)
gofunc((&QColumnView{h: self}).callVirtualBase_VerticalScrollbarAction, slotval1)
}
func (this *QColumnView) callVirtualBase_HorizontalScrollbarAction(action int) {
C.QColumnView_virtualbase_HorizontalScrollbarAction(unsafe.Pointer(this.h), (C.int)(action))
}
func (this *QColumnView) OnHorizontalScrollbarAction(slot func(super func(action int), action int)) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_HorizontalScrollbarAction(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_HorizontalScrollbarAction
func miqt_exec_callback_QColumnView_HorizontalScrollbarAction(self *C.QColumnView, cb C.intptr_t, action C.int) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(action int), action int))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (int)(action)
gofunc((&QColumnView{h: self}).callVirtualBase_HorizontalScrollbarAction, slotval1)
}
func (this *QColumnView) callVirtualBase_VerticalScrollbarValueChanged(value int) {
C.QColumnView_virtualbase_VerticalScrollbarValueChanged(unsafe.Pointer(this.h), (C.int)(value))
}
func (this *QColumnView) OnVerticalScrollbarValueChanged(slot func(super func(value int), value int)) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_VerticalScrollbarValueChanged(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_VerticalScrollbarValueChanged
func miqt_exec_callback_QColumnView_VerticalScrollbarValueChanged(self *C.QColumnView, cb C.intptr_t, value C.int) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(value int), value int))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (int)(value)
gofunc((&QColumnView{h: self}).callVirtualBase_VerticalScrollbarValueChanged, slotval1)
}
func (this *QColumnView) callVirtualBase_HorizontalScrollbarValueChanged(value int) {
C.QColumnView_virtualbase_HorizontalScrollbarValueChanged(unsafe.Pointer(this.h), (C.int)(value))
}
func (this *QColumnView) OnHorizontalScrollbarValueChanged(slot func(super func(value int), value int)) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_HorizontalScrollbarValueChanged(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_HorizontalScrollbarValueChanged
func miqt_exec_callback_QColumnView_HorizontalScrollbarValueChanged(self *C.QColumnView, cb C.intptr_t, value C.int) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(value int), value int))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (int)(value)
gofunc((&QColumnView{h: self}).callVirtualBase_HorizontalScrollbarValueChanged, slotval1)
}
func (this *QColumnView) callVirtualBase_CloseEditor(editor *QWidget, hint QAbstractItemDelegate__EndEditHint) {
C.QColumnView_virtualbase_CloseEditor(unsafe.Pointer(this.h), editor.cPointer(), (C.int)(hint))
}
func (this *QColumnView) OnCloseEditor(slot func(super func(editor *QWidget, hint QAbstractItemDelegate__EndEditHint), editor *QWidget, hint QAbstractItemDelegate__EndEditHint)) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_CloseEditor(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_CloseEditor
func miqt_exec_callback_QColumnView_CloseEditor(self *C.QColumnView, cb C.intptr_t, editor *C.QWidget, hint C.int) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(editor *QWidget, hint QAbstractItemDelegate__EndEditHint), editor *QWidget, hint QAbstractItemDelegate__EndEditHint))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := UnsafeNewQWidget(unsafe.Pointer(editor), nil, nil)
slotval2 := (QAbstractItemDelegate__EndEditHint)(hint)
gofunc((&QColumnView{h: self}).callVirtualBase_CloseEditor, slotval1, slotval2)
}
func (this *QColumnView) callVirtualBase_CommitData(editor *QWidget) {
C.QColumnView_virtualbase_CommitData(unsafe.Pointer(this.h), editor.cPointer())
}
func (this *QColumnView) OnCommitData(slot func(super func(editor *QWidget), editor *QWidget)) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_CommitData(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_CommitData
func miqt_exec_callback_QColumnView_CommitData(self *C.QColumnView, cb C.intptr_t, editor *C.QWidget) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(editor *QWidget), editor *QWidget))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := UnsafeNewQWidget(unsafe.Pointer(editor), nil, nil)
gofunc((&QColumnView{h: self}).callVirtualBase_CommitData, slotval1)
}
func (this *QColumnView) callVirtualBase_EditorDestroyed(editor *QObject) {
C.QColumnView_virtualbase_EditorDestroyed(unsafe.Pointer(this.h), editor.cPointer())
}
func (this *QColumnView) OnEditorDestroyed(slot func(super func(editor *QObject), editor *QObject)) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_EditorDestroyed(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_EditorDestroyed
func miqt_exec_callback_QColumnView_EditorDestroyed(self *C.QColumnView, cb C.intptr_t, editor *C.QObject) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(editor *QObject), editor *QObject))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := UnsafeNewQObject(unsafe.Pointer(editor))
gofunc((&QColumnView{h: self}).callVirtualBase_EditorDestroyed, slotval1)
}
func (this *QColumnView) callVirtualBase_SelectedIndexes() []QModelIndex {
var _ma C.struct_miqt_array = C.QColumnView_virtualbase_SelectedIndexes(unsafe.Pointer(this.h))
_ret := make([]QModelIndex, int(_ma.len))
_outCast := (*[0xffff]*C.QModelIndex)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_lv_ret := _outCast[i]
_lv_goptr := newQModelIndex(_lv_ret)
_lv_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
_ret[i] = *_lv_goptr
}
return _ret
}
func (this *QColumnView) OnSelectedIndexes(slot func(super func() []QModelIndex) []QModelIndex) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_SelectedIndexes(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_SelectedIndexes
func miqt_exec_callback_QColumnView_SelectedIndexes(self *C.QColumnView, cb C.intptr_t) C.struct_miqt_array {
gofunc, ok := cgo.Handle(cb).Value().(func(super func() []QModelIndex) []QModelIndex)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
virtualReturn := gofunc((&QColumnView{h: self}).callVirtualBase_SelectedIndexes)
virtualReturn_CArray := (*[0xffff]*C.QModelIndex)(C.malloc(C.size_t(8 * len(virtualReturn))))
defer C.free(unsafe.Pointer(virtualReturn_CArray))
for i := range virtualReturn {
virtualReturn_CArray[i] = virtualReturn[i].cPointer()
}
virtualReturn_ma := C.struct_miqt_array{len: C.size_t(len(virtualReturn)), data: unsafe.Pointer(virtualReturn_CArray)}
return virtualReturn_ma
}
func (this *QColumnView) callVirtualBase_Edit2(index *QModelIndex, trigger QAbstractItemView__EditTrigger, event *QEvent) bool {
return (bool)(C.QColumnView_virtualbase_Edit2(unsafe.Pointer(this.h), index.cPointer(), (C.int)(trigger), event.cPointer()))
}
func (this *QColumnView) OnEdit2(slot func(super func(index *QModelIndex, trigger QAbstractItemView__EditTrigger, event *QEvent) bool, index *QModelIndex, trigger QAbstractItemView__EditTrigger, event *QEvent) bool) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_Edit2(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_Edit2
func miqt_exec_callback_QColumnView_Edit2(self *C.QColumnView, cb C.intptr_t, index *C.QModelIndex, trigger C.int, event *C.QEvent) C.bool {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(index *QModelIndex, trigger QAbstractItemView__EditTrigger, event *QEvent) bool, index *QModelIndex, trigger QAbstractItemView__EditTrigger, event *QEvent) bool)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := UnsafeNewQModelIndex(unsafe.Pointer(index))
slotval2 := (QAbstractItemView__EditTrigger)(trigger)
slotval3 := UnsafeNewQEvent(unsafe.Pointer(event))
virtualReturn := gofunc((&QColumnView{h: self}).callVirtualBase_Edit2, slotval1, slotval2, slotval3)
return (C.bool)(virtualReturn)
}
func (this *QColumnView) callVirtualBase_SelectionCommand(index *QModelIndex, event *QEvent) QItemSelectionModel__SelectionFlag {
return (QItemSelectionModel__SelectionFlag)(C.QColumnView_virtualbase_SelectionCommand(unsafe.Pointer(this.h), index.cPointer(), event.cPointer()))
}
func (this *QColumnView) OnSelectionCommand(slot func(super func(index *QModelIndex, event *QEvent) QItemSelectionModel__SelectionFlag, index *QModelIndex, event *QEvent) QItemSelectionModel__SelectionFlag) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_SelectionCommand(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_SelectionCommand
func miqt_exec_callback_QColumnView_SelectionCommand(self *C.QColumnView, cb C.intptr_t, index *C.QModelIndex, event *C.QEvent) C.int {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(index *QModelIndex, event *QEvent) QItemSelectionModel__SelectionFlag, index *QModelIndex, event *QEvent) QItemSelectionModel__SelectionFlag)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := UnsafeNewQModelIndex(unsafe.Pointer(index))
slotval2 := UnsafeNewQEvent(unsafe.Pointer(event))
virtualReturn := gofunc((&QColumnView{h: self}).callVirtualBase_SelectionCommand, slotval1, slotval2)
return (C.int)(virtualReturn)
}
func (this *QColumnView) callVirtualBase_StartDrag(supportedActions DropAction) {
C.QColumnView_virtualbase_StartDrag(unsafe.Pointer(this.h), (C.int)(supportedActions))
}
func (this *QColumnView) OnStartDrag(slot func(super func(supportedActions DropAction), supportedActions DropAction)) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_StartDrag(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_StartDrag
func miqt_exec_callback_QColumnView_StartDrag(self *C.QColumnView, cb C.intptr_t, supportedActions C.int) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(supportedActions DropAction), supportedActions DropAction))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (DropAction)(supportedActions)
gofunc((&QColumnView{h: self}).callVirtualBase_StartDrag, slotval1)
}
func (this *QColumnView) callVirtualBase_ViewOptions() *QStyleOptionViewItem {
_ret := C.QColumnView_virtualbase_ViewOptions(unsafe.Pointer(this.h))
_goptr := newQStyleOptionViewItem(_ret, nil)
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QColumnView) OnViewOptions(slot func(super func() *QStyleOptionViewItem) *QStyleOptionViewItem) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_ViewOptions(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_ViewOptions
func miqt_exec_callback_QColumnView_ViewOptions(self *C.QColumnView, cb C.intptr_t) *C.QStyleOptionViewItem {
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QStyleOptionViewItem) *QStyleOptionViewItem)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
virtualReturn := gofunc((&QColumnView{h: self}).callVirtualBase_ViewOptions)
return virtualReturn.cPointer()
}
func (this *QColumnView) callVirtualBase_FocusNextPrevChild(next bool) bool {
return (bool)(C.QColumnView_virtualbase_FocusNextPrevChild(unsafe.Pointer(this.h), (C.bool)(next)))
}
func (this *QColumnView) OnFocusNextPrevChild(slot func(super func(next bool) bool, next bool) bool) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_FocusNextPrevChild(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_FocusNextPrevChild
func miqt_exec_callback_QColumnView_FocusNextPrevChild(self *C.QColumnView, 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((&QColumnView{h: self}).callVirtualBase_FocusNextPrevChild, slotval1)
return (C.bool)(virtualReturn)
}
func (this *QColumnView) callVirtualBase_Event(event *QEvent) bool {
return (bool)(C.QColumnView_virtualbase_Event(unsafe.Pointer(this.h), event.cPointer()))
}
func (this *QColumnView) OnEvent(slot func(super func(event *QEvent) bool, event *QEvent) bool) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_Event(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_Event
func miqt_exec_callback_QColumnView_Event(self *C.QColumnView, 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 := UnsafeNewQEvent(unsafe.Pointer(event))
virtualReturn := gofunc((&QColumnView{h: self}).callVirtualBase_Event, slotval1)
return (C.bool)(virtualReturn)
}
func (this *QColumnView) callVirtualBase_ViewportEvent(event *QEvent) bool {
return (bool)(C.QColumnView_virtualbase_ViewportEvent(unsafe.Pointer(this.h), event.cPointer()))
}
func (this *QColumnView) OnViewportEvent(slot func(super func(event *QEvent) bool, event *QEvent) bool) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_ViewportEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_ViewportEvent
func miqt_exec_callback_QColumnView_ViewportEvent(self *C.QColumnView, 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 := UnsafeNewQEvent(unsafe.Pointer(event))
virtualReturn := gofunc((&QColumnView{h: self}).callVirtualBase_ViewportEvent, slotval1)
return (C.bool)(virtualReturn)
}
func (this *QColumnView) callVirtualBase_MousePressEvent(event *QMouseEvent) {
C.QColumnView_virtualbase_MousePressEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QColumnView) OnMousePressEvent(slot func(super func(event *QMouseEvent), event *QMouseEvent)) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_MousePressEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_MousePressEvent
func miqt_exec_callback_QColumnView_MousePressEvent(self *C.QColumnView, 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 := UnsafeNewQMouseEvent(unsafe.Pointer(event), nil, nil)
gofunc((&QColumnView{h: self}).callVirtualBase_MousePressEvent, slotval1)
}
func (this *QColumnView) callVirtualBase_MouseMoveEvent(event *QMouseEvent) {
C.QColumnView_virtualbase_MouseMoveEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QColumnView) OnMouseMoveEvent(slot func(super func(event *QMouseEvent), event *QMouseEvent)) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_MouseMoveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_MouseMoveEvent
func miqt_exec_callback_QColumnView_MouseMoveEvent(self *C.QColumnView, 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 := UnsafeNewQMouseEvent(unsafe.Pointer(event), nil, nil)
gofunc((&QColumnView{h: self}).callVirtualBase_MouseMoveEvent, slotval1)
}
func (this *QColumnView) callVirtualBase_MouseReleaseEvent(event *QMouseEvent) {
C.QColumnView_virtualbase_MouseReleaseEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QColumnView) OnMouseReleaseEvent(slot func(super func(event *QMouseEvent), event *QMouseEvent)) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_MouseReleaseEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_MouseReleaseEvent
func miqt_exec_callback_QColumnView_MouseReleaseEvent(self *C.QColumnView, 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 := UnsafeNewQMouseEvent(unsafe.Pointer(event), nil, nil)
gofunc((&QColumnView{h: self}).callVirtualBase_MouseReleaseEvent, slotval1)
}
func (this *QColumnView) callVirtualBase_MouseDoubleClickEvent(event *QMouseEvent) {
C.QColumnView_virtualbase_MouseDoubleClickEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QColumnView) OnMouseDoubleClickEvent(slot func(super func(event *QMouseEvent), event *QMouseEvent)) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_MouseDoubleClickEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_MouseDoubleClickEvent
func miqt_exec_callback_QColumnView_MouseDoubleClickEvent(self *C.QColumnView, 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 := UnsafeNewQMouseEvent(unsafe.Pointer(event), nil, nil)
gofunc((&QColumnView{h: self}).callVirtualBase_MouseDoubleClickEvent, slotval1)
}
func (this *QColumnView) callVirtualBase_DragEnterEvent(event *QDragEnterEvent) {
C.QColumnView_virtualbase_DragEnterEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QColumnView) OnDragEnterEvent(slot func(super func(event *QDragEnterEvent), event *QDragEnterEvent)) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_DragEnterEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_DragEnterEvent
func miqt_exec_callback_QColumnView_DragEnterEvent(self *C.QColumnView, 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 := UnsafeNewQDragEnterEvent(unsafe.Pointer(event), nil, nil, nil)
gofunc((&QColumnView{h: self}).callVirtualBase_DragEnterEvent, slotval1)
}
func (this *QColumnView) callVirtualBase_DragMoveEvent(event *QDragMoveEvent) {
C.QColumnView_virtualbase_DragMoveEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QColumnView) OnDragMoveEvent(slot func(super func(event *QDragMoveEvent), event *QDragMoveEvent)) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_DragMoveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_DragMoveEvent
func miqt_exec_callback_QColumnView_DragMoveEvent(self *C.QColumnView, 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 := UnsafeNewQDragMoveEvent(unsafe.Pointer(event), nil, nil)
gofunc((&QColumnView{h: self}).callVirtualBase_DragMoveEvent, slotval1)
}
func (this *QColumnView) callVirtualBase_DragLeaveEvent(event *QDragLeaveEvent) {
C.QColumnView_virtualbase_DragLeaveEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QColumnView) OnDragLeaveEvent(slot func(super func(event *QDragLeaveEvent), event *QDragLeaveEvent)) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_DragLeaveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_DragLeaveEvent
func miqt_exec_callback_QColumnView_DragLeaveEvent(self *C.QColumnView, 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 := UnsafeNewQDragLeaveEvent(unsafe.Pointer(event), nil)
gofunc((&QColumnView{h: self}).callVirtualBase_DragLeaveEvent, slotval1)
}
func (this *QColumnView) callVirtualBase_DropEvent(event *QDropEvent) {
C.QColumnView_virtualbase_DropEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QColumnView) OnDropEvent(slot func(super func(event *QDropEvent), event *QDropEvent)) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_DropEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_DropEvent
func miqt_exec_callback_QColumnView_DropEvent(self *C.QColumnView, 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 := UnsafeNewQDropEvent(unsafe.Pointer(event), nil)
gofunc((&QColumnView{h: self}).callVirtualBase_DropEvent, slotval1)
}
func (this *QColumnView) callVirtualBase_FocusInEvent(event *QFocusEvent) {
C.QColumnView_virtualbase_FocusInEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QColumnView) OnFocusInEvent(slot func(super func(event *QFocusEvent), event *QFocusEvent)) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_FocusInEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_FocusInEvent
func miqt_exec_callback_QColumnView_FocusInEvent(self *C.QColumnView, cb C.intptr_t, event *C.QFocusEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QFocusEvent), event *QFocusEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := UnsafeNewQFocusEvent(unsafe.Pointer(event), nil)
gofunc((&QColumnView{h: self}).callVirtualBase_FocusInEvent, slotval1)
}
func (this *QColumnView) callVirtualBase_FocusOutEvent(event *QFocusEvent) {
C.QColumnView_virtualbase_FocusOutEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QColumnView) OnFocusOutEvent(slot func(super func(event *QFocusEvent), event *QFocusEvent)) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_FocusOutEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_FocusOutEvent
func miqt_exec_callback_QColumnView_FocusOutEvent(self *C.QColumnView, cb C.intptr_t, event *C.QFocusEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QFocusEvent), event *QFocusEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := UnsafeNewQFocusEvent(unsafe.Pointer(event), nil)
gofunc((&QColumnView{h: self}).callVirtualBase_FocusOutEvent, slotval1)
}
func (this *QColumnView) callVirtualBase_KeyPressEvent(event *QKeyEvent) {
C.QColumnView_virtualbase_KeyPressEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QColumnView) OnKeyPressEvent(slot func(super func(event *QKeyEvent), event *QKeyEvent)) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_KeyPressEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_KeyPressEvent
func miqt_exec_callback_QColumnView_KeyPressEvent(self *C.QColumnView, cb C.intptr_t, event *C.QKeyEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QKeyEvent), event *QKeyEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := UnsafeNewQKeyEvent(unsafe.Pointer(event), nil, nil)
gofunc((&QColumnView{h: self}).callVirtualBase_KeyPressEvent, slotval1)
}
func (this *QColumnView) callVirtualBase_TimerEvent(event *QTimerEvent) {
C.QColumnView_virtualbase_TimerEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QColumnView) OnTimerEvent(slot func(super func(event *QTimerEvent), event *QTimerEvent)) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_TimerEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_TimerEvent
func miqt_exec_callback_QColumnView_TimerEvent(self *C.QColumnView, 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 := UnsafeNewQTimerEvent(unsafe.Pointer(event), nil)
gofunc((&QColumnView{h: self}).callVirtualBase_TimerEvent, slotval1)
}
func (this *QColumnView) callVirtualBase_InputMethodEvent(event *QInputMethodEvent) {
C.QColumnView_virtualbase_InputMethodEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QColumnView) OnInputMethodEvent(slot func(super func(event *QInputMethodEvent), event *QInputMethodEvent)) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_InputMethodEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_InputMethodEvent
func miqt_exec_callback_QColumnView_InputMethodEvent(self *C.QColumnView, cb C.intptr_t, event *C.QInputMethodEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QInputMethodEvent), event *QInputMethodEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := UnsafeNewQInputMethodEvent(unsafe.Pointer(event), nil)
gofunc((&QColumnView{h: self}).callVirtualBase_InputMethodEvent, slotval1)
}
func (this *QColumnView) callVirtualBase_EventFilter(object *QObject, event *QEvent) bool {
return (bool)(C.QColumnView_virtualbase_EventFilter(unsafe.Pointer(this.h), object.cPointer(), event.cPointer()))
}
func (this *QColumnView) OnEventFilter(slot func(super func(object *QObject, event *QEvent) bool, object *QObject, event *QEvent) bool) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_EventFilter(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_EventFilter
func miqt_exec_callback_QColumnView_EventFilter(self *C.QColumnView, cb C.intptr_t, object *C.QObject, event *C.QEvent) C.bool {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(object *QObject, event *QEvent) bool, object *QObject, event *QEvent) bool)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := UnsafeNewQObject(unsafe.Pointer(object))
slotval2 := UnsafeNewQEvent(unsafe.Pointer(event))
virtualReturn := gofunc((&QColumnView{h: self}).callVirtualBase_EventFilter, slotval1, slotval2)
return (C.bool)(virtualReturn)
}
func (this *QColumnView) callVirtualBase_ViewportSizeHint() *QSize {
_ret := C.QColumnView_virtualbase_ViewportSizeHint(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 *QColumnView) OnViewportSizeHint(slot func(super func() *QSize) *QSize) {
if !this.isSubclass {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 06:29:06 +00:00
C.QColumnView_override_virtual_ViewportSizeHint(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
}
//export miqt_exec_callback_QColumnView_ViewportSizeHint
func miqt_exec_callback_QColumnView_ViewportSizeHint(self *C.QColumnView, 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((&QColumnView{h: self}).callVirtualBase_ViewportSizeHint)
return virtualReturn.cPointer()
2024-08-29 07:01:51 +00:00
}
// Delete this object from C++ memory.
func (this *QColumnView) Delete() {
2024-11-19 06:29:06 +00:00
C.QColumnView_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 *QColumnView) GoGC() {
runtime.SetFinalizer(this, func(this *QColumnView) {
this.Delete()
runtime.KeepAlive(this.h)
})
}