2024-08-25 04:08:24 +00:00
|
|
|
package qt
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
#include "gen_qgraphicssceneevent.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
*/
|
|
|
|
import "C"
|
|
|
|
|
|
|
|
import (
|
|
|
|
"runtime"
|
|
|
|
"unsafe"
|
|
|
|
)
|
|
|
|
|
|
|
|
type QGraphicsSceneEvent struct {
|
|
|
|
h *C.QGraphicsSceneEvent
|
|
|
|
*QEvent
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneEvent) cPointer() *C.QGraphicsSceneEvent {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
|
|
|
func newQGraphicsSceneEvent(h *C.QGraphicsSceneEvent) *QGraphicsSceneEvent {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
return &QGraphicsSceneEvent{h: h, QEvent: newQEvent_U(unsafe.Pointer(h))}
|
|
|
|
}
|
|
|
|
|
|
|
|
func newQGraphicsSceneEvent_U(h unsafe.Pointer) *QGraphicsSceneEvent {
|
|
|
|
return newQGraphicsSceneEvent((*C.QGraphicsSceneEvent)(h))
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
// NewQGraphicsSceneEvent constructs a new QGraphicsSceneEvent object.
|
|
|
|
func NewQGraphicsSceneEvent(typeVal uintptr) *QGraphicsSceneEvent {
|
|
|
|
ret := C.QGraphicsSceneEvent_new((C.uintptr_t)(typeVal))
|
|
|
|
return newQGraphicsSceneEvent(ret)
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QGraphicsSceneEvent) Widget() *QWidget {
|
|
|
|
ret := C.QGraphicsSceneEvent_Widget(this.h)
|
|
|
|
return newQWidget_U(unsafe.Pointer(ret))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneEvent) SetWidget(widget *QWidget) {
|
|
|
|
C.QGraphicsSceneEvent_SetWidget(this.h, widget.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneEvent) Delete() {
|
|
|
|
C.QGraphicsSceneEvent_Delete(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
type QGraphicsSceneMouseEvent struct {
|
|
|
|
h *C.QGraphicsSceneMouseEvent
|
|
|
|
*QGraphicsSceneEvent
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneMouseEvent) cPointer() *C.QGraphicsSceneMouseEvent {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
|
|
|
func newQGraphicsSceneMouseEvent(h *C.QGraphicsSceneMouseEvent) *QGraphicsSceneMouseEvent {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
return &QGraphicsSceneMouseEvent{h: h, QGraphicsSceneEvent: newQGraphicsSceneEvent_U(unsafe.Pointer(h))}
|
|
|
|
}
|
|
|
|
|
|
|
|
func newQGraphicsSceneMouseEvent_U(h unsafe.Pointer) *QGraphicsSceneMouseEvent {
|
|
|
|
return newQGraphicsSceneMouseEvent((*C.QGraphicsSceneMouseEvent)(h))
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
// NewQGraphicsSceneMouseEvent constructs a new QGraphicsSceneMouseEvent object.
|
|
|
|
func NewQGraphicsSceneMouseEvent() *QGraphicsSceneMouseEvent {
|
|
|
|
ret := C.QGraphicsSceneMouseEvent_new()
|
|
|
|
return newQGraphicsSceneMouseEvent(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewQGraphicsSceneMouseEvent2 constructs a new QGraphicsSceneMouseEvent object.
|
|
|
|
func NewQGraphicsSceneMouseEvent2(typeVal uintptr) *QGraphicsSceneMouseEvent {
|
|
|
|
ret := C.QGraphicsSceneMouseEvent_new2((C.uintptr_t)(typeVal))
|
|
|
|
return newQGraphicsSceneMouseEvent(ret)
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QGraphicsSceneMouseEvent) Pos() *QPointF {
|
|
|
|
ret := C.QGraphicsSceneMouseEvent_Pos(this.h)
|
|
|
|
// Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
ret1 := newQPointF(ret)
|
|
|
|
runtime.SetFinalizer(ret1, func(ret2 *QPointF) {
|
|
|
|
ret2.Delete()
|
|
|
|
runtime.KeepAlive(ret2.h)
|
|
|
|
})
|
|
|
|
return ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneMouseEvent) SetPos(pos *QPointF) {
|
|
|
|
C.QGraphicsSceneMouseEvent_SetPos(this.h, pos.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneMouseEvent) ScenePos() *QPointF {
|
|
|
|
ret := C.QGraphicsSceneMouseEvent_ScenePos(this.h)
|
|
|
|
// Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
ret1 := newQPointF(ret)
|
|
|
|
runtime.SetFinalizer(ret1, func(ret2 *QPointF) {
|
|
|
|
ret2.Delete()
|
|
|
|
runtime.KeepAlive(ret2.h)
|
|
|
|
})
|
|
|
|
return ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneMouseEvent) SetScenePos(pos *QPointF) {
|
|
|
|
C.QGraphicsSceneMouseEvent_SetScenePos(this.h, pos.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneMouseEvent) ScreenPos() *QPoint {
|
|
|
|
ret := C.QGraphicsSceneMouseEvent_ScreenPos(this.h)
|
|
|
|
// Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
ret1 := newQPoint(ret)
|
|
|
|
runtime.SetFinalizer(ret1, func(ret2 *QPoint) {
|
|
|
|
ret2.Delete()
|
|
|
|
runtime.KeepAlive(ret2.h)
|
|
|
|
})
|
|
|
|
return ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneMouseEvent) SetScreenPos(pos *QPoint) {
|
|
|
|
C.QGraphicsSceneMouseEvent_SetScreenPos(this.h, pos.cPointer())
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
func (this *QGraphicsSceneMouseEvent) ButtonDownPos(button uintptr) *QPointF {
|
|
|
|
ret := C.QGraphicsSceneMouseEvent_ButtonDownPos(this.h, (C.uintptr_t)(button))
|
|
|
|
// Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
ret1 := newQPointF(ret)
|
|
|
|
runtime.SetFinalizer(ret1, func(ret2 *QPointF) {
|
|
|
|
ret2.Delete()
|
|
|
|
runtime.KeepAlive(ret2.h)
|
|
|
|
})
|
|
|
|
return ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneMouseEvent) SetButtonDownPos(button uintptr, pos *QPointF) {
|
|
|
|
C.QGraphicsSceneMouseEvent_SetButtonDownPos(this.h, (C.uintptr_t)(button), pos.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneMouseEvent) ButtonDownScenePos(button uintptr) *QPointF {
|
|
|
|
ret := C.QGraphicsSceneMouseEvent_ButtonDownScenePos(this.h, (C.uintptr_t)(button))
|
|
|
|
// Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
ret1 := newQPointF(ret)
|
|
|
|
runtime.SetFinalizer(ret1, func(ret2 *QPointF) {
|
|
|
|
ret2.Delete()
|
|
|
|
runtime.KeepAlive(ret2.h)
|
|
|
|
})
|
|
|
|
return ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneMouseEvent) SetButtonDownScenePos(button uintptr, pos *QPointF) {
|
|
|
|
C.QGraphicsSceneMouseEvent_SetButtonDownScenePos(this.h, (C.uintptr_t)(button), pos.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneMouseEvent) ButtonDownScreenPos(button uintptr) *QPoint {
|
|
|
|
ret := C.QGraphicsSceneMouseEvent_ButtonDownScreenPos(this.h, (C.uintptr_t)(button))
|
|
|
|
// Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
ret1 := newQPoint(ret)
|
|
|
|
runtime.SetFinalizer(ret1, func(ret2 *QPoint) {
|
|
|
|
ret2.Delete()
|
|
|
|
runtime.KeepAlive(ret2.h)
|
|
|
|
})
|
|
|
|
return ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneMouseEvent) SetButtonDownScreenPos(button uintptr, pos *QPoint) {
|
|
|
|
C.QGraphicsSceneMouseEvent_SetButtonDownScreenPos(this.h, (C.uintptr_t)(button), pos.cPointer())
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QGraphicsSceneMouseEvent) LastPos() *QPointF {
|
|
|
|
ret := C.QGraphicsSceneMouseEvent_LastPos(this.h)
|
|
|
|
// Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
ret1 := newQPointF(ret)
|
|
|
|
runtime.SetFinalizer(ret1, func(ret2 *QPointF) {
|
|
|
|
ret2.Delete()
|
|
|
|
runtime.KeepAlive(ret2.h)
|
|
|
|
})
|
|
|
|
return ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneMouseEvent) SetLastPos(pos *QPointF) {
|
|
|
|
C.QGraphicsSceneMouseEvent_SetLastPos(this.h, pos.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneMouseEvent) LastScenePos() *QPointF {
|
|
|
|
ret := C.QGraphicsSceneMouseEvent_LastScenePos(this.h)
|
|
|
|
// Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
ret1 := newQPointF(ret)
|
|
|
|
runtime.SetFinalizer(ret1, func(ret2 *QPointF) {
|
|
|
|
ret2.Delete()
|
|
|
|
runtime.KeepAlive(ret2.h)
|
|
|
|
})
|
|
|
|
return ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneMouseEvent) SetLastScenePos(pos *QPointF) {
|
|
|
|
C.QGraphicsSceneMouseEvent_SetLastScenePos(this.h, pos.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneMouseEvent) LastScreenPos() *QPoint {
|
|
|
|
ret := C.QGraphicsSceneMouseEvent_LastScreenPos(this.h)
|
|
|
|
// Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
ret1 := newQPoint(ret)
|
|
|
|
runtime.SetFinalizer(ret1, func(ret2 *QPoint) {
|
|
|
|
ret2.Delete()
|
|
|
|
runtime.KeepAlive(ret2.h)
|
|
|
|
})
|
|
|
|
return ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneMouseEvent) SetLastScreenPos(pos *QPoint) {
|
|
|
|
C.QGraphicsSceneMouseEvent_SetLastScreenPos(this.h, pos.cPointer())
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
func (this *QGraphicsSceneMouseEvent) Buttons() int {
|
|
|
|
ret := C.QGraphicsSceneMouseEvent_Buttons(this.h)
|
|
|
|
return (int)(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneMouseEvent) SetButtons(buttons int) {
|
|
|
|
C.QGraphicsSceneMouseEvent_SetButtons(this.h, (C.int)(buttons))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneMouseEvent) Button() uintptr {
|
|
|
|
ret := C.QGraphicsSceneMouseEvent_Button(this.h)
|
|
|
|
return (uintptr)(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneMouseEvent) SetButton(button uintptr) {
|
|
|
|
C.QGraphicsSceneMouseEvent_SetButton(this.h, (C.uintptr_t)(button))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneMouseEvent) Modifiers() int {
|
|
|
|
ret := C.QGraphicsSceneMouseEvent_Modifiers(this.h)
|
|
|
|
return (int)(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneMouseEvent) SetModifiers(modifiers int) {
|
|
|
|
C.QGraphicsSceneMouseEvent_SetModifiers(this.h, (C.int)(modifiers))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneMouseEvent) Source() uintptr {
|
|
|
|
ret := C.QGraphicsSceneMouseEvent_Source(this.h)
|
|
|
|
return (uintptr)(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneMouseEvent) SetSource(source uintptr) {
|
|
|
|
C.QGraphicsSceneMouseEvent_SetSource(this.h, (C.uintptr_t)(source))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneMouseEvent) Flags() int {
|
|
|
|
ret := C.QGraphicsSceneMouseEvent_Flags(this.h)
|
|
|
|
return (int)(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneMouseEvent) SetFlags(flags int) {
|
|
|
|
C.QGraphicsSceneMouseEvent_SetFlags(this.h, (C.int)(flags))
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QGraphicsSceneMouseEvent) Delete() {
|
|
|
|
C.QGraphicsSceneMouseEvent_Delete(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
type QGraphicsSceneWheelEvent struct {
|
|
|
|
h *C.QGraphicsSceneWheelEvent
|
|
|
|
*QGraphicsSceneEvent
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneWheelEvent) cPointer() *C.QGraphicsSceneWheelEvent {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
|
|
|
func newQGraphicsSceneWheelEvent(h *C.QGraphicsSceneWheelEvent) *QGraphicsSceneWheelEvent {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
return &QGraphicsSceneWheelEvent{h: h, QGraphicsSceneEvent: newQGraphicsSceneEvent_U(unsafe.Pointer(h))}
|
|
|
|
}
|
|
|
|
|
|
|
|
func newQGraphicsSceneWheelEvent_U(h unsafe.Pointer) *QGraphicsSceneWheelEvent {
|
|
|
|
return newQGraphicsSceneWheelEvent((*C.QGraphicsSceneWheelEvent)(h))
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
// NewQGraphicsSceneWheelEvent constructs a new QGraphicsSceneWheelEvent object.
|
|
|
|
func NewQGraphicsSceneWheelEvent() *QGraphicsSceneWheelEvent {
|
|
|
|
ret := C.QGraphicsSceneWheelEvent_new()
|
|
|
|
return newQGraphicsSceneWheelEvent(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewQGraphicsSceneWheelEvent2 constructs a new QGraphicsSceneWheelEvent object.
|
|
|
|
func NewQGraphicsSceneWheelEvent2(typeVal uintptr) *QGraphicsSceneWheelEvent {
|
|
|
|
ret := C.QGraphicsSceneWheelEvent_new2((C.uintptr_t)(typeVal))
|
|
|
|
return newQGraphicsSceneWheelEvent(ret)
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QGraphicsSceneWheelEvent) Pos() *QPointF {
|
|
|
|
ret := C.QGraphicsSceneWheelEvent_Pos(this.h)
|
|
|
|
// Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
ret1 := newQPointF(ret)
|
|
|
|
runtime.SetFinalizer(ret1, func(ret2 *QPointF) {
|
|
|
|
ret2.Delete()
|
|
|
|
runtime.KeepAlive(ret2.h)
|
|
|
|
})
|
|
|
|
return ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneWheelEvent) SetPos(pos *QPointF) {
|
|
|
|
C.QGraphicsSceneWheelEvent_SetPos(this.h, pos.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneWheelEvent) ScenePos() *QPointF {
|
|
|
|
ret := C.QGraphicsSceneWheelEvent_ScenePos(this.h)
|
|
|
|
// Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
ret1 := newQPointF(ret)
|
|
|
|
runtime.SetFinalizer(ret1, func(ret2 *QPointF) {
|
|
|
|
ret2.Delete()
|
|
|
|
runtime.KeepAlive(ret2.h)
|
|
|
|
})
|
|
|
|
return ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneWheelEvent) SetScenePos(pos *QPointF) {
|
|
|
|
C.QGraphicsSceneWheelEvent_SetScenePos(this.h, pos.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneWheelEvent) ScreenPos() *QPoint {
|
|
|
|
ret := C.QGraphicsSceneWheelEvent_ScreenPos(this.h)
|
|
|
|
// Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
ret1 := newQPoint(ret)
|
|
|
|
runtime.SetFinalizer(ret1, func(ret2 *QPoint) {
|
|
|
|
ret2.Delete()
|
|
|
|
runtime.KeepAlive(ret2.h)
|
|
|
|
})
|
|
|
|
return ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneWheelEvent) SetScreenPos(pos *QPoint) {
|
|
|
|
C.QGraphicsSceneWheelEvent_SetScreenPos(this.h, pos.cPointer())
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
func (this *QGraphicsSceneWheelEvent) Buttons() int {
|
|
|
|
ret := C.QGraphicsSceneWheelEvent_Buttons(this.h)
|
|
|
|
return (int)(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneWheelEvent) SetButtons(buttons int) {
|
|
|
|
C.QGraphicsSceneWheelEvent_SetButtons(this.h, (C.int)(buttons))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneWheelEvent) Modifiers() int {
|
|
|
|
ret := C.QGraphicsSceneWheelEvent_Modifiers(this.h)
|
|
|
|
return (int)(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneWheelEvent) SetModifiers(modifiers int) {
|
|
|
|
C.QGraphicsSceneWheelEvent_SetModifiers(this.h, (C.int)(modifiers))
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QGraphicsSceneWheelEvent) Delta() int {
|
|
|
|
ret := C.QGraphicsSceneWheelEvent_Delta(this.h)
|
|
|
|
return (int)(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneWheelEvent) SetDelta(delta int) {
|
|
|
|
C.QGraphicsSceneWheelEvent_SetDelta(this.h, (C.int)(delta))
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
func (this *QGraphicsSceneWheelEvent) Orientation() uintptr {
|
|
|
|
ret := C.QGraphicsSceneWheelEvent_Orientation(this.h)
|
|
|
|
return (uintptr)(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneWheelEvent) SetOrientation(orientation uintptr) {
|
|
|
|
C.QGraphicsSceneWheelEvent_SetOrientation(this.h, (C.uintptr_t)(orientation))
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QGraphicsSceneWheelEvent) Delete() {
|
|
|
|
C.QGraphicsSceneWheelEvent_Delete(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
type QGraphicsSceneContextMenuEvent struct {
|
|
|
|
h *C.QGraphicsSceneContextMenuEvent
|
|
|
|
*QGraphicsSceneEvent
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneContextMenuEvent) cPointer() *C.QGraphicsSceneContextMenuEvent {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
|
|
|
func newQGraphicsSceneContextMenuEvent(h *C.QGraphicsSceneContextMenuEvent) *QGraphicsSceneContextMenuEvent {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
return &QGraphicsSceneContextMenuEvent{h: h, QGraphicsSceneEvent: newQGraphicsSceneEvent_U(unsafe.Pointer(h))}
|
|
|
|
}
|
|
|
|
|
|
|
|
func newQGraphicsSceneContextMenuEvent_U(h unsafe.Pointer) *QGraphicsSceneContextMenuEvent {
|
|
|
|
return newQGraphicsSceneContextMenuEvent((*C.QGraphicsSceneContextMenuEvent)(h))
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
// NewQGraphicsSceneContextMenuEvent constructs a new QGraphicsSceneContextMenuEvent object.
|
|
|
|
func NewQGraphicsSceneContextMenuEvent() *QGraphicsSceneContextMenuEvent {
|
|
|
|
ret := C.QGraphicsSceneContextMenuEvent_new()
|
|
|
|
return newQGraphicsSceneContextMenuEvent(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewQGraphicsSceneContextMenuEvent2 constructs a new QGraphicsSceneContextMenuEvent object.
|
|
|
|
func NewQGraphicsSceneContextMenuEvent2(typeVal uintptr) *QGraphicsSceneContextMenuEvent {
|
|
|
|
ret := C.QGraphicsSceneContextMenuEvent_new2((C.uintptr_t)(typeVal))
|
|
|
|
return newQGraphicsSceneContextMenuEvent(ret)
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QGraphicsSceneContextMenuEvent) Pos() *QPointF {
|
|
|
|
ret := C.QGraphicsSceneContextMenuEvent_Pos(this.h)
|
|
|
|
// Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
ret1 := newQPointF(ret)
|
|
|
|
runtime.SetFinalizer(ret1, func(ret2 *QPointF) {
|
|
|
|
ret2.Delete()
|
|
|
|
runtime.KeepAlive(ret2.h)
|
|
|
|
})
|
|
|
|
return ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneContextMenuEvent) SetPos(pos *QPointF) {
|
|
|
|
C.QGraphicsSceneContextMenuEvent_SetPos(this.h, pos.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneContextMenuEvent) ScenePos() *QPointF {
|
|
|
|
ret := C.QGraphicsSceneContextMenuEvent_ScenePos(this.h)
|
|
|
|
// Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
ret1 := newQPointF(ret)
|
|
|
|
runtime.SetFinalizer(ret1, func(ret2 *QPointF) {
|
|
|
|
ret2.Delete()
|
|
|
|
runtime.KeepAlive(ret2.h)
|
|
|
|
})
|
|
|
|
return ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneContextMenuEvent) SetScenePos(pos *QPointF) {
|
|
|
|
C.QGraphicsSceneContextMenuEvent_SetScenePos(this.h, pos.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneContextMenuEvent) ScreenPos() *QPoint {
|
|
|
|
ret := C.QGraphicsSceneContextMenuEvent_ScreenPos(this.h)
|
|
|
|
// Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
ret1 := newQPoint(ret)
|
|
|
|
runtime.SetFinalizer(ret1, func(ret2 *QPoint) {
|
|
|
|
ret2.Delete()
|
|
|
|
runtime.KeepAlive(ret2.h)
|
|
|
|
})
|
|
|
|
return ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneContextMenuEvent) SetScreenPos(pos *QPoint) {
|
|
|
|
C.QGraphicsSceneContextMenuEvent_SetScreenPos(this.h, pos.cPointer())
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
func (this *QGraphicsSceneContextMenuEvent) Modifiers() int {
|
|
|
|
ret := C.QGraphicsSceneContextMenuEvent_Modifiers(this.h)
|
|
|
|
return (int)(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneContextMenuEvent) SetModifiers(modifiers int) {
|
|
|
|
C.QGraphicsSceneContextMenuEvent_SetModifiers(this.h, (C.int)(modifiers))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneContextMenuEvent) Reason() uintptr {
|
|
|
|
ret := C.QGraphicsSceneContextMenuEvent_Reason(this.h)
|
|
|
|
return (uintptr)(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneContextMenuEvent) SetReason(reason uintptr) {
|
|
|
|
C.QGraphicsSceneContextMenuEvent_SetReason(this.h, (C.uintptr_t)(reason))
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QGraphicsSceneContextMenuEvent) Delete() {
|
|
|
|
C.QGraphicsSceneContextMenuEvent_Delete(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
type QGraphicsSceneHoverEvent struct {
|
|
|
|
h *C.QGraphicsSceneHoverEvent
|
|
|
|
*QGraphicsSceneEvent
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneHoverEvent) cPointer() *C.QGraphicsSceneHoverEvent {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
|
|
|
func newQGraphicsSceneHoverEvent(h *C.QGraphicsSceneHoverEvent) *QGraphicsSceneHoverEvent {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
return &QGraphicsSceneHoverEvent{h: h, QGraphicsSceneEvent: newQGraphicsSceneEvent_U(unsafe.Pointer(h))}
|
|
|
|
}
|
|
|
|
|
|
|
|
func newQGraphicsSceneHoverEvent_U(h unsafe.Pointer) *QGraphicsSceneHoverEvent {
|
|
|
|
return newQGraphicsSceneHoverEvent((*C.QGraphicsSceneHoverEvent)(h))
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
// NewQGraphicsSceneHoverEvent constructs a new QGraphicsSceneHoverEvent object.
|
|
|
|
func NewQGraphicsSceneHoverEvent() *QGraphicsSceneHoverEvent {
|
|
|
|
ret := C.QGraphicsSceneHoverEvent_new()
|
|
|
|
return newQGraphicsSceneHoverEvent(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewQGraphicsSceneHoverEvent2 constructs a new QGraphicsSceneHoverEvent object.
|
|
|
|
func NewQGraphicsSceneHoverEvent2(typeVal uintptr) *QGraphicsSceneHoverEvent {
|
|
|
|
ret := C.QGraphicsSceneHoverEvent_new2((C.uintptr_t)(typeVal))
|
|
|
|
return newQGraphicsSceneHoverEvent(ret)
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QGraphicsSceneHoverEvent) Pos() *QPointF {
|
|
|
|
ret := C.QGraphicsSceneHoverEvent_Pos(this.h)
|
|
|
|
// Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
ret1 := newQPointF(ret)
|
|
|
|
runtime.SetFinalizer(ret1, func(ret2 *QPointF) {
|
|
|
|
ret2.Delete()
|
|
|
|
runtime.KeepAlive(ret2.h)
|
|
|
|
})
|
|
|
|
return ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneHoverEvent) SetPos(pos *QPointF) {
|
|
|
|
C.QGraphicsSceneHoverEvent_SetPos(this.h, pos.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneHoverEvent) ScenePos() *QPointF {
|
|
|
|
ret := C.QGraphicsSceneHoverEvent_ScenePos(this.h)
|
|
|
|
// Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
ret1 := newQPointF(ret)
|
|
|
|
runtime.SetFinalizer(ret1, func(ret2 *QPointF) {
|
|
|
|
ret2.Delete()
|
|
|
|
runtime.KeepAlive(ret2.h)
|
|
|
|
})
|
|
|
|
return ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneHoverEvent) SetScenePos(pos *QPointF) {
|
|
|
|
C.QGraphicsSceneHoverEvent_SetScenePos(this.h, pos.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneHoverEvent) ScreenPos() *QPoint {
|
|
|
|
ret := C.QGraphicsSceneHoverEvent_ScreenPos(this.h)
|
|
|
|
// Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
ret1 := newQPoint(ret)
|
|
|
|
runtime.SetFinalizer(ret1, func(ret2 *QPoint) {
|
|
|
|
ret2.Delete()
|
|
|
|
runtime.KeepAlive(ret2.h)
|
|
|
|
})
|
|
|
|
return ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneHoverEvent) SetScreenPos(pos *QPoint) {
|
|
|
|
C.QGraphicsSceneHoverEvent_SetScreenPos(this.h, pos.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneHoverEvent) LastPos() *QPointF {
|
|
|
|
ret := C.QGraphicsSceneHoverEvent_LastPos(this.h)
|
|
|
|
// Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
ret1 := newQPointF(ret)
|
|
|
|
runtime.SetFinalizer(ret1, func(ret2 *QPointF) {
|
|
|
|
ret2.Delete()
|
|
|
|
runtime.KeepAlive(ret2.h)
|
|
|
|
})
|
|
|
|
return ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneHoverEvent) SetLastPos(pos *QPointF) {
|
|
|
|
C.QGraphicsSceneHoverEvent_SetLastPos(this.h, pos.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneHoverEvent) LastScenePos() *QPointF {
|
|
|
|
ret := C.QGraphicsSceneHoverEvent_LastScenePos(this.h)
|
|
|
|
// Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
ret1 := newQPointF(ret)
|
|
|
|
runtime.SetFinalizer(ret1, func(ret2 *QPointF) {
|
|
|
|
ret2.Delete()
|
|
|
|
runtime.KeepAlive(ret2.h)
|
|
|
|
})
|
|
|
|
return ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneHoverEvent) SetLastScenePos(pos *QPointF) {
|
|
|
|
C.QGraphicsSceneHoverEvent_SetLastScenePos(this.h, pos.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneHoverEvent) LastScreenPos() *QPoint {
|
|
|
|
ret := C.QGraphicsSceneHoverEvent_LastScreenPos(this.h)
|
|
|
|
// Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
ret1 := newQPoint(ret)
|
|
|
|
runtime.SetFinalizer(ret1, func(ret2 *QPoint) {
|
|
|
|
ret2.Delete()
|
|
|
|
runtime.KeepAlive(ret2.h)
|
|
|
|
})
|
|
|
|
return ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneHoverEvent) SetLastScreenPos(pos *QPoint) {
|
|
|
|
C.QGraphicsSceneHoverEvent_SetLastScreenPos(this.h, pos.cPointer())
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
func (this *QGraphicsSceneHoverEvent) Modifiers() int {
|
|
|
|
ret := C.QGraphicsSceneHoverEvent_Modifiers(this.h)
|
|
|
|
return (int)(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneHoverEvent) SetModifiers(modifiers int) {
|
|
|
|
C.QGraphicsSceneHoverEvent_SetModifiers(this.h, (C.int)(modifiers))
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QGraphicsSceneHoverEvent) Delete() {
|
|
|
|
C.QGraphicsSceneHoverEvent_Delete(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
type QGraphicsSceneHelpEvent struct {
|
|
|
|
h *C.QGraphicsSceneHelpEvent
|
|
|
|
*QGraphicsSceneEvent
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneHelpEvent) cPointer() *C.QGraphicsSceneHelpEvent {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
|
|
|
func newQGraphicsSceneHelpEvent(h *C.QGraphicsSceneHelpEvent) *QGraphicsSceneHelpEvent {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
return &QGraphicsSceneHelpEvent{h: h, QGraphicsSceneEvent: newQGraphicsSceneEvent_U(unsafe.Pointer(h))}
|
|
|
|
}
|
|
|
|
|
|
|
|
func newQGraphicsSceneHelpEvent_U(h unsafe.Pointer) *QGraphicsSceneHelpEvent {
|
|
|
|
return newQGraphicsSceneHelpEvent((*C.QGraphicsSceneHelpEvent)(h))
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
// NewQGraphicsSceneHelpEvent constructs a new QGraphicsSceneHelpEvent object.
|
|
|
|
func NewQGraphicsSceneHelpEvent() *QGraphicsSceneHelpEvent {
|
|
|
|
ret := C.QGraphicsSceneHelpEvent_new()
|
|
|
|
return newQGraphicsSceneHelpEvent(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewQGraphicsSceneHelpEvent2 constructs a new QGraphicsSceneHelpEvent object.
|
|
|
|
func NewQGraphicsSceneHelpEvent2(typeVal uintptr) *QGraphicsSceneHelpEvent {
|
|
|
|
ret := C.QGraphicsSceneHelpEvent_new2((C.uintptr_t)(typeVal))
|
|
|
|
return newQGraphicsSceneHelpEvent(ret)
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QGraphicsSceneHelpEvent) ScenePos() *QPointF {
|
|
|
|
ret := C.QGraphicsSceneHelpEvent_ScenePos(this.h)
|
|
|
|
// Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
ret1 := newQPointF(ret)
|
|
|
|
runtime.SetFinalizer(ret1, func(ret2 *QPointF) {
|
|
|
|
ret2.Delete()
|
|
|
|
runtime.KeepAlive(ret2.h)
|
|
|
|
})
|
|
|
|
return ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneHelpEvent) SetScenePos(pos *QPointF) {
|
|
|
|
C.QGraphicsSceneHelpEvent_SetScenePos(this.h, pos.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneHelpEvent) ScreenPos() *QPoint {
|
|
|
|
ret := C.QGraphicsSceneHelpEvent_ScreenPos(this.h)
|
|
|
|
// Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
ret1 := newQPoint(ret)
|
|
|
|
runtime.SetFinalizer(ret1, func(ret2 *QPoint) {
|
|
|
|
ret2.Delete()
|
|
|
|
runtime.KeepAlive(ret2.h)
|
|
|
|
})
|
|
|
|
return ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneHelpEvent) SetScreenPos(pos *QPoint) {
|
|
|
|
C.QGraphicsSceneHelpEvent_SetScreenPos(this.h, pos.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneHelpEvent) Delete() {
|
|
|
|
C.QGraphicsSceneHelpEvent_Delete(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
type QGraphicsSceneDragDropEvent struct {
|
|
|
|
h *C.QGraphicsSceneDragDropEvent
|
|
|
|
*QGraphicsSceneEvent
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneDragDropEvent) cPointer() *C.QGraphicsSceneDragDropEvent {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
|
|
|
func newQGraphicsSceneDragDropEvent(h *C.QGraphicsSceneDragDropEvent) *QGraphicsSceneDragDropEvent {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
return &QGraphicsSceneDragDropEvent{h: h, QGraphicsSceneEvent: newQGraphicsSceneEvent_U(unsafe.Pointer(h))}
|
|
|
|
}
|
|
|
|
|
|
|
|
func newQGraphicsSceneDragDropEvent_U(h unsafe.Pointer) *QGraphicsSceneDragDropEvent {
|
|
|
|
return newQGraphicsSceneDragDropEvent((*C.QGraphicsSceneDragDropEvent)(h))
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
// NewQGraphicsSceneDragDropEvent constructs a new QGraphicsSceneDragDropEvent object.
|
|
|
|
func NewQGraphicsSceneDragDropEvent() *QGraphicsSceneDragDropEvent {
|
|
|
|
ret := C.QGraphicsSceneDragDropEvent_new()
|
|
|
|
return newQGraphicsSceneDragDropEvent(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewQGraphicsSceneDragDropEvent2 constructs a new QGraphicsSceneDragDropEvent object.
|
|
|
|
func NewQGraphicsSceneDragDropEvent2(typeVal uintptr) *QGraphicsSceneDragDropEvent {
|
|
|
|
ret := C.QGraphicsSceneDragDropEvent_new2((C.uintptr_t)(typeVal))
|
|
|
|
return newQGraphicsSceneDragDropEvent(ret)
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QGraphicsSceneDragDropEvent) Pos() *QPointF {
|
|
|
|
ret := C.QGraphicsSceneDragDropEvent_Pos(this.h)
|
|
|
|
// Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
ret1 := newQPointF(ret)
|
|
|
|
runtime.SetFinalizer(ret1, func(ret2 *QPointF) {
|
|
|
|
ret2.Delete()
|
|
|
|
runtime.KeepAlive(ret2.h)
|
|
|
|
})
|
|
|
|
return ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneDragDropEvent) SetPos(pos *QPointF) {
|
|
|
|
C.QGraphicsSceneDragDropEvent_SetPos(this.h, pos.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneDragDropEvent) ScenePos() *QPointF {
|
|
|
|
ret := C.QGraphicsSceneDragDropEvent_ScenePos(this.h)
|
|
|
|
// Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
ret1 := newQPointF(ret)
|
|
|
|
runtime.SetFinalizer(ret1, func(ret2 *QPointF) {
|
|
|
|
ret2.Delete()
|
|
|
|
runtime.KeepAlive(ret2.h)
|
|
|
|
})
|
|
|
|
return ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneDragDropEvent) SetScenePos(pos *QPointF) {
|
|
|
|
C.QGraphicsSceneDragDropEvent_SetScenePos(this.h, pos.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneDragDropEvent) ScreenPos() *QPoint {
|
|
|
|
ret := C.QGraphicsSceneDragDropEvent_ScreenPos(this.h)
|
|
|
|
// Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
ret1 := newQPoint(ret)
|
|
|
|
runtime.SetFinalizer(ret1, func(ret2 *QPoint) {
|
|
|
|
ret2.Delete()
|
|
|
|
runtime.KeepAlive(ret2.h)
|
|
|
|
})
|
|
|
|
return ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneDragDropEvent) SetScreenPos(pos *QPoint) {
|
|
|
|
C.QGraphicsSceneDragDropEvent_SetScreenPos(this.h, pos.cPointer())
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
func (this *QGraphicsSceneDragDropEvent) Buttons() int {
|
|
|
|
ret := C.QGraphicsSceneDragDropEvent_Buttons(this.h)
|
|
|
|
return (int)(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneDragDropEvent) SetButtons(buttons int) {
|
|
|
|
C.QGraphicsSceneDragDropEvent_SetButtons(this.h, (C.int)(buttons))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneDragDropEvent) Modifiers() int {
|
|
|
|
ret := C.QGraphicsSceneDragDropEvent_Modifiers(this.h)
|
|
|
|
return (int)(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneDragDropEvent) SetModifiers(modifiers int) {
|
|
|
|
C.QGraphicsSceneDragDropEvent_SetModifiers(this.h, (C.int)(modifiers))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneDragDropEvent) PossibleActions() int {
|
|
|
|
ret := C.QGraphicsSceneDragDropEvent_PossibleActions(this.h)
|
|
|
|
return (int)(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneDragDropEvent) SetPossibleActions(actions int) {
|
|
|
|
C.QGraphicsSceneDragDropEvent_SetPossibleActions(this.h, (C.int)(actions))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneDragDropEvent) ProposedAction() uintptr {
|
|
|
|
ret := C.QGraphicsSceneDragDropEvent_ProposedAction(this.h)
|
|
|
|
return (uintptr)(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneDragDropEvent) SetProposedAction(action uintptr) {
|
|
|
|
C.QGraphicsSceneDragDropEvent_SetProposedAction(this.h, (C.uintptr_t)(action))
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QGraphicsSceneDragDropEvent) AcceptProposedAction() {
|
|
|
|
C.QGraphicsSceneDragDropEvent_AcceptProposedAction(this.h)
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
func (this *QGraphicsSceneDragDropEvent) DropAction() uintptr {
|
|
|
|
ret := C.QGraphicsSceneDragDropEvent_DropAction(this.h)
|
|
|
|
return (uintptr)(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneDragDropEvent) SetDropAction(action uintptr) {
|
|
|
|
C.QGraphicsSceneDragDropEvent_SetDropAction(this.h, (C.uintptr_t)(action))
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QGraphicsSceneDragDropEvent) Source() *QWidget {
|
|
|
|
ret := C.QGraphicsSceneDragDropEvent_Source(this.h)
|
|
|
|
return newQWidget_U(unsafe.Pointer(ret))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneDragDropEvent) SetSource(source *QWidget) {
|
|
|
|
C.QGraphicsSceneDragDropEvent_SetSource(this.h, source.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneDragDropEvent) MimeData() *QMimeData {
|
|
|
|
ret := C.QGraphicsSceneDragDropEvent_MimeData(this.h)
|
|
|
|
return newQMimeData_U(unsafe.Pointer(ret))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneDragDropEvent) SetMimeData(data *QMimeData) {
|
|
|
|
C.QGraphicsSceneDragDropEvent_SetMimeData(this.h, data.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneDragDropEvent) Delete() {
|
|
|
|
C.QGraphicsSceneDragDropEvent_Delete(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
type QGraphicsSceneResizeEvent struct {
|
|
|
|
h *C.QGraphicsSceneResizeEvent
|
|
|
|
*QGraphicsSceneEvent
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneResizeEvent) cPointer() *C.QGraphicsSceneResizeEvent {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
|
|
|
func newQGraphicsSceneResizeEvent(h *C.QGraphicsSceneResizeEvent) *QGraphicsSceneResizeEvent {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
return &QGraphicsSceneResizeEvent{h: h, QGraphicsSceneEvent: newQGraphicsSceneEvent_U(unsafe.Pointer(h))}
|
|
|
|
}
|
|
|
|
|
|
|
|
func newQGraphicsSceneResizeEvent_U(h unsafe.Pointer) *QGraphicsSceneResizeEvent {
|
|
|
|
return newQGraphicsSceneResizeEvent((*C.QGraphicsSceneResizeEvent)(h))
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewQGraphicsSceneResizeEvent constructs a new QGraphicsSceneResizeEvent object.
|
|
|
|
func NewQGraphicsSceneResizeEvent() *QGraphicsSceneResizeEvent {
|
|
|
|
ret := C.QGraphicsSceneResizeEvent_new()
|
|
|
|
return newQGraphicsSceneResizeEvent(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneResizeEvent) OldSize() *QSizeF {
|
|
|
|
ret := C.QGraphicsSceneResizeEvent_OldSize(this.h)
|
|
|
|
// Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
ret1 := newQSizeF(ret)
|
|
|
|
runtime.SetFinalizer(ret1, func(ret2 *QSizeF) {
|
|
|
|
ret2.Delete()
|
|
|
|
runtime.KeepAlive(ret2.h)
|
|
|
|
})
|
|
|
|
return ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneResizeEvent) SetOldSize(size *QSizeF) {
|
|
|
|
C.QGraphicsSceneResizeEvent_SetOldSize(this.h, size.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneResizeEvent) NewSize() *QSizeF {
|
|
|
|
ret := C.QGraphicsSceneResizeEvent_NewSize(this.h)
|
|
|
|
// Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
ret1 := newQSizeF(ret)
|
|
|
|
runtime.SetFinalizer(ret1, func(ret2 *QSizeF) {
|
|
|
|
ret2.Delete()
|
|
|
|
runtime.KeepAlive(ret2.h)
|
|
|
|
})
|
|
|
|
return ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneResizeEvent) SetNewSize(size *QSizeF) {
|
|
|
|
C.QGraphicsSceneResizeEvent_SetNewSize(this.h, size.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneResizeEvent) Delete() {
|
|
|
|
C.QGraphicsSceneResizeEvent_Delete(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
type QGraphicsSceneMoveEvent struct {
|
|
|
|
h *C.QGraphicsSceneMoveEvent
|
|
|
|
*QGraphicsSceneEvent
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneMoveEvent) cPointer() *C.QGraphicsSceneMoveEvent {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
|
|
|
func newQGraphicsSceneMoveEvent(h *C.QGraphicsSceneMoveEvent) *QGraphicsSceneMoveEvent {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
return &QGraphicsSceneMoveEvent{h: h, QGraphicsSceneEvent: newQGraphicsSceneEvent_U(unsafe.Pointer(h))}
|
|
|
|
}
|
|
|
|
|
|
|
|
func newQGraphicsSceneMoveEvent_U(h unsafe.Pointer) *QGraphicsSceneMoveEvent {
|
|
|
|
return newQGraphicsSceneMoveEvent((*C.QGraphicsSceneMoveEvent)(h))
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewQGraphicsSceneMoveEvent constructs a new QGraphicsSceneMoveEvent object.
|
|
|
|
func NewQGraphicsSceneMoveEvent() *QGraphicsSceneMoveEvent {
|
|
|
|
ret := C.QGraphicsSceneMoveEvent_new()
|
|
|
|
return newQGraphicsSceneMoveEvent(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneMoveEvent) OldPos() *QPointF {
|
|
|
|
ret := C.QGraphicsSceneMoveEvent_OldPos(this.h)
|
|
|
|
// Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
ret1 := newQPointF(ret)
|
|
|
|
runtime.SetFinalizer(ret1, func(ret2 *QPointF) {
|
|
|
|
ret2.Delete()
|
|
|
|
runtime.KeepAlive(ret2.h)
|
|
|
|
})
|
|
|
|
return ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneMoveEvent) SetOldPos(pos *QPointF) {
|
|
|
|
C.QGraphicsSceneMoveEvent_SetOldPos(this.h, pos.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneMoveEvent) NewPos() *QPointF {
|
|
|
|
ret := C.QGraphicsSceneMoveEvent_NewPos(this.h)
|
|
|
|
// Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
ret1 := newQPointF(ret)
|
|
|
|
runtime.SetFinalizer(ret1, func(ret2 *QPointF) {
|
|
|
|
ret2.Delete()
|
|
|
|
runtime.KeepAlive(ret2.h)
|
|
|
|
})
|
|
|
|
return ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneMoveEvent) SetNewPos(pos *QPointF) {
|
|
|
|
C.QGraphicsSceneMoveEvent_SetNewPos(this.h, pos.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGraphicsSceneMoveEvent) Delete() {
|
|
|
|
C.QGraphicsSceneMoveEvent_Delete(this.h)
|
|
|
|
}
|