package qt6 /* #include "gen_qgraphicssceneevent.h" #include */ import "C" import ( "runtime" "runtime/cgo" "unsafe" ) type QGraphicsSceneContextMenuEvent__Reason int const ( QGraphicsSceneContextMenuEvent__Mouse QGraphicsSceneContextMenuEvent__Reason = 0 QGraphicsSceneContextMenuEvent__Keyboard QGraphicsSceneContextMenuEvent__Reason = 1 QGraphicsSceneContextMenuEvent__Other QGraphicsSceneContextMenuEvent__Reason = 2 ) type QGraphicsSceneEvent struct { h *C.QGraphicsSceneEvent isSubclass bool *QEvent } func (this *QGraphicsSceneEvent) cPointer() *C.QGraphicsSceneEvent { if this == nil { return nil } return this.h } func (this *QGraphicsSceneEvent) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQGraphicsSceneEvent constructs the type using only CGO pointers. func newQGraphicsSceneEvent(h *C.QGraphicsSceneEvent) *QGraphicsSceneEvent { if h == nil { return nil } var outptr_QEvent *C.QEvent = nil C.QGraphicsSceneEvent_virtbase(h, &outptr_QEvent) return &QGraphicsSceneEvent{h: h, QEvent: newQEvent(outptr_QEvent)} } // UnsafeNewQGraphicsSceneEvent constructs the type using only unsafe pointers. func UnsafeNewQGraphicsSceneEvent(h unsafe.Pointer) *QGraphicsSceneEvent { return newQGraphicsSceneEvent((*C.QGraphicsSceneEvent)(h)) } // NewQGraphicsSceneEvent constructs a new QGraphicsSceneEvent object. func NewQGraphicsSceneEvent(typeVal QEvent__Type) *QGraphicsSceneEvent { ret := newQGraphicsSceneEvent(C.QGraphicsSceneEvent_new((C.int)(typeVal))) ret.isSubclass = true return ret } func (this *QGraphicsSceneEvent) Widget() *QWidget { return newQWidget(C.QGraphicsSceneEvent_Widget(this.h)) } func (this *QGraphicsSceneEvent) SetWidget(widget *QWidget) { C.QGraphicsSceneEvent_SetWidget(this.h, widget.cPointer()) } func (this *QGraphicsSceneEvent) Timestamp() uint64 { return (uint64)(C.QGraphicsSceneEvent_Timestamp(this.h)) } func (this *QGraphicsSceneEvent) SetTimestamp(ts uint64) { C.QGraphicsSceneEvent_SetTimestamp(this.h, (C.ulonglong)(ts)) } func (this *QGraphicsSceneEvent) callVirtualBase_SetAccepted(accepted bool) { C.QGraphicsSceneEvent_virtualbase_SetAccepted(unsafe.Pointer(this.h), (C.bool)(accepted)) } func (this *QGraphicsSceneEvent) OnSetAccepted(slot func(super func(accepted bool), accepted bool)) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QGraphicsSceneEvent_override_virtual_SetAccepted(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGraphicsSceneEvent_SetAccepted func miqt_exec_callback_QGraphicsSceneEvent_SetAccepted(self *C.QGraphicsSceneEvent, cb C.intptr_t, accepted C.bool) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(accepted bool), accepted bool)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := (bool)(accepted) gofunc((&QGraphicsSceneEvent{h: self}).callVirtualBase_SetAccepted, slotval1) } func (this *QGraphicsSceneEvent) callVirtualBase_Clone() *QEvent { return newQEvent(C.QGraphicsSceneEvent_virtualbase_Clone(unsafe.Pointer(this.h))) } func (this *QGraphicsSceneEvent) OnClone(slot func(super func() *QEvent) *QEvent) { if !this.isSubclass { panic("miqt: can only override virtual methods for directly constructed types") } C.QGraphicsSceneEvent_override_virtual_Clone(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot))) } //export miqt_exec_callback_QGraphicsSceneEvent_Clone func miqt_exec_callback_QGraphicsSceneEvent_Clone(self *C.QGraphicsSceneEvent, cb C.intptr_t) *C.QEvent { gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QEvent) *QEvent) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } virtualReturn := gofunc((&QGraphicsSceneEvent{h: self}).callVirtualBase_Clone) return virtualReturn.cPointer() } // Delete this object from C++ memory. func (this *QGraphicsSceneEvent) Delete() { C.QGraphicsSceneEvent_Delete(this.h, C.bool(this.isSubclass)) } // 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 *QGraphicsSceneEvent) GoGC() { runtime.SetFinalizer(this, func(this *QGraphicsSceneEvent) { this.Delete() runtime.KeepAlive(this.h) }) } type QGraphicsSceneMouseEvent struct { h *C.QGraphicsSceneMouseEvent isSubclass bool *QGraphicsSceneEvent } func (this *QGraphicsSceneMouseEvent) cPointer() *C.QGraphicsSceneMouseEvent { if this == nil { return nil } return this.h } func (this *QGraphicsSceneMouseEvent) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQGraphicsSceneMouseEvent constructs the type using only CGO pointers. func newQGraphicsSceneMouseEvent(h *C.QGraphicsSceneMouseEvent) *QGraphicsSceneMouseEvent { if h == nil { return nil } var outptr_QGraphicsSceneEvent *C.QGraphicsSceneEvent = nil C.QGraphicsSceneMouseEvent_virtbase(h, &outptr_QGraphicsSceneEvent) return &QGraphicsSceneMouseEvent{h: h, QGraphicsSceneEvent: newQGraphicsSceneEvent(outptr_QGraphicsSceneEvent)} } // UnsafeNewQGraphicsSceneMouseEvent constructs the type using only unsafe pointers. func UnsafeNewQGraphicsSceneMouseEvent(h unsafe.Pointer) *QGraphicsSceneMouseEvent { return newQGraphicsSceneMouseEvent((*C.QGraphicsSceneMouseEvent)(h)) } // NewQGraphicsSceneMouseEvent constructs a new QGraphicsSceneMouseEvent object. func NewQGraphicsSceneMouseEvent() *QGraphicsSceneMouseEvent { ret := newQGraphicsSceneMouseEvent(C.QGraphicsSceneMouseEvent_new()) ret.isSubclass = true return ret } // NewQGraphicsSceneMouseEvent2 constructs a new QGraphicsSceneMouseEvent object. func NewQGraphicsSceneMouseEvent2(typeVal QEvent__Type) *QGraphicsSceneMouseEvent { ret := newQGraphicsSceneMouseEvent(C.QGraphicsSceneMouseEvent_new2((C.int)(typeVal))) ret.isSubclass = true return ret } func (this *QGraphicsSceneMouseEvent) Pos() *QPointF { _goptr := newQPointF(C.QGraphicsSceneMouseEvent_Pos(this.h)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QGraphicsSceneMouseEvent) SetPos(pos *QPointF) { C.QGraphicsSceneMouseEvent_SetPos(this.h, pos.cPointer()) } func (this *QGraphicsSceneMouseEvent) ScenePos() *QPointF { _goptr := newQPointF(C.QGraphicsSceneMouseEvent_ScenePos(this.h)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QGraphicsSceneMouseEvent) SetScenePos(pos *QPointF) { C.QGraphicsSceneMouseEvent_SetScenePos(this.h, pos.cPointer()) } func (this *QGraphicsSceneMouseEvent) ScreenPos() *QPoint { _goptr := newQPoint(C.QGraphicsSceneMouseEvent_ScreenPos(this.h)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QGraphicsSceneMouseEvent) SetScreenPos(pos *QPoint) { C.QGraphicsSceneMouseEvent_SetScreenPos(this.h, pos.cPointer()) } func (this *QGraphicsSceneMouseEvent) ButtonDownPos(button MouseButton) *QPointF { _goptr := newQPointF(C.QGraphicsSceneMouseEvent_ButtonDownPos(this.h, (C.int)(button))) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QGraphicsSceneMouseEvent) SetButtonDownPos(button MouseButton, pos *QPointF) { C.QGraphicsSceneMouseEvent_SetButtonDownPos(this.h, (C.int)(button), pos.cPointer()) } func (this *QGraphicsSceneMouseEvent) ButtonDownScenePos(button MouseButton) *QPointF { _goptr := newQPointF(C.QGraphicsSceneMouseEvent_ButtonDownScenePos(this.h, (C.int)(button))) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QGraphicsSceneMouseEvent) SetButtonDownScenePos(button MouseButton, pos *QPointF) { C.QGraphicsSceneMouseEvent_SetButtonDownScenePos(this.h, (C.int)(button), pos.cPointer()) } func (this *QGraphicsSceneMouseEvent) ButtonDownScreenPos(button MouseButton) *QPoint { _goptr := newQPoint(C.QGraphicsSceneMouseEvent_ButtonDownScreenPos(this.h, (C.int)(button))) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QGraphicsSceneMouseEvent) SetButtonDownScreenPos(button MouseButton, pos *QPoint) { C.QGraphicsSceneMouseEvent_SetButtonDownScreenPos(this.h, (C.int)(button), pos.cPointer()) } func (this *QGraphicsSceneMouseEvent) LastPos() *QPointF { _goptr := newQPointF(C.QGraphicsSceneMouseEvent_LastPos(this.h)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QGraphicsSceneMouseEvent) SetLastPos(pos *QPointF) { C.QGraphicsSceneMouseEvent_SetLastPos(this.h, pos.cPointer()) } func (this *QGraphicsSceneMouseEvent) LastScenePos() *QPointF { _goptr := newQPointF(C.QGraphicsSceneMouseEvent_LastScenePos(this.h)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QGraphicsSceneMouseEvent) SetLastScenePos(pos *QPointF) { C.QGraphicsSceneMouseEvent_SetLastScenePos(this.h, pos.cPointer()) } func (this *QGraphicsSceneMouseEvent) LastScreenPos() *QPoint { _goptr := newQPoint(C.QGraphicsSceneMouseEvent_LastScreenPos(this.h)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QGraphicsSceneMouseEvent) SetLastScreenPos(pos *QPoint) { C.QGraphicsSceneMouseEvent_SetLastScreenPos(this.h, pos.cPointer()) } func (this *QGraphicsSceneMouseEvent) Buttons() MouseButton { return (MouseButton)(C.QGraphicsSceneMouseEvent_Buttons(this.h)) } func (this *QGraphicsSceneMouseEvent) SetButtons(buttons MouseButton) { C.QGraphicsSceneMouseEvent_SetButtons(this.h, (C.int)(buttons)) } func (this *QGraphicsSceneMouseEvent) Button() MouseButton { return (MouseButton)(C.QGraphicsSceneMouseEvent_Button(this.h)) } func (this *QGraphicsSceneMouseEvent) SetButton(button MouseButton) { C.QGraphicsSceneMouseEvent_SetButton(this.h, (C.int)(button)) } func (this *QGraphicsSceneMouseEvent) Modifiers() KeyboardModifier { return (KeyboardModifier)(C.QGraphicsSceneMouseEvent_Modifiers(this.h)) } func (this *QGraphicsSceneMouseEvent) SetModifiers(modifiers KeyboardModifier) { C.QGraphicsSceneMouseEvent_SetModifiers(this.h, (C.int)(modifiers)) } func (this *QGraphicsSceneMouseEvent) Source() MouseEventSource { return (MouseEventSource)(C.QGraphicsSceneMouseEvent_Source(this.h)) } func (this *QGraphicsSceneMouseEvent) SetSource(source MouseEventSource) { C.QGraphicsSceneMouseEvent_SetSource(this.h, (C.int)(source)) } func (this *QGraphicsSceneMouseEvent) Flags() MouseEventFlag { return (MouseEventFlag)(C.QGraphicsSceneMouseEvent_Flags(this.h)) } func (this *QGraphicsSceneMouseEvent) SetFlags(flags MouseEventFlag) { C.QGraphicsSceneMouseEvent_SetFlags(this.h, (C.int)(flags)) } // Delete this object from C++ memory. func (this *QGraphicsSceneMouseEvent) Delete() { C.QGraphicsSceneMouseEvent_Delete(this.h, C.bool(this.isSubclass)) } // 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 *QGraphicsSceneMouseEvent) GoGC() { runtime.SetFinalizer(this, func(this *QGraphicsSceneMouseEvent) { this.Delete() runtime.KeepAlive(this.h) }) } type QGraphicsSceneWheelEvent struct { h *C.QGraphicsSceneWheelEvent isSubclass bool *QGraphicsSceneEvent } func (this *QGraphicsSceneWheelEvent) cPointer() *C.QGraphicsSceneWheelEvent { if this == nil { return nil } return this.h } func (this *QGraphicsSceneWheelEvent) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQGraphicsSceneWheelEvent constructs the type using only CGO pointers. func newQGraphicsSceneWheelEvent(h *C.QGraphicsSceneWheelEvent) *QGraphicsSceneWheelEvent { if h == nil { return nil } var outptr_QGraphicsSceneEvent *C.QGraphicsSceneEvent = nil C.QGraphicsSceneWheelEvent_virtbase(h, &outptr_QGraphicsSceneEvent) return &QGraphicsSceneWheelEvent{h: h, QGraphicsSceneEvent: newQGraphicsSceneEvent(outptr_QGraphicsSceneEvent)} } // UnsafeNewQGraphicsSceneWheelEvent constructs the type using only unsafe pointers. func UnsafeNewQGraphicsSceneWheelEvent(h unsafe.Pointer) *QGraphicsSceneWheelEvent { return newQGraphicsSceneWheelEvent((*C.QGraphicsSceneWheelEvent)(h)) } // NewQGraphicsSceneWheelEvent constructs a new QGraphicsSceneWheelEvent object. func NewQGraphicsSceneWheelEvent() *QGraphicsSceneWheelEvent { ret := newQGraphicsSceneWheelEvent(C.QGraphicsSceneWheelEvent_new()) ret.isSubclass = true return ret } // NewQGraphicsSceneWheelEvent2 constructs a new QGraphicsSceneWheelEvent object. func NewQGraphicsSceneWheelEvent2(typeVal QEvent__Type) *QGraphicsSceneWheelEvent { ret := newQGraphicsSceneWheelEvent(C.QGraphicsSceneWheelEvent_new2((C.int)(typeVal))) ret.isSubclass = true return ret } func (this *QGraphicsSceneWheelEvent) Pos() *QPointF { _goptr := newQPointF(C.QGraphicsSceneWheelEvent_Pos(this.h)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QGraphicsSceneWheelEvent) SetPos(pos *QPointF) { C.QGraphicsSceneWheelEvent_SetPos(this.h, pos.cPointer()) } func (this *QGraphicsSceneWheelEvent) ScenePos() *QPointF { _goptr := newQPointF(C.QGraphicsSceneWheelEvent_ScenePos(this.h)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QGraphicsSceneWheelEvent) SetScenePos(pos *QPointF) { C.QGraphicsSceneWheelEvent_SetScenePos(this.h, pos.cPointer()) } func (this *QGraphicsSceneWheelEvent) ScreenPos() *QPoint { _goptr := newQPoint(C.QGraphicsSceneWheelEvent_ScreenPos(this.h)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QGraphicsSceneWheelEvent) SetScreenPos(pos *QPoint) { C.QGraphicsSceneWheelEvent_SetScreenPos(this.h, pos.cPointer()) } func (this *QGraphicsSceneWheelEvent) Buttons() MouseButton { return (MouseButton)(C.QGraphicsSceneWheelEvent_Buttons(this.h)) } func (this *QGraphicsSceneWheelEvent) SetButtons(buttons MouseButton) { C.QGraphicsSceneWheelEvent_SetButtons(this.h, (C.int)(buttons)) } func (this *QGraphicsSceneWheelEvent) Modifiers() KeyboardModifier { return (KeyboardModifier)(C.QGraphicsSceneWheelEvent_Modifiers(this.h)) } func (this *QGraphicsSceneWheelEvent) SetModifiers(modifiers KeyboardModifier) { C.QGraphicsSceneWheelEvent_SetModifiers(this.h, (C.int)(modifiers)) } func (this *QGraphicsSceneWheelEvent) Delta() int { return (int)(C.QGraphicsSceneWheelEvent_Delta(this.h)) } func (this *QGraphicsSceneWheelEvent) SetDelta(delta int) { C.QGraphicsSceneWheelEvent_SetDelta(this.h, (C.int)(delta)) } func (this *QGraphicsSceneWheelEvent) Orientation() Orientation { return (Orientation)(C.QGraphicsSceneWheelEvent_Orientation(this.h)) } func (this *QGraphicsSceneWheelEvent) SetOrientation(orientation Orientation) { C.QGraphicsSceneWheelEvent_SetOrientation(this.h, (C.int)(orientation)) } func (this *QGraphicsSceneWheelEvent) Phase() ScrollPhase { return (ScrollPhase)(C.QGraphicsSceneWheelEvent_Phase(this.h)) } func (this *QGraphicsSceneWheelEvent) SetPhase(scrollPhase ScrollPhase) { C.QGraphicsSceneWheelEvent_SetPhase(this.h, (C.int)(scrollPhase)) } func (this *QGraphicsSceneWheelEvent) PixelDelta() *QPoint { _goptr := newQPoint(C.QGraphicsSceneWheelEvent_PixelDelta(this.h)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QGraphicsSceneWheelEvent) SetPixelDelta(delta QPoint) { C.QGraphicsSceneWheelEvent_SetPixelDelta(this.h, delta.cPointer()) } func (this *QGraphicsSceneWheelEvent) IsInverted() bool { return (bool)(C.QGraphicsSceneWheelEvent_IsInverted(this.h)) } func (this *QGraphicsSceneWheelEvent) SetInverted(inverted bool) { C.QGraphicsSceneWheelEvent_SetInverted(this.h, (C.bool)(inverted)) } // Delete this object from C++ memory. func (this *QGraphicsSceneWheelEvent) Delete() { C.QGraphicsSceneWheelEvent_Delete(this.h, C.bool(this.isSubclass)) } // 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 *QGraphicsSceneWheelEvent) GoGC() { runtime.SetFinalizer(this, func(this *QGraphicsSceneWheelEvent) { this.Delete() runtime.KeepAlive(this.h) }) } type QGraphicsSceneContextMenuEvent struct { h *C.QGraphicsSceneContextMenuEvent isSubclass bool *QGraphicsSceneEvent } func (this *QGraphicsSceneContextMenuEvent) cPointer() *C.QGraphicsSceneContextMenuEvent { if this == nil { return nil } return this.h } func (this *QGraphicsSceneContextMenuEvent) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQGraphicsSceneContextMenuEvent constructs the type using only CGO pointers. func newQGraphicsSceneContextMenuEvent(h *C.QGraphicsSceneContextMenuEvent) *QGraphicsSceneContextMenuEvent { if h == nil { return nil } var outptr_QGraphicsSceneEvent *C.QGraphicsSceneEvent = nil C.QGraphicsSceneContextMenuEvent_virtbase(h, &outptr_QGraphicsSceneEvent) return &QGraphicsSceneContextMenuEvent{h: h, QGraphicsSceneEvent: newQGraphicsSceneEvent(outptr_QGraphicsSceneEvent)} } // UnsafeNewQGraphicsSceneContextMenuEvent constructs the type using only unsafe pointers. func UnsafeNewQGraphicsSceneContextMenuEvent(h unsafe.Pointer) *QGraphicsSceneContextMenuEvent { return newQGraphicsSceneContextMenuEvent((*C.QGraphicsSceneContextMenuEvent)(h)) } // NewQGraphicsSceneContextMenuEvent constructs a new QGraphicsSceneContextMenuEvent object. func NewQGraphicsSceneContextMenuEvent() *QGraphicsSceneContextMenuEvent { ret := newQGraphicsSceneContextMenuEvent(C.QGraphicsSceneContextMenuEvent_new()) ret.isSubclass = true return ret } // NewQGraphicsSceneContextMenuEvent2 constructs a new QGraphicsSceneContextMenuEvent object. func NewQGraphicsSceneContextMenuEvent2(typeVal QEvent__Type) *QGraphicsSceneContextMenuEvent { ret := newQGraphicsSceneContextMenuEvent(C.QGraphicsSceneContextMenuEvent_new2((C.int)(typeVal))) ret.isSubclass = true return ret } func (this *QGraphicsSceneContextMenuEvent) Pos() *QPointF { _goptr := newQPointF(C.QGraphicsSceneContextMenuEvent_Pos(this.h)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QGraphicsSceneContextMenuEvent) SetPos(pos *QPointF) { C.QGraphicsSceneContextMenuEvent_SetPos(this.h, pos.cPointer()) } func (this *QGraphicsSceneContextMenuEvent) ScenePos() *QPointF { _goptr := newQPointF(C.QGraphicsSceneContextMenuEvent_ScenePos(this.h)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QGraphicsSceneContextMenuEvent) SetScenePos(pos *QPointF) { C.QGraphicsSceneContextMenuEvent_SetScenePos(this.h, pos.cPointer()) } func (this *QGraphicsSceneContextMenuEvent) ScreenPos() *QPoint { _goptr := newQPoint(C.QGraphicsSceneContextMenuEvent_ScreenPos(this.h)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QGraphicsSceneContextMenuEvent) SetScreenPos(pos *QPoint) { C.QGraphicsSceneContextMenuEvent_SetScreenPos(this.h, pos.cPointer()) } func (this *QGraphicsSceneContextMenuEvent) Modifiers() KeyboardModifier { return (KeyboardModifier)(C.QGraphicsSceneContextMenuEvent_Modifiers(this.h)) } func (this *QGraphicsSceneContextMenuEvent) SetModifiers(modifiers KeyboardModifier) { C.QGraphicsSceneContextMenuEvent_SetModifiers(this.h, (C.int)(modifiers)) } func (this *QGraphicsSceneContextMenuEvent) Reason() QGraphicsSceneContextMenuEvent__Reason { return (QGraphicsSceneContextMenuEvent__Reason)(C.QGraphicsSceneContextMenuEvent_Reason(this.h)) } func (this *QGraphicsSceneContextMenuEvent) SetReason(reason QGraphicsSceneContextMenuEvent__Reason) { C.QGraphicsSceneContextMenuEvent_SetReason(this.h, (C.int)(reason)) } // Delete this object from C++ memory. func (this *QGraphicsSceneContextMenuEvent) Delete() { C.QGraphicsSceneContextMenuEvent_Delete(this.h, C.bool(this.isSubclass)) } // 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 *QGraphicsSceneContextMenuEvent) GoGC() { runtime.SetFinalizer(this, func(this *QGraphicsSceneContextMenuEvent) { this.Delete() runtime.KeepAlive(this.h) }) } type QGraphicsSceneHoverEvent struct { h *C.QGraphicsSceneHoverEvent isSubclass bool *QGraphicsSceneEvent } func (this *QGraphicsSceneHoverEvent) cPointer() *C.QGraphicsSceneHoverEvent { if this == nil { return nil } return this.h } func (this *QGraphicsSceneHoverEvent) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQGraphicsSceneHoverEvent constructs the type using only CGO pointers. func newQGraphicsSceneHoverEvent(h *C.QGraphicsSceneHoverEvent) *QGraphicsSceneHoverEvent { if h == nil { return nil } var outptr_QGraphicsSceneEvent *C.QGraphicsSceneEvent = nil C.QGraphicsSceneHoverEvent_virtbase(h, &outptr_QGraphicsSceneEvent) return &QGraphicsSceneHoverEvent{h: h, QGraphicsSceneEvent: newQGraphicsSceneEvent(outptr_QGraphicsSceneEvent)} } // UnsafeNewQGraphicsSceneHoverEvent constructs the type using only unsafe pointers. func UnsafeNewQGraphicsSceneHoverEvent(h unsafe.Pointer) *QGraphicsSceneHoverEvent { return newQGraphicsSceneHoverEvent((*C.QGraphicsSceneHoverEvent)(h)) } // NewQGraphicsSceneHoverEvent constructs a new QGraphicsSceneHoverEvent object. func NewQGraphicsSceneHoverEvent() *QGraphicsSceneHoverEvent { ret := newQGraphicsSceneHoverEvent(C.QGraphicsSceneHoverEvent_new()) ret.isSubclass = true return ret } // NewQGraphicsSceneHoverEvent2 constructs a new QGraphicsSceneHoverEvent object. func NewQGraphicsSceneHoverEvent2(typeVal QEvent__Type) *QGraphicsSceneHoverEvent { ret := newQGraphicsSceneHoverEvent(C.QGraphicsSceneHoverEvent_new2((C.int)(typeVal))) ret.isSubclass = true return ret } func (this *QGraphicsSceneHoverEvent) Pos() *QPointF { _goptr := newQPointF(C.QGraphicsSceneHoverEvent_Pos(this.h)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QGraphicsSceneHoverEvent) SetPos(pos *QPointF) { C.QGraphicsSceneHoverEvent_SetPos(this.h, pos.cPointer()) } func (this *QGraphicsSceneHoverEvent) ScenePos() *QPointF { _goptr := newQPointF(C.QGraphicsSceneHoverEvent_ScenePos(this.h)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QGraphicsSceneHoverEvent) SetScenePos(pos *QPointF) { C.QGraphicsSceneHoverEvent_SetScenePos(this.h, pos.cPointer()) } func (this *QGraphicsSceneHoverEvent) ScreenPos() *QPoint { _goptr := newQPoint(C.QGraphicsSceneHoverEvent_ScreenPos(this.h)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QGraphicsSceneHoverEvent) SetScreenPos(pos *QPoint) { C.QGraphicsSceneHoverEvent_SetScreenPos(this.h, pos.cPointer()) } func (this *QGraphicsSceneHoverEvent) LastPos() *QPointF { _goptr := newQPointF(C.QGraphicsSceneHoverEvent_LastPos(this.h)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QGraphicsSceneHoverEvent) SetLastPos(pos *QPointF) { C.QGraphicsSceneHoverEvent_SetLastPos(this.h, pos.cPointer()) } func (this *QGraphicsSceneHoverEvent) LastScenePos() *QPointF { _goptr := newQPointF(C.QGraphicsSceneHoverEvent_LastScenePos(this.h)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QGraphicsSceneHoverEvent) SetLastScenePos(pos *QPointF) { C.QGraphicsSceneHoverEvent_SetLastScenePos(this.h, pos.cPointer()) } func (this *QGraphicsSceneHoverEvent) LastScreenPos() *QPoint { _goptr := newQPoint(C.QGraphicsSceneHoverEvent_LastScreenPos(this.h)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QGraphicsSceneHoverEvent) SetLastScreenPos(pos *QPoint) { C.QGraphicsSceneHoverEvent_SetLastScreenPos(this.h, pos.cPointer()) } func (this *QGraphicsSceneHoverEvent) Modifiers() KeyboardModifier { return (KeyboardModifier)(C.QGraphicsSceneHoverEvent_Modifiers(this.h)) } func (this *QGraphicsSceneHoverEvent) SetModifiers(modifiers KeyboardModifier) { C.QGraphicsSceneHoverEvent_SetModifiers(this.h, (C.int)(modifiers)) } // Delete this object from C++ memory. func (this *QGraphicsSceneHoverEvent) Delete() { C.QGraphicsSceneHoverEvent_Delete(this.h, C.bool(this.isSubclass)) } // 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 *QGraphicsSceneHoverEvent) GoGC() { runtime.SetFinalizer(this, func(this *QGraphicsSceneHoverEvent) { this.Delete() runtime.KeepAlive(this.h) }) } type QGraphicsSceneHelpEvent struct { h *C.QGraphicsSceneHelpEvent isSubclass bool *QGraphicsSceneEvent } func (this *QGraphicsSceneHelpEvent) cPointer() *C.QGraphicsSceneHelpEvent { if this == nil { return nil } return this.h } func (this *QGraphicsSceneHelpEvent) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQGraphicsSceneHelpEvent constructs the type using only CGO pointers. func newQGraphicsSceneHelpEvent(h *C.QGraphicsSceneHelpEvent) *QGraphicsSceneHelpEvent { if h == nil { return nil } var outptr_QGraphicsSceneEvent *C.QGraphicsSceneEvent = nil C.QGraphicsSceneHelpEvent_virtbase(h, &outptr_QGraphicsSceneEvent) return &QGraphicsSceneHelpEvent{h: h, QGraphicsSceneEvent: newQGraphicsSceneEvent(outptr_QGraphicsSceneEvent)} } // UnsafeNewQGraphicsSceneHelpEvent constructs the type using only unsafe pointers. func UnsafeNewQGraphicsSceneHelpEvent(h unsafe.Pointer) *QGraphicsSceneHelpEvent { return newQGraphicsSceneHelpEvent((*C.QGraphicsSceneHelpEvent)(h)) } // NewQGraphicsSceneHelpEvent constructs a new QGraphicsSceneHelpEvent object. func NewQGraphicsSceneHelpEvent() *QGraphicsSceneHelpEvent { ret := newQGraphicsSceneHelpEvent(C.QGraphicsSceneHelpEvent_new()) ret.isSubclass = true return ret } // NewQGraphicsSceneHelpEvent2 constructs a new QGraphicsSceneHelpEvent object. func NewQGraphicsSceneHelpEvent2(typeVal QEvent__Type) *QGraphicsSceneHelpEvent { ret := newQGraphicsSceneHelpEvent(C.QGraphicsSceneHelpEvent_new2((C.int)(typeVal))) ret.isSubclass = true return ret } func (this *QGraphicsSceneHelpEvent) ScenePos() *QPointF { _goptr := newQPointF(C.QGraphicsSceneHelpEvent_ScenePos(this.h)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QGraphicsSceneHelpEvent) SetScenePos(pos *QPointF) { C.QGraphicsSceneHelpEvent_SetScenePos(this.h, pos.cPointer()) } func (this *QGraphicsSceneHelpEvent) ScreenPos() *QPoint { _goptr := newQPoint(C.QGraphicsSceneHelpEvent_ScreenPos(this.h)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QGraphicsSceneHelpEvent) SetScreenPos(pos *QPoint) { C.QGraphicsSceneHelpEvent_SetScreenPos(this.h, pos.cPointer()) } // Delete this object from C++ memory. func (this *QGraphicsSceneHelpEvent) Delete() { C.QGraphicsSceneHelpEvent_Delete(this.h, C.bool(this.isSubclass)) } // 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 *QGraphicsSceneHelpEvent) GoGC() { runtime.SetFinalizer(this, func(this *QGraphicsSceneHelpEvent) { this.Delete() runtime.KeepAlive(this.h) }) } type QGraphicsSceneDragDropEvent struct { h *C.QGraphicsSceneDragDropEvent isSubclass bool *QGraphicsSceneEvent } func (this *QGraphicsSceneDragDropEvent) cPointer() *C.QGraphicsSceneDragDropEvent { if this == nil { return nil } return this.h } func (this *QGraphicsSceneDragDropEvent) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQGraphicsSceneDragDropEvent constructs the type using only CGO pointers. func newQGraphicsSceneDragDropEvent(h *C.QGraphicsSceneDragDropEvent) *QGraphicsSceneDragDropEvent { if h == nil { return nil } var outptr_QGraphicsSceneEvent *C.QGraphicsSceneEvent = nil C.QGraphicsSceneDragDropEvent_virtbase(h, &outptr_QGraphicsSceneEvent) return &QGraphicsSceneDragDropEvent{h: h, QGraphicsSceneEvent: newQGraphicsSceneEvent(outptr_QGraphicsSceneEvent)} } // UnsafeNewQGraphicsSceneDragDropEvent constructs the type using only unsafe pointers. func UnsafeNewQGraphicsSceneDragDropEvent(h unsafe.Pointer) *QGraphicsSceneDragDropEvent { return newQGraphicsSceneDragDropEvent((*C.QGraphicsSceneDragDropEvent)(h)) } // NewQGraphicsSceneDragDropEvent constructs a new QGraphicsSceneDragDropEvent object. func NewQGraphicsSceneDragDropEvent() *QGraphicsSceneDragDropEvent { ret := newQGraphicsSceneDragDropEvent(C.QGraphicsSceneDragDropEvent_new()) ret.isSubclass = true return ret } // NewQGraphicsSceneDragDropEvent2 constructs a new QGraphicsSceneDragDropEvent object. func NewQGraphicsSceneDragDropEvent2(typeVal QEvent__Type) *QGraphicsSceneDragDropEvent { ret := newQGraphicsSceneDragDropEvent(C.QGraphicsSceneDragDropEvent_new2((C.int)(typeVal))) ret.isSubclass = true return ret } func (this *QGraphicsSceneDragDropEvent) Pos() *QPointF { _goptr := newQPointF(C.QGraphicsSceneDragDropEvent_Pos(this.h)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QGraphicsSceneDragDropEvent) SetPos(pos *QPointF) { C.QGraphicsSceneDragDropEvent_SetPos(this.h, pos.cPointer()) } func (this *QGraphicsSceneDragDropEvent) ScenePos() *QPointF { _goptr := newQPointF(C.QGraphicsSceneDragDropEvent_ScenePos(this.h)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QGraphicsSceneDragDropEvent) SetScenePos(pos *QPointF) { C.QGraphicsSceneDragDropEvent_SetScenePos(this.h, pos.cPointer()) } func (this *QGraphicsSceneDragDropEvent) ScreenPos() *QPoint { _goptr := newQPoint(C.QGraphicsSceneDragDropEvent_ScreenPos(this.h)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QGraphicsSceneDragDropEvent) SetScreenPos(pos *QPoint) { C.QGraphicsSceneDragDropEvent_SetScreenPos(this.h, pos.cPointer()) } func (this *QGraphicsSceneDragDropEvent) Buttons() MouseButton { return (MouseButton)(C.QGraphicsSceneDragDropEvent_Buttons(this.h)) } func (this *QGraphicsSceneDragDropEvent) SetButtons(buttons MouseButton) { C.QGraphicsSceneDragDropEvent_SetButtons(this.h, (C.int)(buttons)) } func (this *QGraphicsSceneDragDropEvent) Modifiers() KeyboardModifier { return (KeyboardModifier)(C.QGraphicsSceneDragDropEvent_Modifiers(this.h)) } func (this *QGraphicsSceneDragDropEvent) SetModifiers(modifiers KeyboardModifier) { C.QGraphicsSceneDragDropEvent_SetModifiers(this.h, (C.int)(modifiers)) } func (this *QGraphicsSceneDragDropEvent) PossibleActions() DropAction { return (DropAction)(C.QGraphicsSceneDragDropEvent_PossibleActions(this.h)) } func (this *QGraphicsSceneDragDropEvent) SetPossibleActions(actions DropAction) { C.QGraphicsSceneDragDropEvent_SetPossibleActions(this.h, (C.int)(actions)) } func (this *QGraphicsSceneDragDropEvent) ProposedAction() DropAction { return (DropAction)(C.QGraphicsSceneDragDropEvent_ProposedAction(this.h)) } func (this *QGraphicsSceneDragDropEvent) SetProposedAction(action DropAction) { C.QGraphicsSceneDragDropEvent_SetProposedAction(this.h, (C.int)(action)) } func (this *QGraphicsSceneDragDropEvent) AcceptProposedAction() { C.QGraphicsSceneDragDropEvent_AcceptProposedAction(this.h) } func (this *QGraphicsSceneDragDropEvent) DropAction() DropAction { return (DropAction)(C.QGraphicsSceneDragDropEvent_DropAction(this.h)) } func (this *QGraphicsSceneDragDropEvent) SetDropAction(action DropAction) { C.QGraphicsSceneDragDropEvent_SetDropAction(this.h, (C.int)(action)) } func (this *QGraphicsSceneDragDropEvent) Source() *QWidget { return newQWidget(C.QGraphicsSceneDragDropEvent_Source(this.h)) } func (this *QGraphicsSceneDragDropEvent) SetSource(source *QWidget) { C.QGraphicsSceneDragDropEvent_SetSource(this.h, source.cPointer()) } func (this *QGraphicsSceneDragDropEvent) MimeData() *QMimeData { return newQMimeData(C.QGraphicsSceneDragDropEvent_MimeData(this.h)) } func (this *QGraphicsSceneDragDropEvent) SetMimeData(data *QMimeData) { C.QGraphicsSceneDragDropEvent_SetMimeData(this.h, data.cPointer()) } // Delete this object from C++ memory. func (this *QGraphicsSceneDragDropEvent) Delete() { C.QGraphicsSceneDragDropEvent_Delete(this.h, C.bool(this.isSubclass)) } // 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 *QGraphicsSceneDragDropEvent) GoGC() { runtime.SetFinalizer(this, func(this *QGraphicsSceneDragDropEvent) { this.Delete() runtime.KeepAlive(this.h) }) } type QGraphicsSceneResizeEvent struct { h *C.QGraphicsSceneResizeEvent isSubclass bool *QGraphicsSceneEvent } func (this *QGraphicsSceneResizeEvent) cPointer() *C.QGraphicsSceneResizeEvent { if this == nil { return nil } return this.h } func (this *QGraphicsSceneResizeEvent) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQGraphicsSceneResizeEvent constructs the type using only CGO pointers. func newQGraphicsSceneResizeEvent(h *C.QGraphicsSceneResizeEvent) *QGraphicsSceneResizeEvent { if h == nil { return nil } var outptr_QGraphicsSceneEvent *C.QGraphicsSceneEvent = nil C.QGraphicsSceneResizeEvent_virtbase(h, &outptr_QGraphicsSceneEvent) return &QGraphicsSceneResizeEvent{h: h, QGraphicsSceneEvent: newQGraphicsSceneEvent(outptr_QGraphicsSceneEvent)} } // UnsafeNewQGraphicsSceneResizeEvent constructs the type using only unsafe pointers. func UnsafeNewQGraphicsSceneResizeEvent(h unsafe.Pointer) *QGraphicsSceneResizeEvent { return newQGraphicsSceneResizeEvent((*C.QGraphicsSceneResizeEvent)(h)) } // NewQGraphicsSceneResizeEvent constructs a new QGraphicsSceneResizeEvent object. func NewQGraphicsSceneResizeEvent() *QGraphicsSceneResizeEvent { ret := newQGraphicsSceneResizeEvent(C.QGraphicsSceneResizeEvent_new()) ret.isSubclass = true return ret } func (this *QGraphicsSceneResizeEvent) OldSize() *QSizeF { _goptr := newQSizeF(C.QGraphicsSceneResizeEvent_OldSize(this.h)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QGraphicsSceneResizeEvent) SetOldSize(size *QSizeF) { C.QGraphicsSceneResizeEvent_SetOldSize(this.h, size.cPointer()) } func (this *QGraphicsSceneResizeEvent) NewSize() *QSizeF { _goptr := newQSizeF(C.QGraphicsSceneResizeEvent_NewSize(this.h)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QGraphicsSceneResizeEvent) SetNewSize(size *QSizeF) { C.QGraphicsSceneResizeEvent_SetNewSize(this.h, size.cPointer()) } // Delete this object from C++ memory. func (this *QGraphicsSceneResizeEvent) Delete() { C.QGraphicsSceneResizeEvent_Delete(this.h, C.bool(this.isSubclass)) } // 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 *QGraphicsSceneResizeEvent) GoGC() { runtime.SetFinalizer(this, func(this *QGraphicsSceneResizeEvent) { this.Delete() runtime.KeepAlive(this.h) }) } type QGraphicsSceneMoveEvent struct { h *C.QGraphicsSceneMoveEvent isSubclass bool *QGraphicsSceneEvent } func (this *QGraphicsSceneMoveEvent) cPointer() *C.QGraphicsSceneMoveEvent { if this == nil { return nil } return this.h } func (this *QGraphicsSceneMoveEvent) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQGraphicsSceneMoveEvent constructs the type using only CGO pointers. func newQGraphicsSceneMoveEvent(h *C.QGraphicsSceneMoveEvent) *QGraphicsSceneMoveEvent { if h == nil { return nil } var outptr_QGraphicsSceneEvent *C.QGraphicsSceneEvent = nil C.QGraphicsSceneMoveEvent_virtbase(h, &outptr_QGraphicsSceneEvent) return &QGraphicsSceneMoveEvent{h: h, QGraphicsSceneEvent: newQGraphicsSceneEvent(outptr_QGraphicsSceneEvent)} } // UnsafeNewQGraphicsSceneMoveEvent constructs the type using only unsafe pointers. func UnsafeNewQGraphicsSceneMoveEvent(h unsafe.Pointer) *QGraphicsSceneMoveEvent { return newQGraphicsSceneMoveEvent((*C.QGraphicsSceneMoveEvent)(h)) } // NewQGraphicsSceneMoveEvent constructs a new QGraphicsSceneMoveEvent object. func NewQGraphicsSceneMoveEvent() *QGraphicsSceneMoveEvent { ret := newQGraphicsSceneMoveEvent(C.QGraphicsSceneMoveEvent_new()) ret.isSubclass = true return ret } func (this *QGraphicsSceneMoveEvent) OldPos() *QPointF { _goptr := newQPointF(C.QGraphicsSceneMoveEvent_OldPos(this.h)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QGraphicsSceneMoveEvent) SetOldPos(pos *QPointF) { C.QGraphicsSceneMoveEvent_SetOldPos(this.h, pos.cPointer()) } func (this *QGraphicsSceneMoveEvent) NewPos() *QPointF { _goptr := newQPointF(C.QGraphicsSceneMoveEvent_NewPos(this.h)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QGraphicsSceneMoveEvent) SetNewPos(pos *QPointF) { C.QGraphicsSceneMoveEvent_SetNewPos(this.h, pos.cPointer()) } // Delete this object from C++ memory. func (this *QGraphicsSceneMoveEvent) Delete() { C.QGraphicsSceneMoveEvent_Delete(this.h, C.bool(this.isSubclass)) } // 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 *QGraphicsSceneMoveEvent) GoGC() { runtime.SetFinalizer(this, func(this *QGraphicsSceneMoveEvent) { this.Delete() runtime.KeepAlive(this.h) }) }