miqt/qt6/gen_qplugin.go

292 lines
7.8 KiB
Go
Raw Normal View History

2024-10-20 05:21:03 +00:00
package qt6
/*
#include "gen_qplugin.h"
#include <stdlib.h>
*/
import "C"
import (
"runtime"
"unsafe"
)
type QPluginMetaData struct {
2024-11-19 06:29:06 +00:00
h *C.QPluginMetaData
isSubclass bool
2024-10-20 05:21:03 +00:00
}
func (this *QPluginMetaData) cPointer() *C.QPluginMetaData {
if this == nil {
return nil
}
return this.h
}
func (this *QPluginMetaData) UnsafePointer() unsafe.Pointer {
if this == nil {
return nil
}
return unsafe.Pointer(this.h)
}
2024-11-19 06:29:06 +00:00
// newQPluginMetaData constructs the type using only CGO pointers.
2024-10-20 05:21:03 +00:00
func newQPluginMetaData(h *C.QPluginMetaData) *QPluginMetaData {
if h == nil {
return nil
}
2024-12-07 04:15:57 +00:00
2024-10-20 05:21:03 +00:00
return &QPluginMetaData{h: h}
}
2024-11-19 06:29:06 +00:00
// UnsafeNewQPluginMetaData constructs the type using only unsafe pointers.
2024-10-20 05:21:03 +00:00
func UnsafeNewQPluginMetaData(h unsafe.Pointer) *QPluginMetaData {
2024-12-07 04:15:57 +00:00
return newQPluginMetaData((*C.QPluginMetaData)(h))
2024-10-20 05:21:03 +00:00
}
func QPluginMetaData_ArchRequirements() byte {
return (byte)(C.QPluginMetaData_ArchRequirements())
}
// Delete this object from C++ memory.
func (this *QPluginMetaData) Delete() {
2024-11-19 06:29:06 +00:00
C.QPluginMetaData_Delete(this.h, C.bool(this.isSubclass))
2024-10-20 05:21: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 *QPluginMetaData) GoGC() {
runtime.SetFinalizer(this, func(this *QPluginMetaData) {
this.Delete()
runtime.KeepAlive(this.h)
})
}
type QStaticPlugin struct {
2024-11-19 06:29:06 +00:00
h *C.QStaticPlugin
isSubclass bool
2024-10-20 05:21:03 +00:00
}
func (this *QStaticPlugin) cPointer() *C.QStaticPlugin {
if this == nil {
return nil
}
return this.h
}
func (this *QStaticPlugin) UnsafePointer() unsafe.Pointer {
if this == nil {
return nil
}
return unsafe.Pointer(this.h)
}
2024-11-19 06:29:06 +00:00
// newQStaticPlugin constructs the type using only CGO pointers.
2024-10-20 05:21:03 +00:00
func newQStaticPlugin(h *C.QStaticPlugin) *QStaticPlugin {
if h == nil {
return nil
}
2024-12-07 04:15:57 +00:00
2024-10-20 05:21:03 +00:00
return &QStaticPlugin{h: h}
}
2024-11-19 06:29:06 +00:00
// UnsafeNewQStaticPlugin constructs the type using only unsafe pointers.
2024-10-20 05:21:03 +00:00
func UnsafeNewQStaticPlugin(h unsafe.Pointer) *QStaticPlugin {
2024-12-07 04:15:57 +00:00
return newQStaticPlugin((*C.QStaticPlugin)(h))
2024-10-20 05:21:03 +00:00
}
func (this *QStaticPlugin) MetaData() *QJsonObject {
_goptr := newQJsonObject(C.QStaticPlugin_MetaData(this.h))
2024-10-20 05:21:03 +00:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
// Delete this object from C++ memory.
func (this *QStaticPlugin) Delete() {
2024-11-19 06:29:06 +00:00
C.QStaticPlugin_Delete(this.h, C.bool(this.isSubclass))
2024-10-20 05:21: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 *QStaticPlugin) GoGC() {
runtime.SetFinalizer(this, func(this *QStaticPlugin) {
this.Delete()
runtime.KeepAlive(this.h)
})
}
type QPluginMetaData__Header struct {
2024-11-19 06:29:06 +00:00
h *C.QPluginMetaData__Header
isSubclass bool
2024-10-20 05:21:03 +00:00
}
func (this *QPluginMetaData__Header) cPointer() *C.QPluginMetaData__Header {
if this == nil {
return nil
}
return this.h
}
func (this *QPluginMetaData__Header) UnsafePointer() unsafe.Pointer {
if this == nil {
return nil
}
return unsafe.Pointer(this.h)
}
2024-11-19 06:29:06 +00:00
// newQPluginMetaData__Header constructs the type using only CGO pointers.
2024-10-20 05:21:03 +00:00
func newQPluginMetaData__Header(h *C.QPluginMetaData__Header) *QPluginMetaData__Header {
if h == nil {
return nil
}
2024-12-07 04:15:57 +00:00
2024-10-20 05:21:03 +00:00
return &QPluginMetaData__Header{h: h}
}
2024-11-19 06:29:06 +00:00
// UnsafeNewQPluginMetaData__Header constructs the type using only unsafe pointers.
2024-10-20 05:21:03 +00:00
func UnsafeNewQPluginMetaData__Header(h unsafe.Pointer) *QPluginMetaData__Header {
2024-12-07 04:15:57 +00:00
return newQPluginMetaData__Header((*C.QPluginMetaData__Header)(h))
2024-10-20 05:21:03 +00:00
}
// NewQPluginMetaData__Header constructs a new QPluginMetaData::Header object.
func NewQPluginMetaData__Header(param1 *QPluginMetaData__Header) *QPluginMetaData__Header {
2024-11-19 06:29:06 +00:00
2024-12-07 04:15:57 +00:00
ret := newQPluginMetaData__Header(C.QPluginMetaData__Header_new(param1.cPointer()))
2024-11-19 06:29:06 +00:00
ret.isSubclass = true
return ret
2024-10-20 05:21:03 +00:00
}
// Delete this object from C++ memory.
func (this *QPluginMetaData__Header) Delete() {
2024-11-19 06:29:06 +00:00
C.QPluginMetaData__Header_Delete(this.h, C.bool(this.isSubclass))
2024-10-20 05:21: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 *QPluginMetaData__Header) GoGC() {
runtime.SetFinalizer(this, func(this *QPluginMetaData__Header) {
this.Delete()
runtime.KeepAlive(this.h)
})
}
type QPluginMetaData__MagicHeader struct {
2024-11-19 06:29:06 +00:00
h *C.QPluginMetaData__MagicHeader
isSubclass bool
2024-10-20 05:21:03 +00:00
}
func (this *QPluginMetaData__MagicHeader) cPointer() *C.QPluginMetaData__MagicHeader {
if this == nil {
return nil
}
return this.h
}
func (this *QPluginMetaData__MagicHeader) UnsafePointer() unsafe.Pointer {
if this == nil {
return nil
}
return unsafe.Pointer(this.h)
}
2024-11-19 06:29:06 +00:00
// newQPluginMetaData__MagicHeader constructs the type using only CGO pointers.
2024-10-20 05:21:03 +00:00
func newQPluginMetaData__MagicHeader(h *C.QPluginMetaData__MagicHeader) *QPluginMetaData__MagicHeader {
if h == nil {
return nil
}
2024-12-07 04:15:57 +00:00
2024-10-20 05:21:03 +00:00
return &QPluginMetaData__MagicHeader{h: h}
}
2024-11-19 06:29:06 +00:00
// UnsafeNewQPluginMetaData__MagicHeader constructs the type using only unsafe pointers.
2024-10-20 05:21:03 +00:00
func UnsafeNewQPluginMetaData__MagicHeader(h unsafe.Pointer) *QPluginMetaData__MagicHeader {
2024-12-07 04:15:57 +00:00
return newQPluginMetaData__MagicHeader((*C.QPluginMetaData__MagicHeader)(h))
2024-10-20 05:21:03 +00:00
}
// NewQPluginMetaData__MagicHeader constructs a new QPluginMetaData::MagicHeader object.
func NewQPluginMetaData__MagicHeader() *QPluginMetaData__MagicHeader {
2024-11-19 06:29:06 +00:00
2024-12-07 04:15:57 +00:00
ret := newQPluginMetaData__MagicHeader(C.QPluginMetaData__MagicHeader_new())
2024-11-19 06:29:06 +00:00
ret.isSubclass = true
return ret
2024-10-20 05:21:03 +00:00
}
// Delete this object from C++ memory.
func (this *QPluginMetaData__MagicHeader) Delete() {
2024-11-19 06:29:06 +00:00
C.QPluginMetaData__MagicHeader_Delete(this.h, C.bool(this.isSubclass))
2024-10-20 05:21: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 *QPluginMetaData__MagicHeader) GoGC() {
runtime.SetFinalizer(this, func(this *QPluginMetaData__MagicHeader) {
this.Delete()
runtime.KeepAlive(this.h)
})
}
type QPluginMetaData__ElfNoteHeader struct {
2024-11-19 06:29:06 +00:00
h *C.QPluginMetaData__ElfNoteHeader
isSubclass bool
2024-10-20 05:21:03 +00:00
}
func (this *QPluginMetaData__ElfNoteHeader) cPointer() *C.QPluginMetaData__ElfNoteHeader {
if this == nil {
return nil
}
return this.h
}
func (this *QPluginMetaData__ElfNoteHeader) UnsafePointer() unsafe.Pointer {
if this == nil {
return nil
}
return unsafe.Pointer(this.h)
}
2024-11-19 06:29:06 +00:00
// newQPluginMetaData__ElfNoteHeader constructs the type using only CGO pointers.
2024-10-20 05:21:03 +00:00
func newQPluginMetaData__ElfNoteHeader(h *C.QPluginMetaData__ElfNoteHeader) *QPluginMetaData__ElfNoteHeader {
if h == nil {
return nil
}
2024-12-07 04:15:57 +00:00
2024-10-20 05:21:03 +00:00
return &QPluginMetaData__ElfNoteHeader{h: h}
}
2024-11-19 06:29:06 +00:00
// UnsafeNewQPluginMetaData__ElfNoteHeader constructs the type using only unsafe pointers.
2024-10-20 05:21:03 +00:00
func UnsafeNewQPluginMetaData__ElfNoteHeader(h unsafe.Pointer) *QPluginMetaData__ElfNoteHeader {
2024-12-07 04:15:57 +00:00
return newQPluginMetaData__ElfNoteHeader((*C.QPluginMetaData__ElfNoteHeader)(h))
2024-10-20 05:21:03 +00:00
}
// NewQPluginMetaData__ElfNoteHeader constructs a new QPluginMetaData::ElfNoteHeader object.
func NewQPluginMetaData__ElfNoteHeader(payloadSize uint) *QPluginMetaData__ElfNoteHeader {
2024-11-19 06:29:06 +00:00
2024-12-07 04:15:57 +00:00
ret := newQPluginMetaData__ElfNoteHeader(C.QPluginMetaData__ElfNoteHeader_new((C.uint)(payloadSize)))
2024-11-19 06:29:06 +00:00
ret.isSubclass = true
return ret
2024-10-20 05:21:03 +00:00
}
// NewQPluginMetaData__ElfNoteHeader2 constructs a new QPluginMetaData::ElfNoteHeader object.
func NewQPluginMetaData__ElfNoteHeader2(param1 *QPluginMetaData__ElfNoteHeader) *QPluginMetaData__ElfNoteHeader {
2024-11-19 06:29:06 +00:00
2024-12-07 04:15:57 +00:00
ret := newQPluginMetaData__ElfNoteHeader(C.QPluginMetaData__ElfNoteHeader_new2(param1.cPointer()))
2024-11-19 06:29:06 +00:00
ret.isSubclass = true
return ret
2024-10-20 05:21:03 +00:00
}
// Delete this object from C++ memory.
func (this *QPluginMetaData__ElfNoteHeader) Delete() {
2024-11-19 06:29:06 +00:00
C.QPluginMetaData__ElfNoteHeader_Delete(this.h, C.bool(this.isSubclass))
2024-10-20 05:21: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 *QPluginMetaData__ElfNoteHeader) GoGC() {
runtime.SetFinalizer(this, func(this *QPluginMetaData__ElfNoteHeader) {
this.Delete()
runtime.KeepAlive(this.h)
})
}