2024-08-25 04:08:24 +00:00
|
|
|
package qt
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
#include "gen_qscopedpointer.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
*/
|
|
|
|
import "C"
|
|
|
|
|
|
|
|
import (
|
|
|
|
"unsafe"
|
|
|
|
)
|
|
|
|
|
|
|
|
type QScopedPointerPodDeleter struct {
|
|
|
|
h *C.QScopedPointerPodDeleter
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QScopedPointerPodDeleter) cPointer() *C.QScopedPointerPodDeleter {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
|
|
|
func newQScopedPointerPodDeleter(h *C.QScopedPointerPodDeleter) *QScopedPointerPodDeleter {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
return &QScopedPointerPodDeleter{h: h}
|
|
|
|
}
|
|
|
|
|
|
|
|
func newQScopedPointerPodDeleter_U(h unsafe.Pointer) *QScopedPointerPodDeleter {
|
|
|
|
return newQScopedPointerPodDeleter((*C.QScopedPointerPodDeleter)(h))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QScopedPointerPodDeleter) Delete() {
|
|
|
|
C.QScopedPointerPodDeleter_Delete(this.h)
|
|
|
|
}
|