miqt/qt/gen_qhashfunctions.go

111 lines
3.2 KiB
Go
Raw Normal View History

2024-08-29 07:01:51 +00:00
package qt
/*
#include "gen_qhashfunctions.h"
#include <stdlib.h>
*/
import "C"
import (
"runtime"
2024-08-29 07:01:51 +00:00
"unsafe"
)
type QtPrivate__QHashCombine struct {
h *C.QtPrivate__QHashCombine
}
func (this *QtPrivate__QHashCombine) cPointer() *C.QtPrivate__QHashCombine {
if this == nil {
return nil
}
return this.h
}
func newQtPrivate__QHashCombine(h *C.QtPrivate__QHashCombine) *QtPrivate__QHashCombine {
2024-09-01 02:23:55 +00:00
if h == nil {
return nil
}
2024-08-29 07:01:51 +00:00
return &QtPrivate__QHashCombine{h: h}
}
func newQtPrivate__QHashCombine_U(h unsafe.Pointer) *QtPrivate__QHashCombine {
return newQtPrivate__QHashCombine((*C.QtPrivate__QHashCombine)(h))
}
// NewQtPrivate__QHashCombine constructs a new QtPrivate::QHashCombine object.
func NewQtPrivate__QHashCombine() *QtPrivate__QHashCombine {
ret := C.QtPrivate__QHashCombine_new()
return newQtPrivate__QHashCombine(ret)
}
// NewQtPrivate__QHashCombine2 constructs a new QtPrivate::QHashCombine object.
func NewQtPrivate__QHashCombine2(param1 *QtPrivate__QHashCombine) *QtPrivate__QHashCombine {
ret := C.QtPrivate__QHashCombine_new2(param1.cPointer())
return newQtPrivate__QHashCombine(ret)
}
// Delete this object from C++ memory.
2024-08-29 07:01:51 +00:00
func (this *QtPrivate__QHashCombine) Delete() {
C.QtPrivate__QHashCombine_Delete(this.h)
}
// 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 *QtPrivate__QHashCombine) GoGC() {
runtime.SetFinalizer(this, func(this *QtPrivate__QHashCombine) {
this.Delete()
runtime.KeepAlive(this.h)
})
}
2024-08-29 07:01:51 +00:00
type QtPrivate__QHashCombineCommutative struct {
h *C.QtPrivate__QHashCombineCommutative
}
func (this *QtPrivate__QHashCombineCommutative) cPointer() *C.QtPrivate__QHashCombineCommutative {
if this == nil {
return nil
}
return this.h
}
func newQtPrivate__QHashCombineCommutative(h *C.QtPrivate__QHashCombineCommutative) *QtPrivate__QHashCombineCommutative {
2024-09-01 02:23:55 +00:00
if h == nil {
return nil
}
2024-08-29 07:01:51 +00:00
return &QtPrivate__QHashCombineCommutative{h: h}
}
func newQtPrivate__QHashCombineCommutative_U(h unsafe.Pointer) *QtPrivate__QHashCombineCommutative {
return newQtPrivate__QHashCombineCommutative((*C.QtPrivate__QHashCombineCommutative)(h))
}
// NewQtPrivate__QHashCombineCommutative constructs a new QtPrivate::QHashCombineCommutative object.
func NewQtPrivate__QHashCombineCommutative() *QtPrivate__QHashCombineCommutative {
ret := C.QtPrivate__QHashCombineCommutative_new()
return newQtPrivate__QHashCombineCommutative(ret)
}
// NewQtPrivate__QHashCombineCommutative2 constructs a new QtPrivate::QHashCombineCommutative object.
func NewQtPrivate__QHashCombineCommutative2(param1 *QtPrivate__QHashCombineCommutative) *QtPrivate__QHashCombineCommutative {
ret := C.QtPrivate__QHashCombineCommutative_new2(param1.cPointer())
return newQtPrivate__QHashCombineCommutative(ret)
}
// Delete this object from C++ memory.
2024-08-29 07:01:51 +00:00
func (this *QtPrivate__QHashCombineCommutative) Delete() {
C.QtPrivate__QHashCombineCommutative_Delete(this.h)
}
// 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 *QtPrivate__QHashCombineCommutative) GoGC() {
runtime.SetFinalizer(this, func(this *QtPrivate__QHashCombineCommutative) {
this.Delete()
runtime.KeepAlive(this.h)
})
}