2024-10-20 18:21:03 +13:00
|
|
|
package qt6
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
#include "gen_qmetacontainer.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
*/
|
|
|
|
import "C"
|
|
|
|
|
|
|
|
import (
|
|
|
|
"runtime"
|
|
|
|
"unsafe"
|
|
|
|
)
|
|
|
|
|
2024-11-19 20:01:02 +13:00
|
|
|
type QtMetaContainerPrivate__IteratorCapability byte
|
2024-10-20 18:21:03 +13:00
|
|
|
|
2024-11-19 20:01:02 +13:00
|
|
|
const (
|
|
|
|
QtMetaContainerPrivate__InputCapability QtMetaContainerPrivate__IteratorCapability = 1
|
|
|
|
QtMetaContainerPrivate__ForwardCapability QtMetaContainerPrivate__IteratorCapability = 2
|
|
|
|
QtMetaContainerPrivate__BiDirectionalCapability QtMetaContainerPrivate__IteratorCapability = 4
|
|
|
|
QtMetaContainerPrivate__RandomAccessCapability QtMetaContainerPrivate__IteratorCapability = 8
|
2024-10-20 18:21:03 +13:00
|
|
|
)
|
|
|
|
|
2024-11-19 20:01:02 +13:00
|
|
|
type QtMetaContainerPrivate__AddRemoveCapability byte
|
2024-10-20 18:21:03 +13:00
|
|
|
|
2024-11-19 20:01:02 +13:00
|
|
|
const (
|
|
|
|
QtMetaContainerPrivate__CanAddAtBegin QtMetaContainerPrivate__AddRemoveCapability = 1
|
|
|
|
QtMetaContainerPrivate__CanRemoveAtBegin QtMetaContainerPrivate__AddRemoveCapability = 2
|
|
|
|
QtMetaContainerPrivate__CanAddAtEnd QtMetaContainerPrivate__AddRemoveCapability = 4
|
|
|
|
QtMetaContainerPrivate__CanRemoveAtEnd QtMetaContainerPrivate__AddRemoveCapability = 8
|
|
|
|
)
|
|
|
|
|
|
|
|
type QtMetaContainerPrivate__QMetaContainerInterface__Position byte
|
2024-10-20 18:21:03 +13:00
|
|
|
|
2024-11-19 20:01:02 +13:00
|
|
|
const (
|
|
|
|
QtMetaContainerPrivate__QMetaContainerInterface__AtBegin QtMetaContainerPrivate__QMetaContainerInterface__Position = 0
|
|
|
|
QtMetaContainerPrivate__QMetaContainerInterface__AtEnd QtMetaContainerPrivate__QMetaContainerInterface__Position = 1
|
|
|
|
QtMetaContainerPrivate__QMetaContainerInterface__Unspecified QtMetaContainerPrivate__QMetaContainerInterface__Position = 2
|
2024-10-20 18:21:03 +13:00
|
|
|
)
|
|
|
|
|
2024-11-19 20:01:02 +13:00
|
|
|
type QMetaContainer struct {
|
2025-01-18 17:57:48 +13:00
|
|
|
h *C.QMetaContainer
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
2024-10-20 18:21:03 +13:00
|
|
|
|
2024-11-19 20:01:02 +13:00
|
|
|
func (this *QMetaContainer) cPointer() *C.QMetaContainer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
2024-10-20 18:21:03 +13:00
|
|
|
|
2024-11-19 20:01:02 +13:00
|
|
|
func (this *QMetaContainer) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
// newQMetaContainer constructs the type using only CGO pointers.
|
|
|
|
func newQMetaContainer(h *C.QMetaContainer) *QMetaContainer {
|
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-12-07 17:15:57 +13:00
|
|
|
|
2024-11-19 20:01:02 +13:00
|
|
|
return &QMetaContainer{h: h}
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnsafeNewQMetaContainer constructs the type using only unsafe pointers.
|
|
|
|
func UnsafeNewQMetaContainer(h unsafe.Pointer) *QMetaContainer {
|
2024-12-07 17:15:57 +13:00
|
|
|
return newQMetaContainer((*C.QMetaContainer)(h))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQMetaContainer constructs a new QMetaContainer object.
|
|
|
|
func NewQMetaContainer() *QMetaContainer {
|
|
|
|
|
2025-01-18 17:57:48 +13:00
|
|
|
return newQMetaContainer(C.QMetaContainer_new())
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQMetaContainer2 constructs a new QMetaContainer object.
|
|
|
|
func NewQMetaContainer2(param1 *QMetaContainer) *QMetaContainer {
|
|
|
|
|
2025-01-18 17:57:48 +13:00
|
|
|
return newQMetaContainer(C.QMetaContainer_new2(param1.cPointer()))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaContainer) HasInputIterator() bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMetaContainer_hasInputIterator(this.h))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaContainer) HasForwardIterator() bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMetaContainer_hasForwardIterator(this.h))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaContainer) HasBidirectionalIterator() bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMetaContainer_hasBidirectionalIterator(this.h))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaContainer) HasRandomAccessIterator() bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMetaContainer_hasRandomAccessIterator(this.h))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaContainer) HasSize() bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMetaContainer_hasSize(this.h))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaContainer) Size(container unsafe.Pointer) int64 {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (int64)(C.QMetaContainer_size(this.h, container))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaContainer) CanClear() bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMetaContainer_canClear(this.h))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaContainer) Clear(container unsafe.Pointer) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMetaContainer_clear(this.h, container)
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaContainer) HasIterator() bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMetaContainer_hasIterator(this.h))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaContainer) Begin(container unsafe.Pointer) unsafe.Pointer {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (unsafe.Pointer)(C.QMetaContainer_begin(this.h, container))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaContainer) End(container unsafe.Pointer) unsafe.Pointer {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (unsafe.Pointer)(C.QMetaContainer_end(this.h, container))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaContainer) DestroyIterator(iterator unsafe.Pointer) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMetaContainer_destroyIterator(this.h, iterator)
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaContainer) CompareIterator(i unsafe.Pointer, j unsafe.Pointer) bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMetaContainer_compareIterator(this.h, i, j))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaContainer) CopyIterator(target unsafe.Pointer, source unsafe.Pointer) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMetaContainer_copyIterator(this.h, target, source)
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaContainer) AdvanceIterator(iterator unsafe.Pointer, step int64) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMetaContainer_advanceIterator(this.h, iterator, (C.ptrdiff_t)(step))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaContainer) DiffIterator(i unsafe.Pointer, j unsafe.Pointer) int64 {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (int64)(C.QMetaContainer_diffIterator(this.h, i, j))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaContainer) HasConstIterator() bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMetaContainer_hasConstIterator(this.h))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaContainer) ConstBegin(container unsafe.Pointer) unsafe.Pointer {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (unsafe.Pointer)(C.QMetaContainer_constBegin(this.h, container))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaContainer) ConstEnd(container unsafe.Pointer) unsafe.Pointer {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (unsafe.Pointer)(C.QMetaContainer_constEnd(this.h, container))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaContainer) DestroyConstIterator(iterator unsafe.Pointer) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMetaContainer_destroyConstIterator(this.h, iterator)
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaContainer) CompareConstIterator(i unsafe.Pointer, j unsafe.Pointer) bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMetaContainer_compareConstIterator(this.h, i, j))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaContainer) CopyConstIterator(target unsafe.Pointer, source unsafe.Pointer) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMetaContainer_copyConstIterator(this.h, target, source)
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaContainer) AdvanceConstIterator(iterator unsafe.Pointer, step int64) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMetaContainer_advanceConstIterator(this.h, iterator, (C.ptrdiff_t)(step))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaContainer) DiffConstIterator(i unsafe.Pointer, j unsafe.Pointer) int64 {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (int64)(C.QMetaContainer_diffConstIterator(this.h, i, j))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
// Delete this object from C++ memory.
|
|
|
|
func (this *QMetaContainer) Delete() {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMetaContainer_delete(this.h)
|
2024-11-19 20:01:02 +13: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 *QMetaContainer) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QMetaContainer) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
type QMetaSequence struct {
|
2025-01-18 17:57:48 +13:00
|
|
|
h *C.QMetaSequence
|
2024-11-19 20:01:02 +13:00
|
|
|
*QMetaContainer
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaSequence) cPointer() *C.QMetaSequence {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaSequence) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
// newQMetaSequence constructs the type using only CGO pointers.
|
2024-12-07 17:15:57 +13:00
|
|
|
func newQMetaSequence(h *C.QMetaSequence) *QMetaSequence {
|
2024-11-19 20:01:02 +13:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-12-07 17:15:57 +13:00
|
|
|
var outptr_QMetaContainer *C.QMetaContainer = nil
|
|
|
|
C.QMetaSequence_virtbase(h, &outptr_QMetaContainer)
|
|
|
|
|
2024-11-19 20:01:02 +13:00
|
|
|
return &QMetaSequence{h: h,
|
2024-12-07 17:15:57 +13:00
|
|
|
QMetaContainer: newQMetaContainer(outptr_QMetaContainer)}
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnsafeNewQMetaSequence constructs the type using only unsafe pointers.
|
2024-12-07 17:15:57 +13:00
|
|
|
func UnsafeNewQMetaSequence(h unsafe.Pointer) *QMetaSequence {
|
|
|
|
return newQMetaSequence((*C.QMetaSequence)(h))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQMetaSequence constructs a new QMetaSequence object.
|
|
|
|
func NewQMetaSequence() *QMetaSequence {
|
2024-10-20 18:21:03 +13:00
|
|
|
|
2025-01-18 17:57:48 +13:00
|
|
|
return newQMetaSequence(C.QMetaSequence_new())
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaSequence) ValueMetaType() *QMetaType {
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQMetaType(C.QMetaSequence_valueMetaType(this.h))
|
2024-11-19 20:01:02 +13:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaSequence) IsSortable() bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMetaSequence_isSortable(this.h))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaSequence) CanAddValueAtBegin() bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMetaSequence_canAddValueAtBegin(this.h))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaSequence) AddValueAtBegin(container unsafe.Pointer, value unsafe.Pointer) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMetaSequence_addValueAtBegin(this.h, container, value)
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaSequence) CanAddValueAtEnd() bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMetaSequence_canAddValueAtEnd(this.h))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaSequence) AddValueAtEnd(container unsafe.Pointer, value unsafe.Pointer) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMetaSequence_addValueAtEnd(this.h, container, value)
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaSequence) CanRemoveValueAtBegin() bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMetaSequence_canRemoveValueAtBegin(this.h))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaSequence) RemoveValueAtBegin(container unsafe.Pointer) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMetaSequence_removeValueAtBegin(this.h, container)
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaSequence) CanRemoveValueAtEnd() bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMetaSequence_canRemoveValueAtEnd(this.h))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaSequence) RemoveValueAtEnd(container unsafe.Pointer) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMetaSequence_removeValueAtEnd(this.h, container)
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaSequence) CanGetValueAtIndex() bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMetaSequence_canGetValueAtIndex(this.h))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaSequence) ValueAtIndex(container unsafe.Pointer, index int64, result unsafe.Pointer) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMetaSequence_valueAtIndex(this.h, container, (C.ptrdiff_t)(index), result)
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaSequence) CanSetValueAtIndex() bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMetaSequence_canSetValueAtIndex(this.h))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
2024-10-20 18:21:03 +13:00
|
|
|
|
2024-11-19 20:01:02 +13:00
|
|
|
func (this *QMetaSequence) SetValueAtIndex(container unsafe.Pointer, index int64, value unsafe.Pointer) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMetaSequence_setValueAtIndex(this.h, container, (C.ptrdiff_t)(index), value)
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaSequence) CanAddValue() bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMetaSequence_canAddValue(this.h))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaSequence) AddValue(container unsafe.Pointer, value unsafe.Pointer) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMetaSequence_addValue(this.h, container, value)
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaSequence) CanRemoveValue() bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMetaSequence_canRemoveValue(this.h))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaSequence) RemoveValue(container unsafe.Pointer) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMetaSequence_removeValue(this.h, container)
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaSequence) CanGetValueAtIterator() bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMetaSequence_canGetValueAtIterator(this.h))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaSequence) ValueAtIterator(iterator unsafe.Pointer, result unsafe.Pointer) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMetaSequence_valueAtIterator(this.h, iterator, result)
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaSequence) CanSetValueAtIterator() bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMetaSequence_canSetValueAtIterator(this.h))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaSequence) SetValueAtIterator(iterator unsafe.Pointer, value unsafe.Pointer) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMetaSequence_setValueAtIterator(this.h, iterator, value)
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaSequence) CanInsertValueAtIterator() bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMetaSequence_canInsertValueAtIterator(this.h))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaSequence) InsertValueAtIterator(container unsafe.Pointer, iterator unsafe.Pointer, value unsafe.Pointer) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMetaSequence_insertValueAtIterator(this.h, container, iterator, value)
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaSequence) CanEraseValueAtIterator() bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMetaSequence_canEraseValueAtIterator(this.h))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaSequence) EraseValueAtIterator(container unsafe.Pointer, iterator unsafe.Pointer) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMetaSequence_eraseValueAtIterator(this.h, container, iterator)
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaSequence) CanEraseRangeAtIterator() bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMetaSequence_canEraseRangeAtIterator(this.h))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaSequence) EraseRangeAtIterator(container unsafe.Pointer, iterator1 unsafe.Pointer, iterator2 unsafe.Pointer) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMetaSequence_eraseRangeAtIterator(this.h, container, iterator1, iterator2)
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaSequence) CanGetValueAtConstIterator() bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMetaSequence_canGetValueAtConstIterator(this.h))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaSequence) ValueAtConstIterator(iterator unsafe.Pointer, result unsafe.Pointer) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMetaSequence_valueAtConstIterator(this.h, iterator, result)
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
// Delete this object from C++ memory.
|
|
|
|
func (this *QMetaSequence) Delete() {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMetaSequence_delete(this.h)
|
2024-11-19 20:01:02 +13: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 *QMetaSequence) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QMetaSequence) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
type QMetaAssociation struct {
|
2025-01-18 17:57:48 +13:00
|
|
|
h *C.QMetaAssociation
|
2024-11-19 20:01:02 +13:00
|
|
|
*QMetaContainer
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaAssociation) cPointer() *C.QMetaAssociation {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaAssociation) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
// newQMetaAssociation constructs the type using only CGO pointers.
|
2024-12-07 17:15:57 +13:00
|
|
|
func newQMetaAssociation(h *C.QMetaAssociation) *QMetaAssociation {
|
2024-11-19 20:01:02 +13:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-12-07 17:15:57 +13:00
|
|
|
var outptr_QMetaContainer *C.QMetaContainer = nil
|
|
|
|
C.QMetaAssociation_virtbase(h, &outptr_QMetaContainer)
|
|
|
|
|
2024-11-19 20:01:02 +13:00
|
|
|
return &QMetaAssociation{h: h,
|
2024-12-07 17:15:57 +13:00
|
|
|
QMetaContainer: newQMetaContainer(outptr_QMetaContainer)}
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnsafeNewQMetaAssociation constructs the type using only unsafe pointers.
|
2024-12-07 17:15:57 +13:00
|
|
|
func UnsafeNewQMetaAssociation(h unsafe.Pointer) *QMetaAssociation {
|
|
|
|
return newQMetaAssociation((*C.QMetaAssociation)(h))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQMetaAssociation constructs a new QMetaAssociation object.
|
|
|
|
func NewQMetaAssociation() *QMetaAssociation {
|
|
|
|
|
2025-01-18 17:57:48 +13:00
|
|
|
return newQMetaAssociation(C.QMetaAssociation_new())
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaAssociation) KeyMetaType() *QMetaType {
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQMetaType(C.QMetaAssociation_keyMetaType(this.h))
|
2024-11-19 20:01:02 +13:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaAssociation) MappedMetaType() *QMetaType {
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQMetaType(C.QMetaAssociation_mappedMetaType(this.h))
|
2024-11-19 20:01:02 +13:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaAssociation) CanInsertKey() bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMetaAssociation_canInsertKey(this.h))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaAssociation) InsertKey(container unsafe.Pointer, key unsafe.Pointer) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMetaAssociation_insertKey(this.h, container, key)
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaAssociation) CanRemoveKey() bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMetaAssociation_canRemoveKey(this.h))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaAssociation) RemoveKey(container unsafe.Pointer, key unsafe.Pointer) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMetaAssociation_removeKey(this.h, container, key)
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaAssociation) CanContainsKey() bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMetaAssociation_canContainsKey(this.h))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaAssociation) ContainsKey(container unsafe.Pointer, key unsafe.Pointer) bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMetaAssociation_containsKey(this.h, container, key))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaAssociation) CanGetMappedAtKey() bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMetaAssociation_canGetMappedAtKey(this.h))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaAssociation) MappedAtKey(container unsafe.Pointer, key unsafe.Pointer, mapped unsafe.Pointer) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMetaAssociation_mappedAtKey(this.h, container, key, mapped)
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaAssociation) CanSetMappedAtKey() bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMetaAssociation_canSetMappedAtKey(this.h))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaAssociation) SetMappedAtKey(container unsafe.Pointer, key unsafe.Pointer, mapped unsafe.Pointer) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMetaAssociation_setMappedAtKey(this.h, container, key, mapped)
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaAssociation) CanGetKeyAtIterator() bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMetaAssociation_canGetKeyAtIterator(this.h))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaAssociation) KeyAtIterator(iterator unsafe.Pointer, key unsafe.Pointer) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMetaAssociation_keyAtIterator(this.h, iterator, key)
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaAssociation) CanGetKeyAtConstIterator() bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMetaAssociation_canGetKeyAtConstIterator(this.h))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaAssociation) KeyAtConstIterator(iterator unsafe.Pointer, key unsafe.Pointer) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMetaAssociation_keyAtConstIterator(this.h, iterator, key)
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaAssociation) CanGetMappedAtIterator() bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMetaAssociation_canGetMappedAtIterator(this.h))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaAssociation) MappedAtIterator(iterator unsafe.Pointer, mapped unsafe.Pointer) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMetaAssociation_mappedAtIterator(this.h, iterator, mapped)
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaAssociation) CanGetMappedAtConstIterator() bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMetaAssociation_canGetMappedAtConstIterator(this.h))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaAssociation) MappedAtConstIterator(iterator unsafe.Pointer, mapped unsafe.Pointer) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMetaAssociation_mappedAtConstIterator(this.h, iterator, mapped)
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaAssociation) CanSetMappedAtIterator() bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMetaAssociation_canSetMappedAtIterator(this.h))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaAssociation) SetMappedAtIterator(iterator unsafe.Pointer, mapped unsafe.Pointer) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMetaAssociation_setMappedAtIterator(this.h, iterator, mapped)
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaAssociation) CanCreateIteratorAtKey() bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMetaAssociation_canCreateIteratorAtKey(this.h))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaAssociation) CreateIteratorAtKey(container unsafe.Pointer, key unsafe.Pointer) unsafe.Pointer {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (unsafe.Pointer)(C.QMetaAssociation_createIteratorAtKey(this.h, container, key))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaAssociation) CanCreateConstIteratorAtKey() bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMetaAssociation_canCreateConstIteratorAtKey(this.h))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMetaAssociation) CreateConstIteratorAtKey(container unsafe.Pointer, key unsafe.Pointer) unsafe.Pointer {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (unsafe.Pointer)(C.QMetaAssociation_createConstIteratorAtKey(this.h, container, key))
|
2024-11-19 20:01:02 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
// Delete this object from C++ memory.
|
|
|
|
func (this *QMetaAssociation) Delete() {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMetaAssociation_delete(this.h)
|
2024-11-19 20:01:02 +13: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 *QMetaAssociation) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QMetaAssociation) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|