2024-08-25 04:08:24 +00:00
|
|
|
package qt
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
#include "gen_qvariant.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
*/
|
|
|
|
import "C"
|
|
|
|
|
|
|
|
import (
|
|
|
|
"runtime"
|
|
|
|
"unsafe"
|
|
|
|
)
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
type QVariant__Type int
|
|
|
|
|
|
|
|
const (
|
2024-09-20 07:13:26 +00:00
|
|
|
QVariant__Invalid QVariant__Type = 0
|
|
|
|
QVariant__Bool QVariant__Type = 1
|
|
|
|
QVariant__Int QVariant__Type = 2
|
|
|
|
QVariant__UInt QVariant__Type = 3
|
|
|
|
QVariant__LongLong QVariant__Type = 4
|
|
|
|
QVariant__ULongLong QVariant__Type = 5
|
|
|
|
QVariant__Double QVariant__Type = 6
|
|
|
|
QVariant__Char QVariant__Type = 7
|
|
|
|
QVariant__Map QVariant__Type = 8
|
|
|
|
QVariant__List QVariant__Type = 9
|
|
|
|
QVariant__String QVariant__Type = 10
|
|
|
|
QVariant__StringList QVariant__Type = 11
|
|
|
|
QVariant__ByteArray QVariant__Type = 12
|
|
|
|
QVariant__BitArray QVariant__Type = 13
|
|
|
|
QVariant__Date QVariant__Type = 14
|
|
|
|
QVariant__Time QVariant__Type = 15
|
|
|
|
QVariant__DateTime QVariant__Type = 16
|
|
|
|
QVariant__Url QVariant__Type = 17
|
|
|
|
QVariant__Locale QVariant__Type = 18
|
|
|
|
QVariant__Rect QVariant__Type = 19
|
|
|
|
QVariant__RectF QVariant__Type = 20
|
|
|
|
QVariant__Size QVariant__Type = 21
|
|
|
|
QVariant__SizeF QVariant__Type = 22
|
|
|
|
QVariant__Line QVariant__Type = 23
|
|
|
|
QVariant__LineF QVariant__Type = 24
|
|
|
|
QVariant__Point QVariant__Type = 25
|
|
|
|
QVariant__PointF QVariant__Type = 26
|
|
|
|
QVariant__RegExp QVariant__Type = 27
|
|
|
|
QVariant__RegularExpression QVariant__Type = 44
|
|
|
|
QVariant__Hash QVariant__Type = 28
|
|
|
|
QVariant__EasingCurve QVariant__Type = 29
|
|
|
|
QVariant__Uuid QVariant__Type = 30
|
|
|
|
QVariant__ModelIndex QVariant__Type = 42
|
|
|
|
QVariant__PersistentModelIndex QVariant__Type = 50
|
|
|
|
QVariant__LastCoreType QVariant__Type = 55
|
|
|
|
QVariant__Font QVariant__Type = 64
|
|
|
|
QVariant__Pixmap QVariant__Type = 65
|
|
|
|
QVariant__Brush QVariant__Type = 66
|
|
|
|
QVariant__Color QVariant__Type = 67
|
|
|
|
QVariant__Palette QVariant__Type = 68
|
|
|
|
QVariant__Image QVariant__Type = 70
|
|
|
|
QVariant__Polygon QVariant__Type = 71
|
|
|
|
QVariant__Region QVariant__Type = 72
|
|
|
|
QVariant__Bitmap QVariant__Type = 73
|
|
|
|
QVariant__Cursor QVariant__Type = 74
|
|
|
|
QVariant__KeySequence QVariant__Type = 75
|
|
|
|
QVariant__Pen QVariant__Type = 76
|
|
|
|
QVariant__TextLength QVariant__Type = 77
|
|
|
|
QVariant__TextFormat QVariant__Type = 78
|
|
|
|
QVariant__Matrix QVariant__Type = 79
|
|
|
|
QVariant__Transform QVariant__Type = 80
|
|
|
|
QVariant__Matrix4x4 QVariant__Type = 81
|
|
|
|
QVariant__Vector2D QVariant__Type = 82
|
|
|
|
QVariant__Vector3D QVariant__Type = 83
|
|
|
|
QVariant__Vector4D QVariant__Type = 84
|
|
|
|
QVariant__Quaternion QVariant__Type = 85
|
|
|
|
QVariant__PolygonF QVariant__Type = 86
|
|
|
|
QVariant__Icon QVariant__Type = 69
|
|
|
|
QVariant__LastGuiType QVariant__Type = 87
|
|
|
|
QVariant__SizePolicy QVariant__Type = 121
|
|
|
|
QVariant__UserType QVariant__Type = 1024
|
|
|
|
QVariant__LastType QVariant__Type = 4294967295
|
2024-09-04 06:54:22 +00:00
|
|
|
)
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
type QVariant struct {
|
2024-11-19 06:29:06 +00:00
|
|
|
h *C.QVariant
|
|
|
|
isSubclass bool
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QVariant) cPointer() *C.QVariant {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func (this *QVariant) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// newQVariant constructs the type using only CGO pointers.
|
2024-08-25 04:08:24 +00:00
|
|
|
func newQVariant(h *C.QVariant) *QVariant {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
return &QVariant{h: h}
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// UnsafeNewQVariant constructs the type using only unsafe pointers.
|
2024-10-16 05:07:56 +00:00
|
|
|
func UnsafeNewQVariant(h unsafe.Pointer) *QVariant {
|
2024-11-19 06:29:06 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
return &QVariant{h: (*C.QVariant)(h)}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQVariant constructs a new QVariant object.
|
|
|
|
func NewQVariant() *QVariant {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariant *C.QVariant = nil
|
|
|
|
|
|
|
|
C.QVariant_new(&outptr_QVariant)
|
|
|
|
ret := newQVariant(outptr_QVariant)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQVariant2 constructs a new QVariant object.
|
2024-09-04 06:54:22 +00:00
|
|
|
func NewQVariant2(typeVal QVariant__Type) *QVariant {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariant *C.QVariant = nil
|
|
|
|
|
|
|
|
C.QVariant_new2((C.int)(typeVal), &outptr_QVariant)
|
|
|
|
ret := newQVariant(outptr_QVariant)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQVariant3 constructs a new QVariant object.
|
2024-09-20 22:32:57 +00:00
|
|
|
func NewQVariant3(typeId int, copyVal unsafe.Pointer) *QVariant {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariant *C.QVariant = nil
|
|
|
|
|
|
|
|
C.QVariant_new3((C.int)(typeId), copyVal, &outptr_QVariant)
|
|
|
|
ret := newQVariant(outptr_QVariant)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQVariant4 constructs a new QVariant object.
|
2024-09-20 22:32:57 +00:00
|
|
|
func NewQVariant4(typeId int, copyVal unsafe.Pointer, flags uint) *QVariant {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariant *C.QVariant = nil
|
|
|
|
|
|
|
|
C.QVariant_new4((C.int)(typeId), copyVal, (C.uint)(flags), &outptr_QVariant)
|
|
|
|
ret := newQVariant(outptr_QVariant)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQVariant5 constructs a new QVariant object.
|
2024-09-20 22:32:57 +00:00
|
|
|
func NewQVariant5(other *QVariant) *QVariant {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariant *C.QVariant = nil
|
|
|
|
|
|
|
|
C.QVariant_new5(other.cPointer(), &outptr_QVariant)
|
|
|
|
ret := newQVariant(outptr_QVariant)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQVariant6 constructs a new QVariant object.
|
2024-09-20 22:32:57 +00:00
|
|
|
func NewQVariant6(s *QDataStream) *QVariant {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariant *C.QVariant = nil
|
|
|
|
|
|
|
|
C.QVariant_new6(s.cPointer(), &outptr_QVariant)
|
|
|
|
ret := newQVariant(outptr_QVariant)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQVariant7 constructs a new QVariant object.
|
2024-09-20 22:32:57 +00:00
|
|
|
func NewQVariant7(i int) *QVariant {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariant *C.QVariant = nil
|
|
|
|
|
|
|
|
C.QVariant_new7((C.int)(i), &outptr_QVariant)
|
|
|
|
ret := newQVariant(outptr_QVariant)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQVariant8 constructs a new QVariant object.
|
2024-09-20 22:32:57 +00:00
|
|
|
func NewQVariant8(ui uint) *QVariant {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariant *C.QVariant = nil
|
|
|
|
|
|
|
|
C.QVariant_new8((C.uint)(ui), &outptr_QVariant)
|
|
|
|
ret := newQVariant(outptr_QVariant)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQVariant9 constructs a new QVariant object.
|
2024-09-20 22:32:57 +00:00
|
|
|
func NewQVariant9(ll int64) *QVariant {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariant *C.QVariant = nil
|
|
|
|
|
|
|
|
C.QVariant_new9((C.longlong)(ll), &outptr_QVariant)
|
|
|
|
ret := newQVariant(outptr_QVariant)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQVariant10 constructs a new QVariant object.
|
2024-09-20 22:32:57 +00:00
|
|
|
func NewQVariant10(ull uint64) *QVariant {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariant *C.QVariant = nil
|
|
|
|
|
|
|
|
C.QVariant_new10((C.ulonglong)(ull), &outptr_QVariant)
|
|
|
|
ret := newQVariant(outptr_QVariant)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQVariant11 constructs a new QVariant object.
|
2024-09-20 22:32:57 +00:00
|
|
|
func NewQVariant11(b bool) *QVariant {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariant *C.QVariant = nil
|
|
|
|
|
|
|
|
C.QVariant_new11((C.bool)(b), &outptr_QVariant)
|
|
|
|
ret := newQVariant(outptr_QVariant)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQVariant12 constructs a new QVariant object.
|
2024-09-20 22:32:57 +00:00
|
|
|
func NewQVariant12(d float64) *QVariant {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariant *C.QVariant = nil
|
|
|
|
|
|
|
|
C.QVariant_new12((C.double)(d), &outptr_QVariant)
|
|
|
|
ret := newQVariant(outptr_QVariant)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQVariant13 constructs a new QVariant object.
|
2024-09-20 22:32:57 +00:00
|
|
|
func NewQVariant13(f float32) *QVariant {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariant *C.QVariant = nil
|
|
|
|
|
|
|
|
C.QVariant_new13((C.float)(f), &outptr_QVariant)
|
|
|
|
ret := newQVariant(outptr_QVariant)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQVariant14 constructs a new QVariant object.
|
2024-09-20 22:32:57 +00:00
|
|
|
func NewQVariant14(str string) *QVariant {
|
|
|
|
str_Cstring := C.CString(str)
|
|
|
|
defer C.free(unsafe.Pointer(str_Cstring))
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariant *C.QVariant = nil
|
|
|
|
|
|
|
|
C.QVariant_new14(str_Cstring, &outptr_QVariant)
|
|
|
|
ret := newQVariant(outptr_QVariant)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQVariant15 constructs a new QVariant object.
|
2024-10-18 23:53:33 +00:00
|
|
|
func NewQVariant15(bytearray []byte) *QVariant {
|
|
|
|
bytearray_alias := C.struct_miqt_string{}
|
|
|
|
bytearray_alias.data = (*C.char)(unsafe.Pointer(&bytearray[0]))
|
|
|
|
bytearray_alias.len = C.size_t(len(bytearray))
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariant *C.QVariant = nil
|
|
|
|
|
|
|
|
C.QVariant_new15(bytearray_alias, &outptr_QVariant)
|
|
|
|
ret := newQVariant(outptr_QVariant)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-09-20 22:32:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQVariant16 constructs a new QVariant object.
|
|
|
|
func NewQVariant16(bitarray *QBitArray) *QVariant {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariant *C.QVariant = nil
|
|
|
|
|
|
|
|
C.QVariant_new16(bitarray.cPointer(), &outptr_QVariant)
|
|
|
|
ret := newQVariant(outptr_QVariant)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-09-20 22:32:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQVariant17 constructs a new QVariant object.
|
|
|
|
func NewQVariant17(stringVal string) *QVariant {
|
2024-10-18 23:53:33 +00:00
|
|
|
stringVal_ms := C.struct_miqt_string{}
|
|
|
|
stringVal_ms.data = C.CString(stringVal)
|
|
|
|
stringVal_ms.len = C.size_t(len(stringVal))
|
|
|
|
defer C.free(unsafe.Pointer(stringVal_ms.data))
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariant *C.QVariant = nil
|
|
|
|
|
|
|
|
C.QVariant_new17(stringVal_ms, &outptr_QVariant)
|
|
|
|
ret := newQVariant(outptr_QVariant)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 22:32:57 +00:00
|
|
|
// NewQVariant18 constructs a new QVariant object.
|
|
|
|
func NewQVariant18(stringlist []string) *QVariant {
|
2024-10-19 02:49:49 +00:00
|
|
|
stringlist_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(stringlist))))
|
2024-08-25 04:08:24 +00:00
|
|
|
defer C.free(unsafe.Pointer(stringlist_CArray))
|
|
|
|
for i := range stringlist {
|
2024-10-18 23:53:33 +00:00
|
|
|
stringlist_i_ms := C.struct_miqt_string{}
|
|
|
|
stringlist_i_ms.data = C.CString(stringlist[i])
|
|
|
|
stringlist_i_ms.len = C.size_t(len(stringlist[i]))
|
|
|
|
defer C.free(unsafe.Pointer(stringlist_i_ms.data))
|
|
|
|
stringlist_CArray[i] = stringlist_i_ms
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
2024-11-04 07:18:27 +00:00
|
|
|
stringlist_ma := C.struct_miqt_array{len: C.size_t(len(stringlist)), data: unsafe.Pointer(stringlist_CArray)}
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariant *C.QVariant = nil
|
|
|
|
|
|
|
|
C.QVariant_new18(stringlist_ma, &outptr_QVariant)
|
|
|
|
ret := newQVariant(outptr_QVariant)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQVariant19 constructs a new QVariant object.
|
2024-09-20 22:32:57 +00:00
|
|
|
func NewQVariant19(qchar QChar) *QVariant {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariant *C.QVariant = nil
|
|
|
|
|
|
|
|
C.QVariant_new19(qchar.cPointer(), &outptr_QVariant)
|
|
|
|
ret := newQVariant(outptr_QVariant)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQVariant20 constructs a new QVariant object.
|
2024-09-20 22:32:57 +00:00
|
|
|
func NewQVariant20(date *QDate) *QVariant {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariant *C.QVariant = nil
|
|
|
|
|
|
|
|
C.QVariant_new20(date.cPointer(), &outptr_QVariant)
|
|
|
|
ret := newQVariant(outptr_QVariant)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQVariant21 constructs a new QVariant object.
|
2024-09-20 22:32:57 +00:00
|
|
|
func NewQVariant21(time *QTime) *QVariant {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariant *C.QVariant = nil
|
|
|
|
|
|
|
|
C.QVariant_new21(time.cPointer(), &outptr_QVariant)
|
|
|
|
ret := newQVariant(outptr_QVariant)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQVariant22 constructs a new QVariant object.
|
2024-09-20 22:32:57 +00:00
|
|
|
func NewQVariant22(datetime *QDateTime) *QVariant {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariant *C.QVariant = nil
|
|
|
|
|
|
|
|
C.QVariant_new22(datetime.cPointer(), &outptr_QVariant)
|
|
|
|
ret := newQVariant(outptr_QVariant)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQVariant23 constructs a new QVariant object.
|
2024-11-04 07:59:22 +00:00
|
|
|
func NewQVariant23(mapVal map[string]QVariant) *QVariant {
|
|
|
|
mapVal_Keys_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(mapVal))))
|
|
|
|
defer C.free(unsafe.Pointer(mapVal_Keys_CArray))
|
|
|
|
mapVal_Values_CArray := (*[0xffff]*C.QVariant)(C.malloc(C.size_t(8 * len(mapVal))))
|
|
|
|
defer C.free(unsafe.Pointer(mapVal_Values_CArray))
|
|
|
|
mapVal_ctr := 0
|
|
|
|
for mapVal_k, mapVal_v := range mapVal {
|
|
|
|
mapVal_k_ms := C.struct_miqt_string{}
|
|
|
|
mapVal_k_ms.data = C.CString(mapVal_k)
|
|
|
|
mapVal_k_ms.len = C.size_t(len(mapVal_k))
|
|
|
|
defer C.free(unsafe.Pointer(mapVal_k_ms.data))
|
|
|
|
mapVal_Keys_CArray[mapVal_ctr] = mapVal_k_ms
|
|
|
|
mapVal_Values_CArray[mapVal_ctr] = mapVal_v.cPointer()
|
|
|
|
mapVal_ctr++
|
|
|
|
}
|
|
|
|
mapVal_mm := C.struct_miqt_map{
|
|
|
|
len: C.size_t(len(mapVal)),
|
|
|
|
keys: unsafe.Pointer(mapVal_Keys_CArray),
|
|
|
|
values: unsafe.Pointer(mapVal_Values_CArray),
|
|
|
|
}
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariant *C.QVariant = nil
|
|
|
|
|
|
|
|
C.QVariant_new23(mapVal_mm, &outptr_QVariant)
|
|
|
|
ret := newQVariant(outptr_QVariant)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQVariant24 constructs a new QVariant object.
|
2024-11-04 07:59:22 +00:00
|
|
|
func NewQVariant24(hash map[string]QVariant) *QVariant {
|
|
|
|
hash_Keys_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(hash))))
|
|
|
|
defer C.free(unsafe.Pointer(hash_Keys_CArray))
|
|
|
|
hash_Values_CArray := (*[0xffff]*C.QVariant)(C.malloc(C.size_t(8 * len(hash))))
|
|
|
|
defer C.free(unsafe.Pointer(hash_Values_CArray))
|
|
|
|
hash_ctr := 0
|
|
|
|
for hash_k, hash_v := range hash {
|
|
|
|
hash_k_ms := C.struct_miqt_string{}
|
|
|
|
hash_k_ms.data = C.CString(hash_k)
|
|
|
|
hash_k_ms.len = C.size_t(len(hash_k))
|
|
|
|
defer C.free(unsafe.Pointer(hash_k_ms.data))
|
|
|
|
hash_Keys_CArray[hash_ctr] = hash_k_ms
|
|
|
|
hash_Values_CArray[hash_ctr] = hash_v.cPointer()
|
|
|
|
hash_ctr++
|
|
|
|
}
|
|
|
|
hash_mm := C.struct_miqt_map{
|
|
|
|
len: C.size_t(len(hash)),
|
|
|
|
keys: unsafe.Pointer(hash_Keys_CArray),
|
|
|
|
values: unsafe.Pointer(hash_Values_CArray),
|
|
|
|
}
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariant *C.QVariant = nil
|
|
|
|
|
|
|
|
C.QVariant_new24(hash_mm, &outptr_QVariant)
|
|
|
|
ret := newQVariant(outptr_QVariant)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQVariant25 constructs a new QVariant object.
|
2024-11-04 07:59:22 +00:00
|
|
|
func NewQVariant25(size *QSize) *QVariant {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariant *C.QVariant = nil
|
|
|
|
|
|
|
|
C.QVariant_new25(size.cPointer(), &outptr_QVariant)
|
|
|
|
ret := newQVariant(outptr_QVariant)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQVariant26 constructs a new QVariant object.
|
2024-11-04 07:59:22 +00:00
|
|
|
func NewQVariant26(size *QSizeF) *QVariant {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariant *C.QVariant = nil
|
|
|
|
|
|
|
|
C.QVariant_new26(size.cPointer(), &outptr_QVariant)
|
|
|
|
ret := newQVariant(outptr_QVariant)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQVariant27 constructs a new QVariant object.
|
2024-11-04 07:59:22 +00:00
|
|
|
func NewQVariant27(pt *QPoint) *QVariant {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariant *C.QVariant = nil
|
|
|
|
|
|
|
|
C.QVariant_new27(pt.cPointer(), &outptr_QVariant)
|
|
|
|
ret := newQVariant(outptr_QVariant)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQVariant28 constructs a new QVariant object.
|
2024-11-04 07:59:22 +00:00
|
|
|
func NewQVariant28(pt *QPointF) *QVariant {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariant *C.QVariant = nil
|
|
|
|
|
|
|
|
C.QVariant_new28(pt.cPointer(), &outptr_QVariant)
|
|
|
|
ret := newQVariant(outptr_QVariant)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQVariant29 constructs a new QVariant object.
|
2024-11-04 07:59:22 +00:00
|
|
|
func NewQVariant29(line *QLine) *QVariant {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariant *C.QVariant = nil
|
|
|
|
|
|
|
|
C.QVariant_new29(line.cPointer(), &outptr_QVariant)
|
|
|
|
ret := newQVariant(outptr_QVariant)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQVariant30 constructs a new QVariant object.
|
2024-11-04 07:59:22 +00:00
|
|
|
func NewQVariant30(line *QLineF) *QVariant {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariant *C.QVariant = nil
|
|
|
|
|
|
|
|
C.QVariant_new30(line.cPointer(), &outptr_QVariant)
|
|
|
|
ret := newQVariant(outptr_QVariant)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQVariant31 constructs a new QVariant object.
|
2024-11-04 07:59:22 +00:00
|
|
|
func NewQVariant31(rect *QRect) *QVariant {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariant *C.QVariant = nil
|
|
|
|
|
|
|
|
C.QVariant_new31(rect.cPointer(), &outptr_QVariant)
|
|
|
|
ret := newQVariant(outptr_QVariant)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQVariant32 constructs a new QVariant object.
|
2024-11-04 07:59:22 +00:00
|
|
|
func NewQVariant32(rect *QRectF) *QVariant {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariant *C.QVariant = nil
|
|
|
|
|
|
|
|
C.QVariant_new32(rect.cPointer(), &outptr_QVariant)
|
|
|
|
ret := newQVariant(outptr_QVariant)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQVariant33 constructs a new QVariant object.
|
2024-11-04 07:59:22 +00:00
|
|
|
func NewQVariant33(locale *QLocale) *QVariant {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariant *C.QVariant = nil
|
|
|
|
|
|
|
|
C.QVariant_new33(locale.cPointer(), &outptr_QVariant)
|
|
|
|
ret := newQVariant(outptr_QVariant)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQVariant34 constructs a new QVariant object.
|
2024-11-04 07:59:22 +00:00
|
|
|
func NewQVariant34(regExp *QRegExp) *QVariant {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariant *C.QVariant = nil
|
|
|
|
|
|
|
|
C.QVariant_new34(regExp.cPointer(), &outptr_QVariant)
|
|
|
|
ret := newQVariant(outptr_QVariant)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQVariant35 constructs a new QVariant object.
|
2024-11-04 07:59:22 +00:00
|
|
|
func NewQVariant35(re *QRegularExpression) *QVariant {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariant *C.QVariant = nil
|
|
|
|
|
|
|
|
C.QVariant_new35(re.cPointer(), &outptr_QVariant)
|
|
|
|
ret := newQVariant(outptr_QVariant)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQVariant36 constructs a new QVariant object.
|
2024-11-04 07:59:22 +00:00
|
|
|
func NewQVariant36(easing *QEasingCurve) *QVariant {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariant *C.QVariant = nil
|
|
|
|
|
|
|
|
C.QVariant_new36(easing.cPointer(), &outptr_QVariant)
|
|
|
|
ret := newQVariant(outptr_QVariant)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQVariant37 constructs a new QVariant object.
|
2024-11-04 07:59:22 +00:00
|
|
|
func NewQVariant37(uuid *QUuid) *QVariant {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariant *C.QVariant = nil
|
|
|
|
|
|
|
|
C.QVariant_new37(uuid.cPointer(), &outptr_QVariant)
|
|
|
|
ret := newQVariant(outptr_QVariant)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQVariant38 constructs a new QVariant object.
|
2024-11-04 07:59:22 +00:00
|
|
|
func NewQVariant38(url *QUrl) *QVariant {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariant *C.QVariant = nil
|
|
|
|
|
|
|
|
C.QVariant_new38(url.cPointer(), &outptr_QVariant)
|
|
|
|
ret := newQVariant(outptr_QVariant)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQVariant39 constructs a new QVariant object.
|
2024-11-04 07:59:22 +00:00
|
|
|
func NewQVariant39(jsonValue *QJsonValue) *QVariant {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariant *C.QVariant = nil
|
|
|
|
|
|
|
|
C.QVariant_new39(jsonValue.cPointer(), &outptr_QVariant)
|
|
|
|
ret := newQVariant(outptr_QVariant)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
// NewQVariant40 constructs a new QVariant object.
|
2024-11-04 07:59:22 +00:00
|
|
|
func NewQVariant40(jsonObject *QJsonObject) *QVariant {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariant *C.QVariant = nil
|
|
|
|
|
|
|
|
C.QVariant_new40(jsonObject.cPointer(), &outptr_QVariant)
|
|
|
|
ret := newQVariant(outptr_QVariant)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-09-20 22:32:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQVariant41 constructs a new QVariant object.
|
2024-11-04 07:59:22 +00:00
|
|
|
func NewQVariant41(jsonArray *QJsonArray) *QVariant {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariant *C.QVariant = nil
|
|
|
|
|
|
|
|
C.QVariant_new41(jsonArray.cPointer(), &outptr_QVariant)
|
|
|
|
ret := newQVariant(outptr_QVariant)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-09-20 22:32:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQVariant42 constructs a new QVariant object.
|
2024-11-04 07:59:22 +00:00
|
|
|
func NewQVariant42(jsonDocument *QJsonDocument) *QVariant {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariant *C.QVariant = nil
|
|
|
|
|
|
|
|
C.QVariant_new42(jsonDocument.cPointer(), &outptr_QVariant)
|
|
|
|
ret := newQVariant(outptr_QVariant)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-11-04 07:59:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQVariant43 constructs a new QVariant object.
|
|
|
|
func NewQVariant43(modelIndex *QModelIndex) *QVariant {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariant *C.QVariant = nil
|
|
|
|
|
|
|
|
C.QVariant_new43(modelIndex.cPointer(), &outptr_QVariant)
|
|
|
|
ret := newQVariant(outptr_QVariant)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-11-04 07:59:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQVariant44 constructs a new QVariant object.
|
|
|
|
func NewQVariant44(modelIndex *QPersistentModelIndex) *QVariant {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariant *C.QVariant = nil
|
|
|
|
|
|
|
|
C.QVariant_new44(modelIndex.cPointer(), &outptr_QVariant)
|
|
|
|
ret := newQVariant(outptr_QVariant)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QVariant) OperatorAssign(other *QVariant) {
|
|
|
|
C.QVariant_OperatorAssign(this.h, other.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QVariant) Swap(other *QVariant) {
|
|
|
|
C.QVariant_Swap(this.h, other.cPointer())
|
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QVariant) Type() QVariant__Type {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (QVariant__Type)(C.QVariant_Type(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QVariant) UserType() int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QVariant_UserType(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
func (this *QVariant) TypeName() string {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QVariant_TypeName(this.h)
|
2024-10-18 23:53:33 +00:00
|
|
|
return C.GoString(_ret)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QVariant) CanConvert(targetTypeId int) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QVariant_CanConvert(this.h, (C.int)(targetTypeId)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QVariant) Convert(targetTypeId int) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QVariant_Convert(this.h, (C.int)(targetTypeId)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QVariant) IsValid() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QVariant_IsValid(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QVariant) IsNull() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QVariant_IsNull(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QVariant) Clear() {
|
|
|
|
C.QVariant_Clear(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QVariant) Detach() {
|
|
|
|
C.QVariant_Detach(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QVariant) IsDetached() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QVariant_IsDetached(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QVariant) ToInt() int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QVariant_ToInt(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QVariant) ToUInt() uint {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (uint)(C.QVariant_ToUInt(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QVariant) ToLongLong() int64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int64)(C.QVariant_ToLongLong(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QVariant) ToULongLong() uint64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (uint64)(C.QVariant_ToULongLong(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QVariant) ToBool() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QVariant_ToBool(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QVariant) ToDouble() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QVariant_ToDouble(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QVariant) ToFloat() float32 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float32)(C.QVariant_ToFloat(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QVariant) ToReal() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QVariant_ToReal(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
func (this *QVariant) ToByteArray() []byte {
|
|
|
|
var _bytearray C.struct_miqt_string = C.QVariant_ToByteArray(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
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QVariant) ToBitArray() *QBitArray {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QVariant_ToBitArray(this.h)
|
|
|
|
_goptr := newQBitArray(_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 *QVariant) ToString() string {
|
2024-10-18 23:53:33 +00:00
|
|
|
var _ms C.struct_miqt_string = C.QVariant_ToString(this.h)
|
|
|
|
_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 *QVariant) ToStringList() []string {
|
2024-11-04 07:18:27 +00:00
|
|
|
var _ma C.struct_miqt_array = C.QVariant_ToStringList(this.h)
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := make([]string, int(_ma.len))
|
2024-10-18 23:53:33 +00:00
|
|
|
_outCast := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
|
2024-09-14 22:29:05 +00:00
|
|
|
for i := 0; i < int(_ma.len); i++ {
|
2024-10-18 23:53:33 +00:00
|
|
|
var _lv_ms C.struct_miqt_string = _outCast[i]
|
|
|
|
_lv_ret := C.GoStringN(_lv_ms.data, C.int(int64(_lv_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_lv_ms.data))
|
2024-09-17 07:30:27 +00:00
|
|
|
_ret[i] = _lv_ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QVariant) ToChar() *QChar {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QVariant_ToChar(this.h)
|
|
|
|
_goptr := newQChar(_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 *QVariant) ToDate() *QDate {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QVariant_ToDate(this.h)
|
|
|
|
_goptr := newQDate(_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 *QVariant) ToTime() *QTime {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QVariant_ToTime(this.h)
|
|
|
|
_goptr := newQTime(_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 *QVariant) ToDateTime() *QDateTime {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QVariant_ToDateTime(this.h)
|
|
|
|
_goptr := newQDateTime(_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
|
|
|
}
|
|
|
|
|
2024-11-04 07:59:22 +00:00
|
|
|
func (this *QVariant) ToMap() map[string]QVariant {
|
|
|
|
var _mm C.struct_miqt_map = C.QVariant_ToMap(this.h)
|
|
|
|
_ret := make(map[string]QVariant, int(_mm.len))
|
|
|
|
_Keys := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(_mm.keys))
|
|
|
|
_Values := (*[0xffff]*C.QVariant)(unsafe.Pointer(_mm.values))
|
|
|
|
for i := 0; i < int(_mm.len); i++ {
|
|
|
|
var _mapkey_ms C.struct_miqt_string = _Keys[i]
|
|
|
|
_mapkey_ret := C.GoStringN(_mapkey_ms.data, C.int(int64(_mapkey_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_mapkey_ms.data))
|
|
|
|
_entry_Key := _mapkey_ret
|
|
|
|
_mapval_ret := _Values[i]
|
|
|
|
_mapval_goptr := newQVariant(_mapval_ret)
|
|
|
|
_mapval_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
_entry_Value := *_mapval_goptr
|
|
|
|
|
|
|
|
_ret[_entry_Key] = _entry_Value
|
|
|
|
}
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QVariant) ToHash() map[string]QVariant {
|
|
|
|
var _mm C.struct_miqt_map = C.QVariant_ToHash(this.h)
|
|
|
|
_ret := make(map[string]QVariant, int(_mm.len))
|
|
|
|
_Keys := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(_mm.keys))
|
|
|
|
_Values := (*[0xffff]*C.QVariant)(unsafe.Pointer(_mm.values))
|
|
|
|
for i := 0; i < int(_mm.len); i++ {
|
|
|
|
var _hashkey_ms C.struct_miqt_string = _Keys[i]
|
|
|
|
_hashkey_ret := C.GoStringN(_hashkey_ms.data, C.int(int64(_hashkey_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_hashkey_ms.data))
|
|
|
|
_entry_Key := _hashkey_ret
|
|
|
|
_hashval_ret := _Values[i]
|
|
|
|
_hashval_goptr := newQVariant(_hashval_ret)
|
|
|
|
_hashval_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
_entry_Value := *_hashval_goptr
|
|
|
|
|
|
|
|
_ret[_entry_Key] = _entry_Value
|
|
|
|
}
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QVariant) ToPoint() *QPoint {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QVariant_ToPoint(this.h)
|
|
|
|
_goptr := newQPoint(_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 *QVariant) ToPointF() *QPointF {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QVariant_ToPointF(this.h)
|
|
|
|
_goptr := newQPointF(_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 *QVariant) ToRect() *QRect {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QVariant_ToRect(this.h)
|
|
|
|
_goptr := newQRect(_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 *QVariant) ToSize() *QSize {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QVariant_ToSize(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 *QVariant) ToSizeF() *QSizeF {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QVariant_ToSizeF(this.h)
|
|
|
|
_goptr := newQSizeF(_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 *QVariant) ToLine() *QLine {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QVariant_ToLine(this.h)
|
|
|
|
_goptr := newQLine(_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 *QVariant) ToLineF() *QLineF {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QVariant_ToLineF(this.h)
|
|
|
|
_goptr := newQLineF(_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 *QVariant) ToRectF() *QRectF {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QVariant_ToRectF(this.h)
|
|
|
|
_goptr := newQRectF(_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 *QVariant) ToLocale() *QLocale {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QVariant_ToLocale(this.h)
|
|
|
|
_goptr := newQLocale(_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 *QVariant) ToRegExp() *QRegExp {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QVariant_ToRegExp(this.h)
|
|
|
|
_goptr := newQRegExp(_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 *QVariant) ToRegularExpression() *QRegularExpression {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QVariant_ToRegularExpression(this.h)
|
|
|
|
_goptr := newQRegularExpression(_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 *QVariant) ToEasingCurve() *QEasingCurve {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QVariant_ToEasingCurve(this.h)
|
|
|
|
_goptr := newQEasingCurve(_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 *QVariant) ToUuid() *QUuid {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QVariant_ToUuid(this.h)
|
|
|
|
_goptr := newQUuid(_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 *QVariant) ToUrl() *QUrl {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QVariant_ToUrl(this.h)
|
|
|
|
_goptr := newQUrl(_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 *QVariant) ToJsonValue() *QJsonValue {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QVariant_ToJsonValue(this.h)
|
|
|
|
_goptr := newQJsonValue(_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 *QVariant) ToJsonObject() *QJsonObject {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QVariant_ToJsonObject(this.h)
|
|
|
|
_goptr := newQJsonObject(_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 *QVariant) ToJsonArray() *QJsonArray {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QVariant_ToJsonArray(this.h)
|
|
|
|
_goptr := newQJsonArray(_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 *QVariant) ToJsonDocument() *QJsonDocument {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QVariant_ToJsonDocument(this.h)
|
|
|
|
_goptr := newQJsonDocument(_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 *QVariant) ToModelIndex() *QModelIndex {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QVariant_ToModelIndex(this.h)
|
|
|
|
_goptr := newQModelIndex(_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 *QVariant) ToPersistentModelIndex() *QPersistentModelIndex {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QVariant_ToPersistentModelIndex(this.h)
|
|
|
|
_goptr := newQPersistentModelIndex(_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 *QVariant) Load(ds *QDataStream) {
|
|
|
|
C.QVariant_Load(this.h, ds.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QVariant) Save(ds *QDataStream) {
|
|
|
|
C.QVariant_Save(this.h, ds.cPointer())
|
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
func QVariant_TypeToName(typeId int) string {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QVariant_TypeToName((C.int)(typeId))
|
2024-10-18 23:53:33 +00:00
|
|
|
return C.GoString(_ret)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func QVariant_NameToType(name string) QVariant__Type {
|
2024-08-29 07:01:51 +00:00
|
|
|
name_Cstring := C.CString(name)
|
|
|
|
defer C.free(unsafe.Pointer(name_Cstring))
|
2024-09-17 07:30:27 +00:00
|
|
|
return (QVariant__Type)(C.QVariant_NameToType(name_Cstring))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 22:32:57 +00:00
|
|
|
func (this *QVariant) Data() unsafe.Pointer {
|
2024-10-18 23:53:33 +00:00
|
|
|
return (unsafe.Pointer)(C.QVariant_Data(this.h))
|
2024-09-20 22:32:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QVariant) ConstData() unsafe.Pointer {
|
2024-10-18 23:53:33 +00:00
|
|
|
return (unsafe.Pointer)(C.QVariant_ConstData(this.h))
|
2024-09-20 22:32:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QVariant) Data2() unsafe.Pointer {
|
2024-10-18 23:53:33 +00:00
|
|
|
return (unsafe.Pointer)(C.QVariant_Data2(this.h))
|
2024-09-20 22:32:57 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QVariant) OperatorEqual(v *QVariant) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QVariant_OperatorEqual(this.h, v.cPointer()))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QVariant) OperatorNotEqual(v *QVariant) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QVariant_OperatorNotEqual(this.h, v.cPointer()))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QVariant) OperatorLesser(v *QVariant) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QVariant_OperatorLesser(this.h, v.cPointer()))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QVariant) OperatorLesserOrEqual(v *QVariant) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QVariant_OperatorLesserOrEqual(this.h, v.cPointer()))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QVariant) OperatorGreater(v *QVariant) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QVariant_OperatorGreater(this.h, v.cPointer()))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QVariant) OperatorGreaterOrEqual(v *QVariant) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QVariant_OperatorGreaterOrEqual(this.h, v.cPointer()))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QVariant) ToInt1(ok *bool) int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QVariant_ToInt1(this.h, (*C.bool)(unsafe.Pointer(ok))))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QVariant) ToUInt1(ok *bool) uint {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (uint)(C.QVariant_ToUInt1(this.h, (*C.bool)(unsafe.Pointer(ok))))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QVariant) ToLongLong1(ok *bool) int64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int64)(C.QVariant_ToLongLong1(this.h, (*C.bool)(unsafe.Pointer(ok))))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QVariant) ToULongLong1(ok *bool) uint64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (uint64)(C.QVariant_ToULongLong1(this.h, (*C.bool)(unsafe.Pointer(ok))))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QVariant) ToDouble1(ok *bool) float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QVariant_ToDouble1(this.h, (*C.bool)(unsafe.Pointer(ok))))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QVariant) ToFloat1(ok *bool) float32 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float32)(C.QVariant_ToFloat1(this.h, (*C.bool)(unsafe.Pointer(ok))))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QVariant) ToReal1(ok *bool) float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QVariant_ToReal1(this.h, (*C.bool)(unsafe.Pointer(ok))))
|
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 *QVariant) Delete() {
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QVariant_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 *QVariant) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QVariant) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
type QVariantComparisonHelper struct {
|
2024-11-19 06:29:06 +00:00
|
|
|
h *C.QVariantComparisonHelper
|
|
|
|
isSubclass bool
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QVariantComparisonHelper) cPointer() *C.QVariantComparisonHelper {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func (this *QVariantComparisonHelper) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// newQVariantComparisonHelper constructs the type using only CGO pointers.
|
2024-08-25 04:08:24 +00:00
|
|
|
func newQVariantComparisonHelper(h *C.QVariantComparisonHelper) *QVariantComparisonHelper {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
return &QVariantComparisonHelper{h: h}
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// UnsafeNewQVariantComparisonHelper constructs the type using only unsafe pointers.
|
2024-10-16 05:07:56 +00:00
|
|
|
func UnsafeNewQVariantComparisonHelper(h unsafe.Pointer) *QVariantComparisonHelper {
|
2024-11-19 06:29:06 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
return &QVariantComparisonHelper{h: (*C.QVariantComparisonHelper)(h)}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQVariantComparisonHelper constructs a new QVariantComparisonHelper object.
|
|
|
|
func NewQVariantComparisonHelper(varVal *QVariant) *QVariantComparisonHelper {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariantComparisonHelper *C.QVariantComparisonHelper = nil
|
|
|
|
|
|
|
|
C.QVariantComparisonHelper_new(varVal.cPointer(), &outptr_QVariantComparisonHelper)
|
|
|
|
ret := newQVariantComparisonHelper(outptr_QVariantComparisonHelper)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQVariantComparisonHelper2 constructs a new QVariantComparisonHelper object.
|
|
|
|
func NewQVariantComparisonHelper2(param1 *QVariantComparisonHelper) *QVariantComparisonHelper {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QVariantComparisonHelper *C.QVariantComparisonHelper = nil
|
|
|
|
|
|
|
|
C.QVariantComparisonHelper_new2(param1.cPointer(), &outptr_QVariantComparisonHelper)
|
|
|
|
ret := newQVariantComparisonHelper(outptr_QVariantComparisonHelper)
|
|
|
|
ret.isSubclass = true
|
|
|
|
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 *QVariantComparisonHelper) Delete() {
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QVariantComparisonHelper_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 *QVariantComparisonHelper) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QVariantComparisonHelper) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
type QVariant__Handler struct {
|
2024-11-19 06:29:06 +00:00
|
|
|
h *C.QVariant__Handler
|
|
|
|
isSubclass bool
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QVariant__Handler) cPointer() *C.QVariant__Handler {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func (this *QVariant__Handler) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// newQVariant__Handler constructs the type using only CGO pointers.
|
2024-08-29 07:01:51 +00:00
|
|
|
func newQVariant__Handler(h *C.QVariant__Handler) *QVariant__Handler {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-08-29 07:01:51 +00:00
|
|
|
return &QVariant__Handler{h: h}
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// UnsafeNewQVariant__Handler constructs the type using only unsafe pointers.
|
2024-10-16 05:07:56 +00:00
|
|
|
func UnsafeNewQVariant__Handler(h unsafe.Pointer) *QVariant__Handler {
|
2024-11-19 06:29:06 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
return &QVariant__Handler{h: (*C.QVariant__Handler)(h)}
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Delete this object from C++ memory.
|
2024-08-29 07:01:51 +00:00
|
|
|
func (this *QVariant__Handler) Delete() {
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QVariant__Handler_Delete(this.h, C.bool(this.isSubclass))
|
2024-08-29 07:01:51 +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 *QVariant__Handler) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QVariant__Handler) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|
2024-10-25 21:42:03 +00:00
|
|
|
|
|
|
|
type QSequentialIterable__const_iterator struct {
|
2024-11-19 06:29:06 +00:00
|
|
|
h *C.QSequentialIterable__const_iterator
|
|
|
|
isSubclass bool
|
2024-10-25 21:42:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QSequentialIterable__const_iterator) cPointer() *C.QSequentialIterable__const_iterator {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QSequentialIterable__const_iterator) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// newQSequentialIterable__const_iterator constructs the type using only CGO pointers.
|
2024-10-25 21:42:03 +00:00
|
|
|
func newQSequentialIterable__const_iterator(h *C.QSequentialIterable__const_iterator) *QSequentialIterable__const_iterator {
|
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return &QSequentialIterable__const_iterator{h: h}
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// UnsafeNewQSequentialIterable__const_iterator constructs the type using only unsafe pointers.
|
2024-10-25 21:42:03 +00:00
|
|
|
func UnsafeNewQSequentialIterable__const_iterator(h unsafe.Pointer) *QSequentialIterable__const_iterator {
|
2024-11-19 06:29:06 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
return &QSequentialIterable__const_iterator{h: (*C.QSequentialIterable__const_iterator)(h)}
|
2024-10-25 21:42:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQSequentialIterable__const_iterator constructs a new QSequentialIterable::const_iterator object.
|
|
|
|
func NewQSequentialIterable__const_iterator(other *QSequentialIterable__const_iterator) *QSequentialIterable__const_iterator {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QSequentialIterable__const_iterator *C.QSequentialIterable__const_iterator = nil
|
|
|
|
|
|
|
|
C.QSequentialIterable__const_iterator_new(other.cPointer(), &outptr_QSequentialIterable__const_iterator)
|
|
|
|
ret := newQSequentialIterable__const_iterator(outptr_QSequentialIterable__const_iterator)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-10-25 21:42:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QSequentialIterable__const_iterator) OperatorAssign(other *QSequentialIterable__const_iterator) {
|
|
|
|
C.QSequentialIterable__const_iterator_OperatorAssign(this.h, other.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QSequentialIterable__const_iterator) OperatorMultiply() *QVariant {
|
|
|
|
_ret := C.QSequentialIterable__const_iterator_OperatorMultiply(this.h)
|
|
|
|
_goptr := newQVariant(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QSequentialIterable__const_iterator) OperatorEqual(o *QSequentialIterable__const_iterator) bool {
|
|
|
|
return (bool)(C.QSequentialIterable__const_iterator_OperatorEqual(this.h, o.cPointer()))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QSequentialIterable__const_iterator) OperatorNotEqual(o *QSequentialIterable__const_iterator) bool {
|
|
|
|
return (bool)(C.QSequentialIterable__const_iterator_OperatorNotEqual(this.h, o.cPointer()))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QSequentialIterable__const_iterator) OperatorPlusPlus() *QSequentialIterable__const_iterator {
|
|
|
|
return UnsafeNewQSequentialIterable__const_iterator(unsafe.Pointer(C.QSequentialIterable__const_iterator_OperatorPlusPlus(this.h)))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QSequentialIterable__const_iterator) OperatorPlusPlusWithInt(param1 int) *QSequentialIterable__const_iterator {
|
|
|
|
_ret := C.QSequentialIterable__const_iterator_OperatorPlusPlusWithInt(this.h, (C.int)(param1))
|
|
|
|
_goptr := newQSequentialIterable__const_iterator(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QSequentialIterable__const_iterator) OperatorMinusMinus() *QSequentialIterable__const_iterator {
|
|
|
|
return UnsafeNewQSequentialIterable__const_iterator(unsafe.Pointer(C.QSequentialIterable__const_iterator_OperatorMinusMinus(this.h)))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QSequentialIterable__const_iterator) OperatorMinusMinusWithInt(param1 int) *QSequentialIterable__const_iterator {
|
|
|
|
_ret := C.QSequentialIterable__const_iterator_OperatorMinusMinusWithInt(this.h, (C.int)(param1))
|
|
|
|
_goptr := newQSequentialIterable__const_iterator(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QSequentialIterable__const_iterator) OperatorPlusAssign(j int) *QSequentialIterable__const_iterator {
|
|
|
|
return UnsafeNewQSequentialIterable__const_iterator(unsafe.Pointer(C.QSequentialIterable__const_iterator_OperatorPlusAssign(this.h, (C.int)(j))))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QSequentialIterable__const_iterator) OperatorMinusAssign(j int) *QSequentialIterable__const_iterator {
|
|
|
|
return UnsafeNewQSequentialIterable__const_iterator(unsafe.Pointer(C.QSequentialIterable__const_iterator_OperatorMinusAssign(this.h, (C.int)(j))))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QSequentialIterable__const_iterator) OperatorPlus(j int) *QSequentialIterable__const_iterator {
|
|
|
|
_ret := C.QSequentialIterable__const_iterator_OperatorPlus(this.h, (C.int)(j))
|
|
|
|
_goptr := newQSequentialIterable__const_iterator(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QSequentialIterable__const_iterator) OperatorMinus(j int) *QSequentialIterable__const_iterator {
|
|
|
|
_ret := C.QSequentialIterable__const_iterator_OperatorMinus(this.h, (C.int)(j))
|
|
|
|
_goptr := newQSequentialIterable__const_iterator(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
// Delete this object from C++ memory.
|
|
|
|
func (this *QSequentialIterable__const_iterator) Delete() {
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QSequentialIterable__const_iterator_Delete(this.h, C.bool(this.isSubclass))
|
2024-10-25 21:42:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// GoGC adds a Go Finalizer to this pointer, so that it will be deleted
|
|
|
|
// from C++ memory once it is unreachable from Go memory.
|
|
|
|
func (this *QSequentialIterable__const_iterator) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QSequentialIterable__const_iterator) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
type QAssociativeIterable__const_iterator struct {
|
2024-11-19 06:29:06 +00:00
|
|
|
h *C.QAssociativeIterable__const_iterator
|
|
|
|
isSubclass bool
|
2024-10-25 21:42:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAssociativeIterable__const_iterator) cPointer() *C.QAssociativeIterable__const_iterator {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAssociativeIterable__const_iterator) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// newQAssociativeIterable__const_iterator constructs the type using only CGO pointers.
|
2024-10-25 21:42:03 +00:00
|
|
|
func newQAssociativeIterable__const_iterator(h *C.QAssociativeIterable__const_iterator) *QAssociativeIterable__const_iterator {
|
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return &QAssociativeIterable__const_iterator{h: h}
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// UnsafeNewQAssociativeIterable__const_iterator constructs the type using only unsafe pointers.
|
2024-10-25 21:42:03 +00:00
|
|
|
func UnsafeNewQAssociativeIterable__const_iterator(h unsafe.Pointer) *QAssociativeIterable__const_iterator {
|
2024-11-19 06:29:06 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
return &QAssociativeIterable__const_iterator{h: (*C.QAssociativeIterable__const_iterator)(h)}
|
2024-10-25 21:42:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQAssociativeIterable__const_iterator constructs a new QAssociativeIterable::const_iterator object.
|
|
|
|
func NewQAssociativeIterable__const_iterator(other *QAssociativeIterable__const_iterator) *QAssociativeIterable__const_iterator {
|
2024-11-19 06:29:06 +00:00
|
|
|
var outptr_QAssociativeIterable__const_iterator *C.QAssociativeIterable__const_iterator = nil
|
|
|
|
|
|
|
|
C.QAssociativeIterable__const_iterator_new(other.cPointer(), &outptr_QAssociativeIterable__const_iterator)
|
|
|
|
ret := newQAssociativeIterable__const_iterator(outptr_QAssociativeIterable__const_iterator)
|
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-10-25 21:42:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAssociativeIterable__const_iterator) OperatorAssign(other *QAssociativeIterable__const_iterator) {
|
|
|
|
C.QAssociativeIterable__const_iterator_OperatorAssign(this.h, other.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAssociativeIterable__const_iterator) Key() *QVariant {
|
|
|
|
_ret := C.QAssociativeIterable__const_iterator_Key(this.h)
|
|
|
|
_goptr := newQVariant(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAssociativeIterable__const_iterator) Value() *QVariant {
|
|
|
|
_ret := C.QAssociativeIterable__const_iterator_Value(this.h)
|
|
|
|
_goptr := newQVariant(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAssociativeIterable__const_iterator) OperatorMultiply() *QVariant {
|
|
|
|
_ret := C.QAssociativeIterable__const_iterator_OperatorMultiply(this.h)
|
|
|
|
_goptr := newQVariant(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAssociativeIterable__const_iterator) OperatorEqual(o *QAssociativeIterable__const_iterator) bool {
|
|
|
|
return (bool)(C.QAssociativeIterable__const_iterator_OperatorEqual(this.h, o.cPointer()))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAssociativeIterable__const_iterator) OperatorNotEqual(o *QAssociativeIterable__const_iterator) bool {
|
|
|
|
return (bool)(C.QAssociativeIterable__const_iterator_OperatorNotEqual(this.h, o.cPointer()))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAssociativeIterable__const_iterator) OperatorPlusPlus() *QAssociativeIterable__const_iterator {
|
|
|
|
return UnsafeNewQAssociativeIterable__const_iterator(unsafe.Pointer(C.QAssociativeIterable__const_iterator_OperatorPlusPlus(this.h)))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAssociativeIterable__const_iterator) OperatorPlusPlusWithInt(param1 int) *QAssociativeIterable__const_iterator {
|
|
|
|
_ret := C.QAssociativeIterable__const_iterator_OperatorPlusPlusWithInt(this.h, (C.int)(param1))
|
|
|
|
_goptr := newQAssociativeIterable__const_iterator(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAssociativeIterable__const_iterator) OperatorMinusMinus() *QAssociativeIterable__const_iterator {
|
|
|
|
return UnsafeNewQAssociativeIterable__const_iterator(unsafe.Pointer(C.QAssociativeIterable__const_iterator_OperatorMinusMinus(this.h)))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAssociativeIterable__const_iterator) OperatorMinusMinusWithInt(param1 int) *QAssociativeIterable__const_iterator {
|
|
|
|
_ret := C.QAssociativeIterable__const_iterator_OperatorMinusMinusWithInt(this.h, (C.int)(param1))
|
|
|
|
_goptr := newQAssociativeIterable__const_iterator(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAssociativeIterable__const_iterator) OperatorPlusAssign(j int) *QAssociativeIterable__const_iterator {
|
|
|
|
return UnsafeNewQAssociativeIterable__const_iterator(unsafe.Pointer(C.QAssociativeIterable__const_iterator_OperatorPlusAssign(this.h, (C.int)(j))))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAssociativeIterable__const_iterator) OperatorMinusAssign(j int) *QAssociativeIterable__const_iterator {
|
|
|
|
return UnsafeNewQAssociativeIterable__const_iterator(unsafe.Pointer(C.QAssociativeIterable__const_iterator_OperatorMinusAssign(this.h, (C.int)(j))))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAssociativeIterable__const_iterator) OperatorPlus(j int) *QAssociativeIterable__const_iterator {
|
|
|
|
_ret := C.QAssociativeIterable__const_iterator_OperatorPlus(this.h, (C.int)(j))
|
|
|
|
_goptr := newQAssociativeIterable__const_iterator(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAssociativeIterable__const_iterator) OperatorMinus(j int) *QAssociativeIterable__const_iterator {
|
|
|
|
_ret := C.QAssociativeIterable__const_iterator_OperatorMinus(this.h, (C.int)(j))
|
|
|
|
_goptr := newQAssociativeIterable__const_iterator(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
// Delete this object from C++ memory.
|
|
|
|
func (this *QAssociativeIterable__const_iterator) Delete() {
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QAssociativeIterable__const_iterator_Delete(this.h, C.bool(this.isSubclass))
|
2024-10-25 21:42:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// GoGC adds a Go Finalizer to this pointer, so that it will be deleted
|
|
|
|
// from C++ memory once it is unreachable from Go memory.
|
|
|
|
func (this *QAssociativeIterable__const_iterator) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QAssociativeIterable__const_iterator) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|