miqt/qt/gen_qpauseanimation.go

152 lines
4.2 KiB
Go
Raw Normal View History

package qt
/*
#include "gen_qpauseanimation.h"
#include <stdlib.h>
*/
import "C"
import (
"runtime"
"unsafe"
)
type QPauseAnimation struct {
h *C.QPauseAnimation
*QAbstractAnimation
}
func (this *QPauseAnimation) cPointer() *C.QPauseAnimation {
if this == nil {
return nil
}
return this.h
}
func newQPauseAnimation(h *C.QPauseAnimation) *QPauseAnimation {
2024-09-01 02:23:55 +00:00
if h == nil {
return nil
}
return &QPauseAnimation{h: h, QAbstractAnimation: newQAbstractAnimation_U(unsafe.Pointer(h))}
}
func newQPauseAnimation_U(h unsafe.Pointer) *QPauseAnimation {
return newQPauseAnimation((*C.QPauseAnimation)(h))
}
// NewQPauseAnimation constructs a new QPauseAnimation object.
func NewQPauseAnimation() *QPauseAnimation {
ret := C.QPauseAnimation_new()
return newQPauseAnimation(ret)
}
// NewQPauseAnimation2 constructs a new QPauseAnimation object.
func NewQPauseAnimation2(msecs int) *QPauseAnimation {
ret := C.QPauseAnimation_new2((C.int)(msecs))
return newQPauseAnimation(ret)
}
// NewQPauseAnimation3 constructs a new QPauseAnimation object.
func NewQPauseAnimation3(parent *QObject) *QPauseAnimation {
ret := C.QPauseAnimation_new3(parent.cPointer())
return newQPauseAnimation(ret)
}
// NewQPauseAnimation4 constructs a new QPauseAnimation object.
func NewQPauseAnimation4(msecs int, parent *QObject) *QPauseAnimation {
ret := C.QPauseAnimation_new4((C.int)(msecs), parent.cPointer())
return newQPauseAnimation(ret)
}
func (this *QPauseAnimation) MetaObject() *QMetaObject {
_ret := C.QPauseAnimation_MetaObject(this.h)
return newQMetaObject_U(unsafe.Pointer(_ret))
}
func QPauseAnimation_Tr(s string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
var _ms *C.struct_miqt_string = C.QPauseAnimation_Tr(s_Cstring)
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms))
return _ret
}
func QPauseAnimation_TrUtf8(s string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
var _ms *C.struct_miqt_string = C.QPauseAnimation_TrUtf8(s_Cstring)
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms))
return _ret
}
func (this *QPauseAnimation) Duration() int {
_ret := C.QPauseAnimation_Duration(this.h)
return (int)(_ret)
}
func (this *QPauseAnimation) SetDuration(msecs int) {
C.QPauseAnimation_SetDuration(this.h, (C.int)(msecs))
}
func QPauseAnimation_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.QPauseAnimation_Tr2(s_Cstring, c_Cstring)
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms))
return _ret
}
func QPauseAnimation_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.QPauseAnimation_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 QPauseAnimation_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.QPauseAnimation_TrUtf82(s_Cstring, c_Cstring)
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms))
return _ret
}
func QPauseAnimation_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.QPauseAnimation_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 *QPauseAnimation) Delete() {
C.QPauseAnimation_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 *QPauseAnimation) GoGC() {
runtime.SetFinalizer(this, func(this *QPauseAnimation) {
this.Delete()
runtime.KeepAlive(this.h)
})
}