2024-08-25 04:08:24 +00:00
|
|
|
package qt
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
#include "gen_qeventtransition.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
*/
|
|
|
|
import "C"
|
|
|
|
|
|
|
|
import (
|
2024-09-14 22:29:05 +00:00
|
|
|
"runtime"
|
2024-08-25 04:08:24 +00:00
|
|
|
"unsafe"
|
|
|
|
)
|
|
|
|
|
|
|
|
type QEventTransition struct {
|
|
|
|
h *C.QEventTransition
|
|
|
|
*QAbstractTransition
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QEventTransition) cPointer() *C.QEventTransition {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
|
|
|
func newQEventTransition(h *C.QEventTransition) *QEventTransition {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
return &QEventTransition{h: h, QAbstractTransition: newQAbstractTransition_U(unsafe.Pointer(h))}
|
|
|
|
}
|
|
|
|
|
|
|
|
func newQEventTransition_U(h unsafe.Pointer) *QEventTransition {
|
|
|
|
return newQEventTransition((*C.QEventTransition)(h))
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewQEventTransition constructs a new QEventTransition object.
|
|
|
|
func NewQEventTransition() *QEventTransition {
|
|
|
|
ret := C.QEventTransition_new()
|
|
|
|
return newQEventTransition(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewQEventTransition2 constructs a new QEventTransition object.
|
2024-09-04 06:54:22 +00:00
|
|
|
func NewQEventTransition2(object *QObject, typeVal QEvent__Type) *QEventTransition {
|
2024-09-18 00:12:02 +00:00
|
|
|
ret := C.QEventTransition_new2(object.cPointer(), (C.int)(typeVal))
|
2024-08-29 07:01:51 +00:00
|
|
|
return newQEventTransition(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewQEventTransition3 constructs a new QEventTransition object.
|
|
|
|
func NewQEventTransition3(sourceState *QState) *QEventTransition {
|
|
|
|
ret := C.QEventTransition_new3(sourceState.cPointer())
|
|
|
|
return newQEventTransition(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewQEventTransition4 constructs a new QEventTransition object.
|
2024-09-04 06:54:22 +00:00
|
|
|
func NewQEventTransition4(object *QObject, typeVal QEvent__Type, sourceState *QState) *QEventTransition {
|
2024-09-18 00:12:02 +00:00
|
|
|
ret := C.QEventTransition_new4(object.cPointer(), (C.int)(typeVal), sourceState.cPointer())
|
2024-08-25 04:08:24 +00:00
|
|
|
return newQEventTransition(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QEventTransition) MetaObject() *QMetaObject {
|
2024-09-17 07:30:27 +00:00
|
|
|
return newQMetaObject_U(unsafe.Pointer(C.QEventTransition_MetaObject(this.h)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QEventTransition_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.QEventTransition_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 QEventTransition_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.QEventTransition_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 *QEventTransition) EventSource() *QObject {
|
2024-09-17 07:30:27 +00:00
|
|
|
return newQObject_U(unsafe.Pointer(C.QEventTransition_EventSource(this.h)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QEventTransition) SetEventSource(object *QObject) {
|
|
|
|
C.QEventTransition_SetEventSource(this.h, object.cPointer())
|
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QEventTransition) EventType() QEvent__Type {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (QEvent__Type)(C.QEventTransition_EventType(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QEventTransition) SetEventType(typeVal QEvent__Type) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QEventTransition_SetEventType(this.h, (C.int)(typeVal))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func QEventTransition_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.QEventTransition_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 QEventTransition_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.QEventTransition_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 QEventTransition_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.QEventTransition_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 QEventTransition_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.QEventTransition_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 *QEventTransition) Delete() {
|
|
|
|
C.QEventTransition_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 *QEventTransition) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QEventTransition) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|