2024-08-29 07:01:51 +00:00
|
|
|
package qt
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
#include "gen_qexception.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
*/
|
|
|
|
import "C"
|
|
|
|
|
|
|
|
import (
|
|
|
|
"runtime"
|
|
|
|
"unsafe"
|
|
|
|
)
|
|
|
|
|
|
|
|
type QtPrivate__ExceptionHolder struct {
|
|
|
|
h *C.QtPrivate__ExceptionHolder
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QtPrivate__ExceptionHolder) cPointer() *C.QtPrivate__ExceptionHolder {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func (this *QtPrivate__ExceptionHolder) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
func newQtPrivate__ExceptionHolder(h *C.QtPrivate__ExceptionHolder) *QtPrivate__ExceptionHolder {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-08-29 07:01:51 +00:00
|
|
|
return &QtPrivate__ExceptionHolder{h: h}
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func UnsafeNewQtPrivate__ExceptionHolder(h unsafe.Pointer) *QtPrivate__ExceptionHolder {
|
2024-08-29 07:01:51 +00:00
|
|
|
return newQtPrivate__ExceptionHolder((*C.QtPrivate__ExceptionHolder)(h))
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewQtPrivate__ExceptionHolder constructs a new QtPrivate::ExceptionHolder object.
|
|
|
|
func NewQtPrivate__ExceptionHolder() *QtPrivate__ExceptionHolder {
|
|
|
|
ret := C.QtPrivate__ExceptionHolder_new()
|
|
|
|
return newQtPrivate__ExceptionHolder(ret)
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Delete this object from C++ memory.
|
2024-08-29 07:01:51 +00:00
|
|
|
func (this *QtPrivate__ExceptionHolder) Delete() {
|
|
|
|
C.QtPrivate__ExceptionHolder_Delete(this.h)
|
|
|
|
}
|
|
|
|
|
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 *QtPrivate__ExceptionHolder) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QtPrivate__ExceptionHolder) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
type QtPrivate__ExceptionStore struct {
|
|
|
|
h *C.QtPrivate__ExceptionStore
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QtPrivate__ExceptionStore) cPointer() *C.QtPrivate__ExceptionStore {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func (this *QtPrivate__ExceptionStore) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
func newQtPrivate__ExceptionStore(h *C.QtPrivate__ExceptionStore) *QtPrivate__ExceptionStore {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-08-29 07:01:51 +00:00
|
|
|
return &QtPrivate__ExceptionStore{h: h}
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func UnsafeNewQtPrivate__ExceptionStore(h unsafe.Pointer) *QtPrivate__ExceptionStore {
|
2024-08-29 07:01:51 +00:00
|
|
|
return newQtPrivate__ExceptionStore((*C.QtPrivate__ExceptionStore)(h))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QtPrivate__ExceptionStore) HasException() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QtPrivate__ExceptionStore_HasException(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QtPrivate__ExceptionStore) ThrowPossibleException() {
|
|
|
|
C.QtPrivate__ExceptionStore_ThrowPossibleException(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QtPrivate__ExceptionStore) HasThrown() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QtPrivate__ExceptionStore_HasThrown(this.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 *QtPrivate__ExceptionStore) Delete() {
|
|
|
|
C.QtPrivate__ExceptionStore_Delete(this.h)
|
|
|
|
}
|
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 *QtPrivate__ExceptionStore) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QtPrivate__ExceptionStore) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|