2024-08-25 04:08:24 +00:00
|
|
|
package qt
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
#include "gen_qgraphicsitemanimation.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
*/
|
|
|
|
import "C"
|
|
|
|
|
|
|
|
import (
|
|
|
|
"runtime"
|
|
|
|
"unsafe"
|
|
|
|
)
|
|
|
|
|
|
|
|
type QGraphicsItemAnimation struct {
|
|
|
|
h *C.QGraphicsItemAnimation
|
|
|
|
*QObject
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsItemAnimation) cPointer() *C.QGraphicsItemAnimation {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
|
|
|
func newQGraphicsItemAnimation(h *C.QGraphicsItemAnimation) *QGraphicsItemAnimation {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
return &QGraphicsItemAnimation{h: h, QObject: newQObject_U(unsafe.Pointer(h))}
|
|
|
|
}
|
|
|
|
|
|
|
|
func newQGraphicsItemAnimation_U(h unsafe.Pointer) *QGraphicsItemAnimation {
|
|
|
|
return newQGraphicsItemAnimation((*C.QGraphicsItemAnimation)(h))
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewQGraphicsItemAnimation constructs a new QGraphicsItemAnimation object.
|
|
|
|
func NewQGraphicsItemAnimation() *QGraphicsItemAnimation {
|
|
|
|
ret := C.QGraphicsItemAnimation_new()
|
|
|
|
return newQGraphicsItemAnimation(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewQGraphicsItemAnimation2 constructs a new QGraphicsItemAnimation object.
|
|
|
|
func NewQGraphicsItemAnimation2(parent *QObject) *QGraphicsItemAnimation {
|
|
|
|
ret := C.QGraphicsItemAnimation_new2(parent.cPointer())
|
|
|
|
return newQGraphicsItemAnimation(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsItemAnimation) MetaObject() *QMetaObject {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QGraphicsItemAnimation_MetaObject(this.h)
|
|
|
|
return newQMetaObject_U(unsafe.Pointer(_ret))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QGraphicsItemAnimation_Tr(s string) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
2024-09-14 22:29:05 +00:00
|
|
|
var _ms *C.struct_miqt_string = C.QGraphicsItemAnimation_Tr(s_Cstring)
|
|
|
|
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms))
|
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QGraphicsItemAnimation_TrUtf8(s string) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
2024-09-14 22:29:05 +00:00
|
|
|
var _ms *C.struct_miqt_string = C.QGraphicsItemAnimation_TrUtf8(s_Cstring)
|
|
|
|
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms))
|
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsItemAnimation) Item() *QGraphicsItem {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QGraphicsItemAnimation_Item(this.h)
|
|
|
|
return newQGraphicsItem_U(unsafe.Pointer(_ret))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsItemAnimation) SetItem(item *QGraphicsItem) {
|
|
|
|
C.QGraphicsItemAnimation_SetItem(this.h, item.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsItemAnimation) TimeLine() *QTimeLine {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QGraphicsItemAnimation_TimeLine(this.h)
|
|
|
|
return newQTimeLine_U(unsafe.Pointer(_ret))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsItemAnimation) SetTimeLine(timeLine *QTimeLine) {
|
|
|
|
C.QGraphicsItemAnimation_SetTimeLine(this.h, timeLine.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsItemAnimation) PosAt(step float64) *QPointF {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QGraphicsItemAnimation_PosAt(this.h, (C.double)(step))
|
|
|
|
_goptr := newQPointF(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsItemAnimation) SetPosAt(step float64, pos *QPointF) {
|
|
|
|
C.QGraphicsItemAnimation_SetPosAt(this.h, (C.double)(step), pos.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsItemAnimation) MatrixAt(step float64) *QMatrix {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QGraphicsItemAnimation_MatrixAt(this.h, (C.double)(step))
|
|
|
|
_goptr := newQMatrix(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsItemAnimation) TransformAt(step float64) *QTransform {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QGraphicsItemAnimation_TransformAt(this.h, (C.double)(step))
|
|
|
|
_goptr := newQTransform(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsItemAnimation) RotationAt(step float64) float64 {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QGraphicsItemAnimation_RotationAt(this.h, (C.double)(step))
|
|
|
|
return (float64)(_ret)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsItemAnimation) SetRotationAt(step float64, angle float64) {
|
|
|
|
C.QGraphicsItemAnimation_SetRotationAt(this.h, (C.double)(step), (C.double)(angle))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsItemAnimation) XTranslationAt(step float64) float64 {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QGraphicsItemAnimation_XTranslationAt(this.h, (C.double)(step))
|
|
|
|
return (float64)(_ret)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsItemAnimation) YTranslationAt(step float64) float64 {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QGraphicsItemAnimation_YTranslationAt(this.h, (C.double)(step))
|
|
|
|
return (float64)(_ret)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsItemAnimation) SetTranslationAt(step float64, dx float64, dy float64) {
|
|
|
|
C.QGraphicsItemAnimation_SetTranslationAt(this.h, (C.double)(step), (C.double)(dx), (C.double)(dy))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsItemAnimation) VerticalScaleAt(step float64) float64 {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QGraphicsItemAnimation_VerticalScaleAt(this.h, (C.double)(step))
|
|
|
|
return (float64)(_ret)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsItemAnimation) HorizontalScaleAt(step float64) float64 {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QGraphicsItemAnimation_HorizontalScaleAt(this.h, (C.double)(step))
|
|
|
|
return (float64)(_ret)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsItemAnimation) SetScaleAt(step float64, sx float64, sy float64) {
|
|
|
|
C.QGraphicsItemAnimation_SetScaleAt(this.h, (C.double)(step), (C.double)(sx), (C.double)(sy))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsItemAnimation) VerticalShearAt(step float64) float64 {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QGraphicsItemAnimation_VerticalShearAt(this.h, (C.double)(step))
|
|
|
|
return (float64)(_ret)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsItemAnimation) HorizontalShearAt(step float64) float64 {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QGraphicsItemAnimation_HorizontalShearAt(this.h, (C.double)(step))
|
|
|
|
return (float64)(_ret)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsItemAnimation) SetShearAt(step float64, sh float64, sv float64) {
|
|
|
|
C.QGraphicsItemAnimation_SetShearAt(this.h, (C.double)(step), (C.double)(sh), (C.double)(sv))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsItemAnimation) Clear() {
|
|
|
|
C.QGraphicsItemAnimation_Clear(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsItemAnimation) SetStep(x float64) {
|
|
|
|
C.QGraphicsItemAnimation_SetStep(this.h, (C.double)(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsItemAnimation) Reset() {
|
|
|
|
C.QGraphicsItemAnimation_Reset(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func QGraphicsItemAnimation_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-09-14 22:29:05 +00:00
|
|
|
var _ms *C.struct_miqt_string = C.QGraphicsItemAnimation_Tr2(s_Cstring, c_Cstring)
|
|
|
|
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms))
|
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QGraphicsItemAnimation_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-09-14 22:29:05 +00:00
|
|
|
var _ms *C.struct_miqt_string = C.QGraphicsItemAnimation_Tr3(s_Cstring, c_Cstring, (C.int)(n))
|
|
|
|
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms))
|
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QGraphicsItemAnimation_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-09-14 22:29:05 +00:00
|
|
|
var _ms *C.struct_miqt_string = C.QGraphicsItemAnimation_TrUtf82(s_Cstring, c_Cstring)
|
|
|
|
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms))
|
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QGraphicsItemAnimation_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-09-14 22:29:05 +00:00
|
|
|
var _ms *C.struct_miqt_string = C.QGraphicsItemAnimation_TrUtf83(s_Cstring, c_Cstring, (C.int)(n))
|
|
|
|
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms))
|
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Delete this object from C++ memory.
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QGraphicsItemAnimation) Delete() {
|
|
|
|
C.QGraphicsItemAnimation_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 *QGraphicsItemAnimation) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QGraphicsItemAnimation) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|