2024-08-25 04:08:24 +00:00
|
|
|
package qt
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
#include "gen_qmouseeventtransition.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
*/
|
|
|
|
import "C"
|
|
|
|
|
|
|
|
import (
|
|
|
|
"runtime"
|
|
|
|
"unsafe"
|
|
|
|
)
|
|
|
|
|
|
|
|
type QMouseEventTransition struct {
|
|
|
|
h *C.QMouseEventTransition
|
|
|
|
*QEventTransition
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMouseEventTransition) cPointer() *C.QMouseEventTransition {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
|
|
|
func newQMouseEventTransition(h *C.QMouseEventTransition) *QMouseEventTransition {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
return &QMouseEventTransition{h: h, QEventTransition: newQEventTransition_U(unsafe.Pointer(h))}
|
|
|
|
}
|
|
|
|
|
|
|
|
func newQMouseEventTransition_U(h unsafe.Pointer) *QMouseEventTransition {
|
|
|
|
return newQMouseEventTransition((*C.QMouseEventTransition)(h))
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewQMouseEventTransition constructs a new QMouseEventTransition object.
|
|
|
|
func NewQMouseEventTransition() *QMouseEventTransition {
|
|
|
|
ret := C.QMouseEventTransition_new()
|
|
|
|
return newQMouseEventTransition(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewQMouseEventTransition2 constructs a new QMouseEventTransition object.
|
2024-09-04 06:54:22 +00:00
|
|
|
func NewQMouseEventTransition2(object *QObject, typeVal QEvent__Type, button MouseButton) *QMouseEventTransition {
|
2024-08-29 07:01:51 +00:00
|
|
|
ret := C.QMouseEventTransition_new2(object.cPointer(), (C.uintptr_t)(typeVal), (C.uintptr_t)(button))
|
|
|
|
return newQMouseEventTransition(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewQMouseEventTransition3 constructs a new QMouseEventTransition object.
|
|
|
|
func NewQMouseEventTransition3(sourceState *QState) *QMouseEventTransition {
|
|
|
|
ret := C.QMouseEventTransition_new3(sourceState.cPointer())
|
|
|
|
return newQMouseEventTransition(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewQMouseEventTransition4 constructs a new QMouseEventTransition object.
|
2024-09-04 06:54:22 +00:00
|
|
|
func NewQMouseEventTransition4(object *QObject, typeVal QEvent__Type, button MouseButton, sourceState *QState) *QMouseEventTransition {
|
2024-08-29 07:01:51 +00:00
|
|
|
ret := C.QMouseEventTransition_new4(object.cPointer(), (C.uintptr_t)(typeVal), (C.uintptr_t)(button), sourceState.cPointer())
|
2024-08-25 04:08:24 +00:00
|
|
|
return newQMouseEventTransition(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMouseEventTransition) MetaObject() *QMetaObject {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QMouseEventTransition_MetaObject(this.h)
|
|
|
|
return newQMetaObject_U(unsafe.Pointer(_ret))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QMouseEventTransition_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.QMouseEventTransition_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 QMouseEventTransition_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.QMouseEventTransition_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
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QMouseEventTransition) Button() MouseButton {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QMouseEventTransition_Button(this.h)
|
|
|
|
return (MouseButton)(_ret)
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QMouseEventTransition) SetButton(button MouseButton) {
|
2024-08-29 07:01:51 +00:00
|
|
|
C.QMouseEventTransition_SetButton(this.h, (C.uintptr_t)(button))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMouseEventTransition) ModifierMask() int {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QMouseEventTransition_ModifierMask(this.h)
|
|
|
|
return (int)(_ret)
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMouseEventTransition) SetModifierMask(modifiers int) {
|
|
|
|
C.QMouseEventTransition_SetModifierMask(this.h, (C.int)(modifiers))
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QMouseEventTransition) HitTestPath() *QPainterPath {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QMouseEventTransition_HitTestPath(this.h)
|
|
|
|
_goptr := newQPainterPath(_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 *QMouseEventTransition) SetHitTestPath(path *QPainterPath) {
|
|
|
|
C.QMouseEventTransition_SetHitTestPath(this.h, path.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMouseEventTransition_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.QMouseEventTransition_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 QMouseEventTransition_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.QMouseEventTransition_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 QMouseEventTransition_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.QMouseEventTransition_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 QMouseEventTransition_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.QMouseEventTransition_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 *QMouseEventTransition) Delete() {
|
|
|
|
C.QMouseEventTransition_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 *QMouseEventTransition) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QMouseEventTransition) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|