package qt /* #include "gen_qparallelanimationgroup.h" #include */ import "C" import ( "runtime" "unsafe" ) type QParallelAnimationGroup struct { h *C.QParallelAnimationGroup *QAnimationGroup } func (this *QParallelAnimationGroup) cPointer() *C.QParallelAnimationGroup { if this == nil { return nil } return this.h } func newQParallelAnimationGroup(h *C.QParallelAnimationGroup) *QParallelAnimationGroup { if h == nil { return nil } return &QParallelAnimationGroup{h: h, QAnimationGroup: newQAnimationGroup_U(unsafe.Pointer(h))} } func newQParallelAnimationGroup_U(h unsafe.Pointer) *QParallelAnimationGroup { return newQParallelAnimationGroup((*C.QParallelAnimationGroup)(h)) } // NewQParallelAnimationGroup constructs a new QParallelAnimationGroup object. func NewQParallelAnimationGroup() *QParallelAnimationGroup { ret := C.QParallelAnimationGroup_new() return newQParallelAnimationGroup(ret) } // NewQParallelAnimationGroup2 constructs a new QParallelAnimationGroup object. func NewQParallelAnimationGroup2(parent *QObject) *QParallelAnimationGroup { ret := C.QParallelAnimationGroup_new2(parent.cPointer()) return newQParallelAnimationGroup(ret) } func (this *QParallelAnimationGroup) MetaObject() *QMetaObject { _ret := C.QParallelAnimationGroup_MetaObject(this.h) return newQMetaObject_U(unsafe.Pointer(_ret)) } func QParallelAnimationGroup_Tr(s string) string { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) var _ms *C.struct_miqt_string = C.QParallelAnimationGroup_Tr(s_Cstring) _ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms)) return _ret } func QParallelAnimationGroup_TrUtf8(s string) string { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) var _ms *C.struct_miqt_string = C.QParallelAnimationGroup_TrUtf8(s_Cstring) _ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms)) return _ret } func (this *QParallelAnimationGroup) Duration() int { _ret := C.QParallelAnimationGroup_Duration(this.h) return (int)(_ret) } func QParallelAnimationGroup_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.QParallelAnimationGroup_Tr2(s_Cstring, c_Cstring) _ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms)) return _ret } func QParallelAnimationGroup_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.QParallelAnimationGroup_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 } func QParallelAnimationGroup_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.QParallelAnimationGroup_TrUtf82(s_Cstring, c_Cstring) _ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms)) return _ret } func QParallelAnimationGroup_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.QParallelAnimationGroup_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 } // Delete this object from C++ memory. func (this *QParallelAnimationGroup) Delete() { C.QParallelAnimationGroup_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 *QParallelAnimationGroup) GoGC() { runtime.SetFinalizer(this, func(this *QParallelAnimationGroup) { this.Delete() runtime.KeepAlive(this.h) }) }