2024-08-25 16:08:24 +12:00
|
|
|
package qt
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
#include "gen_qpropertyanimation.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
*/
|
|
|
|
import "C"
|
|
|
|
|
|
|
|
import (
|
|
|
|
"runtime"
|
2024-11-19 19:29:06 +13:00
|
|
|
"runtime/cgo"
|
2024-08-25 16:08:24 +12:00
|
|
|
"unsafe"
|
|
|
|
)
|
|
|
|
|
|
|
|
type QPropertyAnimation struct {
|
2025-01-18 17:57:48 +13:00
|
|
|
h *C.QPropertyAnimation
|
2024-08-25 16:08:24 +12:00
|
|
|
*QVariantAnimation
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QPropertyAnimation) cPointer() *C.QPropertyAnimation {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
2024-10-16 18:07:56 +13:00
|
|
|
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-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
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))
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQPropertyAnimation constructs a new QPropertyAnimation object.
|
|
|
|
func NewQPropertyAnimation() *QPropertyAnimation {
|
2024-11-19 19:29:06 +13:00
|
|
|
|
2025-01-18 17:57:48 +13:00
|
|
|
return newQPropertyAnimation(C.QPropertyAnimation_new())
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQPropertyAnimation2 constructs a new QPropertyAnimation object.
|
2024-10-19 12:53:33 +13:00
|
|
|
func NewQPropertyAnimation2(target *QObject, propertyName []byte) *QPropertyAnimation {
|
|
|
|
propertyName_alias := C.struct_miqt_string{}
|
|
|
|
propertyName_alias.data = (*C.char)(unsafe.Pointer(&propertyName[0]))
|
|
|
|
propertyName_alias.len = C.size_t(len(propertyName))
|
2024-11-19 19:29:06 +13:00
|
|
|
|
2025-01-18 17:57:48 +13:00
|
|
|
return newQPropertyAnimation(C.QPropertyAnimation_new2(target.cPointer(), propertyName_alias))
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQPropertyAnimation3 constructs a new QPropertyAnimation object.
|
|
|
|
func NewQPropertyAnimation3(parent *QObject) *QPropertyAnimation {
|
2024-11-19 19:29:06 +13:00
|
|
|
|
2025-01-18 17:57:48 +13:00
|
|
|
return newQPropertyAnimation(C.QPropertyAnimation_new3(parent.cPointer()))
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQPropertyAnimation4 constructs a new QPropertyAnimation object.
|
2024-10-19 12:53:33 +13:00
|
|
|
func NewQPropertyAnimation4(target *QObject, propertyName []byte, parent *QObject) *QPropertyAnimation {
|
|
|
|
propertyName_alias := C.struct_miqt_string{}
|
|
|
|
propertyName_alias.data = (*C.char)(unsafe.Pointer(&propertyName[0]))
|
|
|
|
propertyName_alias.len = C.size_t(len(propertyName))
|
2024-11-19 19:29:06 +13:00
|
|
|
|
2025-01-18 17:57:48 +13:00
|
|
|
return newQPropertyAnimation(C.QPropertyAnimation_new4(target.cPointer(), propertyName_alias, parent.cPointer()))
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QPropertyAnimation) MetaObject() *QMetaObject {
|
2024-12-07 15:02:06 +13:00
|
|
|
return newQMetaObject(C.QPropertyAnimation_MetaObject(this.h))
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
2024-09-21 10:32:57 +12:00
|
|
|
func (this *QPropertyAnimation) Metacast(param1 string) unsafe.Pointer {
|
|
|
|
param1_Cstring := C.CString(param1)
|
|
|
|
defer C.free(unsafe.Pointer(param1_Cstring))
|
2024-10-19 12:53:33 +13:00
|
|
|
return (unsafe.Pointer)(C.QPropertyAnimation_Metacast(this.h, param1_Cstring))
|
2024-09-21 10:32:57 +12:00
|
|
|
}
|
|
|
|
|
2024-08-25 16:08:24 +12:00
|
|
|
func QPropertyAnimation_Tr(s string) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
2024-10-19 12:53:33 +13:00
|
|
|
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))
|
2024-09-15 10:29:05 +12:00
|
|
|
return _ret
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
func QPropertyAnimation_TrUtf8(s string) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
2024-10-19 12:53:33 +13:00
|
|
|
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))
|
2024-09-15 10:29:05 +12:00
|
|
|
return _ret
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QPropertyAnimation) TargetObject() *QObject {
|
2024-12-07 15:02:06 +13:00
|
|
|
return newQObject(C.QPropertyAnimation_TargetObject(this.h))
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QPropertyAnimation) SetTargetObject(target *QObject) {
|
|
|
|
C.QPropertyAnimation_SetTargetObject(this.h, target.cPointer())
|
|
|
|
}
|
|
|
|
|
2024-10-19 12:53:33 +13:00
|
|
|
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
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
2024-10-19 12:53:33 +13:00
|
|
|
func (this *QPropertyAnimation) SetPropertyName(propertyName []byte) {
|
|
|
|
propertyName_alias := C.struct_miqt_string{}
|
|
|
|
propertyName_alias.data = (*C.char)(unsafe.Pointer(&propertyName[0]))
|
|
|
|
propertyName_alias.len = C.size_t(len(propertyName))
|
|
|
|
C.QPropertyAnimation_SetPropertyName(this.h, propertyName_alias)
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
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))
|
2024-10-19 12:53:33 +13:00
|
|
|
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))
|
2024-09-15 10:29:05 +12:00
|
|
|
return _ret
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
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))
|
2024-10-19 12:53:33 +13:00
|
|
|
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))
|
2024-09-15 10:29:05 +12:00
|
|
|
return _ret
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
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))
|
2024-10-19 12:53:33 +13:00
|
|
|
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))
|
2024-09-15 10:29:05 +12:00
|
|
|
return _ret
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
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))
|
2024-10-19 12:53:33 +13:00
|
|
|
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))
|
2024-09-15 10:29:05 +12:00
|
|
|
return _ret
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
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) {
|
2025-01-18 17:57:48 +13:00
|
|
|
ok := C.QPropertyAnimation_override_virtual_Event(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
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
|
2024-12-07 15:02:06 +13:00
|
|
|
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)) {
|
2025-01-18 17:57:48 +13:00
|
|
|
ok := C.QPropertyAnimation_override_virtual_UpdateCurrentValue(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
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
|
2024-12-07 15:02:06 +13:00
|
|
|
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)) {
|
2025-01-18 17:57:48 +13:00
|
|
|
ok := C.QPropertyAnimation_override_virtual_UpdateState(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
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) {
|
2025-01-18 17:57:48 +13:00
|
|
|
ok := C.QPropertyAnimation_override_virtual_Duration(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
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)) {
|
2025-01-18 17:57:48 +13:00
|
|
|
ok := C.QPropertyAnimation_override_virtual_UpdateCurrentTime(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
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 {
|
|
|
|
|
2024-12-07 15:02:06 +13:00
|
|
|
_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) {
|
2025-01-18 17:57:48 +13:00
|
|
|
ok := C.QPropertyAnimation_override_virtual_Interpolated(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
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
|
2024-12-07 15:02:06 +13:00
|
|
|
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()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2025-01-19 16:39:11 +13:00
|
|
|
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)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2024-09-15 10:29:05 +12:00
|
|
|
// Delete this object from C++ memory.
|
2024-08-25 16:08:24 +12:00
|
|
|
func (this *QPropertyAnimation) Delete() {
|
2025-01-18 17:42:41 +13:00
|
|
|
C.QPropertyAnimation_Delete(this.h)
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
2024-09-15 10:29:05 +12: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 *QPropertyAnimation) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QPropertyAnimation) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|