cutego/widgets/qgraphicsscenehoverevent.go

71 lines
1.8 KiB
Go
Raw Normal View History

2015-10-24 18:18:24 +03:00
package widgets
//#include "widgets.h"
2015-10-24 18:18:24 +03:00
import "C"
import (
"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
}
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 {
defer qt.Recovering("QGraphicsSceneHoverEvent::modifiers")
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
}
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() {
defer qt.Recovering("QGraphicsSceneHoverEvent::~QGraphicsSceneHoverEvent")
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
}
}