2015-10-24 18:18:24 +03:00
|
|
|
package widgets
|
|
|
|
|
2015-12-06 02:56:16 +03:00
|
|
|
//#include "widgets.h"
|
2015-10-24 18:18:24 +03:00
|
|
|
import "C"
|
|
|
|
import (
|
2015-12-15 04:01:51 +03:00
|
|
|
"github.com/therecipe/qt"
|
2015-10-24 18:18:24 +03:00
|
|
|
"github.com/therecipe/qt/core"
|
|
|
|
"unsafe"
|
|
|
|
)
|
|
|
|
|
|
|
|
type QGraphicsSceneHoverEvent struct {
|
|
|
|
QGraphicsSceneEvent
|
|
|
|
}
|
|
|
|
|
2015-11-09 20:23:42 +03:00
|
|
|
type QGraphicsSceneHoverEvent_ITF interface {
|
|
|
|
QGraphicsSceneEvent_ITF
|
|
|
|
QGraphicsSceneHoverEvent_PTR() *QGraphicsSceneHoverEvent
|
2015-10-24 18:18:24 +03:00
|
|
|
}
|
|
|
|
|
2015-11-09 20:23:42 +03:00
|
|
|
func PointerFromQGraphicsSceneHoverEvent(ptr QGraphicsSceneHoverEvent_ITF) unsafe.Pointer {
|
2015-10-24 18:18:24 +03:00
|
|
|
if ptr != nil {
|
2015-11-09 20:23:42 +03:00
|
|
|
return ptr.QGraphicsSceneHoverEvent_PTR().Pointer()
|
2015-10-24 18:18:24 +03:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2015-11-09 20:23:42 +03:00
|
|
|
func NewQGraphicsSceneHoverEventFromPointer(ptr unsafe.Pointer) *QGraphicsSceneHoverEvent {
|
2015-10-24 18:18:24 +03:00
|
|
|
var n = new(QGraphicsSceneHoverEvent)
|
|
|
|
n.SetPointer(ptr)
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
2015-11-09 20:23:42 +03:00
|
|
|
func (ptr *QGraphicsSceneHoverEvent) QGraphicsSceneHoverEvent_PTR() *QGraphicsSceneHoverEvent {
|
2015-10-24 18:18:24 +03:00
|
|
|
return ptr
|
|
|
|
}
|
|
|
|
|
2015-12-15 04:01:51 +03:00
|
|
|
func (ptr *QGraphicsSceneHoverEvent) LastScreenPos() *core.QPoint {
|
|
|
|
defer qt.Recovering("QGraphicsSceneHoverEvent::lastScreenPos")
|
|
|
|
|
|
|
|
if ptr.Pointer() != nil {
|
|
|
|
return core.NewQPointFromPointer(C.QGraphicsSceneHoverEvent_LastScreenPos(ptr.Pointer()))
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2015-10-24 18:18:24 +03:00
|
|
|
func (ptr *QGraphicsSceneHoverEvent) Modifiers() core.Qt__KeyboardModifier {
|
2015-12-15 04:01:51 +03:00
|
|
|
defer qt.Recovering("QGraphicsSceneHoverEvent::modifiers")
|
2015-12-06 02:56:16 +03:00
|
|
|
|
2015-10-24 18:18:24 +03:00
|
|
|
if ptr.Pointer() != nil {
|
2015-11-09 20:23:42 +03:00
|
|
|
return core.Qt__KeyboardModifier(C.QGraphicsSceneHoverEvent_Modifiers(ptr.Pointer()))
|
2015-10-24 18:18:24 +03:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2015-12-15 04:01:51 +03:00
|
|
|
func (ptr *QGraphicsSceneHoverEvent) ScreenPos() *core.QPoint {
|
|
|
|
defer qt.Recovering("QGraphicsSceneHoverEvent::screenPos")
|
|
|
|
|
|
|
|
if ptr.Pointer() != nil {
|
|
|
|
return core.NewQPointFromPointer(C.QGraphicsSceneHoverEvent_ScreenPos(ptr.Pointer()))
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2015-10-24 18:18:24 +03:00
|
|
|
func (ptr *QGraphicsSceneHoverEvent) DestroyQGraphicsSceneHoverEvent() {
|
2015-12-15 04:01:51 +03:00
|
|
|
defer qt.Recovering("QGraphicsSceneHoverEvent::~QGraphicsSceneHoverEvent")
|
2015-12-06 02:56:16 +03:00
|
|
|
|
2015-10-24 18:18:24 +03:00
|
|
|
if ptr.Pointer() != nil {
|
2015-11-09 20:23:42 +03:00
|
|
|
C.QGraphicsSceneHoverEvent_DestroyQGraphicsSceneHoverEvent(ptr.Pointer())
|
2015-10-24 18:18:24 +03:00
|
|
|
}
|
|
|
|
}
|