cutego/widgets/qgraphicsscenehoverevent.go
2015-11-09 18:23:42 +01:00

48 lines
1.1 KiB
Go
Executable file

package widgets
//#include "qgraphicsscenehoverevent.h"
import "C"
import (
"github.com/therecipe/qt/core"
"unsafe"
)
type QGraphicsSceneHoverEvent struct {
QGraphicsSceneEvent
}
type QGraphicsSceneHoverEvent_ITF interface {
QGraphicsSceneEvent_ITF
QGraphicsSceneHoverEvent_PTR() *QGraphicsSceneHoverEvent
}
func PointerFromQGraphicsSceneHoverEvent(ptr QGraphicsSceneHoverEvent_ITF) unsafe.Pointer {
if ptr != nil {
return ptr.QGraphicsSceneHoverEvent_PTR().Pointer()
}
return nil
}
func NewQGraphicsSceneHoverEventFromPointer(ptr unsafe.Pointer) *QGraphicsSceneHoverEvent {
var n = new(QGraphicsSceneHoverEvent)
n.SetPointer(ptr)
return n
}
func (ptr *QGraphicsSceneHoverEvent) QGraphicsSceneHoverEvent_PTR() *QGraphicsSceneHoverEvent {
return ptr
}
func (ptr *QGraphicsSceneHoverEvent) Modifiers() core.Qt__KeyboardModifier {
if ptr.Pointer() != nil {
return core.Qt__KeyboardModifier(C.QGraphicsSceneHoverEvent_Modifiers(ptr.Pointer()))
}
return 0
}
func (ptr *QGraphicsSceneHoverEvent) DestroyQGraphicsSceneHoverEvent() {
if ptr.Pointer() != nil {
C.QGraphicsSceneHoverEvent_DestroyQGraphicsSceneHoverEvent(ptr.Pointer())
}
}