cutego/gui/qplatformsurfaceevent.go
2015-11-09 18:23:42 +01:00

54 lines
1.4 KiB
Go
Executable file

package gui
//#include "qplatformsurfaceevent.h"
import "C"
import (
"github.com/therecipe/qt/core"
"unsafe"
)
type QPlatformSurfaceEvent struct {
core.QEvent
}
type QPlatformSurfaceEvent_ITF interface {
core.QEvent_ITF
QPlatformSurfaceEvent_PTR() *QPlatformSurfaceEvent
}
func PointerFromQPlatformSurfaceEvent(ptr QPlatformSurfaceEvent_ITF) unsafe.Pointer {
if ptr != nil {
return ptr.QPlatformSurfaceEvent_PTR().Pointer()
}
return nil
}
func NewQPlatformSurfaceEventFromPointer(ptr unsafe.Pointer) *QPlatformSurfaceEvent {
var n = new(QPlatformSurfaceEvent)
n.SetPointer(ptr)
return n
}
func (ptr *QPlatformSurfaceEvent) QPlatformSurfaceEvent_PTR() *QPlatformSurfaceEvent {
return ptr
}
//QPlatformSurfaceEvent::SurfaceEventType
type QPlatformSurfaceEvent__SurfaceEventType int64
const (
QPlatformSurfaceEvent__SurfaceCreated = QPlatformSurfaceEvent__SurfaceEventType(0)
QPlatformSurfaceEvent__SurfaceAboutToBeDestroyed = QPlatformSurfaceEvent__SurfaceEventType(1)
)
func NewQPlatformSurfaceEvent(surfaceEventType QPlatformSurfaceEvent__SurfaceEventType) *QPlatformSurfaceEvent {
return NewQPlatformSurfaceEventFromPointer(C.QPlatformSurfaceEvent_NewQPlatformSurfaceEvent(C.int(surfaceEventType)))
}
func (ptr *QPlatformSurfaceEvent) SurfaceEventType() QPlatformSurfaceEvent__SurfaceEventType {
if ptr.Pointer() != nil {
return QPlatformSurfaceEvent__SurfaceEventType(C.QPlatformSurfaceEvent_SurfaceEventType(ptr.Pointer()))
}
return 0
}