mirror of
https://github.com/mappu/miqt.git
synced 2025-02-01 19:10:21 +00:00
2943 lines
106 KiB
Go
2943 lines
106 KiB
Go
package qt
|
|
|
|
/*
|
|
|
|
#include "gen_qtreeview.h"
|
|
#include <stdlib.h>
|
|
|
|
*/
|
|
import "C"
|
|
|
|
import (
|
|
"runtime"
|
|
"runtime/cgo"
|
|
"unsafe"
|
|
)
|
|
|
|
type QTreeView struct {
|
|
h *C.QTreeView
|
|
*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)
|
|
}
|
|
|
|
// newQTreeView constructs the type using only CGO pointers.
|
|
func newQTreeView(h *C.QTreeView) *QTreeView {
|
|
if h == nil {
|
|
return nil
|
|
}
|
|
var outptr_QAbstractItemView *C.QAbstractItemView = nil
|
|
C.QTreeView_virtbase(h, &outptr_QAbstractItemView)
|
|
|
|
return &QTreeView{h: h,
|
|
QAbstractItemView: newQAbstractItemView(outptr_QAbstractItemView)}
|
|
}
|
|
|
|
// UnsafeNewQTreeView constructs the type using only unsafe pointers.
|
|
func UnsafeNewQTreeView(h unsafe.Pointer) *QTreeView {
|
|
return newQTreeView((*C.QTreeView)(h))
|
|
}
|
|
|
|
// NewQTreeView constructs a new QTreeView object.
|
|
func NewQTreeView(parent *QWidget) *QTreeView {
|
|
|
|
return newQTreeView(C.QTreeView_new(parent.cPointer()))
|
|
}
|
|
|
|
// NewQTreeView2 constructs a new QTreeView object.
|
|
func NewQTreeView2() *QTreeView {
|
|
|
|
return newQTreeView(C.QTreeView_new2())
|
|
}
|
|
|
|
func (this *QTreeView) MetaObject() *QMetaObject {
|
|
return newQMetaObject(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 QTreeView_TrUtf8(s string) string {
|
|
s_Cstring := C.CString(s)
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
|
var _ms C.struct_miqt_string = C.QTreeView_trUtf8(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 {
|
|
return newQHeaderView(C.QTreeView_header(this.h))
|
|
}
|
|
|
|
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 {
|
|
_goptr := newQRect(C.QTreeView_visualRect(this.h, index.cPointer()))
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
return _goptr
|
|
}
|
|
|
|
func (this *QTreeView) ScrollTo(index *QModelIndex, hint QAbstractItemView__ScrollHint) {
|
|
C.QTreeView_scrollTo(this.h, index.cPointer(), (C.int)(hint))
|
|
}
|
|
|
|
func (this *QTreeView) IndexAt(p *QPoint) *QModelIndex {
|
|
_goptr := newQModelIndex(C.QTreeView_indexAt(this.h, p.cPointer()))
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
return _goptr
|
|
}
|
|
|
|
func (this *QTreeView) IndexAbove(index *QModelIndex) *QModelIndex {
|
|
_goptr := newQModelIndex(C.QTreeView_indexAbove(this.h, index.cPointer()))
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
return _goptr
|
|
}
|
|
|
|
func (this *QTreeView) IndexBelow(index *QModelIndex) *QModelIndex {
|
|
_goptr := newQModelIndex(C.QTreeView_indexBelow(this.h, index.cPointer()))
|
|
_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)
|
|
}
|
|
|
|
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)
|
|
}
|
|
|
|
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 := newQModelIndex(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 := newQModelIndex(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) {
|
|
C.QTreeView_sortByColumn(this.h, (C.int)(column))
|
|
}
|
|
|
|
func (this *QTreeView) SortByColumn2(column int, order SortOrder) {
|
|
C.QTreeView_sortByColumn2(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
|
|
}
|
|
|
|
func QTreeView_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.QTreeView_trUtf82(s_Cstring, c_Cstring)
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
return _ret
|
|
}
|
|
|
|
func QTreeView_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.QTreeView_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
|
|
}
|
|
|
|
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)) {
|
|
ok := C.QTreeView_override_virtual_setModel(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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 := newQAbstractItemModel(model)
|
|
|
|
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)) {
|
|
ok := C.QTreeView_override_virtual_setRootIndex(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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 := newQModelIndex(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)) {
|
|
ok := C.QTreeView_override_virtual_setSelectionModel(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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 := newQItemSelectionModel(selectionModel)
|
|
|
|
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)) {
|
|
ok := C.QTreeView_override_virtual_keyboardSearch(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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 {
|
|
|
|
_goptr := newQRect(C.QTreeView_virtualbase_visualRect(unsafe.Pointer(this.h), index.cPointer()))
|
|
_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) {
|
|
ok := C.QTreeView_override_virtual_visualRect(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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 := newQModelIndex(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)) {
|
|
ok := C.QTreeView_override_virtual_scrollTo(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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 := newQModelIndex(index)
|
|
|
|
slotval2 := (QAbstractItemView__ScrollHint)(hint)
|
|
|
|
gofunc((&QTreeView{h: self}).callVirtualBase_ScrollTo, slotval1, slotval2)
|
|
|
|
}
|
|
|
|
func (this *QTreeView) callVirtualBase_IndexAt(p *QPoint) *QModelIndex {
|
|
|
|
_goptr := newQModelIndex(C.QTreeView_virtualbase_indexAt(unsafe.Pointer(this.h), p.cPointer()))
|
|
_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) {
|
|
ok := C.QTreeView_override_virtual_indexAt(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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 := newQPoint(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())) {
|
|
ok := C.QTreeView_override_virtual_doItemsLayout(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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())) {
|
|
ok := C.QTreeView_override_virtual_reset(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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)
|
|
|
|
}
|
|
|
|
func (this *QTreeView) 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.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)) {
|
|
ok := C.QTreeView_override_virtual_dataChanged(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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 := newQModelIndex(topLeft)
|
|
|
|
slotval2 := newQModelIndex(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())) {
|
|
ok := C.QTreeView_override_virtual_selectAll(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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)) {
|
|
ok := C.QTreeView_override_virtual_verticalScrollbarValueChanged(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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)) {
|
|
ok := C.QTreeView_override_virtual_scrollContentsBy(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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)) {
|
|
ok := C.QTreeView_override_virtual_rowsInserted(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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 := newQModelIndex(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)) {
|
|
ok := C.QTreeView_override_virtual_rowsAboutToBeRemoved(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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 := newQModelIndex(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 {
|
|
|
|
_goptr := newQModelIndex(C.QTreeView_virtualbase_moveCursor(unsafe.Pointer(this.h), (C.int)(cursorAction), (C.int)(modifiers)))
|
|
_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) {
|
|
ok := C.QTreeView_override_virtual_moveCursor(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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) {
|
|
ok := C.QTreeView_override_virtual_horizontalOffset(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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) {
|
|
ok := C.QTreeView_override_virtual_verticalOffset(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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)) {
|
|
ok := C.QTreeView_override_virtual_setSelection(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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 := newQRect(rect)
|
|
|
|
slotval2 := (QItemSelectionModel__SelectionFlag)(command)
|
|
|
|
gofunc((&QTreeView{h: self}).callVirtualBase_SetSelection, slotval1, slotval2)
|
|
|
|
}
|
|
|
|
func (this *QTreeView) callVirtualBase_VisualRegionForSelection(selection *QItemSelection) *QRegion {
|
|
|
|
_goptr := newQRegion(C.QTreeView_virtualbase_visualRegionForSelection(unsafe.Pointer(this.h), selection.cPointer()))
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
return _goptr
|
|
|
|
}
|
|
func (this *QTreeView) OnvisualRegionForSelection(slot func(super func(selection *QItemSelection) *QRegion, selection *QItemSelection) *QRegion) {
|
|
ok := C.QTreeView_override_virtual_visualRegionForSelection(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QTreeView_visualRegionForSelection
|
|
func miqt_exec_callback_QTreeView_visualRegionForSelection(self *C.QTreeView, 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 := newQItemSelection(selection)
|
|
|
|
virtualReturn := gofunc((&QTreeView{h: self}).callVirtualBase_VisualRegionForSelection, slotval1)
|
|
|
|
return virtualReturn.cPointer()
|
|
|
|
}
|
|
|
|
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_goptr := newQModelIndex(_outCast[i])
|
|
_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) {
|
|
ok := C.QTreeView_override_virtual_selectedIndexes(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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_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)) {
|
|
ok := C.QTreeView_override_virtual_timerEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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 := newQTimerEvent(event)
|
|
|
|
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)) {
|
|
ok := C.QTreeView_override_virtual_paintEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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 := newQPaintEvent(event)
|
|
|
|
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)) {
|
|
ok := C.QTreeView_override_virtual_drawRow(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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 := newQPainter(painter)
|
|
|
|
slotval2 := newQStyleOptionViewItem(options)
|
|
|
|
slotval3 := newQModelIndex(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)) {
|
|
ok := C.QTreeView_override_virtual_drawBranches(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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 := newQPainter(painter)
|
|
|
|
slotval2 := newQRect(rect)
|
|
|
|
slotval3 := newQModelIndex(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)) {
|
|
ok := C.QTreeView_override_virtual_mousePressEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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 := newQMouseEvent(event)
|
|
|
|
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)) {
|
|
ok := C.QTreeView_override_virtual_mouseReleaseEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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 := newQMouseEvent(event)
|
|
|
|
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)) {
|
|
ok := C.QTreeView_override_virtual_mouseDoubleClickEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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 := newQMouseEvent(event)
|
|
|
|
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)) {
|
|
ok := C.QTreeView_override_virtual_mouseMoveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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 := newQMouseEvent(event)
|
|
|
|
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)) {
|
|
ok := C.QTreeView_override_virtual_keyPressEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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 := newQKeyEvent(event)
|
|
|
|
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)) {
|
|
ok := C.QTreeView_override_virtual_dragMoveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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 := newQDragMoveEvent(event)
|
|
|
|
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) {
|
|
ok := C.QTreeView_override_virtual_viewportEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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 := newQEvent(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())) {
|
|
ok := C.QTreeView_override_virtual_updateGeometries(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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 {
|
|
|
|
_goptr := newQSize(C.QTreeView_virtualbase_viewportSizeHint(unsafe.Pointer(this.h)))
|
|
_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) {
|
|
ok := C.QTreeView_override_virtual_viewportSizeHint(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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) {
|
|
ok := C.QTreeView_override_virtual_sizeHintForColumn(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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)) {
|
|
ok := C.QTreeView_override_virtual_horizontalScrollbarAction(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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) {
|
|
ok := C.QTreeView_override_virtual_isIndexHidden(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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 := newQModelIndex(index)
|
|
|
|
virtualReturn := gofunc((&QTreeView{h: self}).callVirtualBase_IsIndexHidden, slotval1)
|
|
|
|
return (C.bool)(virtualReturn)
|
|
|
|
}
|
|
|
|
func (this *QTreeView) callVirtualBase_SelectionChanged(selected *QItemSelection, deselected *QItemSelection) {
|
|
|
|
C.QTreeView_virtualbase_selectionChanged(unsafe.Pointer(this.h), selected.cPointer(), deselected.cPointer())
|
|
|
|
}
|
|
func (this *QTreeView) OnselectionChanged(slot func(super func(selected *QItemSelection, deselected *QItemSelection), selected *QItemSelection, deselected *QItemSelection)) {
|
|
ok := C.QTreeView_override_virtual_selectionChanged(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QTreeView_selectionChanged
|
|
func miqt_exec_callback_QTreeView_selectionChanged(self *C.QTreeView, 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 := newQItemSelection(selected)
|
|
|
|
slotval2 := newQItemSelection(deselected)
|
|
|
|
gofunc((&QTreeView{h: self}).callVirtualBase_SelectionChanged, slotval1, slotval2)
|
|
|
|
}
|
|
|
|
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)) {
|
|
ok := C.QTreeView_override_virtual_currentChanged(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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 := newQModelIndex(current)
|
|
|
|
slotval2 := newQModelIndex(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) {
|
|
ok := C.QTreeView_override_virtual_sizeHintForRow(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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_InputMethodQuery(query InputMethodQuery) *QVariant {
|
|
|
|
_goptr := newQVariant(C.QTreeView_virtualbase_inputMethodQuery(unsafe.Pointer(this.h), (C.int)(query)))
|
|
_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) {
|
|
ok := C.QTreeView_override_virtual_inputMethodQuery(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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())) {
|
|
ok := C.QTreeView_override_virtual_updateEditorData(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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())) {
|
|
ok := C.QTreeView_override_virtual_updateEditorGeometries(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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)) {
|
|
ok := C.QTreeView_override_virtual_verticalScrollbarAction(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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)) {
|
|
ok := C.QTreeView_override_virtual_horizontalScrollbarValueChanged(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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)) {
|
|
ok := C.QTreeView_override_virtual_closeEditor(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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 := newQWidget(editor)
|
|
|
|
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)) {
|
|
ok := C.QTreeView_override_virtual_commitData(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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 := newQWidget(editor)
|
|
|
|
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)) {
|
|
ok := C.QTreeView_override_virtual_editorDestroyed(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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 := newQObject(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) {
|
|
ok := C.QTreeView_override_virtual_edit2(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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 := newQModelIndex(index)
|
|
|
|
slotval2 := (QAbstractItemView__EditTrigger)(trigger)
|
|
|
|
slotval3 := newQEvent(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) {
|
|
ok := C.QTreeView_override_virtual_selectionCommand(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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 := newQModelIndex(index)
|
|
|
|
slotval2 := newQEvent(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)) {
|
|
ok := C.QTreeView_override_virtual_startDrag(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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_ViewOptions() *QStyleOptionViewItem {
|
|
|
|
_goptr := newQStyleOptionViewItem(C.QTreeView_virtualbase_viewOptions(unsafe.Pointer(this.h)))
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
return _goptr
|
|
|
|
}
|
|
func (this *QTreeView) OnviewOptions(slot func(super func() *QStyleOptionViewItem) *QStyleOptionViewItem) {
|
|
ok := C.QTreeView_override_virtual_viewOptions(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QTreeView_viewOptions
|
|
func miqt_exec_callback_QTreeView_viewOptions(self *C.QTreeView, 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((&QTreeView{h: self}).callVirtualBase_ViewOptions)
|
|
|
|
return virtualReturn.cPointer()
|
|
|
|
}
|
|
|
|
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) {
|
|
ok := C.QTreeView_override_virtual_focusNextPrevChild(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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) {
|
|
ok := C.QTreeView_override_virtual_event(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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 := newQEvent(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)) {
|
|
ok := C.QTreeView_override_virtual_dragEnterEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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 := newQDragEnterEvent(event)
|
|
|
|
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)) {
|
|
ok := C.QTreeView_override_virtual_dragLeaveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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 := newQDragLeaveEvent(event)
|
|
|
|
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)) {
|
|
ok := C.QTreeView_override_virtual_dropEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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 := newQDropEvent(event)
|
|
|
|
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)) {
|
|
ok := C.QTreeView_override_virtual_focusInEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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 := newQFocusEvent(event)
|
|
|
|
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)) {
|
|
ok := C.QTreeView_override_virtual_focusOutEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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 := newQFocusEvent(event)
|
|
|
|
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)) {
|
|
ok := C.QTreeView_override_virtual_resizeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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 := newQResizeEvent(event)
|
|
|
|
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)) {
|
|
ok := C.QTreeView_override_virtual_inputMethodEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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 := newQInputMethodEvent(event)
|
|
|
|
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) {
|
|
ok := C.QTreeView_override_virtual_eventFilter(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_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 := newQObject(object)
|
|
|
|
slotval2 := newQEvent(event)
|
|
|
|
virtualReturn := gofunc((&QTreeView{h: self}).callVirtualBase_EventFilter, slotval1, slotval2)
|
|
|
|
return (C.bool)(virtualReturn)
|
|
|
|
}
|
|
|
|
func (this *QTreeView) callVirtualBase_MinimumSizeHint() *QSize {
|
|
|
|
_goptr := newQSize(C.QTreeView_virtualbase_minimumSizeHint(unsafe.Pointer(this.h)))
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
return _goptr
|
|
|
|
}
|
|
func (this *QTreeView) OnminimumSizeHint(slot func(super func() *QSize) *QSize) {
|
|
ok := C.QTreeView_override_virtual_minimumSizeHint(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QTreeView_minimumSizeHint
|
|
func miqt_exec_callback_QTreeView_minimumSizeHint(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_MinimumSizeHint)
|
|
|
|
return virtualReturn.cPointer()
|
|
|
|
}
|
|
|
|
func (this *QTreeView) callVirtualBase_SizeHint() *QSize {
|
|
|
|
_goptr := newQSize(C.QTreeView_virtualbase_sizeHint(unsafe.Pointer(this.h)))
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
return _goptr
|
|
|
|
}
|
|
func (this *QTreeView) OnsizeHint(slot func(super func() *QSize) *QSize) {
|
|
ok := C.QTreeView_override_virtual_sizeHint(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QTreeView_sizeHint
|
|
func miqt_exec_callback_QTreeView_sizeHint(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_SizeHint)
|
|
|
|
return virtualReturn.cPointer()
|
|
|
|
}
|
|
|
|
func (this *QTreeView) callVirtualBase_SetupViewport(viewport *QWidget) {
|
|
|
|
C.QTreeView_virtualbase_setupViewport(unsafe.Pointer(this.h), viewport.cPointer())
|
|
|
|
}
|
|
func (this *QTreeView) OnsetupViewport(slot func(super func(viewport *QWidget), viewport *QWidget)) {
|
|
ok := C.QTreeView_override_virtual_setupViewport(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QTreeView_setupViewport
|
|
func miqt_exec_callback_QTreeView_setupViewport(self *C.QTreeView, cb C.intptr_t, viewport *C.QWidget) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(viewport *QWidget), viewport *QWidget))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := newQWidget(viewport)
|
|
|
|
gofunc((&QTreeView{h: self}).callVirtualBase_SetupViewport, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QTreeView) callVirtualBase_WheelEvent(param1 *QWheelEvent) {
|
|
|
|
C.QTreeView_virtualbase_wheelEvent(unsafe.Pointer(this.h), param1.cPointer())
|
|
|
|
}
|
|
func (this *QTreeView) OnwheelEvent(slot func(super func(param1 *QWheelEvent), param1 *QWheelEvent)) {
|
|
ok := C.QTreeView_override_virtual_wheelEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QTreeView_wheelEvent
|
|
func miqt_exec_callback_QTreeView_wheelEvent(self *C.QTreeView, cb C.intptr_t, param1 *C.QWheelEvent) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QWheelEvent), param1 *QWheelEvent))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := newQWheelEvent(param1)
|
|
|
|
gofunc((&QTreeView{h: self}).callVirtualBase_WheelEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QTreeView) callVirtualBase_ContextMenuEvent(param1 *QContextMenuEvent) {
|
|
|
|
C.QTreeView_virtualbase_contextMenuEvent(unsafe.Pointer(this.h), param1.cPointer())
|
|
|
|
}
|
|
func (this *QTreeView) OncontextMenuEvent(slot func(super func(param1 *QContextMenuEvent), param1 *QContextMenuEvent)) {
|
|
ok := C.QTreeView_override_virtual_contextMenuEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QTreeView_contextMenuEvent
|
|
func miqt_exec_callback_QTreeView_contextMenuEvent(self *C.QTreeView, cb C.intptr_t, param1 *C.QContextMenuEvent) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QContextMenuEvent), param1 *QContextMenuEvent))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := newQContextMenuEvent(param1)
|
|
|
|
gofunc((&QTreeView{h: self}).callVirtualBase_ContextMenuEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QTreeView) callVirtualBase_ChangeEvent(param1 *QEvent) {
|
|
|
|
C.QTreeView_virtualbase_changeEvent(unsafe.Pointer(this.h), param1.cPointer())
|
|
|
|
}
|
|
func (this *QTreeView) OnchangeEvent(slot func(super func(param1 *QEvent), param1 *QEvent)) {
|
|
ok := C.QTreeView_override_virtual_changeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QTreeView_changeEvent
|
|
func miqt_exec_callback_QTreeView_changeEvent(self *C.QTreeView, cb C.intptr_t, param1 *C.QEvent) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QEvent), param1 *QEvent))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := newQEvent(param1)
|
|
|
|
gofunc((&QTreeView{h: self}).callVirtualBase_ChangeEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QTreeView) callVirtualBase_DevType() int {
|
|
|
|
return (int)(C.QTreeView_virtualbase_devType(unsafe.Pointer(this.h)))
|
|
|
|
}
|
|
func (this *QTreeView) OndevType(slot func(super func() int) int) {
|
|
ok := C.QTreeView_override_virtual_devType(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QTreeView_devType
|
|
func miqt_exec_callback_QTreeView_devType(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_DevType)
|
|
|
|
return (C.int)(virtualReturn)
|
|
|
|
}
|
|
|
|
func (this *QTreeView) callVirtualBase_SetVisible(visible bool) {
|
|
|
|
C.QTreeView_virtualbase_setVisible(unsafe.Pointer(this.h), (C.bool)(visible))
|
|
|
|
}
|
|
func (this *QTreeView) OnsetVisible(slot func(super func(visible bool), visible bool)) {
|
|
ok := C.QTreeView_override_virtual_setVisible(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QTreeView_setVisible
|
|
func miqt_exec_callback_QTreeView_setVisible(self *C.QTreeView, cb C.intptr_t, visible C.bool) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(visible bool), visible bool))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := (bool)(visible)
|
|
|
|
gofunc((&QTreeView{h: self}).callVirtualBase_SetVisible, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QTreeView) callVirtualBase_HeightForWidth(param1 int) int {
|
|
|
|
return (int)(C.QTreeView_virtualbase_heightForWidth(unsafe.Pointer(this.h), (C.int)(param1)))
|
|
|
|
}
|
|
func (this *QTreeView) OnheightForWidth(slot func(super func(param1 int) int, param1 int) int) {
|
|
ok := C.QTreeView_override_virtual_heightForWidth(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QTreeView_heightForWidth
|
|
func miqt_exec_callback_QTreeView_heightForWidth(self *C.QTreeView, cb C.intptr_t, param1 C.int) C.int {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 int) int, param1 int) int)
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := (int)(param1)
|
|
|
|
virtualReturn := gofunc((&QTreeView{h: self}).callVirtualBase_HeightForWidth, slotval1)
|
|
|
|
return (C.int)(virtualReturn)
|
|
|
|
}
|
|
|
|
func (this *QTreeView) callVirtualBase_HasHeightForWidth() bool {
|
|
|
|
return (bool)(C.QTreeView_virtualbase_hasHeightForWidth(unsafe.Pointer(this.h)))
|
|
|
|
}
|
|
func (this *QTreeView) OnhasHeightForWidth(slot func(super func() bool) bool) {
|
|
ok := C.QTreeView_override_virtual_hasHeightForWidth(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QTreeView_hasHeightForWidth
|
|
func miqt_exec_callback_QTreeView_hasHeightForWidth(self *C.QTreeView, cb C.intptr_t) C.bool {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func() bool) bool)
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
virtualReturn := gofunc((&QTreeView{h: self}).callVirtualBase_HasHeightForWidth)
|
|
|
|
return (C.bool)(virtualReturn)
|
|
|
|
}
|
|
|
|
func (this *QTreeView) callVirtualBase_PaintEngine() *QPaintEngine {
|
|
|
|
return newQPaintEngine(C.QTreeView_virtualbase_paintEngine(unsafe.Pointer(this.h)))
|
|
|
|
}
|
|
func (this *QTreeView) OnpaintEngine(slot func(super func() *QPaintEngine) *QPaintEngine) {
|
|
ok := C.QTreeView_override_virtual_paintEngine(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QTreeView_paintEngine
|
|
func miqt_exec_callback_QTreeView_paintEngine(self *C.QTreeView, cb C.intptr_t) *C.QPaintEngine {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QPaintEngine) *QPaintEngine)
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
virtualReturn := gofunc((&QTreeView{h: self}).callVirtualBase_PaintEngine)
|
|
|
|
return virtualReturn.cPointer()
|
|
|
|
}
|
|
|
|
func (this *QTreeView) callVirtualBase_KeyReleaseEvent(event *QKeyEvent) {
|
|
|
|
C.QTreeView_virtualbase_keyReleaseEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
}
|
|
func (this *QTreeView) OnkeyReleaseEvent(slot func(super func(event *QKeyEvent), event *QKeyEvent)) {
|
|
ok := C.QTreeView_override_virtual_keyReleaseEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QTreeView_keyReleaseEvent
|
|
func miqt_exec_callback_QTreeView_keyReleaseEvent(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 := newQKeyEvent(event)
|
|
|
|
gofunc((&QTreeView{h: self}).callVirtualBase_KeyReleaseEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QTreeView) callVirtualBase_EnterEvent(event *QEvent) {
|
|
|
|
C.QTreeView_virtualbase_enterEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
}
|
|
func (this *QTreeView) OnenterEvent(slot func(super func(event *QEvent), event *QEvent)) {
|
|
ok := C.QTreeView_override_virtual_enterEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QTreeView_enterEvent
|
|
func miqt_exec_callback_QTreeView_enterEvent(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 := newQEvent(event)
|
|
|
|
gofunc((&QTreeView{h: self}).callVirtualBase_EnterEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QTreeView) callVirtualBase_LeaveEvent(event *QEvent) {
|
|
|
|
C.QTreeView_virtualbase_leaveEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
}
|
|
func (this *QTreeView) OnleaveEvent(slot func(super func(event *QEvent), event *QEvent)) {
|
|
ok := C.QTreeView_override_virtual_leaveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QTreeView_leaveEvent
|
|
func miqt_exec_callback_QTreeView_leaveEvent(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 := newQEvent(event)
|
|
|
|
gofunc((&QTreeView{h: self}).callVirtualBase_LeaveEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QTreeView) callVirtualBase_MoveEvent(event *QMoveEvent) {
|
|
|
|
C.QTreeView_virtualbase_moveEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
}
|
|
func (this *QTreeView) OnmoveEvent(slot func(super func(event *QMoveEvent), event *QMoveEvent)) {
|
|
ok := C.QTreeView_override_virtual_moveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QTreeView_moveEvent
|
|
func miqt_exec_callback_QTreeView_moveEvent(self *C.QTreeView, cb C.intptr_t, event *C.QMoveEvent) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QMoveEvent), event *QMoveEvent))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := newQMoveEvent(event)
|
|
|
|
gofunc((&QTreeView{h: self}).callVirtualBase_MoveEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QTreeView) callVirtualBase_CloseEvent(event *QCloseEvent) {
|
|
|
|
C.QTreeView_virtualbase_closeEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
}
|
|
func (this *QTreeView) OncloseEvent(slot func(super func(event *QCloseEvent), event *QCloseEvent)) {
|
|
ok := C.QTreeView_override_virtual_closeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QTreeView_closeEvent
|
|
func miqt_exec_callback_QTreeView_closeEvent(self *C.QTreeView, cb C.intptr_t, event *C.QCloseEvent) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QCloseEvent), event *QCloseEvent))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := newQCloseEvent(event)
|
|
|
|
gofunc((&QTreeView{h: self}).callVirtualBase_CloseEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QTreeView) callVirtualBase_TabletEvent(event *QTabletEvent) {
|
|
|
|
C.QTreeView_virtualbase_tabletEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
}
|
|
func (this *QTreeView) OntabletEvent(slot func(super func(event *QTabletEvent), event *QTabletEvent)) {
|
|
ok := C.QTreeView_override_virtual_tabletEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QTreeView_tabletEvent
|
|
func miqt_exec_callback_QTreeView_tabletEvent(self *C.QTreeView, cb C.intptr_t, event *C.QTabletEvent) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QTabletEvent), event *QTabletEvent))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := newQTabletEvent(event)
|
|
|
|
gofunc((&QTreeView{h: self}).callVirtualBase_TabletEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QTreeView) callVirtualBase_ActionEvent(event *QActionEvent) {
|
|
|
|
C.QTreeView_virtualbase_actionEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
}
|
|
func (this *QTreeView) OnactionEvent(slot func(super func(event *QActionEvent), event *QActionEvent)) {
|
|
ok := C.QTreeView_override_virtual_actionEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QTreeView_actionEvent
|
|
func miqt_exec_callback_QTreeView_actionEvent(self *C.QTreeView, cb C.intptr_t, event *C.QActionEvent) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QActionEvent), event *QActionEvent))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := newQActionEvent(event)
|
|
|
|
gofunc((&QTreeView{h: self}).callVirtualBase_ActionEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QTreeView) callVirtualBase_ShowEvent(event *QShowEvent) {
|
|
|
|
C.QTreeView_virtualbase_showEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
}
|
|
func (this *QTreeView) OnshowEvent(slot func(super func(event *QShowEvent), event *QShowEvent)) {
|
|
ok := C.QTreeView_override_virtual_showEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QTreeView_showEvent
|
|
func miqt_exec_callback_QTreeView_showEvent(self *C.QTreeView, cb C.intptr_t, event *C.QShowEvent) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QShowEvent), event *QShowEvent))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := newQShowEvent(event)
|
|
|
|
gofunc((&QTreeView{h: self}).callVirtualBase_ShowEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QTreeView) callVirtualBase_HideEvent(event *QHideEvent) {
|
|
|
|
C.QTreeView_virtualbase_hideEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
}
|
|
func (this *QTreeView) OnhideEvent(slot func(super func(event *QHideEvent), event *QHideEvent)) {
|
|
ok := C.QTreeView_override_virtual_hideEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QTreeView_hideEvent
|
|
func miqt_exec_callback_QTreeView_hideEvent(self *C.QTreeView, cb C.intptr_t, event *C.QHideEvent) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QHideEvent), event *QHideEvent))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := newQHideEvent(event)
|
|
|
|
gofunc((&QTreeView{h: self}).callVirtualBase_HideEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QTreeView) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
|
eventType_alias := C.struct_miqt_string{}
|
|
if len(eventType) > 0 {
|
|
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
|
} else {
|
|
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
|
}
|
|
eventType_alias.len = C.size_t(len(eventType))
|
|
|
|
return (bool)(C.QTreeView_virtualbase_nativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
|
|
|
}
|
|
func (this *QTreeView) OnnativeEvent(slot func(super func(eventType []byte, message unsafe.Pointer, result *int64) bool, eventType []byte, message unsafe.Pointer, result *int64) bool) {
|
|
ok := C.QTreeView_override_virtual_nativeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QTreeView_nativeEvent
|
|
func miqt_exec_callback_QTreeView_nativeEvent(self *C.QTreeView, cb C.intptr_t, eventType C.struct_miqt_string, message unsafe.Pointer, result *C.long) C.bool {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(eventType []byte, message unsafe.Pointer, result *int64) bool, eventType []byte, message unsafe.Pointer, result *int64) bool)
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
var eventType_bytearray C.struct_miqt_string = eventType
|
|
eventType_ret := C.GoBytes(unsafe.Pointer(eventType_bytearray.data), C.int(int64(eventType_bytearray.len)))
|
|
C.free(unsafe.Pointer(eventType_bytearray.data))
|
|
slotval1 := eventType_ret
|
|
slotval2 := (unsafe.Pointer)(message)
|
|
|
|
slotval3 := (*int64)(unsafe.Pointer(result))
|
|
|
|
virtualReturn := gofunc((&QTreeView{h: self}).callVirtualBase_NativeEvent, slotval1, slotval2, slotval3)
|
|
|
|
return (C.bool)(virtualReturn)
|
|
|
|
}
|
|
|
|
func (this *QTreeView) callVirtualBase_Metric(param1 QPaintDevice__PaintDeviceMetric) int {
|
|
|
|
return (int)(C.QTreeView_virtualbase_metric(unsafe.Pointer(this.h), (C.int)(param1)))
|
|
|
|
}
|
|
func (this *QTreeView) Onmetric(slot func(super func(param1 QPaintDevice__PaintDeviceMetric) int, param1 QPaintDevice__PaintDeviceMetric) int) {
|
|
ok := C.QTreeView_override_virtual_metric(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QTreeView_metric
|
|
func miqt_exec_callback_QTreeView_metric(self *C.QTreeView, cb C.intptr_t, param1 C.int) C.int {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 QPaintDevice__PaintDeviceMetric) int, param1 QPaintDevice__PaintDeviceMetric) int)
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := (QPaintDevice__PaintDeviceMetric)(param1)
|
|
|
|
virtualReturn := gofunc((&QTreeView{h: self}).callVirtualBase_Metric, slotval1)
|
|
|
|
return (C.int)(virtualReturn)
|
|
|
|
}
|
|
|
|
func (this *QTreeView) callVirtualBase_InitPainter(painter *QPainter) {
|
|
|
|
C.QTreeView_virtualbase_initPainter(unsafe.Pointer(this.h), painter.cPointer())
|
|
|
|
}
|
|
func (this *QTreeView) OninitPainter(slot func(super func(painter *QPainter), painter *QPainter)) {
|
|
ok := C.QTreeView_override_virtual_initPainter(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QTreeView_initPainter
|
|
func miqt_exec_callback_QTreeView_initPainter(self *C.QTreeView, cb C.intptr_t, painter *C.QPainter) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(painter *QPainter), painter *QPainter))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := newQPainter(painter)
|
|
|
|
gofunc((&QTreeView{h: self}).callVirtualBase_InitPainter, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QTreeView) callVirtualBase_Redirected(offset *QPoint) *QPaintDevice {
|
|
|
|
return newQPaintDevice(C.QTreeView_virtualbase_redirected(unsafe.Pointer(this.h), offset.cPointer()))
|
|
|
|
}
|
|
func (this *QTreeView) Onredirected(slot func(super func(offset *QPoint) *QPaintDevice, offset *QPoint) *QPaintDevice) {
|
|
ok := C.QTreeView_override_virtual_redirected(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QTreeView_redirected
|
|
func miqt_exec_callback_QTreeView_redirected(self *C.QTreeView, cb C.intptr_t, offset *C.QPoint) *C.QPaintDevice {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(offset *QPoint) *QPaintDevice, offset *QPoint) *QPaintDevice)
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := newQPoint(offset)
|
|
|
|
virtualReturn := gofunc((&QTreeView{h: self}).callVirtualBase_Redirected, slotval1)
|
|
|
|
return virtualReturn.cPointer()
|
|
|
|
}
|
|
|
|
func (this *QTreeView) callVirtualBase_SharedPainter() *QPainter {
|
|
|
|
return newQPainter(C.QTreeView_virtualbase_sharedPainter(unsafe.Pointer(this.h)))
|
|
|
|
}
|
|
func (this *QTreeView) OnsharedPainter(slot func(super func() *QPainter) *QPainter) {
|
|
ok := C.QTreeView_override_virtual_sharedPainter(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QTreeView_sharedPainter
|
|
func miqt_exec_callback_QTreeView_sharedPainter(self *C.QTreeView, cb C.intptr_t) *C.QPainter {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QPainter) *QPainter)
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
virtualReturn := gofunc((&QTreeView{h: self}).callVirtualBase_SharedPainter)
|
|
|
|
return virtualReturn.cPointer()
|
|
|
|
}
|
|
|
|
func (this *QTreeView) callVirtualBase_ChildEvent(event *QChildEvent) {
|
|
|
|
C.QTreeView_virtualbase_childEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
}
|
|
func (this *QTreeView) OnchildEvent(slot func(super func(event *QChildEvent), event *QChildEvent)) {
|
|
ok := C.QTreeView_override_virtual_childEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QTreeView_childEvent
|
|
func miqt_exec_callback_QTreeView_childEvent(self *C.QTreeView, cb C.intptr_t, event *C.QChildEvent) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QChildEvent), event *QChildEvent))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := newQChildEvent(event)
|
|
|
|
gofunc((&QTreeView{h: self}).callVirtualBase_ChildEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QTreeView) callVirtualBase_CustomEvent(event *QEvent) {
|
|
|
|
C.QTreeView_virtualbase_customEvent(unsafe.Pointer(this.h), event.cPointer())
|
|
|
|
}
|
|
func (this *QTreeView) OncustomEvent(slot func(super func(event *QEvent), event *QEvent)) {
|
|
ok := C.QTreeView_override_virtual_customEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QTreeView_customEvent
|
|
func miqt_exec_callback_QTreeView_customEvent(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 := newQEvent(event)
|
|
|
|
gofunc((&QTreeView{h: self}).callVirtualBase_CustomEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QTreeView) callVirtualBase_ConnectNotify(signal *QMetaMethod) {
|
|
|
|
C.QTreeView_virtualbase_connectNotify(unsafe.Pointer(this.h), signal.cPointer())
|
|
|
|
}
|
|
func (this *QTreeView) OnconnectNotify(slot func(super func(signal *QMetaMethod), signal *QMetaMethod)) {
|
|
ok := C.QTreeView_override_virtual_connectNotify(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QTreeView_connectNotify
|
|
func miqt_exec_callback_QTreeView_connectNotify(self *C.QTreeView, cb C.intptr_t, signal *C.QMetaMethod) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(signal *QMetaMethod), signal *QMetaMethod))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := newQMetaMethod(signal)
|
|
|
|
gofunc((&QTreeView{h: self}).callVirtualBase_ConnectNotify, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QTreeView) callVirtualBase_DisconnectNotify(signal *QMetaMethod) {
|
|
|
|
C.QTreeView_virtualbase_disconnectNotify(unsafe.Pointer(this.h), signal.cPointer())
|
|
|
|
}
|
|
func (this *QTreeView) OndisconnectNotify(slot func(super func(signal *QMetaMethod), signal *QMetaMethod)) {
|
|
ok := C.QTreeView_override_virtual_disconnectNotify(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QTreeView_disconnectNotify
|
|
func miqt_exec_callback_QTreeView_disconnectNotify(self *C.QTreeView, cb C.intptr_t, signal *C.QMetaMethod) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(signal *QMetaMethod), signal *QMetaMethod))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := newQMetaMethod(signal)
|
|
|
|
gofunc((&QTreeView{h: self}).callVirtualBase_DisconnectNotify, slotval1)
|
|
|
|
}
|
|
|
|
// Delete this object from C++ memory.
|
|
func (this *QTreeView) Delete() {
|
|
C.QTreeView_delete(this.h)
|
|
}
|
|
|
|
// GoGC adds a Go Finalizer to this pointer, so that it will be deleted
|
|
// from C++ memory once it is unreachable from Go memory.
|
|
func (this *QTreeView) GoGC() {
|
|
runtime.SetFinalizer(this, func(this *QTreeView) {
|
|
this.Delete()
|
|
runtime.KeepAlive(this.h)
|
|
})
|
|
}
|