2024-08-25 04:08:24 +00:00
|
|
|
package qt
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
#include "gen_qtreewidgetitemiterator.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
*/
|
|
|
|
import "C"
|
|
|
|
|
|
|
|
import (
|
|
|
|
"runtime"
|
|
|
|
"unsafe"
|
|
|
|
)
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
type QTreeWidgetItemIterator__IteratorFlag int
|
|
|
|
|
|
|
|
const (
|
2024-09-20 07:13:26 +00:00
|
|
|
QTreeWidgetItemIterator__All QTreeWidgetItemIterator__IteratorFlag = 0
|
|
|
|
QTreeWidgetItemIterator__Hidden QTreeWidgetItemIterator__IteratorFlag = 1
|
|
|
|
QTreeWidgetItemIterator__NotHidden QTreeWidgetItemIterator__IteratorFlag = 2
|
|
|
|
QTreeWidgetItemIterator__Selected QTreeWidgetItemIterator__IteratorFlag = 4
|
|
|
|
QTreeWidgetItemIterator__Unselected QTreeWidgetItemIterator__IteratorFlag = 8
|
|
|
|
QTreeWidgetItemIterator__Selectable QTreeWidgetItemIterator__IteratorFlag = 16
|
|
|
|
QTreeWidgetItemIterator__NotSelectable QTreeWidgetItemIterator__IteratorFlag = 32
|
|
|
|
QTreeWidgetItemIterator__DragEnabled QTreeWidgetItemIterator__IteratorFlag = 64
|
|
|
|
QTreeWidgetItemIterator__DragDisabled QTreeWidgetItemIterator__IteratorFlag = 128
|
|
|
|
QTreeWidgetItemIterator__DropEnabled QTreeWidgetItemIterator__IteratorFlag = 256
|
|
|
|
QTreeWidgetItemIterator__DropDisabled QTreeWidgetItemIterator__IteratorFlag = 512
|
|
|
|
QTreeWidgetItemIterator__HasChildren QTreeWidgetItemIterator__IteratorFlag = 1024
|
|
|
|
QTreeWidgetItemIterator__NoChildren QTreeWidgetItemIterator__IteratorFlag = 2048
|
|
|
|
QTreeWidgetItemIterator__Checked QTreeWidgetItemIterator__IteratorFlag = 4096
|
|
|
|
QTreeWidgetItemIterator__NotChecked QTreeWidgetItemIterator__IteratorFlag = 8192
|
|
|
|
QTreeWidgetItemIterator__Enabled QTreeWidgetItemIterator__IteratorFlag = 16384
|
|
|
|
QTreeWidgetItemIterator__Disabled QTreeWidgetItemIterator__IteratorFlag = 32768
|
|
|
|
QTreeWidgetItemIterator__Editable QTreeWidgetItemIterator__IteratorFlag = 65536
|
|
|
|
QTreeWidgetItemIterator__NotEditable QTreeWidgetItemIterator__IteratorFlag = 131072
|
|
|
|
QTreeWidgetItemIterator__UserFlag QTreeWidgetItemIterator__IteratorFlag = 16777216
|
2024-09-04 06:54:22 +00:00
|
|
|
)
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
type QTreeWidgetItemIterator struct {
|
2024-11-19 06:29:06 +00:00
|
|
|
h *C.QTreeWidgetItemIterator
|
|
|
|
isSubclass bool
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeWidgetItemIterator) cPointer() *C.QTreeWidgetItemIterator {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func (this *QTreeWidgetItemIterator) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// newQTreeWidgetItemIterator constructs the type using only CGO pointers.
|
2024-08-25 04:08:24 +00:00
|
|
|
func newQTreeWidgetItemIterator(h *C.QTreeWidgetItemIterator) *QTreeWidgetItemIterator {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
return &QTreeWidgetItemIterator{h: h}
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// UnsafeNewQTreeWidgetItemIterator constructs the type using only unsafe pointers.
|
2024-10-16 05:07:56 +00:00
|
|
|
func UnsafeNewQTreeWidgetItemIterator(h unsafe.Pointer) *QTreeWidgetItemIterator {
|
2024-11-19 06:29:06 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
return &QTreeWidgetItemIterator{h: (*C.QTreeWidgetItemIterator)(h)}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQTreeWidgetItemIterator constructs a new QTreeWidgetItemIterator object.
|
|
|
|
func NewQTreeWidgetItemIterator(it *QTreeWidgetItemIterator) *QTreeWidgetItemIterator {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QTreeWidgetItemIterator *C.QTreeWidgetItemIterator = nil
|
|
|
|
|
|
|
|
C.QTreeWidgetItemIterator_new(it.cPointer(), &outptr_QTreeWidgetItemIterator)
|
|
|
|
ret := newQTreeWidgetItemIterator(outptr_QTreeWidgetItemIterator)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
// NewQTreeWidgetItemIterator2 constructs a new QTreeWidgetItemIterator object.
|
|
|
|
func NewQTreeWidgetItemIterator2(widget *QTreeWidget) *QTreeWidgetItemIterator {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QTreeWidgetItemIterator *C.QTreeWidgetItemIterator = nil
|
|
|
|
|
|
|
|
C.QTreeWidgetItemIterator_new2(widget.cPointer(), &outptr_QTreeWidgetItemIterator)
|
|
|
|
ret := newQTreeWidgetItemIterator(outptr_QTreeWidgetItemIterator)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQTreeWidgetItemIterator3 constructs a new QTreeWidgetItemIterator object.
|
|
|
|
func NewQTreeWidgetItemIterator3(item *QTreeWidgetItem) *QTreeWidgetItemIterator {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QTreeWidgetItemIterator *C.QTreeWidgetItemIterator = nil
|
|
|
|
|
|
|
|
C.QTreeWidgetItemIterator_new3(item.cPointer(), &outptr_QTreeWidgetItemIterator)
|
|
|
|
ret := newQTreeWidgetItemIterator(outptr_QTreeWidgetItemIterator)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQTreeWidgetItemIterator4 constructs a new QTreeWidgetItemIterator object.
|
2024-09-20 06:40:03 +00:00
|
|
|
func NewQTreeWidgetItemIterator4(widget *QTreeWidget, flags QTreeWidgetItemIterator__IteratorFlag) *QTreeWidgetItemIterator {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QTreeWidgetItemIterator *C.QTreeWidgetItemIterator = nil
|
|
|
|
|
|
|
|
C.QTreeWidgetItemIterator_new4(widget.cPointer(), (C.int)(flags), &outptr_QTreeWidgetItemIterator)
|
|
|
|
ret := newQTreeWidgetItemIterator(outptr_QTreeWidgetItemIterator)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQTreeWidgetItemIterator5 constructs a new QTreeWidgetItemIterator object.
|
2024-09-20 06:40:03 +00:00
|
|
|
func NewQTreeWidgetItemIterator5(item *QTreeWidgetItem, flags QTreeWidgetItemIterator__IteratorFlag) *QTreeWidgetItemIterator {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QTreeWidgetItemIterator *C.QTreeWidgetItemIterator = nil
|
|
|
|
|
|
|
|
C.QTreeWidgetItemIterator_new5(item.cPointer(), (C.int)(flags), &outptr_QTreeWidgetItemIterator)
|
|
|
|
ret := newQTreeWidgetItemIterator(outptr_QTreeWidgetItemIterator)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QTreeWidgetItemIterator) OperatorAssign(it *QTreeWidgetItemIterator) {
|
|
|
|
C.QTreeWidgetItemIterator_OperatorAssign(this.h, it.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeWidgetItemIterator) OperatorPlusPlus() *QTreeWidgetItemIterator {
|
2024-10-16 05:07:56 +00:00
|
|
|
return UnsafeNewQTreeWidgetItemIterator(unsafe.Pointer(C.QTreeWidgetItemIterator_OperatorPlusPlus(this.h)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeWidgetItemIterator) OperatorPlusPlusWithInt(param1 int) *QTreeWidgetItemIterator {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTreeWidgetItemIterator_OperatorPlusPlusWithInt(this.h, (C.int)(param1))
|
|
|
|
_goptr := newQTreeWidgetItemIterator(_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 *QTreeWidgetItemIterator) OperatorPlusAssign(n int) *QTreeWidgetItemIterator {
|
2024-10-16 05:07:56 +00:00
|
|
|
return UnsafeNewQTreeWidgetItemIterator(unsafe.Pointer(C.QTreeWidgetItemIterator_OperatorPlusAssign(this.h, (C.int)(n))))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeWidgetItemIterator) OperatorMinusMinus() *QTreeWidgetItemIterator {
|
2024-10-16 05:07:56 +00:00
|
|
|
return UnsafeNewQTreeWidgetItemIterator(unsafe.Pointer(C.QTreeWidgetItemIterator_OperatorMinusMinus(this.h)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeWidgetItemIterator) OperatorMinusMinusWithInt(param1 int) *QTreeWidgetItemIterator {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QTreeWidgetItemIterator_OperatorMinusMinusWithInt(this.h, (C.int)(param1))
|
|
|
|
_goptr := newQTreeWidgetItemIterator(_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 *QTreeWidgetItemIterator) OperatorMinusAssign(n int) *QTreeWidgetItemIterator {
|
2024-10-16 05:07:56 +00:00
|
|
|
return UnsafeNewQTreeWidgetItemIterator(unsafe.Pointer(C.QTreeWidgetItemIterator_OperatorMinusAssign(this.h, (C.int)(n))))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTreeWidgetItemIterator) OperatorMultiply() *QTreeWidgetItem {
|
2024-10-16 05:07:56 +00:00
|
|
|
return UnsafeNewQTreeWidgetItem(unsafe.Pointer(C.QTreeWidgetItemIterator_OperatorMultiply(this.h)))
|
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 *QTreeWidgetItemIterator) Delete() {
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QTreeWidgetItemIterator_Delete(this.h, C.bool(this.isSubclass))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
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 *QTreeWidgetItemIterator) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QTreeWidgetItemIterator) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|