2024-08-25 04:08:24 +00:00
|
|
|
package qt
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
#include "gen_qheaderview.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
*/
|
|
|
|
import "C"
|
|
|
|
|
|
|
|
import (
|
|
|
|
"runtime"
|
|
|
|
"runtime/cgo"
|
|
|
|
"unsafe"
|
|
|
|
)
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
type QHeaderView__ResizeMode int
|
|
|
|
|
|
|
|
const (
|
2024-09-20 07:13:26 +00:00
|
|
|
QHeaderView__Interactive QHeaderView__ResizeMode = 0
|
|
|
|
QHeaderView__Stretch QHeaderView__ResizeMode = 1
|
|
|
|
QHeaderView__Fixed QHeaderView__ResizeMode = 2
|
|
|
|
QHeaderView__ResizeToContents QHeaderView__ResizeMode = 3
|
|
|
|
QHeaderView__Custom QHeaderView__ResizeMode = 2
|
2024-09-04 06:54:22 +00:00
|
|
|
)
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
type QHeaderView struct {
|
|
|
|
h *C.QHeaderView
|
|
|
|
*QAbstractItemView
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) cPointer() *C.QHeaderView {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func (this *QHeaderView) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func newQHeaderView(h *C.QHeaderView) *QHeaderView {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-10-16 05:07:56 +00:00
|
|
|
return &QHeaderView{h: h, QAbstractItemView: UnsafeNewQAbstractItemView(unsafe.Pointer(h))}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func UnsafeNewQHeaderView(h unsafe.Pointer) *QHeaderView {
|
2024-08-25 04:08:24 +00:00
|
|
|
return newQHeaderView((*C.QHeaderView)(h))
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
// NewQHeaderView constructs a new QHeaderView object.
|
2024-09-04 06:54:22 +00:00
|
|
|
func NewQHeaderView(orientation Orientation) *QHeaderView {
|
2024-09-18 00:12:02 +00:00
|
|
|
ret := C.QHeaderView_new((C.int)(orientation))
|
2024-08-29 07:01:51 +00:00
|
|
|
return newQHeaderView(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewQHeaderView2 constructs a new QHeaderView object.
|
2024-09-04 06:54:22 +00:00
|
|
|
func NewQHeaderView2(orientation Orientation, parent *QWidget) *QHeaderView {
|
2024-09-18 00:12:02 +00:00
|
|
|
ret := C.QHeaderView_new2((C.int)(orientation), parent.cPointer())
|
2024-08-29 07:01:51 +00:00
|
|
|
return newQHeaderView(ret)
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QHeaderView) MetaObject() *QMetaObject {
|
2024-10-16 05:07:56 +00:00
|
|
|
return UnsafeNewQMetaObject(unsafe.Pointer(C.QHeaderView_MetaObject(this.h)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 22:32:57 +00:00
|
|
|
func (this *QHeaderView) Metacast(param1 string) unsafe.Pointer {
|
|
|
|
param1_Cstring := C.CString(param1)
|
|
|
|
defer C.free(unsafe.Pointer(param1_Cstring))
|
2024-10-18 23:53:33 +00:00
|
|
|
return (unsafe.Pointer)(C.QHeaderView_Metacast(this.h, param1_Cstring))
|
2024-09-20 22:32:57 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func QHeaderView_Tr(s string) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
2024-10-18 23:53:33 +00:00
|
|
|
var _ms C.struct_miqt_string = C.QHeaderView_Tr(s_Cstring)
|
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QHeaderView_TrUtf8(s string) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
2024-10-18 23:53:33 +00:00
|
|
|
var _ms C.struct_miqt_string = C.QHeaderView_TrUtf8(s_Cstring)
|
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) SetModel(model *QAbstractItemModel) {
|
|
|
|
C.QHeaderView_SetModel(this.h, model.cPointer())
|
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QHeaderView) Orientation() Orientation {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (Orientation)(C.QHeaderView_Orientation(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QHeaderView) Offset() int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QHeaderView_Offset(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) Length() int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QHeaderView_Length(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) SizeHint() *QSize {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QHeaderView_SizeHint(this.h)
|
|
|
|
_goptr := newQSize(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) SetVisible(v bool) {
|
|
|
|
C.QHeaderView_SetVisible(this.h, (C.bool)(v))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) SectionSizeHint(logicalIndex int) int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QHeaderView_SectionSizeHint(this.h, (C.int)(logicalIndex)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) VisualIndexAt(position int) int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QHeaderView_VisualIndexAt(this.h, (C.int)(position)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) LogicalIndexAt(position int) int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QHeaderView_LogicalIndexAt(this.h, (C.int)(position)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) LogicalIndexAt2(x int, y int) int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QHeaderView_LogicalIndexAt2(this.h, (C.int)(x), (C.int)(y)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) LogicalIndexAtWithPos(pos *QPoint) int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QHeaderView_LogicalIndexAtWithPos(this.h, pos.cPointer()))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) SectionSize(logicalIndex int) int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QHeaderView_SectionSize(this.h, (C.int)(logicalIndex)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) SectionPosition(logicalIndex int) int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QHeaderView_SectionPosition(this.h, (C.int)(logicalIndex)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) SectionViewportPosition(logicalIndex int) int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QHeaderView_SectionViewportPosition(this.h, (C.int)(logicalIndex)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) MoveSection(from int, to int) {
|
|
|
|
C.QHeaderView_MoveSection(this.h, (C.int)(from), (C.int)(to))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) SwapSections(first int, second int) {
|
|
|
|
C.QHeaderView_SwapSections(this.h, (C.int)(first), (C.int)(second))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) ResizeSection(logicalIndex int, size int) {
|
|
|
|
C.QHeaderView_ResizeSection(this.h, (C.int)(logicalIndex), (C.int)(size))
|
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QHeaderView) ResizeSections(mode QHeaderView__ResizeMode) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QHeaderView_ResizeSections(this.h, (C.int)(mode))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QHeaderView) IsSectionHidden(logicalIndex int) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QHeaderView_IsSectionHidden(this.h, (C.int)(logicalIndex)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) SetSectionHidden(logicalIndex int, hide bool) {
|
|
|
|
C.QHeaderView_SetSectionHidden(this.h, (C.int)(logicalIndex), (C.bool)(hide))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) HiddenSectionCount() int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QHeaderView_HiddenSectionCount(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) HideSection(logicalIndex int) {
|
|
|
|
C.QHeaderView_HideSection(this.h, (C.int)(logicalIndex))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) ShowSection(logicalIndex int) {
|
|
|
|
C.QHeaderView_ShowSection(this.h, (C.int)(logicalIndex))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) Count() int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QHeaderView_Count(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) VisualIndex(logicalIndex int) int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QHeaderView_VisualIndex(this.h, (C.int)(logicalIndex)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) LogicalIndex(visualIndex int) int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QHeaderView_LogicalIndex(this.h, (C.int)(visualIndex)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) SetSectionsMovable(movable bool) {
|
|
|
|
C.QHeaderView_SetSectionsMovable(this.h, (C.bool)(movable))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) SectionsMovable() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QHeaderView_SectionsMovable(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) SetFirstSectionMovable(movable bool) {
|
|
|
|
C.QHeaderView_SetFirstSectionMovable(this.h, (C.bool)(movable))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) IsFirstSectionMovable() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QHeaderView_IsFirstSectionMovable(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) SetSectionsClickable(clickable bool) {
|
|
|
|
C.QHeaderView_SetSectionsClickable(this.h, (C.bool)(clickable))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) SectionsClickable() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QHeaderView_SectionsClickable(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) SetHighlightSections(highlight bool) {
|
|
|
|
C.QHeaderView_SetHighlightSections(this.h, (C.bool)(highlight))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) HighlightSections() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QHeaderView_HighlightSections(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QHeaderView) SectionResizeMode(logicalIndex int) QHeaderView__ResizeMode {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (QHeaderView__ResizeMode)(C.QHeaderView_SectionResizeMode(this.h, (C.int)(logicalIndex)))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QHeaderView) SetSectionResizeMode(mode QHeaderView__ResizeMode) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QHeaderView_SetSectionResizeMode(this.h, (C.int)(mode))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QHeaderView) SetSectionResizeMode2(logicalIndex int, mode QHeaderView__ResizeMode) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QHeaderView_SetSectionResizeMode2(this.h, (C.int)(logicalIndex), (C.int)(mode))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QHeaderView) SetResizeContentsPrecision(precision int) {
|
|
|
|
C.QHeaderView_SetResizeContentsPrecision(this.h, (C.int)(precision))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) ResizeContentsPrecision() int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QHeaderView_ResizeContentsPrecision(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) StretchSectionCount() int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QHeaderView_StretchSectionCount(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) SetSortIndicatorShown(show bool) {
|
|
|
|
C.QHeaderView_SetSortIndicatorShown(this.h, (C.bool)(show))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) IsSortIndicatorShown() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QHeaderView_IsSortIndicatorShown(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QHeaderView) SetSortIndicator(logicalIndex int, order SortOrder) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QHeaderView_SetSortIndicator(this.h, (C.int)(logicalIndex), (C.int)(order))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QHeaderView) SortIndicatorSection() int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QHeaderView_SortIndicatorSection(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QHeaderView) SortIndicatorOrder() SortOrder {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (SortOrder)(C.QHeaderView_SortIndicatorOrder(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QHeaderView) StretchLastSection() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QHeaderView_StretchLastSection(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) SetStretchLastSection(stretch bool) {
|
|
|
|
C.QHeaderView_SetStretchLastSection(this.h, (C.bool)(stretch))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) CascadingSectionResizes() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QHeaderView_CascadingSectionResizes(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) SetCascadingSectionResizes(enable bool) {
|
|
|
|
C.QHeaderView_SetCascadingSectionResizes(this.h, (C.bool)(enable))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) DefaultSectionSize() int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QHeaderView_DefaultSectionSize(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) SetDefaultSectionSize(size int) {
|
|
|
|
C.QHeaderView_SetDefaultSectionSize(this.h, (C.int)(size))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) ResetDefaultSectionSize() {
|
|
|
|
C.QHeaderView_ResetDefaultSectionSize(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) MinimumSectionSize() int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QHeaderView_MinimumSectionSize(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) SetMinimumSectionSize(size int) {
|
|
|
|
C.QHeaderView_SetMinimumSectionSize(this.h, (C.int)(size))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) MaximumSectionSize() int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QHeaderView_MaximumSectionSize(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) SetMaximumSectionSize(size int) {
|
|
|
|
C.QHeaderView_SetMaximumSectionSize(this.h, (C.int)(size))
|
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func (this *QHeaderView) DefaultAlignment() AlignmentFlag {
|
|
|
|
return (AlignmentFlag)(C.QHeaderView_DefaultAlignment(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func (this *QHeaderView) SetDefaultAlignment(alignment AlignmentFlag) {
|
2024-09-18 01:33:50 +00:00
|
|
|
C.QHeaderView_SetDefaultAlignment(this.h, (C.int)(alignment))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QHeaderView) DoItemsLayout() {
|
|
|
|
C.QHeaderView_DoItemsLayout(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) SectionsMoved() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QHeaderView_SectionsMoved(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) SectionsHidden() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QHeaderView_SectionsHidden(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
func (this *QHeaderView) SaveState() []byte {
|
|
|
|
var _bytearray C.struct_miqt_string = C.QHeaderView_SaveState(this.h)
|
|
|
|
_ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len)))
|
|
|
|
C.free(unsafe.Pointer(_bytearray.data))
|
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
func (this *QHeaderView) RestoreState(state []byte) bool {
|
|
|
|
state_alias := C.struct_miqt_string{}
|
|
|
|
state_alias.data = (*C.char)(unsafe.Pointer(&state[0]))
|
|
|
|
state_alias.len = C.size_t(len(state))
|
|
|
|
return (bool)(C.QHeaderView_RestoreState(this.h, state_alias))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) Reset() {
|
|
|
|
C.QHeaderView_Reset(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) SetOffset(offset int) {
|
|
|
|
C.QHeaderView_SetOffset(this.h, (C.int)(offset))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) SetOffsetToSectionPosition(visualIndex int) {
|
|
|
|
C.QHeaderView_SetOffsetToSectionPosition(this.h, (C.int)(visualIndex))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) SetOffsetToLastSection() {
|
|
|
|
C.QHeaderView_SetOffsetToLastSection(this.h)
|
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QHeaderView) HeaderDataChanged(orientation Orientation, logicalFirst int, logicalLast int) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QHeaderView_HeaderDataChanged(this.h, (C.int)(orientation), (C.int)(logicalFirst), (C.int)(logicalLast))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QHeaderView) SectionMoved(logicalIndex int, oldVisualIndex int, newVisualIndex int) {
|
|
|
|
C.QHeaderView_SectionMoved(this.h, (C.int)(logicalIndex), (C.int)(oldVisualIndex), (C.int)(newVisualIndex))
|
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
func (this *QHeaderView) OnSectionMoved(slot func(logicalIndex int, oldVisualIndex int, newVisualIndex int)) {
|
2024-10-13 06:06:06 +00:00
|
|
|
C.QHeaderView_connect_SectionMoved(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
2024-09-14 22:29:05 +00:00
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
//export miqt_exec_callback_QHeaderView_SectionMoved
|
2024-10-13 06:06:06 +00:00
|
|
|
func miqt_exec_callback_QHeaderView_SectionMoved(cb C.intptr_t, logicalIndex C.int, oldVisualIndex C.int, newVisualIndex C.int) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(logicalIndex int, oldVisualIndex int, newVisualIndex int))
|
2024-09-14 22:29:05 +00:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Convert all CABI parameters to Go parameters
|
2024-09-17 07:30:27 +00:00
|
|
|
slotval1 := (int)(logicalIndex)
|
2024-09-14 22:29:05 +00:00
|
|
|
|
2024-09-17 07:30:27 +00:00
|
|
|
slotval2 := (int)(oldVisualIndex)
|
2024-09-14 22:29:05 +00:00
|
|
|
|
2024-09-17 07:30:27 +00:00
|
|
|
slotval3 := (int)(newVisualIndex)
|
2024-09-14 22:29:05 +00:00
|
|
|
|
|
|
|
gofunc(slotval1, slotval2, slotval3)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) SectionResized(logicalIndex int, oldSize int, newSize int) {
|
|
|
|
C.QHeaderView_SectionResized(this.h, (C.int)(logicalIndex), (C.int)(oldSize), (C.int)(newSize))
|
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
func (this *QHeaderView) OnSectionResized(slot func(logicalIndex int, oldSize int, newSize int)) {
|
2024-10-13 06:06:06 +00:00
|
|
|
C.QHeaderView_connect_SectionResized(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
2024-09-14 22:29:05 +00:00
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
//export miqt_exec_callback_QHeaderView_SectionResized
|
2024-10-13 06:06:06 +00:00
|
|
|
func miqt_exec_callback_QHeaderView_SectionResized(cb C.intptr_t, logicalIndex C.int, oldSize C.int, newSize C.int) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(logicalIndex int, oldSize int, newSize int))
|
2024-09-14 22:29:05 +00:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Convert all CABI parameters to Go parameters
|
2024-09-17 07:30:27 +00:00
|
|
|
slotval1 := (int)(logicalIndex)
|
2024-09-14 22:29:05 +00:00
|
|
|
|
2024-09-17 07:30:27 +00:00
|
|
|
slotval2 := (int)(oldSize)
|
2024-09-14 22:29:05 +00:00
|
|
|
|
2024-09-17 07:30:27 +00:00
|
|
|
slotval3 := (int)(newSize)
|
2024-09-14 22:29:05 +00:00
|
|
|
|
|
|
|
gofunc(slotval1, slotval2, slotval3)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) SectionPressed(logicalIndex int) {
|
|
|
|
C.QHeaderView_SectionPressed(this.h, (C.int)(logicalIndex))
|
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
func (this *QHeaderView) OnSectionPressed(slot func(logicalIndex int)) {
|
2024-10-13 06:06:06 +00:00
|
|
|
C.QHeaderView_connect_SectionPressed(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
2024-09-14 22:29:05 +00:00
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
//export miqt_exec_callback_QHeaderView_SectionPressed
|
2024-10-13 06:06:06 +00:00
|
|
|
func miqt_exec_callback_QHeaderView_SectionPressed(cb C.intptr_t, logicalIndex C.int) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(logicalIndex int))
|
2024-09-14 22:29:05 +00:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Convert all CABI parameters to Go parameters
|
2024-09-17 07:30:27 +00:00
|
|
|
slotval1 := (int)(logicalIndex)
|
2024-09-14 22:29:05 +00:00
|
|
|
|
|
|
|
gofunc(slotval1)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) SectionClicked(logicalIndex int) {
|
|
|
|
C.QHeaderView_SectionClicked(this.h, (C.int)(logicalIndex))
|
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
func (this *QHeaderView) OnSectionClicked(slot func(logicalIndex int)) {
|
2024-10-13 06:06:06 +00:00
|
|
|
C.QHeaderView_connect_SectionClicked(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
2024-09-14 22:29:05 +00:00
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
//export miqt_exec_callback_QHeaderView_SectionClicked
|
2024-10-13 06:06:06 +00:00
|
|
|
func miqt_exec_callback_QHeaderView_SectionClicked(cb C.intptr_t, logicalIndex C.int) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(logicalIndex int))
|
2024-09-14 22:29:05 +00:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Convert all CABI parameters to Go parameters
|
2024-09-17 07:30:27 +00:00
|
|
|
slotval1 := (int)(logicalIndex)
|
2024-09-14 22:29:05 +00:00
|
|
|
|
|
|
|
gofunc(slotval1)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) SectionEntered(logicalIndex int) {
|
|
|
|
C.QHeaderView_SectionEntered(this.h, (C.int)(logicalIndex))
|
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
func (this *QHeaderView) OnSectionEntered(slot func(logicalIndex int)) {
|
2024-10-13 06:06:06 +00:00
|
|
|
C.QHeaderView_connect_SectionEntered(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
2024-09-14 22:29:05 +00:00
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
//export miqt_exec_callback_QHeaderView_SectionEntered
|
2024-10-13 06:06:06 +00:00
|
|
|
func miqt_exec_callback_QHeaderView_SectionEntered(cb C.intptr_t, logicalIndex C.int) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(logicalIndex int))
|
2024-09-14 22:29:05 +00:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Convert all CABI parameters to Go parameters
|
2024-09-17 07:30:27 +00:00
|
|
|
slotval1 := (int)(logicalIndex)
|
2024-09-14 22:29:05 +00:00
|
|
|
|
|
|
|
gofunc(slotval1)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) SectionDoubleClicked(logicalIndex int) {
|
|
|
|
C.QHeaderView_SectionDoubleClicked(this.h, (C.int)(logicalIndex))
|
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
func (this *QHeaderView) OnSectionDoubleClicked(slot func(logicalIndex int)) {
|
2024-10-13 06:06:06 +00:00
|
|
|
C.QHeaderView_connect_SectionDoubleClicked(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
2024-09-14 22:29:05 +00:00
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
//export miqt_exec_callback_QHeaderView_SectionDoubleClicked
|
2024-10-13 06:06:06 +00:00
|
|
|
func miqt_exec_callback_QHeaderView_SectionDoubleClicked(cb C.intptr_t, logicalIndex C.int) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(logicalIndex int))
|
2024-09-14 22:29:05 +00:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Convert all CABI parameters to Go parameters
|
2024-09-17 07:30:27 +00:00
|
|
|
slotval1 := (int)(logicalIndex)
|
2024-09-14 22:29:05 +00:00
|
|
|
|
|
|
|
gofunc(slotval1)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) SectionCountChanged(oldCount int, newCount int) {
|
|
|
|
C.QHeaderView_SectionCountChanged(this.h, (C.int)(oldCount), (C.int)(newCount))
|
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
func (this *QHeaderView) OnSectionCountChanged(slot func(oldCount int, newCount int)) {
|
2024-10-13 06:06:06 +00:00
|
|
|
C.QHeaderView_connect_SectionCountChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
2024-09-14 22:29:05 +00:00
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
//export miqt_exec_callback_QHeaderView_SectionCountChanged
|
2024-10-13 06:06:06 +00:00
|
|
|
func miqt_exec_callback_QHeaderView_SectionCountChanged(cb C.intptr_t, oldCount C.int, newCount C.int) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(oldCount int, newCount int))
|
2024-09-14 22:29:05 +00:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Convert all CABI parameters to Go parameters
|
2024-09-17 07:30:27 +00:00
|
|
|
slotval1 := (int)(oldCount)
|
2024-09-14 22:29:05 +00:00
|
|
|
|
2024-09-17 07:30:27 +00:00
|
|
|
slotval2 := (int)(newCount)
|
2024-09-14 22:29:05 +00:00
|
|
|
|
|
|
|
gofunc(slotval1, slotval2)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) SectionHandleDoubleClicked(logicalIndex int) {
|
|
|
|
C.QHeaderView_SectionHandleDoubleClicked(this.h, (C.int)(logicalIndex))
|
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
func (this *QHeaderView) OnSectionHandleDoubleClicked(slot func(logicalIndex int)) {
|
2024-10-13 06:06:06 +00:00
|
|
|
C.QHeaderView_connect_SectionHandleDoubleClicked(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
2024-09-14 22:29:05 +00:00
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
//export miqt_exec_callback_QHeaderView_SectionHandleDoubleClicked
|
2024-10-13 06:06:06 +00:00
|
|
|
func miqt_exec_callback_QHeaderView_SectionHandleDoubleClicked(cb C.intptr_t, logicalIndex C.int) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(logicalIndex int))
|
2024-09-14 22:29:05 +00:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Convert all CABI parameters to Go parameters
|
2024-09-17 07:30:27 +00:00
|
|
|
slotval1 := (int)(logicalIndex)
|
2024-09-14 22:29:05 +00:00
|
|
|
|
|
|
|
gofunc(slotval1)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QHeaderView) GeometriesChanged() {
|
|
|
|
C.QHeaderView_GeometriesChanged(this.h)
|
|
|
|
}
|
|
|
|
func (this *QHeaderView) OnGeometriesChanged(slot func()) {
|
2024-10-13 06:06:06 +00:00
|
|
|
C.QHeaderView_connect_GeometriesChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
2024-09-14 22:29:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QHeaderView_GeometriesChanged
|
2024-10-13 06:06:06 +00:00
|
|
|
func miqt_exec_callback_QHeaderView_GeometriesChanged(cb C.intptr_t) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func())
|
2024-09-14 22:29:05 +00:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
gofunc()
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QHeaderView) SortIndicatorChanged(logicalIndex int, order SortOrder) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QHeaderView_SortIndicatorChanged(this.h, (C.int)(logicalIndex), (C.int)(order))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
func (this *QHeaderView) OnSortIndicatorChanged(slot func(logicalIndex int, order SortOrder)) {
|
2024-10-13 06:06:06 +00:00
|
|
|
C.QHeaderView_connect_SortIndicatorChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
2024-09-14 22:29:05 +00:00
|
|
|
}
|
2024-08-29 07:01:51 +00:00
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
//export miqt_exec_callback_QHeaderView_SortIndicatorChanged
|
2024-10-13 06:06:06 +00:00
|
|
|
func miqt_exec_callback_QHeaderView_SortIndicatorChanged(cb C.intptr_t, logicalIndex C.int, order C.int) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(logicalIndex int, order SortOrder))
|
2024-09-14 22:29:05 +00:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Convert all CABI parameters to Go parameters
|
2024-09-17 07:30:27 +00:00
|
|
|
slotval1 := (int)(logicalIndex)
|
2024-09-14 22:29:05 +00:00
|
|
|
|
2024-09-17 07:30:27 +00:00
|
|
|
slotval2 := (SortOrder)(order)
|
2024-09-14 22:29:05 +00:00
|
|
|
|
|
|
|
gofunc(slotval1, slotval2)
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func QHeaderView_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))
|
2024-10-18 23:53:33 +00:00
|
|
|
var _ms C.struct_miqt_string = C.QHeaderView_Tr2(s_Cstring, c_Cstring)
|
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QHeaderView_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))
|
2024-10-18 23:53:33 +00:00
|
|
|
var _ms C.struct_miqt_string = C.QHeaderView_Tr3(s_Cstring, c_Cstring, (C.int)(n))
|
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QHeaderView_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))
|
2024-10-18 23:53:33 +00:00
|
|
|
var _ms C.struct_miqt_string = C.QHeaderView_TrUtf82(s_Cstring, c_Cstring)
|
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QHeaderView_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))
|
2024-10-18 23:53:33 +00:00
|
|
|
var _ms C.struct_miqt_string = C.QHeaderView_TrUtf83(s_Cstring, c_Cstring, (C.int)(n))
|
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Delete this object from C++ memory.
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QHeaderView) Delete() {
|
|
|
|
C.QHeaderView_Delete(this.h)
|
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
|
|
|
|
// GoGC adds a Go Finalizer to this pointer, so that it will be deleted
|
|
|
|
// from C++ memory once it is unreachable from Go memory.
|
|
|
|
func (this *QHeaderView) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QHeaderView) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|