2024-10-20 05:21:03 +00:00
|
|
|
package qt6
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
#include "gen_qtestsupport_gui.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
*/
|
|
|
|
import "C"
|
|
|
|
|
|
|
|
import (
|
|
|
|
"runtime"
|
|
|
|
"unsafe"
|
|
|
|
)
|
|
|
|
|
|
|
|
type QTest__QTouchEventSequence struct {
|
2024-11-19 06:29:06 +00:00
|
|
|
h *C.QTest__QTouchEventSequence
|
|
|
|
isSubclass bool
|
2024-10-20 05:21:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTest__QTouchEventSequence) cPointer() *C.QTest__QTouchEventSequence {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTest__QTouchEventSequence) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// newQTest__QTouchEventSequence constructs the type using only CGO pointers.
|
2024-10-20 05:21:03 +00:00
|
|
|
func newQTest__QTouchEventSequence(h *C.QTest__QTouchEventSequence) *QTest__QTouchEventSequence {
|
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-12-07 04:15:57 +00:00
|
|
|
|
2024-10-20 05:21:03 +00:00
|
|
|
return &QTest__QTouchEventSequence{h: h}
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// UnsafeNewQTest__QTouchEventSequence constructs the type using only unsafe pointers.
|
2024-10-20 05:21:03 +00:00
|
|
|
func UnsafeNewQTest__QTouchEventSequence(h unsafe.Pointer) *QTest__QTouchEventSequence {
|
2024-12-07 04:15:57 +00:00
|
|
|
return newQTest__QTouchEventSequence((*C.QTest__QTouchEventSequence)(h))
|
2024-10-20 05:21:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTest__QTouchEventSequence) Press(touchId int, pt *QPoint) *QTest__QTouchEventSequence {
|
2024-12-07 02:02:06 +00:00
|
|
|
return newQTest__QTouchEventSequence(C.QTest__QTouchEventSequence_Press(this.h, (C.int)(touchId), pt.cPointer()))
|
2024-10-20 05:21:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTest__QTouchEventSequence) Move(touchId int, pt *QPoint) *QTest__QTouchEventSequence {
|
2024-12-07 02:02:06 +00:00
|
|
|
return newQTest__QTouchEventSequence(C.QTest__QTouchEventSequence_Move(this.h, (C.int)(touchId), pt.cPointer()))
|
2024-10-20 05:21:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTest__QTouchEventSequence) Release(touchId int, pt *QPoint) *QTest__QTouchEventSequence {
|
2024-12-07 02:02:06 +00:00
|
|
|
return newQTest__QTouchEventSequence(C.QTest__QTouchEventSequence_Release(this.h, (C.int)(touchId), pt.cPointer()))
|
2024-10-20 05:21:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTest__QTouchEventSequence) Stationary(touchId int) *QTest__QTouchEventSequence {
|
2024-12-07 02:02:06 +00:00
|
|
|
return newQTest__QTouchEventSequence(C.QTest__QTouchEventSequence_Stationary(this.h, (C.int)(touchId)))
|
2024-10-20 05:21:03 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
func (this *QTest__QTouchEventSequence) Commit(processEvents bool) bool {
|
|
|
|
return (bool)(C.QTest__QTouchEventSequence_Commit(this.h, (C.bool)(processEvents)))
|
2024-10-20 05:21:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTest__QTouchEventSequence) Press3(touchId int, pt *QPoint, window *QWindow) *QTest__QTouchEventSequence {
|
2024-12-07 02:02:06 +00:00
|
|
|
return newQTest__QTouchEventSequence(C.QTest__QTouchEventSequence_Press3(this.h, (C.int)(touchId), pt.cPointer(), window.cPointer()))
|
2024-10-20 05:21:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTest__QTouchEventSequence) Move3(touchId int, pt *QPoint, window *QWindow) *QTest__QTouchEventSequence {
|
2024-12-07 02:02:06 +00:00
|
|
|
return newQTest__QTouchEventSequence(C.QTest__QTouchEventSequence_Move3(this.h, (C.int)(touchId), pt.cPointer(), window.cPointer()))
|
2024-10-20 05:21:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QTest__QTouchEventSequence) Release3(touchId int, pt *QPoint, window *QWindow) *QTest__QTouchEventSequence {
|
2024-12-07 02:02:06 +00:00
|
|
|
return newQTest__QTouchEventSequence(C.QTest__QTouchEventSequence_Release3(this.h, (C.int)(touchId), pt.cPointer(), window.cPointer()))
|
2024-10-20 05:21:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Delete this object from C++ memory.
|
|
|
|
func (this *QTest__QTouchEventSequence) Delete() {
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QTest__QTouchEventSequence_Delete(this.h, C.bool(this.isSubclass))
|
2024-10-20 05:21:03 +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 *QTest__QTouchEventSequence) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QTest__QTouchEventSequence) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|