2024-10-20 05:21:03 +00:00
|
|
|
package qt6
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
#include "gen_qtreeview.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
*/
|
|
|
|
import "C"
|
|
|
|
|
|
|
|
import (
|
|
|
|
"runtime"
|
|
|
|
"runtime/cgo"
|
|
|
|
"unsafe"
|
|
|
|
)
|
|
|
|
|
|
|
|
type QTreeView struct {
|
2024-11-19 06:29:06 +00:00
|
|
|
h *C.QTreeView
|
|
|
|
isSubclass bool
|
2024-10-20 05:21:03 +00:00
|
|
|
*QAbstractItemView
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) cPointer() *C.QTreeView {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// newQTreeView constructs the type using only CGO pointers.
|
|
|
|
func newQTreeView(h *C.QTreeView, h_QAbstractItemView *C.QAbstractItemView, h_QAbstractScrollArea *C.QAbstractScrollArea, h_QFrame *C.QFrame, h_QWidget *C.QWidget, h_QObject *C.QObject, h_QPaintDevice *C.QPaintDevice) *QTreeView {
|
2024-10-20 05:21:03 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-11-19 06:29:06 +00:00
|
|
|
return &QTreeView{h: h,
|
|
|
|
QAbstractItemView: newQAbstractItemView(h_QAbstractItemView, h_QAbstractScrollArea, h_QFrame, h_QWidget, h_QObject, h_QPaintDevice)}
|
2024-10-20 05:21:03 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// UnsafeNewQTreeView constructs the type using only unsafe pointers.
|
|
|
|
func UnsafeNewQTreeView(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) *QTreeView {
|
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
return &QTreeView{h: (*C.QTreeView)(h),
|
|
|
|
QAbstractItemView: UnsafeNewQAbstractItemView(h_QAbstractItemView, h_QAbstractScrollArea, h_QFrame, h_QWidget, h_QObject, h_QPaintDevice)}
|
2024-10-20 05:21:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQTreeView constructs a new QTreeView object.
|
2024-10-26 00:46:42 +00:00
|
|
|
func NewQTreeView(parent *QWidget) *QTreeView {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QTreeView *C.QTreeView = 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.QTreeView_new(parent.cPointer(), &outptr_QTreeView, &outptr_QAbstractItemView, &outptr_QAbstractScrollArea, &outptr_QFrame, &outptr_QWidget, &outptr_QObject, &outptr_QPaintDevice)
|
|
|
|
ret := newQTreeView(outptr_QTreeView, outptr_QAbstractItemView, outptr_QAbstractScrollArea, outptr_QFrame, outptr_QWidget, outptr_QObject, outptr_QPaintDevice)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-10-20 05:21:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQTreeView2 constructs a new QTreeView object.
|
2024-10-26 00:46:42 +00:00
|
|
|
func NewQTreeView2() *QTreeView {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QTreeView *C.QTreeView = 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.QTreeView_new2(&outptr_QTreeView, &outptr_QAbstractItemView, &outptr_QAbstractScrollArea, &outptr_QFrame, &outptr_QWidget, &outptr_QObject, &outptr_QPaintDevice)
|
|
|
|
ret := newQTreeView(outptr_QTreeView, outptr_QAbstractItemView, outptr_QAbstractScrollArea, outptr_QFrame, outptr_QWidget, outptr_QObject, outptr_QPaintDevice)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-10-20 05:21:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) MetaObject() *QMetaObject {
|
|
|
|
return UnsafeNewQMetaObject(unsafe.Pointer(C.QTreeView_MetaObject(this.h)))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) Metacast(param1 string) unsafe.Pointer {
|
|
|
|
param1_Cstring := C.CString(param1)
|
|
|
|
defer C.free(unsafe.Pointer(param1_Cstring))
|
|
|
|
return (unsafe.Pointer)(C.QTreeView_Metacast(this.h, param1_Cstring))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QTreeView_Tr(s string) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
|
|
|
var _ms C.struct_miqt_string = C.QTreeView_Tr(s_Cstring)
|
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) SetModel(model *QAbstractItemModel) {
|
|
|
|
C.QTreeView_SetModel(this.h, model.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) SetRootIndex(index *QModelIndex) {
|
|
|
|
C.QTreeView_SetRootIndex(this.h, index.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) SetSelectionModel(selectionModel *QItemSelectionModel) {
|
|
|
|
C.QTreeView_SetSelectionModel(this.h, selectionModel.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) Header() *QHeaderView {
|
2024-11-19 06:29:06 +00:00
|
|
|
return UnsafeNewQHeaderView(unsafe.Pointer(C.QTreeView_Header(this.h)), nil, nil, nil, nil, nil, nil)
|
2024-10-20 05:21:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) SetHeader(header *QHeaderView) {
|
|
|
|
C.QTreeView_SetHeader(this.h, header.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) AutoExpandDelay() int {
|
|
|
|
return (int)(C.QTreeView_AutoExpandDelay(this.h))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) SetAutoExpandDelay(delay int) {
|
|
|
|
C.QTreeView_SetAutoExpandDelay(this.h, (C.int)(delay))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) Indentation() int {
|
|
|
|
return (int)(C.QTreeView_Indentation(this.h))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) SetIndentation(i int) {
|
|
|
|
C.QTreeView_SetIndentation(this.h, (C.int)(i))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) ResetIndentation() {
|
|
|
|
C.QTreeView_ResetIndentation(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) RootIsDecorated() bool {
|
|
|
|
return (bool)(C.QTreeView_RootIsDecorated(this.h))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) SetRootIsDecorated(show bool) {
|
|
|
|
C.QTreeView_SetRootIsDecorated(this.h, (C.bool)(show))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) UniformRowHeights() bool {
|
|
|
|
return (bool)(C.QTreeView_UniformRowHeights(this.h))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) SetUniformRowHeights(uniform bool) {
|
|
|
|
C.QTreeView_SetUniformRowHeights(this.h, (C.bool)(uniform))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) ItemsExpandable() bool {
|
|
|
|
return (bool)(C.QTreeView_ItemsExpandable(this.h))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) SetItemsExpandable(enable bool) {
|
|
|
|
C.QTreeView_SetItemsExpandable(this.h, (C.bool)(enable))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) ExpandsOnDoubleClick() bool {
|
|
|
|
return (bool)(C.QTreeView_ExpandsOnDoubleClick(this.h))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) SetExpandsOnDoubleClick(enable bool) {
|
|
|
|
C.QTreeView_SetExpandsOnDoubleClick(this.h, (C.bool)(enable))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) ColumnViewportPosition(column int) int {
|
|
|
|
return (int)(C.QTreeView_ColumnViewportPosition(this.h, (C.int)(column)))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) ColumnWidth(column int) int {
|
|
|
|
return (int)(C.QTreeView_ColumnWidth(this.h, (C.int)(column)))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) SetColumnWidth(column int, width int) {
|
|
|
|
C.QTreeView_SetColumnWidth(this.h, (C.int)(column), (C.int)(width))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) ColumnAt(x int) int {
|
|
|
|
return (int)(C.QTreeView_ColumnAt(this.h, (C.int)(x)))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) IsColumnHidden(column int) bool {
|
|
|
|
return (bool)(C.QTreeView_IsColumnHidden(this.h, (C.int)(column)))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) SetColumnHidden(column int, hide bool) {
|
|
|
|
C.QTreeView_SetColumnHidden(this.h, (C.int)(column), (C.bool)(hide))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) IsHeaderHidden() bool {
|
|
|
|
return (bool)(C.QTreeView_IsHeaderHidden(this.h))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) SetHeaderHidden(hide bool) {
|
|
|
|
C.QTreeView_SetHeaderHidden(this.h, (C.bool)(hide))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) IsRowHidden(row int, parent *QModelIndex) bool {
|
|
|
|
return (bool)(C.QTreeView_IsRowHidden(this.h, (C.int)(row), parent.cPointer()))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) SetRowHidden(row int, parent *QModelIndex, hide bool) {
|
|
|
|
C.QTreeView_SetRowHidden(this.h, (C.int)(row), parent.cPointer(), (C.bool)(hide))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) IsFirstColumnSpanned(row int, parent *QModelIndex) bool {
|
|
|
|
return (bool)(C.QTreeView_IsFirstColumnSpanned(this.h, (C.int)(row), parent.cPointer()))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) SetFirstColumnSpanned(row int, parent *QModelIndex, span bool) {
|
|
|
|
C.QTreeView_SetFirstColumnSpanned(this.h, (C.int)(row), parent.cPointer(), (C.bool)(span))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) IsExpanded(index *QModelIndex) bool {
|
|
|
|
return (bool)(C.QTreeView_IsExpanded(this.h, index.cPointer()))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) SetExpanded(index *QModelIndex, expand bool) {
|
|
|
|
C.QTreeView_SetExpanded(this.h, index.cPointer(), (C.bool)(expand))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) SetSortingEnabled(enable bool) {
|
|
|
|
C.QTreeView_SetSortingEnabled(this.h, (C.bool)(enable))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) IsSortingEnabled() bool {
|
|
|
|
return (bool)(C.QTreeView_IsSortingEnabled(this.h))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) SetAnimated(enable bool) {
|
|
|
|
C.QTreeView_SetAnimated(this.h, (C.bool)(enable))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) IsAnimated() bool {
|
|
|
|
return (bool)(C.QTreeView_IsAnimated(this.h))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) SetAllColumnsShowFocus(enable bool) {
|
|
|
|
C.QTreeView_SetAllColumnsShowFocus(this.h, (C.bool)(enable))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) AllColumnsShowFocus() bool {
|
|
|
|
return (bool)(C.QTreeView_AllColumnsShowFocus(this.h))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) SetWordWrap(on bool) {
|
|
|
|
C.QTreeView_SetWordWrap(this.h, (C.bool)(on))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) WordWrap() bool {
|
|
|
|
return (bool)(C.QTreeView_WordWrap(this.h))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) SetTreePosition(logicalIndex int) {
|
|
|
|
C.QTreeView_SetTreePosition(this.h, (C.int)(logicalIndex))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) TreePosition() int {
|
|
|
|
return (int)(C.QTreeView_TreePosition(this.h))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) 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.QTreeView_KeyboardSearch(this.h, search_ms)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) VisualRect(index *QModelIndex) *QRect {
|
|
|
|
_ret := C.QTreeView_VisualRect(this.h, index.cPointer())
|
|
|
|
_goptr := newQRect(_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 *QTreeView) ScrollTo(index *QModelIndex, hint QAbstractItemView__ScrollHint) {
|
|
|
|
C.QTreeView_ScrollTo(this.h, index.cPointer(), (C.int)(hint))
|
2024-10-20 05:21:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) IndexAt(p *QPoint) *QModelIndex {
|
|
|
|
_ret := C.QTreeView_IndexAt(this.h, p.cPointer())
|
|
|
|
_goptr := newQModelIndex(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) IndexAbove(index *QModelIndex) *QModelIndex {
|
|
|
|
_ret := C.QTreeView_IndexAbove(this.h, index.cPointer())
|
|
|
|
_goptr := newQModelIndex(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) IndexBelow(index *QModelIndex) *QModelIndex {
|
|
|
|
_ret := C.QTreeView_IndexBelow(this.h, index.cPointer())
|
|
|
|
_goptr := newQModelIndex(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) DoItemsLayout() {
|
|
|
|
C.QTreeView_DoItemsLayout(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) Reset() {
|
|
|
|
C.QTreeView_Reset(this.h)
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
func (this *QTreeView) 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.QTreeView_DataChanged(this.h, topLeft.cPointer(), bottomRight.cPointer(), roles_ma)
|
2024-10-20 05:21:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) SelectAll() {
|
|
|
|
C.QTreeView_SelectAll(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) Expanded(index *QModelIndex) {
|
|
|
|
C.QTreeView_Expanded(this.h, index.cPointer())
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnExpanded(slot func(index *QModelIndex)) {
|
|
|
|
C.QTreeView_connect_Expanded(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_Expanded
|
|
|
|
func miqt_exec_callback_QTreeView_Expanded(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 *QTreeView) Collapsed(index *QModelIndex) {
|
|
|
|
C.QTreeView_Collapsed(this.h, index.cPointer())
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnCollapsed(slot func(index *QModelIndex)) {
|
|
|
|
C.QTreeView_connect_Collapsed(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_Collapsed
|
|
|
|
func miqt_exec_callback_QTreeView_Collapsed(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 *QTreeView) HideColumn(column int) {
|
|
|
|
C.QTreeView_HideColumn(this.h, (C.int)(column))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) ShowColumn(column int) {
|
|
|
|
C.QTreeView_ShowColumn(this.h, (C.int)(column))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) Expand(index *QModelIndex) {
|
|
|
|
C.QTreeView_Expand(this.h, index.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) Collapse(index *QModelIndex) {
|
|
|
|
C.QTreeView_Collapse(this.h, index.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) ResizeColumnToContents(column int) {
|
|
|
|
C.QTreeView_ResizeColumnToContents(this.h, (C.int)(column))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) SortByColumn(column int, order SortOrder) {
|
|
|
|
C.QTreeView_SortByColumn(this.h, (C.int)(column), (C.int)(order))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) ExpandAll() {
|
|
|
|
C.QTreeView_ExpandAll(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) ExpandRecursively(index *QModelIndex) {
|
|
|
|
C.QTreeView_ExpandRecursively(this.h, index.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) CollapseAll() {
|
|
|
|
C.QTreeView_CollapseAll(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) ExpandToDepth(depth int) {
|
|
|
|
C.QTreeView_ExpandToDepth(this.h, (C.int)(depth))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QTreeView_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.QTreeView_Tr2(s_Cstring, c_Cstring)
|
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func QTreeView_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.QTreeView_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
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
func (this *QTreeView) ExpandRecursively2(index *QModelIndex, depth int) {
|
|
|
|
C.QTreeView_ExpandRecursively2(this.h, index.cPointer(), (C.int)(depth))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_SetModel(model *QAbstractItemModel) {
|
|
|
|
|
|
|
|
C.QTreeView_virtualbase_SetModel(unsafe.Pointer(this.h), model.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnSetModel(slot func(super func(model *QAbstractItemModel), model *QAbstractItemModel)) {
|
|
|
|
C.QTreeView_override_virtual_SetModel(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_SetModel
|
|
|
|
func miqt_exec_callback_QTreeView_SetModel(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_SetModel, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_SetRootIndex(index *QModelIndex) {
|
|
|
|
|
|
|
|
C.QTreeView_virtualbase_SetRootIndex(unsafe.Pointer(this.h), index.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnSetRootIndex(slot func(super func(index *QModelIndex), index *QModelIndex)) {
|
|
|
|
C.QTreeView_override_virtual_SetRootIndex(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_SetRootIndex
|
|
|
|
func miqt_exec_callback_QTreeView_SetRootIndex(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_SetRootIndex, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_SetSelectionModel(selectionModel *QItemSelectionModel) {
|
|
|
|
|
|
|
|
C.QTreeView_virtualbase_SetSelectionModel(unsafe.Pointer(this.h), selectionModel.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnSetSelectionModel(slot func(super func(selectionModel *QItemSelectionModel), selectionModel *QItemSelectionModel)) {
|
|
|
|
C.QTreeView_override_virtual_SetSelectionModel(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_SetSelectionModel
|
|
|
|
func miqt_exec_callback_QTreeView_SetSelectionModel(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_SetSelectionModel, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) 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.QTreeView_virtualbase_KeyboardSearch(unsafe.Pointer(this.h), search_ms)
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnKeyboardSearch(slot func(super func(search string), search string)) {
|
|
|
|
C.QTreeView_override_virtual_KeyboardSearch(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_KeyboardSearch
|
|
|
|
func miqt_exec_callback_QTreeView_KeyboardSearch(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_KeyboardSearch, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_VisualRect(index *QModelIndex) *QRect {
|
|
|
|
|
|
|
|
_ret := C.QTreeView_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 *QTreeView) OnVisualRect(slot func(super func(index *QModelIndex) *QRect, index *QModelIndex) *QRect) {
|
|
|
|
C.QTreeView_override_virtual_VisualRect(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_VisualRect
|
|
|
|
func miqt_exec_callback_QTreeView_VisualRect(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_VisualRect, slotval1)
|
|
|
|
|
|
|
|
return virtualReturn.cPointer()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_ScrollTo(index *QModelIndex, hint QAbstractItemView__ScrollHint) {
|
|
|
|
|
|
|
|
C.QTreeView_virtualbase_ScrollTo(unsafe.Pointer(this.h), index.cPointer(), (C.int)(hint))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnScrollTo(slot func(super func(index *QModelIndex, hint QAbstractItemView__ScrollHint), index *QModelIndex, hint QAbstractItemView__ScrollHint)) {
|
|
|
|
C.QTreeView_override_virtual_ScrollTo(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_ScrollTo
|
|
|
|
func miqt_exec_callback_QTreeView_ScrollTo(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_ScrollTo, slotval1, slotval2)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_IndexAt(p *QPoint) *QModelIndex {
|
|
|
|
|
|
|
|
_ret := C.QTreeView_virtualbase_IndexAt(unsafe.Pointer(this.h), p.cPointer())
|
|
|
|
_goptr := newQModelIndex(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnIndexAt(slot func(super func(p *QPoint) *QModelIndex, p *QPoint) *QModelIndex) {
|
|
|
|
C.QTreeView_override_virtual_IndexAt(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_IndexAt
|
|
|
|
func miqt_exec_callback_QTreeView_IndexAt(self *C.QTreeView, cb C.intptr_t, p *C.QPoint) *C.QModelIndex {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(p *QPoint) *QModelIndex, p *QPoint) *QModelIndex)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := UnsafeNewQPoint(unsafe.Pointer(p))
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QTreeView{h: self}).callVirtualBase_IndexAt, slotval1)
|
|
|
|
|
|
|
|
return virtualReturn.cPointer()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_DoItemsLayout() {
|
|
|
|
|
|
|
|
C.QTreeView_virtualbase_DoItemsLayout(unsafe.Pointer(this.h))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnDoItemsLayout(slot func(super func())) {
|
|
|
|
C.QTreeView_override_virtual_DoItemsLayout(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_DoItemsLayout
|
|
|
|
func miqt_exec_callback_QTreeView_DoItemsLayout(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_DoItemsLayout)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_Reset() {
|
|
|
|
|
|
|
|
C.QTreeView_virtualbase_Reset(unsafe.Pointer(this.h))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnReset(slot func(super func())) {
|
|
|
|
C.QTreeView_override_virtual_Reset(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_Reset
|
|
|
|
func miqt_exec_callback_QTreeView_Reset(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_Reset)
|
|
|
|
|
2024-10-20 05:21:03 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
func (this *QTreeView) callVirtualBase_DataChanged(topLeft *QModelIndex, bottomRight *QModelIndex, roles []int) {
|
2024-10-20 05:21:03 +00:00
|
|
|
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])
|
|
|
|
}
|
2024-11-04 07:18:27 +00:00
|
|
|
roles_ma := C.struct_miqt_array{len: C.size_t(len(roles)), data: unsafe.Pointer(roles_CArray)}
|
2024-11-19 06:29:06 +00:00
|
|
|
|
|
|
|
C.QTreeView_virtualbase_DataChanged(unsafe.Pointer(this.h), topLeft.cPointer(), bottomRight.cPointer(), roles_ma)
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnDataChanged(slot func(super func(topLeft *QModelIndex, bottomRight *QModelIndex, roles []int), topLeft *QModelIndex, bottomRight *QModelIndex, roles []int)) {
|
|
|
|
C.QTreeView_override_virtual_DataChanged(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2024-10-20 05:21:03 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
//export miqt_exec_callback_QTreeView_DataChanged
|
|
|
|
func miqt_exec_callback_QTreeView_DataChanged(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_DataChanged, slotval1, slotval2, slotval3)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_SelectAll() {
|
|
|
|
|
|
|
|
C.QTreeView_virtualbase_SelectAll(unsafe.Pointer(this.h))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnSelectAll(slot func(super func())) {
|
|
|
|
C.QTreeView_override_virtual_SelectAll(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_SelectAll
|
|
|
|
func miqt_exec_callback_QTreeView_SelectAll(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_SelectAll)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_VerticalScrollbarValueChanged(value int) {
|
|
|
|
|
|
|
|
C.QTreeView_virtualbase_VerticalScrollbarValueChanged(unsafe.Pointer(this.h), (C.int)(value))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnVerticalScrollbarValueChanged(slot func(super func(value int), value int)) {
|
|
|
|
C.QTreeView_override_virtual_VerticalScrollbarValueChanged(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_VerticalScrollbarValueChanged
|
|
|
|
func miqt_exec_callback_QTreeView_VerticalScrollbarValueChanged(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_VerticalScrollbarValueChanged, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_ScrollContentsBy(dx int, dy int) {
|
|
|
|
|
|
|
|
C.QTreeView_virtualbase_ScrollContentsBy(unsafe.Pointer(this.h), (C.int)(dx), (C.int)(dy))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnScrollContentsBy(slot func(super func(dx int, dy int), dx int, dy int)) {
|
|
|
|
C.QTreeView_override_virtual_ScrollContentsBy(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_ScrollContentsBy
|
|
|
|
func miqt_exec_callback_QTreeView_ScrollContentsBy(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_ScrollContentsBy, slotval1, slotval2)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_RowsInserted(parent *QModelIndex, start int, end int) {
|
|
|
|
|
|
|
|
C.QTreeView_virtualbase_RowsInserted(unsafe.Pointer(this.h), parent.cPointer(), (C.int)(start), (C.int)(end))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnRowsInserted(slot func(super func(parent *QModelIndex, start int, end int), parent *QModelIndex, start int, end int)) {
|
|
|
|
C.QTreeView_override_virtual_RowsInserted(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_RowsInserted
|
|
|
|
func miqt_exec_callback_QTreeView_RowsInserted(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_RowsInserted, slotval1, slotval2, slotval3)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_RowsAboutToBeRemoved(parent *QModelIndex, start int, end int) {
|
|
|
|
|
|
|
|
C.QTreeView_virtualbase_RowsAboutToBeRemoved(unsafe.Pointer(this.h), parent.cPointer(), (C.int)(start), (C.int)(end))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnRowsAboutToBeRemoved(slot func(super func(parent *QModelIndex, start int, end int), parent *QModelIndex, start int, end int)) {
|
|
|
|
C.QTreeView_override_virtual_RowsAboutToBeRemoved(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_RowsAboutToBeRemoved
|
|
|
|
func miqt_exec_callback_QTreeView_RowsAboutToBeRemoved(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_RowsAboutToBeRemoved, slotval1, slotval2, slotval3)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_MoveCursor(cursorAction QAbstractItemView__CursorAction, modifiers KeyboardModifier) *QModelIndex {
|
|
|
|
|
|
|
|
_ret := C.QTreeView_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 *QTreeView) OnMoveCursor(slot func(super func(cursorAction QAbstractItemView__CursorAction, modifiers KeyboardModifier) *QModelIndex, cursorAction QAbstractItemView__CursorAction, modifiers KeyboardModifier) *QModelIndex) {
|
|
|
|
C.QTreeView_override_virtual_MoveCursor(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_MoveCursor
|
|
|
|
func miqt_exec_callback_QTreeView_MoveCursor(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_MoveCursor, slotval1, slotval2)
|
|
|
|
|
|
|
|
return virtualReturn.cPointer()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_HorizontalOffset() int {
|
|
|
|
|
|
|
|
return (int)(C.QTreeView_virtualbase_HorizontalOffset(unsafe.Pointer(this.h)))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnHorizontalOffset(slot func(super func() int) int) {
|
|
|
|
C.QTreeView_override_virtual_HorizontalOffset(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_HorizontalOffset
|
|
|
|
func miqt_exec_callback_QTreeView_HorizontalOffset(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_HorizontalOffset)
|
|
|
|
|
|
|
|
return (C.int)(virtualReturn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_VerticalOffset() int {
|
|
|
|
|
|
|
|
return (int)(C.QTreeView_virtualbase_VerticalOffset(unsafe.Pointer(this.h)))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnVerticalOffset(slot func(super func() int) int) {
|
|
|
|
C.QTreeView_override_virtual_VerticalOffset(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_VerticalOffset
|
|
|
|
func miqt_exec_callback_QTreeView_VerticalOffset(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_VerticalOffset)
|
|
|
|
|
|
|
|
return (C.int)(virtualReturn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_SetSelection(rect *QRect, command QItemSelectionModel__SelectionFlag) {
|
|
|
|
|
|
|
|
C.QTreeView_virtualbase_SetSelection(unsafe.Pointer(this.h), rect.cPointer(), (C.int)(command))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnSetSelection(slot func(super func(rect *QRect, command QItemSelectionModel__SelectionFlag), rect *QRect, command QItemSelectionModel__SelectionFlag)) {
|
|
|
|
C.QTreeView_override_virtual_SetSelection(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_SetSelection
|
|
|
|
func miqt_exec_callback_QTreeView_SetSelection(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_SetSelection, slotval1, slotval2)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_SelectedIndexes() []QModelIndex {
|
|
|
|
|
|
|
|
var _ma C.struct_miqt_array = C.QTreeView_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 *QTreeView) OnSelectedIndexes(slot func(super func() []QModelIndex) []QModelIndex) {
|
|
|
|
C.QTreeView_override_virtual_SelectedIndexes(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_SelectedIndexes
|
|
|
|
func miqt_exec_callback_QTreeView_SelectedIndexes(self *C.QTreeView, 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((&QTreeView{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 *QTreeView) callVirtualBase_ChangeEvent(event *QEvent) {
|
|
|
|
|
|
|
|
C.QTreeView_virtualbase_ChangeEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnChangeEvent(slot func(super func(event *QEvent), event *QEvent)) {
|
|
|
|
C.QTreeView_override_virtual_ChangeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_ChangeEvent
|
|
|
|
func miqt_exec_callback_QTreeView_ChangeEvent(self *C.QTreeView, 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 := UnsafeNewQEvent(unsafe.Pointer(event))
|
|
|
|
|
|
|
|
gofunc((&QTreeView{h: self}).callVirtualBase_ChangeEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_TimerEvent(event *QTimerEvent) {
|
|
|
|
|
|
|
|
C.QTreeView_virtualbase_TimerEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnTimerEvent(slot func(super func(event *QTimerEvent), event *QTimerEvent)) {
|
|
|
|
C.QTreeView_override_virtual_TimerEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_TimerEvent
|
|
|
|
func miqt_exec_callback_QTreeView_TimerEvent(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_TimerEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_PaintEvent(event *QPaintEvent) {
|
|
|
|
|
|
|
|
C.QTreeView_virtualbase_PaintEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnPaintEvent(slot func(super func(event *QPaintEvent), event *QPaintEvent)) {
|
|
|
|
C.QTreeView_override_virtual_PaintEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_PaintEvent
|
|
|
|
func miqt_exec_callback_QTreeView_PaintEvent(self *C.QTreeView, cb C.intptr_t, event *C.QPaintEvent) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QPaintEvent), event *QPaintEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := UnsafeNewQPaintEvent(unsafe.Pointer(event), nil)
|
|
|
|
|
|
|
|
gofunc((&QTreeView{h: self}).callVirtualBase_PaintEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_DrawRow(painter *QPainter, options *QStyleOptionViewItem, index *QModelIndex) {
|
|
|
|
|
|
|
|
C.QTreeView_virtualbase_DrawRow(unsafe.Pointer(this.h), painter.cPointer(), options.cPointer(), index.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnDrawRow(slot func(super func(painter *QPainter, options *QStyleOptionViewItem, index *QModelIndex), painter *QPainter, options *QStyleOptionViewItem, index *QModelIndex)) {
|
|
|
|
C.QTreeView_override_virtual_DrawRow(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_DrawRow
|
|
|
|
func miqt_exec_callback_QTreeView_DrawRow(self *C.QTreeView, cb C.intptr_t, painter *C.QPainter, options *C.QStyleOptionViewItem, index *C.QModelIndex) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(painter *QPainter, options *QStyleOptionViewItem, index *QModelIndex), painter *QPainter, options *QStyleOptionViewItem, index *QModelIndex))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := UnsafeNewQPainter(unsafe.Pointer(painter))
|
|
|
|
slotval2 := UnsafeNewQStyleOptionViewItem(unsafe.Pointer(options), nil)
|
|
|
|
slotval3 := UnsafeNewQModelIndex(unsafe.Pointer(index))
|
|
|
|
|
|
|
|
gofunc((&QTreeView{h: self}).callVirtualBase_DrawRow, slotval1, slotval2, slotval3)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_DrawBranches(painter *QPainter, rect *QRect, index *QModelIndex) {
|
|
|
|
|
|
|
|
C.QTreeView_virtualbase_DrawBranches(unsafe.Pointer(this.h), painter.cPointer(), rect.cPointer(), index.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnDrawBranches(slot func(super func(painter *QPainter, rect *QRect, index *QModelIndex), painter *QPainter, rect *QRect, index *QModelIndex)) {
|
|
|
|
C.QTreeView_override_virtual_DrawBranches(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_DrawBranches
|
|
|
|
func miqt_exec_callback_QTreeView_DrawBranches(self *C.QTreeView, cb C.intptr_t, painter *C.QPainter, rect *C.QRect, index *C.QModelIndex) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(painter *QPainter, rect *QRect, index *QModelIndex), painter *QPainter, rect *QRect, index *QModelIndex))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := UnsafeNewQPainter(unsafe.Pointer(painter))
|
|
|
|
slotval2 := UnsafeNewQRect(unsafe.Pointer(rect))
|
|
|
|
slotval3 := UnsafeNewQModelIndex(unsafe.Pointer(index))
|
|
|
|
|
|
|
|
gofunc((&QTreeView{h: self}).callVirtualBase_DrawBranches, slotval1, slotval2, slotval3)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_MousePressEvent(event *QMouseEvent) {
|
|
|
|
|
|
|
|
C.QTreeView_virtualbase_MousePressEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnMousePressEvent(slot func(super func(event *QMouseEvent), event *QMouseEvent)) {
|
|
|
|
C.QTreeView_override_virtual_MousePressEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_MousePressEvent
|
|
|
|
func miqt_exec_callback_QTreeView_MousePressEvent(self *C.QTreeView, 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, nil, nil)
|
|
|
|
|
|
|
|
gofunc((&QTreeView{h: self}).callVirtualBase_MousePressEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_MouseReleaseEvent(event *QMouseEvent) {
|
|
|
|
|
|
|
|
C.QTreeView_virtualbase_MouseReleaseEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnMouseReleaseEvent(slot func(super func(event *QMouseEvent), event *QMouseEvent)) {
|
|
|
|
C.QTreeView_override_virtual_MouseReleaseEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_MouseReleaseEvent
|
|
|
|
func miqt_exec_callback_QTreeView_MouseReleaseEvent(self *C.QTreeView, 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, nil, nil)
|
|
|
|
|
|
|
|
gofunc((&QTreeView{h: self}).callVirtualBase_MouseReleaseEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_MouseDoubleClickEvent(event *QMouseEvent) {
|
|
|
|
|
|
|
|
C.QTreeView_virtualbase_MouseDoubleClickEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnMouseDoubleClickEvent(slot func(super func(event *QMouseEvent), event *QMouseEvent)) {
|
|
|
|
C.QTreeView_override_virtual_MouseDoubleClickEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_MouseDoubleClickEvent
|
|
|
|
func miqt_exec_callback_QTreeView_MouseDoubleClickEvent(self *C.QTreeView, 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, nil, nil)
|
|
|
|
|
|
|
|
gofunc((&QTreeView{h: self}).callVirtualBase_MouseDoubleClickEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_MouseMoveEvent(event *QMouseEvent) {
|
|
|
|
|
|
|
|
C.QTreeView_virtualbase_MouseMoveEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnMouseMoveEvent(slot func(super func(event *QMouseEvent), event *QMouseEvent)) {
|
|
|
|
C.QTreeView_override_virtual_MouseMoveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_MouseMoveEvent
|
|
|
|
func miqt_exec_callback_QTreeView_MouseMoveEvent(self *C.QTreeView, 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, nil, nil)
|
|
|
|
|
|
|
|
gofunc((&QTreeView{h: self}).callVirtualBase_MouseMoveEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_KeyPressEvent(event *QKeyEvent) {
|
|
|
|
|
|
|
|
C.QTreeView_virtualbase_KeyPressEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnKeyPressEvent(slot func(super func(event *QKeyEvent), event *QKeyEvent)) {
|
|
|
|
C.QTreeView_override_virtual_KeyPressEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_KeyPressEvent
|
|
|
|
func miqt_exec_callback_QTreeView_KeyPressEvent(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_KeyPressEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_DragMoveEvent(event *QDragMoveEvent) {
|
|
|
|
|
|
|
|
C.QTreeView_virtualbase_DragMoveEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnDragMoveEvent(slot func(super func(event *QDragMoveEvent), event *QDragMoveEvent)) {
|
|
|
|
C.QTreeView_override_virtual_DragMoveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_DragMoveEvent
|
|
|
|
func miqt_exec_callback_QTreeView_DragMoveEvent(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_DragMoveEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_ViewportEvent(event *QEvent) bool {
|
|
|
|
|
|
|
|
return (bool)(C.QTreeView_virtualbase_ViewportEvent(unsafe.Pointer(this.h), event.cPointer()))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnViewportEvent(slot func(super func(event *QEvent) bool, event *QEvent) bool) {
|
|
|
|
C.QTreeView_override_virtual_ViewportEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_ViewportEvent
|
|
|
|
func miqt_exec_callback_QTreeView_ViewportEvent(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_ViewportEvent, slotval1)
|
|
|
|
|
|
|
|
return (C.bool)(virtualReturn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_UpdateGeometries() {
|
|
|
|
|
|
|
|
C.QTreeView_virtualbase_UpdateGeometries(unsafe.Pointer(this.h))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnUpdateGeometries(slot func(super func())) {
|
|
|
|
C.QTreeView_override_virtual_UpdateGeometries(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_UpdateGeometries
|
|
|
|
func miqt_exec_callback_QTreeView_UpdateGeometries(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_UpdateGeometries)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_ViewportSizeHint() *QSize {
|
|
|
|
|
|
|
|
_ret := C.QTreeView_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 *QTreeView) OnViewportSizeHint(slot func(super func() *QSize) *QSize) {
|
|
|
|
C.QTreeView_override_virtual_ViewportSizeHint(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_ViewportSizeHint
|
|
|
|
func miqt_exec_callback_QTreeView_ViewportSizeHint(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_ViewportSizeHint)
|
|
|
|
|
|
|
|
return virtualReturn.cPointer()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_SizeHintForColumn(column int) int {
|
|
|
|
|
|
|
|
return (int)(C.QTreeView_virtualbase_SizeHintForColumn(unsafe.Pointer(this.h), (C.int)(column)))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnSizeHintForColumn(slot func(super func(column int) int, column int) int) {
|
|
|
|
C.QTreeView_override_virtual_SizeHintForColumn(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_SizeHintForColumn
|
|
|
|
func miqt_exec_callback_QTreeView_SizeHintForColumn(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_SizeHintForColumn, slotval1)
|
|
|
|
|
|
|
|
return (C.int)(virtualReturn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_HorizontalScrollbarAction(action int) {
|
|
|
|
|
|
|
|
C.QTreeView_virtualbase_HorizontalScrollbarAction(unsafe.Pointer(this.h), (C.int)(action))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnHorizontalScrollbarAction(slot func(super func(action int), action int)) {
|
|
|
|
C.QTreeView_override_virtual_HorizontalScrollbarAction(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_HorizontalScrollbarAction
|
|
|
|
func miqt_exec_callback_QTreeView_HorizontalScrollbarAction(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_HorizontalScrollbarAction, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_IsIndexHidden(index *QModelIndex) bool {
|
|
|
|
|
|
|
|
return (bool)(C.QTreeView_virtualbase_IsIndexHidden(unsafe.Pointer(this.h), index.cPointer()))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnIsIndexHidden(slot func(super func(index *QModelIndex) bool, index *QModelIndex) bool) {
|
|
|
|
C.QTreeView_override_virtual_IsIndexHidden(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_IsIndexHidden
|
|
|
|
func miqt_exec_callback_QTreeView_IsIndexHidden(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_IsIndexHidden, slotval1)
|
|
|
|
|
|
|
|
return (C.bool)(virtualReturn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_CurrentChanged(current *QModelIndex, previous *QModelIndex) {
|
|
|
|
|
|
|
|
C.QTreeView_virtualbase_CurrentChanged(unsafe.Pointer(this.h), current.cPointer(), previous.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnCurrentChanged(slot func(super func(current *QModelIndex, previous *QModelIndex), current *QModelIndex, previous *QModelIndex)) {
|
|
|
|
C.QTreeView_override_virtual_CurrentChanged(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_CurrentChanged
|
|
|
|
func miqt_exec_callback_QTreeView_CurrentChanged(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_CurrentChanged, slotval1, slotval2)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_SizeHintForRow(row int) int {
|
|
|
|
|
|
|
|
return (int)(C.QTreeView_virtualbase_SizeHintForRow(unsafe.Pointer(this.h), (C.int)(row)))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnSizeHintForRow(slot func(super func(row int) int, row int) int) {
|
|
|
|
C.QTreeView_override_virtual_SizeHintForRow(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_SizeHintForRow
|
|
|
|
func miqt_exec_callback_QTreeView_SizeHintForRow(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_SizeHintForRow, slotval1)
|
|
|
|
|
|
|
|
return (C.int)(virtualReturn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_ItemDelegateForIndex(index *QModelIndex) *QAbstractItemDelegate {
|
|
|
|
|
|
|
|
return UnsafeNewQAbstractItemDelegate(unsafe.Pointer(C.QTreeView_virtualbase_ItemDelegateForIndex(unsafe.Pointer(this.h), index.cPointer())), nil)
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnItemDelegateForIndex(slot func(super func(index *QModelIndex) *QAbstractItemDelegate, index *QModelIndex) *QAbstractItemDelegate) {
|
|
|
|
C.QTreeView_override_virtual_ItemDelegateForIndex(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_ItemDelegateForIndex
|
|
|
|
func miqt_exec_callback_QTreeView_ItemDelegateForIndex(self *C.QTreeView, cb C.intptr_t, index *C.QModelIndex) *C.QAbstractItemDelegate {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(index *QModelIndex) *QAbstractItemDelegate, index *QModelIndex) *QAbstractItemDelegate)
|
|
|
|
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((&QTreeView{h: self}).callVirtualBase_ItemDelegateForIndex, slotval1)
|
|
|
|
|
|
|
|
return virtualReturn.cPointer()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_InputMethodQuery(query InputMethodQuery) *QVariant {
|
|
|
|
|
|
|
|
_ret := C.QTreeView_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 *QTreeView) OnInputMethodQuery(slot func(super func(query InputMethodQuery) *QVariant, query InputMethodQuery) *QVariant) {
|
|
|
|
C.QTreeView_override_virtual_InputMethodQuery(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_InputMethodQuery
|
|
|
|
func miqt_exec_callback_QTreeView_InputMethodQuery(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_InputMethodQuery, slotval1)
|
|
|
|
|
|
|
|
return virtualReturn.cPointer()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_UpdateEditorData() {
|
|
|
|
|
|
|
|
C.QTreeView_virtualbase_UpdateEditorData(unsafe.Pointer(this.h))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnUpdateEditorData(slot func(super func())) {
|
|
|
|
C.QTreeView_override_virtual_UpdateEditorData(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_UpdateEditorData
|
|
|
|
func miqt_exec_callback_QTreeView_UpdateEditorData(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_UpdateEditorData)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_UpdateEditorGeometries() {
|
|
|
|
|
|
|
|
C.QTreeView_virtualbase_UpdateEditorGeometries(unsafe.Pointer(this.h))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnUpdateEditorGeometries(slot func(super func())) {
|
|
|
|
C.QTreeView_override_virtual_UpdateEditorGeometries(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_UpdateEditorGeometries
|
|
|
|
func miqt_exec_callback_QTreeView_UpdateEditorGeometries(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_UpdateEditorGeometries)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_VerticalScrollbarAction(action int) {
|
|
|
|
|
|
|
|
C.QTreeView_virtualbase_VerticalScrollbarAction(unsafe.Pointer(this.h), (C.int)(action))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnVerticalScrollbarAction(slot func(super func(action int), action int)) {
|
|
|
|
C.QTreeView_override_virtual_VerticalScrollbarAction(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_VerticalScrollbarAction
|
|
|
|
func miqt_exec_callback_QTreeView_VerticalScrollbarAction(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_VerticalScrollbarAction, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_HorizontalScrollbarValueChanged(value int) {
|
|
|
|
|
|
|
|
C.QTreeView_virtualbase_HorizontalScrollbarValueChanged(unsafe.Pointer(this.h), (C.int)(value))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnHorizontalScrollbarValueChanged(slot func(super func(value int), value int)) {
|
|
|
|
C.QTreeView_override_virtual_HorizontalScrollbarValueChanged(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_HorizontalScrollbarValueChanged
|
|
|
|
func miqt_exec_callback_QTreeView_HorizontalScrollbarValueChanged(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_HorizontalScrollbarValueChanged, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_CloseEditor(editor *QWidget, hint QAbstractItemDelegate__EndEditHint) {
|
|
|
|
|
|
|
|
C.QTreeView_virtualbase_CloseEditor(unsafe.Pointer(this.h), editor.cPointer(), (C.int)(hint))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnCloseEditor(slot func(super func(editor *QWidget, hint QAbstractItemDelegate__EndEditHint), editor *QWidget, hint QAbstractItemDelegate__EndEditHint)) {
|
|
|
|
C.QTreeView_override_virtual_CloseEditor(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_CloseEditor
|
|
|
|
func miqt_exec_callback_QTreeView_CloseEditor(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_CloseEditor, slotval1, slotval2)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_CommitData(editor *QWidget) {
|
|
|
|
|
|
|
|
C.QTreeView_virtualbase_CommitData(unsafe.Pointer(this.h), editor.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnCommitData(slot func(super func(editor *QWidget), editor *QWidget)) {
|
|
|
|
C.QTreeView_override_virtual_CommitData(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_CommitData
|
|
|
|
func miqt_exec_callback_QTreeView_CommitData(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_CommitData, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_EditorDestroyed(editor *QObject) {
|
|
|
|
|
|
|
|
C.QTreeView_virtualbase_EditorDestroyed(unsafe.Pointer(this.h), editor.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnEditorDestroyed(slot func(super func(editor *QObject), editor *QObject)) {
|
|
|
|
C.QTreeView_override_virtual_EditorDestroyed(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_EditorDestroyed
|
|
|
|
func miqt_exec_callback_QTreeView_EditorDestroyed(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_EditorDestroyed, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_Edit2(index *QModelIndex, trigger QAbstractItemView__EditTrigger, event *QEvent) bool {
|
|
|
|
|
|
|
|
return (bool)(C.QTreeView_virtualbase_Edit2(unsafe.Pointer(this.h), index.cPointer(), (C.int)(trigger), event.cPointer()))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnEdit2(slot func(super func(index *QModelIndex, trigger QAbstractItemView__EditTrigger, event *QEvent) bool, index *QModelIndex, trigger QAbstractItemView__EditTrigger, event *QEvent) bool) {
|
|
|
|
C.QTreeView_override_virtual_Edit2(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_Edit2
|
|
|
|
func miqt_exec_callback_QTreeView_Edit2(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_Edit2, slotval1, slotval2, slotval3)
|
|
|
|
|
|
|
|
return (C.bool)(virtualReturn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_SelectionCommand(index *QModelIndex, event *QEvent) QItemSelectionModel__SelectionFlag {
|
|
|
|
|
|
|
|
return (QItemSelectionModel__SelectionFlag)(C.QTreeView_virtualbase_SelectionCommand(unsafe.Pointer(this.h), index.cPointer(), event.cPointer()))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnSelectionCommand(slot func(super func(index *QModelIndex, event *QEvent) QItemSelectionModel__SelectionFlag, index *QModelIndex, event *QEvent) QItemSelectionModel__SelectionFlag) {
|
|
|
|
C.QTreeView_override_virtual_SelectionCommand(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_SelectionCommand
|
|
|
|
func miqt_exec_callback_QTreeView_SelectionCommand(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_SelectionCommand, slotval1, slotval2)
|
|
|
|
|
|
|
|
return (C.int)(virtualReturn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_StartDrag(supportedActions DropAction) {
|
|
|
|
|
|
|
|
C.QTreeView_virtualbase_StartDrag(unsafe.Pointer(this.h), (C.int)(supportedActions))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnStartDrag(slot func(super func(supportedActions DropAction), supportedActions DropAction)) {
|
|
|
|
C.QTreeView_override_virtual_StartDrag(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_StartDrag
|
|
|
|
func miqt_exec_callback_QTreeView_StartDrag(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_StartDrag, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_InitViewItemOption(option *QStyleOptionViewItem) {
|
|
|
|
|
|
|
|
C.QTreeView_virtualbase_InitViewItemOption(unsafe.Pointer(this.h), option.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnInitViewItemOption(slot func(super func(option *QStyleOptionViewItem), option *QStyleOptionViewItem)) {
|
|
|
|
C.QTreeView_override_virtual_InitViewItemOption(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_InitViewItemOption
|
|
|
|
func miqt_exec_callback_QTreeView_InitViewItemOption(self *C.QTreeView, cb C.intptr_t, option *C.QStyleOptionViewItem) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(option *QStyleOptionViewItem), option *QStyleOptionViewItem))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := UnsafeNewQStyleOptionViewItem(unsafe.Pointer(option), nil)
|
|
|
|
|
|
|
|
gofunc((&QTreeView{h: self}).callVirtualBase_InitViewItemOption, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_FocusNextPrevChild(next bool) bool {
|
|
|
|
|
|
|
|
return (bool)(C.QTreeView_virtualbase_FocusNextPrevChild(unsafe.Pointer(this.h), (C.bool)(next)))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnFocusNextPrevChild(slot func(super func(next bool) bool, next bool) bool) {
|
|
|
|
C.QTreeView_override_virtual_FocusNextPrevChild(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_FocusNextPrevChild
|
|
|
|
func miqt_exec_callback_QTreeView_FocusNextPrevChild(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_FocusNextPrevChild, slotval1)
|
|
|
|
|
|
|
|
return (C.bool)(virtualReturn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_Event(event *QEvent) bool {
|
|
|
|
|
|
|
|
return (bool)(C.QTreeView_virtualbase_Event(unsafe.Pointer(this.h), event.cPointer()))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnEvent(slot func(super func(event *QEvent) bool, event *QEvent) bool) {
|
|
|
|
C.QTreeView_override_virtual_Event(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_Event
|
|
|
|
func miqt_exec_callback_QTreeView_Event(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_Event, slotval1)
|
|
|
|
|
|
|
|
return (C.bool)(virtualReturn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_DragEnterEvent(event *QDragEnterEvent) {
|
|
|
|
|
|
|
|
C.QTreeView_virtualbase_DragEnterEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnDragEnterEvent(slot func(super func(event *QDragEnterEvent), event *QDragEnterEvent)) {
|
|
|
|
C.QTreeView_override_virtual_DragEnterEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_DragEnterEvent
|
|
|
|
func miqt_exec_callback_QTreeView_DragEnterEvent(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_DragEnterEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_DragLeaveEvent(event *QDragLeaveEvent) {
|
|
|
|
|
|
|
|
C.QTreeView_virtualbase_DragLeaveEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnDragLeaveEvent(slot func(super func(event *QDragLeaveEvent), event *QDragLeaveEvent)) {
|
|
|
|
C.QTreeView_override_virtual_DragLeaveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_DragLeaveEvent
|
|
|
|
func miqt_exec_callback_QTreeView_DragLeaveEvent(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_DragLeaveEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_DropEvent(event *QDropEvent) {
|
|
|
|
|
|
|
|
C.QTreeView_virtualbase_DropEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnDropEvent(slot func(super func(event *QDropEvent), event *QDropEvent)) {
|
|
|
|
C.QTreeView_override_virtual_DropEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_DropEvent
|
|
|
|
func miqt_exec_callback_QTreeView_DropEvent(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_DropEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_FocusInEvent(event *QFocusEvent) {
|
|
|
|
|
|
|
|
C.QTreeView_virtualbase_FocusInEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnFocusInEvent(slot func(super func(event *QFocusEvent), event *QFocusEvent)) {
|
|
|
|
C.QTreeView_override_virtual_FocusInEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_FocusInEvent
|
|
|
|
func miqt_exec_callback_QTreeView_FocusInEvent(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_FocusInEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_FocusOutEvent(event *QFocusEvent) {
|
|
|
|
|
|
|
|
C.QTreeView_virtualbase_FocusOutEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnFocusOutEvent(slot func(super func(event *QFocusEvent), event *QFocusEvent)) {
|
|
|
|
C.QTreeView_override_virtual_FocusOutEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_FocusOutEvent
|
|
|
|
func miqt_exec_callback_QTreeView_FocusOutEvent(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_FocusOutEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_ResizeEvent(event *QResizeEvent) {
|
|
|
|
|
|
|
|
C.QTreeView_virtualbase_ResizeEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnResizeEvent(slot func(super func(event *QResizeEvent), event *QResizeEvent)) {
|
|
|
|
C.QTreeView_override_virtual_ResizeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_ResizeEvent
|
|
|
|
func miqt_exec_callback_QTreeView_ResizeEvent(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_ResizeEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_InputMethodEvent(event *QInputMethodEvent) {
|
|
|
|
|
|
|
|
C.QTreeView_virtualbase_InputMethodEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnInputMethodEvent(slot func(super func(event *QInputMethodEvent), event *QInputMethodEvent)) {
|
|
|
|
C.QTreeView_override_virtual_InputMethodEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_InputMethodEvent
|
|
|
|
func miqt_exec_callback_QTreeView_InputMethodEvent(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_InputMethodEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeView) callVirtualBase_EventFilter(object *QObject, event *QEvent) bool {
|
|
|
|
|
|
|
|
return (bool)(C.QTreeView_virtualbase_EventFilter(unsafe.Pointer(this.h), object.cPointer(), event.cPointer()))
|
|
|
|
|
|
|
|
}
|
|
|
|
func (this *QTreeView) OnEventFilter(slot func(super func(object *QObject, event *QEvent) bool, object *QObject, event *QEvent) bool) {
|
|
|
|
C.QTreeView_override_virtual_EventFilter(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QTreeView_EventFilter
|
|
|
|
func miqt_exec_callback_QTreeView_EventFilter(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_EventFilter, slotval1, slotval2)
|
|
|
|
|
|
|
|
return (C.bool)(virtualReturn)
|
|
|
|
|
2024-10-20 05:21:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Delete this object from C++ memory.
|
|
|
|
func (this *QTreeView) Delete() {
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QTreeView_Delete(this.h, C.bool(this.isSubclass))
|
2024-10-20 05:21:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// GoGC adds a Go Finalizer to this pointer, so that it will be deleted
|
|
|
|
// from C++ memory once it is unreachable from Go memory.
|
|
|
|
func (this *QTreeView) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QTreeView) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|