miqt/qt/gen_qarraydata.go

122 lines
3.3 KiB
Go

package qt
/*
#cgo CFLAGS: -fPIC
#cgo pkg-config: Qt5Widgets
#include "gen_qarraydata.h"
#include <stdlib.h>
*/
import "C"
import (
"unsafe"
)
type QArrayData struct {
h *C.QArrayData
}
func (this *QArrayData) cPointer() *C.QArrayData {
if this == nil {
return nil
}
return this.h
}
func newQArrayData(h *C.QArrayData) *QArrayData {
if h == nil {
return nil
}
return &QArrayData{h: h}
}
func newQArrayData_U(h unsafe.Pointer) *QArrayData {
return newQArrayData((*C.QArrayData)(h))
}
func (this *QArrayData) IsMutable() bool {
ret := C.QArrayData_IsMutable(this.h)
return (bool)(ret)
}
func (this *QArrayData) DetachCapacity(newSize uint64) uint64 {
ret := C.QArrayData_DetachCapacity(this.h, (C.size_t)(newSize))
return (uint64)(ret)
}
func (this *QArrayData) DetachFlags() int {
ret := C.QArrayData_DetachFlags(this.h)
return (int)(ret)
}
func (this *QArrayData) CloneFlags() int {
ret := C.QArrayData_CloneFlags(this.h)
return (int)(ret)
}
func QArrayData_Allocate(objectSize uint64, alignment uint64, capacity uint64) *QArrayData {
ret := C.QArrayData_Allocate((C.size_t)(objectSize), (C.size_t)(alignment), (C.size_t)(capacity))
return newQArrayData_U(unsafe.Pointer(ret))
}
func QArrayData_ReallocateUnaligned(data *QArrayData, objectSize uint64, newCapacity uint64) *QArrayData {
ret := C.QArrayData_ReallocateUnaligned(data.cPointer(), (C.size_t)(objectSize), (C.size_t)(newCapacity))
return newQArrayData_U(unsafe.Pointer(ret))
}
func QArrayData_Deallocate(data *QArrayData, objectSize uint64, alignment uint64) {
C.QArrayData_Deallocate(data.cPointer(), (C.size_t)(objectSize), (C.size_t)(alignment))
}
func QArrayData_SharedNull() *QArrayData {
ret := C.QArrayData_SharedNull()
return newQArrayData_U(unsafe.Pointer(ret))
}
func QArrayData_Allocate4(objectSize uint64, alignment uint64, capacity uint64, options int) *QArrayData {
ret := C.QArrayData_Allocate4((C.size_t)(objectSize), (C.size_t)(alignment), (C.size_t)(capacity), (C.int)(options))
return newQArrayData_U(unsafe.Pointer(ret))
}
func QArrayData_ReallocateUnaligned4(data *QArrayData, objectSize uint64, newCapacity uint64, newOptions int) *QArrayData {
ret := C.QArrayData_ReallocateUnaligned4(data.cPointer(), (C.size_t)(objectSize), (C.size_t)(newCapacity), (C.int)(newOptions))
return newQArrayData_U(unsafe.Pointer(ret))
}
func (this *QArrayData) Delete() {
C.QArrayData_Delete(this.h)
}
type QtPrivate__QContainerImplHelper struct {
h *C.QtPrivate__QContainerImplHelper
}
func (this *QtPrivate__QContainerImplHelper) cPointer() *C.QtPrivate__QContainerImplHelper {
if this == nil {
return nil
}
return this.h
}
func newQtPrivate__QContainerImplHelper(h *C.QtPrivate__QContainerImplHelper) *QtPrivate__QContainerImplHelper {
if h == nil {
return nil
}
return &QtPrivate__QContainerImplHelper{h: h}
}
func newQtPrivate__QContainerImplHelper_U(h unsafe.Pointer) *QtPrivate__QContainerImplHelper {
return newQtPrivate__QContainerImplHelper((*C.QtPrivate__QContainerImplHelper)(h))
}
func QtPrivate__QContainerImplHelper_Mid(originalLength int, position *int, length *int) uintptr {
ret := C.QtPrivate__QContainerImplHelper_Mid((C.int)(originalLength), (*C.int)(unsafe.Pointer(position)), (*C.int)(unsafe.Pointer(length)))
return (uintptr)(ret)
}
func (this *QtPrivate__QContainerImplHelper) Delete() {
C.QtPrivate__QContainerImplHelper_Delete(this.h)
}