miqt/qt/gen_qpropertyanimation.go

555 lines
20 KiB
Go
Raw Normal View History

package qt
/*
#include "gen_qpropertyanimation.h"
#include <stdlib.h>
*/
import "C"
import (
"runtime"
2024-11-19 19:29:06 +13:00
"runtime/cgo"
"unsafe"
)
type QPropertyAnimation struct {
h *C.QPropertyAnimation
*QVariantAnimation
}
func (this *QPropertyAnimation) cPointer() *C.QPropertyAnimation {
if this == nil {
return nil
}
return this.h
}
func (this *QPropertyAnimation) UnsafePointer() unsafe.Pointer {
if this == nil {
return nil
}
return unsafe.Pointer(this.h)
}
2024-11-19 19:29:06 +13:00
// newQPropertyAnimation constructs the type using only CGO pointers.
2024-12-07 17:15:57 +13:00
func newQPropertyAnimation(h *C.QPropertyAnimation) *QPropertyAnimation {
2024-09-01 14:23:55 +12:00
if h == nil {
return nil
}
2024-12-07 17:15:57 +13:00
var outptr_QVariantAnimation *C.QVariantAnimation = nil
C.QPropertyAnimation_virtbase(h, &outptr_QVariantAnimation)
2024-11-19 19:29:06 +13:00
return &QPropertyAnimation{h: h,
2024-12-07 17:15:57 +13:00
QVariantAnimation: newQVariantAnimation(outptr_QVariantAnimation)}
}
2024-11-19 19:29:06 +13:00
// UnsafeNewQPropertyAnimation constructs the type using only unsafe pointers.
2024-12-07 17:15:57 +13:00
func UnsafeNewQPropertyAnimation(h unsafe.Pointer) *QPropertyAnimation {
return newQPropertyAnimation((*C.QPropertyAnimation)(h))
}
// NewQPropertyAnimation constructs a new QPropertyAnimation object.
func NewQPropertyAnimation() *QPropertyAnimation {
2024-11-19 19:29:06 +13:00
return newQPropertyAnimation(C.QPropertyAnimation_new())
}
// NewQPropertyAnimation2 constructs a new QPropertyAnimation object.
func NewQPropertyAnimation2(target *QObject, propertyName []byte) *QPropertyAnimation {
propertyName_alias := C.struct_miqt_string{}
if len(propertyName) > 0 {
propertyName_alias.data = (*C.char)(unsafe.Pointer(&propertyName[0]))
} else {
propertyName_alias.data = (*C.char)(unsafe.Pointer(nil))
}
propertyName_alias.len = C.size_t(len(propertyName))
2024-11-19 19:29:06 +13:00
return newQPropertyAnimation(C.QPropertyAnimation_new2(target.cPointer(), propertyName_alias))
}
// NewQPropertyAnimation3 constructs a new QPropertyAnimation object.
func NewQPropertyAnimation3(parent *QObject) *QPropertyAnimation {
2024-11-19 19:29:06 +13:00
return newQPropertyAnimation(C.QPropertyAnimation_new3(parent.cPointer()))
}
// NewQPropertyAnimation4 constructs a new QPropertyAnimation object.
func NewQPropertyAnimation4(target *QObject, propertyName []byte, parent *QObject) *QPropertyAnimation {
propertyName_alias := C.struct_miqt_string{}
if len(propertyName) > 0 {
propertyName_alias.data = (*C.char)(unsafe.Pointer(&propertyName[0]))
} else {
propertyName_alias.data = (*C.char)(unsafe.Pointer(nil))
}
propertyName_alias.len = C.size_t(len(propertyName))
2024-11-19 19:29:06 +13:00
return newQPropertyAnimation(C.QPropertyAnimation_new4(target.cPointer(), propertyName_alias, parent.cPointer()))
}
func (this *QPropertyAnimation) MetaObject() *QMetaObject {
return newQMetaObject(C.QPropertyAnimation_MetaObject(this.h))
}
func (this *QPropertyAnimation) Metacast(param1 string) unsafe.Pointer {
param1_Cstring := C.CString(param1)
defer C.free(unsafe.Pointer(param1_Cstring))
return (unsafe.Pointer)(C.QPropertyAnimation_Metacast(this.h, param1_Cstring))
}
func QPropertyAnimation_Tr(s string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
var _ms C.struct_miqt_string = C.QPropertyAnimation_Tr(s_Cstring)
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func QPropertyAnimation_TrUtf8(s string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
var _ms C.struct_miqt_string = C.QPropertyAnimation_TrUtf8(s_Cstring)
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func (this *QPropertyAnimation) TargetObject() *QObject {
return newQObject(C.QPropertyAnimation_TargetObject(this.h))
}
func (this *QPropertyAnimation) SetTargetObject(target *QObject) {
C.QPropertyAnimation_SetTargetObject(this.h, target.cPointer())
}
func (this *QPropertyAnimation) PropertyName() []byte {
var _bytearray C.struct_miqt_string = C.QPropertyAnimation_PropertyName(this.h)
_ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len)))
C.free(unsafe.Pointer(_bytearray.data))
return _ret
}
func (this *QPropertyAnimation) SetPropertyName(propertyName []byte) {
propertyName_alias := C.struct_miqt_string{}
if len(propertyName) > 0 {
propertyName_alias.data = (*C.char)(unsafe.Pointer(&propertyName[0]))
} else {
propertyName_alias.data = (*C.char)(unsafe.Pointer(nil))
}
propertyName_alias.len = C.size_t(len(propertyName))
C.QPropertyAnimation_SetPropertyName(this.h, propertyName_alias)
}
func QPropertyAnimation_Tr2(s string, c string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
c_Cstring := C.CString(c)
defer C.free(unsafe.Pointer(c_Cstring))
var _ms C.struct_miqt_string = C.QPropertyAnimation_Tr2(s_Cstring, c_Cstring)
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func QPropertyAnimation_Tr3(s string, c string, n int) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
c_Cstring := C.CString(c)
defer C.free(unsafe.Pointer(c_Cstring))
var _ms C.struct_miqt_string = C.QPropertyAnimation_Tr3(s_Cstring, c_Cstring, (C.int)(n))
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func QPropertyAnimation_TrUtf82(s string, c string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
c_Cstring := C.CString(c)
defer C.free(unsafe.Pointer(c_Cstring))
var _ms C.struct_miqt_string = C.QPropertyAnimation_TrUtf82(s_Cstring, c_Cstring)
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func QPropertyAnimation_TrUtf83(s string, c string, n int) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
c_Cstring := C.CString(c)
defer C.free(unsafe.Pointer(c_Cstring))
var _ms C.struct_miqt_string = C.QPropertyAnimation_TrUtf83(s_Cstring, c_Cstring, (C.int)(n))
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
2024-11-19 19:29:06 +13:00
func (this *QPropertyAnimation) callVirtualBase_Event(event *QEvent) bool {
return (bool)(C.QPropertyAnimation_virtualbase_Event(unsafe.Pointer(this.h), event.cPointer()))
}
func (this *QPropertyAnimation) OnEvent(slot func(super func(event *QEvent) bool, event *QEvent) bool) {
ok := C.QPropertyAnimation_override_virtual_Event(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QPropertyAnimation_Event
func miqt_exec_callback_QPropertyAnimation_Event(self *C.QPropertyAnimation, cb C.intptr_t, event *C.QEvent) C.bool {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QEvent) bool, event *QEvent) bool)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQEvent(event)
2024-11-19 19:29:06 +13:00
virtualReturn := gofunc((&QPropertyAnimation{h: self}).callVirtualBase_Event, slotval1)
return (C.bool)(virtualReturn)
}
func (this *QPropertyAnimation) callVirtualBase_UpdateCurrentValue(value *QVariant) {
C.QPropertyAnimation_virtualbase_UpdateCurrentValue(unsafe.Pointer(this.h), value.cPointer())
}
func (this *QPropertyAnimation) OnUpdateCurrentValue(slot func(super func(value *QVariant), value *QVariant)) {
ok := C.QPropertyAnimation_override_virtual_UpdateCurrentValue(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QPropertyAnimation_UpdateCurrentValue
func miqt_exec_callback_QPropertyAnimation_UpdateCurrentValue(self *C.QPropertyAnimation, cb C.intptr_t, value *C.QVariant) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(value *QVariant), value *QVariant))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQVariant(value)
2024-11-19 19:29:06 +13:00
gofunc((&QPropertyAnimation{h: self}).callVirtualBase_UpdateCurrentValue, slotval1)
}
func (this *QPropertyAnimation) callVirtualBase_UpdateState(newState QAbstractAnimation__State, oldState QAbstractAnimation__State) {
C.QPropertyAnimation_virtualbase_UpdateState(unsafe.Pointer(this.h), (C.int)(newState), (C.int)(oldState))
}
func (this *QPropertyAnimation) OnUpdateState(slot func(super func(newState QAbstractAnimation__State, oldState QAbstractAnimation__State), newState QAbstractAnimation__State, oldState QAbstractAnimation__State)) {
ok := C.QPropertyAnimation_override_virtual_UpdateState(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QPropertyAnimation_UpdateState
func miqt_exec_callback_QPropertyAnimation_UpdateState(self *C.QPropertyAnimation, cb C.intptr_t, newState C.int, oldState C.int) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(newState QAbstractAnimation__State, oldState QAbstractAnimation__State), newState QAbstractAnimation__State, oldState QAbstractAnimation__State))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (QAbstractAnimation__State)(newState)
slotval2 := (QAbstractAnimation__State)(oldState)
gofunc((&QPropertyAnimation{h: self}).callVirtualBase_UpdateState, slotval1, slotval2)
}
func (this *QPropertyAnimation) callVirtualBase_Duration() int {
return (int)(C.QPropertyAnimation_virtualbase_Duration(unsafe.Pointer(this.h)))
}
func (this *QPropertyAnimation) OnDuration(slot func(super func() int) int) {
ok := C.QPropertyAnimation_override_virtual_Duration(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QPropertyAnimation_Duration
func miqt_exec_callback_QPropertyAnimation_Duration(self *C.QPropertyAnimation, cb C.intptr_t) C.int {
gofunc, ok := cgo.Handle(cb).Value().(func(super func() int) int)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
virtualReturn := gofunc((&QPropertyAnimation{h: self}).callVirtualBase_Duration)
return (C.int)(virtualReturn)
}
func (this *QPropertyAnimation) callVirtualBase_UpdateCurrentTime(param1 int) {
C.QPropertyAnimation_virtualbase_UpdateCurrentTime(unsafe.Pointer(this.h), (C.int)(param1))
}
func (this *QPropertyAnimation) OnUpdateCurrentTime(slot func(super func(param1 int), param1 int)) {
ok := C.QPropertyAnimation_override_virtual_UpdateCurrentTime(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QPropertyAnimation_UpdateCurrentTime
func miqt_exec_callback_QPropertyAnimation_UpdateCurrentTime(self *C.QPropertyAnimation, cb C.intptr_t, param1 C.int) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 int), param1 int))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (int)(param1)
gofunc((&QPropertyAnimation{h: self}).callVirtualBase_UpdateCurrentTime, slotval1)
}
func (this *QPropertyAnimation) callVirtualBase_Interpolated(from *QVariant, to *QVariant, progress float64) *QVariant {
_goptr := newQVariant(C.QPropertyAnimation_virtualbase_Interpolated(unsafe.Pointer(this.h), from.cPointer(), to.cPointer(), (C.double)(progress)))
2024-11-19 19:29:06 +13:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QPropertyAnimation) OnInterpolated(slot func(super func(from *QVariant, to *QVariant, progress float64) *QVariant, from *QVariant, to *QVariant, progress float64) *QVariant) {
ok := C.QPropertyAnimation_override_virtual_Interpolated(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QPropertyAnimation_Interpolated
func miqt_exec_callback_QPropertyAnimation_Interpolated(self *C.QPropertyAnimation, cb C.intptr_t, from *C.QVariant, to *C.QVariant, progress C.double) *C.QVariant {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(from *QVariant, to *QVariant, progress float64) *QVariant, from *QVariant, to *QVariant, progress float64) *QVariant)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQVariant(from)
slotval2 := newQVariant(to)
2024-11-19 19:29:06 +13:00
slotval3 := (float64)(progress)
virtualReturn := gofunc((&QPropertyAnimation{h: self}).callVirtualBase_Interpolated, slotval1, slotval2, slotval3)
return virtualReturn.cPointer()
}
func (this *QPropertyAnimation) callVirtualBase_UpdateDirection(direction QAbstractAnimation__Direction) {
C.QPropertyAnimation_virtualbase_UpdateDirection(unsafe.Pointer(this.h), (C.int)(direction))
}
func (this *QPropertyAnimation) OnUpdateDirection(slot func(super func(direction QAbstractAnimation__Direction), direction QAbstractAnimation__Direction)) {
ok := C.QPropertyAnimation_override_virtual_UpdateDirection(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QPropertyAnimation_UpdateDirection
func miqt_exec_callback_QPropertyAnimation_UpdateDirection(self *C.QPropertyAnimation, cb C.intptr_t, direction C.int) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(direction QAbstractAnimation__Direction), direction QAbstractAnimation__Direction))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (QAbstractAnimation__Direction)(direction)
gofunc((&QPropertyAnimation{h: self}).callVirtualBase_UpdateDirection, slotval1)
}
func (this *QPropertyAnimation) callVirtualBase_EventFilter(watched *QObject, event *QEvent) bool {
return (bool)(C.QPropertyAnimation_virtualbase_EventFilter(unsafe.Pointer(this.h), watched.cPointer(), event.cPointer()))
}
func (this *QPropertyAnimation) OnEventFilter(slot func(super func(watched *QObject, event *QEvent) bool, watched *QObject, event *QEvent) bool) {
ok := C.QPropertyAnimation_override_virtual_EventFilter(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QPropertyAnimation_EventFilter
func miqt_exec_callback_QPropertyAnimation_EventFilter(self *C.QPropertyAnimation, cb C.intptr_t, watched *C.QObject, event *C.QEvent) C.bool {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(watched *QObject, event *QEvent) bool, watched *QObject, event *QEvent) bool)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQObject(watched)
slotval2 := newQEvent(event)
virtualReturn := gofunc((&QPropertyAnimation{h: self}).callVirtualBase_EventFilter, slotval1, slotval2)
return (C.bool)(virtualReturn)
}
func (this *QPropertyAnimation) callVirtualBase_TimerEvent(event *QTimerEvent) {
C.QPropertyAnimation_virtualbase_TimerEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QPropertyAnimation) OnTimerEvent(slot func(super func(event *QTimerEvent), event *QTimerEvent)) {
ok := C.QPropertyAnimation_override_virtual_TimerEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QPropertyAnimation_TimerEvent
func miqt_exec_callback_QPropertyAnimation_TimerEvent(self *C.QPropertyAnimation, cb C.intptr_t, event *C.QTimerEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QTimerEvent), event *QTimerEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQTimerEvent(event)
gofunc((&QPropertyAnimation{h: self}).callVirtualBase_TimerEvent, slotval1)
}
func (this *QPropertyAnimation) callVirtualBase_ChildEvent(event *QChildEvent) {
C.QPropertyAnimation_virtualbase_ChildEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QPropertyAnimation) OnChildEvent(slot func(super func(event *QChildEvent), event *QChildEvent)) {
ok := C.QPropertyAnimation_override_virtual_ChildEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QPropertyAnimation_ChildEvent
func miqt_exec_callback_QPropertyAnimation_ChildEvent(self *C.QPropertyAnimation, cb C.intptr_t, event *C.QChildEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QChildEvent), event *QChildEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQChildEvent(event)
gofunc((&QPropertyAnimation{h: self}).callVirtualBase_ChildEvent, slotval1)
}
func (this *QPropertyAnimation) callVirtualBase_CustomEvent(event *QEvent) {
C.QPropertyAnimation_virtualbase_CustomEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QPropertyAnimation) OnCustomEvent(slot func(super func(event *QEvent), event *QEvent)) {
ok := C.QPropertyAnimation_override_virtual_CustomEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QPropertyAnimation_CustomEvent
func miqt_exec_callback_QPropertyAnimation_CustomEvent(self *C.QPropertyAnimation, cb C.intptr_t, event *C.QEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QEvent), event *QEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQEvent(event)
gofunc((&QPropertyAnimation{h: self}).callVirtualBase_CustomEvent, slotval1)
}
func (this *QPropertyAnimation) callVirtualBase_ConnectNotify(signal *QMetaMethod) {
C.QPropertyAnimation_virtualbase_ConnectNotify(unsafe.Pointer(this.h), signal.cPointer())
}
func (this *QPropertyAnimation) OnConnectNotify(slot func(super func(signal *QMetaMethod), signal *QMetaMethod)) {
ok := C.QPropertyAnimation_override_virtual_ConnectNotify(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QPropertyAnimation_ConnectNotify
func miqt_exec_callback_QPropertyAnimation_ConnectNotify(self *C.QPropertyAnimation, cb C.intptr_t, signal *C.QMetaMethod) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(signal *QMetaMethod), signal *QMetaMethod))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQMetaMethod(signal)
gofunc((&QPropertyAnimation{h: self}).callVirtualBase_ConnectNotify, slotval1)
}
func (this *QPropertyAnimation) callVirtualBase_DisconnectNotify(signal *QMetaMethod) {
C.QPropertyAnimation_virtualbase_DisconnectNotify(unsafe.Pointer(this.h), signal.cPointer())
}
func (this *QPropertyAnimation) OnDisconnectNotify(slot func(super func(signal *QMetaMethod), signal *QMetaMethod)) {
ok := C.QPropertyAnimation_override_virtual_DisconnectNotify(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
}
//export miqt_exec_callback_QPropertyAnimation_DisconnectNotify
func miqt_exec_callback_QPropertyAnimation_DisconnectNotify(self *C.QPropertyAnimation, cb C.intptr_t, signal *C.QMetaMethod) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(signal *QMetaMethod), signal *QMetaMethod))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQMetaMethod(signal)
gofunc((&QPropertyAnimation{h: self}).callVirtualBase_DisconnectNotify, slotval1)
}
// Delete this object from C++ memory.
func (this *QPropertyAnimation) Delete() {
C.QPropertyAnimation_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 *QPropertyAnimation) GoGC() {
runtime.SetFinalizer(this, func(this *QPropertyAnimation) {
this.Delete()
runtime.KeepAlive(this.h)
})
}