mirror of
https://github.com/mappu/miqt.git
synced 2025-02-08 14:10:22 +00:00
1618 lines
60 KiB
Go
1618 lines
60 KiB
Go
package multimedia
|
|
|
|
/*
|
|
|
|
#include "gen_qvideowidget.h"
|
|
#include <stdlib.h>
|
|
|
|
*/
|
|
import "C"
|
|
|
|
import (
|
|
"github.com/mappu/miqt/qt"
|
|
"runtime"
|
|
"runtime/cgo"
|
|
"unsafe"
|
|
)
|
|
|
|
type QVideoWidget struct {
|
|
h *C.QVideoWidget
|
|
*qt.QWidget
|
|
*QMediaBindableInterface
|
|
}
|
|
|
|
func (this *QVideoWidget) cPointer() *C.QVideoWidget {
|
|
if this == nil {
|
|
return nil
|
|
}
|
|
return this.h
|
|
}
|
|
|
|
func (this *QVideoWidget) UnsafePointer() unsafe.Pointer {
|
|
if this == nil {
|
|
return nil
|
|
}
|
|
return unsafe.Pointer(this.h)
|
|
}
|
|
|
|
// newQVideoWidget constructs the type using only CGO pointers.
|
|
func newQVideoWidget(h *C.QVideoWidget) *QVideoWidget {
|
|
if h == nil {
|
|
return nil
|
|
}
|
|
var outptr_QWidget *C.QWidget = nil
|
|
var outptr_QMediaBindableInterface *C.QMediaBindableInterface = nil
|
|
C.QVideoWidget_virtbase(h, &outptr_QWidget, &outptr_QMediaBindableInterface)
|
|
|
|
return &QVideoWidget{h: h,
|
|
QWidget: qt.UnsafeNewQWidget(unsafe.Pointer(outptr_QWidget)),
|
|
QMediaBindableInterface: newQMediaBindableInterface(outptr_QMediaBindableInterface)}
|
|
}
|
|
|
|
// UnsafeNewQVideoWidget constructs the type using only unsafe pointers.
|
|
func UnsafeNewQVideoWidget(h unsafe.Pointer) *QVideoWidget {
|
|
return newQVideoWidget((*C.QVideoWidget)(h))
|
|
}
|
|
|
|
// NewQVideoWidget constructs a new QVideoWidget object.
|
|
func NewQVideoWidget(parent *qt.QWidget) *QVideoWidget {
|
|
|
|
return newQVideoWidget(C.QVideoWidget_new((*C.QWidget)(parent.UnsafePointer())))
|
|
}
|
|
|
|
// NewQVideoWidget2 constructs a new QVideoWidget object.
|
|
func NewQVideoWidget2() *QVideoWidget {
|
|
|
|
return newQVideoWidget(C.QVideoWidget_new2())
|
|
}
|
|
|
|
func (this *QVideoWidget) MetaObject() *qt.QMetaObject {
|
|
return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QVideoWidget_metaObject(this.h)))
|
|
}
|
|
|
|
func (this *QVideoWidget) Metacast(param1 string) unsafe.Pointer {
|
|
param1_Cstring := C.CString(param1)
|
|
defer C.free(unsafe.Pointer(param1_Cstring))
|
|
return (unsafe.Pointer)(C.QVideoWidget_metacast(this.h, param1_Cstring))
|
|
}
|
|
|
|
func QVideoWidget_Tr(s string) string {
|
|
s_Cstring := C.CString(s)
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
|
var _ms C.struct_miqt_string = C.QVideoWidget_tr(s_Cstring)
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
return _ret
|
|
}
|
|
|
|
func QVideoWidget_TrUtf8(s string) string {
|
|
s_Cstring := C.CString(s)
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
|
var _ms C.struct_miqt_string = C.QVideoWidget_trUtf8(s_Cstring)
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
return _ret
|
|
}
|
|
|
|
func (this *QVideoWidget) MediaObject() *QMediaObject {
|
|
return newQMediaObject(C.QVideoWidget_mediaObject(this.h))
|
|
}
|
|
|
|
func (this *QVideoWidget) VideoSurface() *QAbstractVideoSurface {
|
|
return newQAbstractVideoSurface(C.QVideoWidget_videoSurface(this.h))
|
|
}
|
|
|
|
func (this *QVideoWidget) AspectRatioMode() qt.AspectRatioMode {
|
|
return (qt.AspectRatioMode)(C.QVideoWidget_aspectRatioMode(this.h))
|
|
}
|
|
|
|
func (this *QVideoWidget) Brightness() int {
|
|
return (int)(C.QVideoWidget_brightness(this.h))
|
|
}
|
|
|
|
func (this *QVideoWidget) Contrast() int {
|
|
return (int)(C.QVideoWidget_contrast(this.h))
|
|
}
|
|
|
|
func (this *QVideoWidget) Hue() int {
|
|
return (int)(C.QVideoWidget_hue(this.h))
|
|
}
|
|
|
|
func (this *QVideoWidget) Saturation() int {
|
|
return (int)(C.QVideoWidget_saturation(this.h))
|
|
}
|
|
|
|
func (this *QVideoWidget) SizeHint() *qt.QSize {
|
|
_goptr := qt.UnsafeNewQSize(unsafe.Pointer(C.QVideoWidget_sizeHint(this.h)))
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
return _goptr
|
|
}
|
|
|
|
func (this *QVideoWidget) SetFullScreen(fullScreen bool) {
|
|
C.QVideoWidget_setFullScreen(this.h, (C.bool)(fullScreen))
|
|
}
|
|
|
|
func (this *QVideoWidget) SetAspectRatioMode(mode qt.AspectRatioMode) {
|
|
C.QVideoWidget_setAspectRatioMode(this.h, (C.int)(mode))
|
|
}
|
|
|
|
func (this *QVideoWidget) SetBrightness(brightness int) {
|
|
C.QVideoWidget_setBrightness(this.h, (C.int)(brightness))
|
|
}
|
|
|
|
func (this *QVideoWidget) SetContrast(contrast int) {
|
|
C.QVideoWidget_setContrast(this.h, (C.int)(contrast))
|
|
}
|
|
|
|
func (this *QVideoWidget) SetHue(hue int) {
|
|
C.QVideoWidget_setHue(this.h, (C.int)(hue))
|
|
}
|
|
|
|
func (this *QVideoWidget) SetSaturation(saturation int) {
|
|
C.QVideoWidget_setSaturation(this.h, (C.int)(saturation))
|
|
}
|
|
|
|
func (this *QVideoWidget) FullScreenChanged(fullScreen bool) {
|
|
C.QVideoWidget_fullScreenChanged(this.h, (C.bool)(fullScreen))
|
|
}
|
|
func (this *QVideoWidget) OnFullScreenChanged(slot func(fullScreen bool)) {
|
|
C.QVideoWidget_connect_fullScreenChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_fullScreenChanged
|
|
func miqt_exec_callback_QVideoWidget_fullScreenChanged(cb C.intptr_t, fullScreen C.bool) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(fullScreen bool))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := (bool)(fullScreen)
|
|
|
|
gofunc(slotval1)
|
|
}
|
|
|
|
func (this *QVideoWidget) BrightnessChanged(brightness int) {
|
|
C.QVideoWidget_brightnessChanged(this.h, (C.int)(brightness))
|
|
}
|
|
func (this *QVideoWidget) OnBrightnessChanged(slot func(brightness int)) {
|
|
C.QVideoWidget_connect_brightnessChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_brightnessChanged
|
|
func miqt_exec_callback_QVideoWidget_brightnessChanged(cb C.intptr_t, brightness C.int) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(brightness int))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := (int)(brightness)
|
|
|
|
gofunc(slotval1)
|
|
}
|
|
|
|
func (this *QVideoWidget) ContrastChanged(contrast int) {
|
|
C.QVideoWidget_contrastChanged(this.h, (C.int)(contrast))
|
|
}
|
|
func (this *QVideoWidget) OnContrastChanged(slot func(contrast int)) {
|
|
C.QVideoWidget_connect_contrastChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_contrastChanged
|
|
func miqt_exec_callback_QVideoWidget_contrastChanged(cb C.intptr_t, contrast C.int) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(contrast int))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := (int)(contrast)
|
|
|
|
gofunc(slotval1)
|
|
}
|
|
|
|
func (this *QVideoWidget) HueChanged(hue int) {
|
|
C.QVideoWidget_hueChanged(this.h, (C.int)(hue))
|
|
}
|
|
func (this *QVideoWidget) OnHueChanged(slot func(hue int)) {
|
|
C.QVideoWidget_connect_hueChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_hueChanged
|
|
func miqt_exec_callback_QVideoWidget_hueChanged(cb C.intptr_t, hue C.int) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(hue int))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := (int)(hue)
|
|
|
|
gofunc(slotval1)
|
|
}
|
|
|
|
func (this *QVideoWidget) SaturationChanged(saturation int) {
|
|
C.QVideoWidget_saturationChanged(this.h, (C.int)(saturation))
|
|
}
|
|
func (this *QVideoWidget) OnSaturationChanged(slot func(saturation int)) {
|
|
C.QVideoWidget_connect_saturationChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_saturationChanged
|
|
func miqt_exec_callback_QVideoWidget_saturationChanged(cb C.intptr_t, saturation C.int) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(saturation int))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := (int)(saturation)
|
|
|
|
gofunc(slotval1)
|
|
}
|
|
|
|
func QVideoWidget_Tr2(s string, c string) string {
|
|
s_Cstring := C.CString(s)
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
|
c_Cstring := C.CString(c)
|
|
defer C.free(unsafe.Pointer(c_Cstring))
|
|
var _ms C.struct_miqt_string = C.QVideoWidget_tr2(s_Cstring, c_Cstring)
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
return _ret
|
|
}
|
|
|
|
func QVideoWidget_Tr3(s string, c string, n int) string {
|
|
s_Cstring := C.CString(s)
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
|
c_Cstring := C.CString(c)
|
|
defer C.free(unsafe.Pointer(c_Cstring))
|
|
var _ms C.struct_miqt_string = C.QVideoWidget_tr3(s_Cstring, c_Cstring, (C.int)(n))
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
return _ret
|
|
}
|
|
|
|
func QVideoWidget_TrUtf82(s string, c string) string {
|
|
s_Cstring := C.CString(s)
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
|
c_Cstring := C.CString(c)
|
|
defer C.free(unsafe.Pointer(c_Cstring))
|
|
var _ms C.struct_miqt_string = C.QVideoWidget_trUtf82(s_Cstring, c_Cstring)
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
return _ret
|
|
}
|
|
|
|
func QVideoWidget_TrUtf83(s string, c string, n int) string {
|
|
s_Cstring := C.CString(s)
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
|
c_Cstring := C.CString(c)
|
|
defer C.free(unsafe.Pointer(c_Cstring))
|
|
var _ms C.struct_miqt_string = C.QVideoWidget_trUtf83(s_Cstring, c_Cstring, (C.int)(n))
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
return _ret
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_MediaObject() *QMediaObject {
|
|
|
|
return newQMediaObject(C.QVideoWidget_virtualbase_mediaObject(unsafe.Pointer(this.h)))
|
|
|
|
}
|
|
func (this *QVideoWidget) OnmediaObject(slot func(super func() *QMediaObject) *QMediaObject) {
|
|
ok := C.QVideoWidget_override_virtual_mediaObject(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_mediaObject
|
|
func miqt_exec_callback_QVideoWidget_mediaObject(self *C.QVideoWidget, cb C.intptr_t) *C.QMediaObject {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QMediaObject) *QMediaObject)
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
virtualReturn := gofunc((&QVideoWidget{h: self}).callVirtualBase_MediaObject)
|
|
|
|
return virtualReturn.cPointer()
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_SizeHint() *qt.QSize {
|
|
|
|
_goptr := qt.UnsafeNewQSize(unsafe.Pointer(C.QVideoWidget_virtualbase_sizeHint(unsafe.Pointer(this.h))))
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
return _goptr
|
|
|
|
}
|
|
func (this *QVideoWidget) OnsizeHint(slot func(super func() *qt.QSize) *qt.QSize) {
|
|
ok := C.QVideoWidget_override_virtual_sizeHint(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_sizeHint
|
|
func miqt_exec_callback_QVideoWidget_sizeHint(self *C.QVideoWidget, cb C.intptr_t) *C.QSize {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *qt.QSize) *qt.QSize)
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
virtualReturn := gofunc((&QVideoWidget{h: self}).callVirtualBase_SizeHint)
|
|
|
|
return (*C.QSize)(virtualReturn.UnsafePointer())
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_Event(event *qt.QEvent) bool {
|
|
|
|
return (bool)(C.QVideoWidget_virtualbase_event(unsafe.Pointer(this.h), (*C.QEvent)(event.UnsafePointer())))
|
|
|
|
}
|
|
func (this *QVideoWidget) Onevent(slot func(super func(event *qt.QEvent) bool, event *qt.QEvent) bool) {
|
|
ok := C.QVideoWidget_override_virtual_event(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_event
|
|
func miqt_exec_callback_QVideoWidget_event(self *C.QVideoWidget, cb C.intptr_t, event *C.QEvent) C.bool {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QEvent) bool, event *qt.QEvent) bool)
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := qt.UnsafeNewQEvent(unsafe.Pointer(event))
|
|
|
|
virtualReturn := gofunc((&QVideoWidget{h: self}).callVirtualBase_Event, slotval1)
|
|
|
|
return (C.bool)(virtualReturn)
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_ShowEvent(event *qt.QShowEvent) {
|
|
|
|
C.QVideoWidget_virtualbase_showEvent(unsafe.Pointer(this.h), (*C.QShowEvent)(event.UnsafePointer()))
|
|
|
|
}
|
|
func (this *QVideoWidget) OnshowEvent(slot func(super func(event *qt.QShowEvent), event *qt.QShowEvent)) {
|
|
ok := C.QVideoWidget_override_virtual_showEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_showEvent
|
|
func miqt_exec_callback_QVideoWidget_showEvent(self *C.QVideoWidget, cb C.intptr_t, event *C.QShowEvent) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QShowEvent), event *qt.QShowEvent))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := qt.UnsafeNewQShowEvent(unsafe.Pointer(event))
|
|
|
|
gofunc((&QVideoWidget{h: self}).callVirtualBase_ShowEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_HideEvent(event *qt.QHideEvent) {
|
|
|
|
C.QVideoWidget_virtualbase_hideEvent(unsafe.Pointer(this.h), (*C.QHideEvent)(event.UnsafePointer()))
|
|
|
|
}
|
|
func (this *QVideoWidget) OnhideEvent(slot func(super func(event *qt.QHideEvent), event *qt.QHideEvent)) {
|
|
ok := C.QVideoWidget_override_virtual_hideEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_hideEvent
|
|
func miqt_exec_callback_QVideoWidget_hideEvent(self *C.QVideoWidget, cb C.intptr_t, event *C.QHideEvent) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QHideEvent), event *qt.QHideEvent))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := qt.UnsafeNewQHideEvent(unsafe.Pointer(event))
|
|
|
|
gofunc((&QVideoWidget{h: self}).callVirtualBase_HideEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_ResizeEvent(event *qt.QResizeEvent) {
|
|
|
|
C.QVideoWidget_virtualbase_resizeEvent(unsafe.Pointer(this.h), (*C.QResizeEvent)(event.UnsafePointer()))
|
|
|
|
}
|
|
func (this *QVideoWidget) OnresizeEvent(slot func(super func(event *qt.QResizeEvent), event *qt.QResizeEvent)) {
|
|
ok := C.QVideoWidget_override_virtual_resizeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_resizeEvent
|
|
func miqt_exec_callback_QVideoWidget_resizeEvent(self *C.QVideoWidget, cb C.intptr_t, event *C.QResizeEvent) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QResizeEvent), event *qt.QResizeEvent))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := qt.UnsafeNewQResizeEvent(unsafe.Pointer(event))
|
|
|
|
gofunc((&QVideoWidget{h: self}).callVirtualBase_ResizeEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_MoveEvent(event *qt.QMoveEvent) {
|
|
|
|
C.QVideoWidget_virtualbase_moveEvent(unsafe.Pointer(this.h), (*C.QMoveEvent)(event.UnsafePointer()))
|
|
|
|
}
|
|
func (this *QVideoWidget) OnmoveEvent(slot func(super func(event *qt.QMoveEvent), event *qt.QMoveEvent)) {
|
|
ok := C.QVideoWidget_override_virtual_moveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_moveEvent
|
|
func miqt_exec_callback_QVideoWidget_moveEvent(self *C.QVideoWidget, cb C.intptr_t, event *C.QMoveEvent) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QMoveEvent), event *qt.QMoveEvent))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := qt.UnsafeNewQMoveEvent(unsafe.Pointer(event))
|
|
|
|
gofunc((&QVideoWidget{h: self}).callVirtualBase_MoveEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_PaintEvent(event *qt.QPaintEvent) {
|
|
|
|
C.QVideoWidget_virtualbase_paintEvent(unsafe.Pointer(this.h), (*C.QPaintEvent)(event.UnsafePointer()))
|
|
|
|
}
|
|
func (this *QVideoWidget) OnpaintEvent(slot func(super func(event *qt.QPaintEvent), event *qt.QPaintEvent)) {
|
|
ok := C.QVideoWidget_override_virtual_paintEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_paintEvent
|
|
func miqt_exec_callback_QVideoWidget_paintEvent(self *C.QVideoWidget, cb C.intptr_t, event *C.QPaintEvent) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QPaintEvent), event *qt.QPaintEvent))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := qt.UnsafeNewQPaintEvent(unsafe.Pointer(event))
|
|
|
|
gofunc((&QVideoWidget{h: self}).callVirtualBase_PaintEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_SetMediaObject(object *QMediaObject) bool {
|
|
|
|
return (bool)(C.QVideoWidget_virtualbase_setMediaObject(unsafe.Pointer(this.h), object.cPointer()))
|
|
|
|
}
|
|
func (this *QVideoWidget) OnsetMediaObject(slot func(super func(object *QMediaObject) bool, object *QMediaObject) bool) {
|
|
ok := C.QVideoWidget_override_virtual_setMediaObject(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_setMediaObject
|
|
func miqt_exec_callback_QVideoWidget_setMediaObject(self *C.QVideoWidget, cb C.intptr_t, object *C.QMediaObject) C.bool {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(object *QMediaObject) bool, object *QMediaObject) bool)
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := newQMediaObject(object)
|
|
|
|
virtualReturn := gofunc((&QVideoWidget{h: self}).callVirtualBase_SetMediaObject, slotval1)
|
|
|
|
return (C.bool)(virtualReturn)
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_DevType() int {
|
|
|
|
return (int)(C.QVideoWidget_virtualbase_devType(unsafe.Pointer(this.h)))
|
|
|
|
}
|
|
func (this *QVideoWidget) OndevType(slot func(super func() int) int) {
|
|
ok := C.QVideoWidget_override_virtual_devType(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_devType
|
|
func miqt_exec_callback_QVideoWidget_devType(self *C.QVideoWidget, cb C.intptr_t) C.int {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func() int) int)
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
virtualReturn := gofunc((&QVideoWidget{h: self}).callVirtualBase_DevType)
|
|
|
|
return (C.int)(virtualReturn)
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_SetVisible(visible bool) {
|
|
|
|
C.QVideoWidget_virtualbase_setVisible(unsafe.Pointer(this.h), (C.bool)(visible))
|
|
|
|
}
|
|
func (this *QVideoWidget) OnsetVisible(slot func(super func(visible bool), visible bool)) {
|
|
ok := C.QVideoWidget_override_virtual_setVisible(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_setVisible
|
|
func miqt_exec_callback_QVideoWidget_setVisible(self *C.QVideoWidget, cb C.intptr_t, visible C.bool) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(visible bool), visible bool))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := (bool)(visible)
|
|
|
|
gofunc((&QVideoWidget{h: self}).callVirtualBase_SetVisible, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_MinimumSizeHint() *qt.QSize {
|
|
|
|
_goptr := qt.UnsafeNewQSize(unsafe.Pointer(C.QVideoWidget_virtualbase_minimumSizeHint(unsafe.Pointer(this.h))))
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
return _goptr
|
|
|
|
}
|
|
func (this *QVideoWidget) OnminimumSizeHint(slot func(super func() *qt.QSize) *qt.QSize) {
|
|
ok := C.QVideoWidget_override_virtual_minimumSizeHint(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_minimumSizeHint
|
|
func miqt_exec_callback_QVideoWidget_minimumSizeHint(self *C.QVideoWidget, cb C.intptr_t) *C.QSize {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *qt.QSize) *qt.QSize)
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
virtualReturn := gofunc((&QVideoWidget{h: self}).callVirtualBase_MinimumSizeHint)
|
|
|
|
return (*C.QSize)(virtualReturn.UnsafePointer())
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_HeightForWidth(param1 int) int {
|
|
|
|
return (int)(C.QVideoWidget_virtualbase_heightForWidth(unsafe.Pointer(this.h), (C.int)(param1)))
|
|
|
|
}
|
|
func (this *QVideoWidget) OnheightForWidth(slot func(super func(param1 int) int, param1 int) int) {
|
|
ok := C.QVideoWidget_override_virtual_heightForWidth(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_heightForWidth
|
|
func miqt_exec_callback_QVideoWidget_heightForWidth(self *C.QVideoWidget, cb C.intptr_t, param1 C.int) C.int {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 int) int, param1 int) int)
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := (int)(param1)
|
|
|
|
virtualReturn := gofunc((&QVideoWidget{h: self}).callVirtualBase_HeightForWidth, slotval1)
|
|
|
|
return (C.int)(virtualReturn)
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_HasHeightForWidth() bool {
|
|
|
|
return (bool)(C.QVideoWidget_virtualbase_hasHeightForWidth(unsafe.Pointer(this.h)))
|
|
|
|
}
|
|
func (this *QVideoWidget) OnhasHeightForWidth(slot func(super func() bool) bool) {
|
|
ok := C.QVideoWidget_override_virtual_hasHeightForWidth(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_hasHeightForWidth
|
|
func miqt_exec_callback_QVideoWidget_hasHeightForWidth(self *C.QVideoWidget, cb C.intptr_t) C.bool {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func() bool) bool)
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
virtualReturn := gofunc((&QVideoWidget{h: self}).callVirtualBase_HasHeightForWidth)
|
|
|
|
return (C.bool)(virtualReturn)
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_PaintEngine() *qt.QPaintEngine {
|
|
|
|
return qt.UnsafeNewQPaintEngine(unsafe.Pointer(C.QVideoWidget_virtualbase_paintEngine(unsafe.Pointer(this.h))))
|
|
|
|
}
|
|
func (this *QVideoWidget) OnpaintEngine(slot func(super func() *qt.QPaintEngine) *qt.QPaintEngine) {
|
|
ok := C.QVideoWidget_override_virtual_paintEngine(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_paintEngine
|
|
func miqt_exec_callback_QVideoWidget_paintEngine(self *C.QVideoWidget, cb C.intptr_t) *C.QPaintEngine {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *qt.QPaintEngine) *qt.QPaintEngine)
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
virtualReturn := gofunc((&QVideoWidget{h: self}).callVirtualBase_PaintEngine)
|
|
|
|
return (*C.QPaintEngine)(virtualReturn.UnsafePointer())
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_MousePressEvent(event *qt.QMouseEvent) {
|
|
|
|
C.QVideoWidget_virtualbase_mousePressEvent(unsafe.Pointer(this.h), (*C.QMouseEvent)(event.UnsafePointer()))
|
|
|
|
}
|
|
func (this *QVideoWidget) OnmousePressEvent(slot func(super func(event *qt.QMouseEvent), event *qt.QMouseEvent)) {
|
|
ok := C.QVideoWidget_override_virtual_mousePressEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_mousePressEvent
|
|
func miqt_exec_callback_QVideoWidget_mousePressEvent(self *C.QVideoWidget, cb C.intptr_t, event *C.QMouseEvent) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QMouseEvent), event *qt.QMouseEvent))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := qt.UnsafeNewQMouseEvent(unsafe.Pointer(event))
|
|
|
|
gofunc((&QVideoWidget{h: self}).callVirtualBase_MousePressEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_MouseReleaseEvent(event *qt.QMouseEvent) {
|
|
|
|
C.QVideoWidget_virtualbase_mouseReleaseEvent(unsafe.Pointer(this.h), (*C.QMouseEvent)(event.UnsafePointer()))
|
|
|
|
}
|
|
func (this *QVideoWidget) OnmouseReleaseEvent(slot func(super func(event *qt.QMouseEvent), event *qt.QMouseEvent)) {
|
|
ok := C.QVideoWidget_override_virtual_mouseReleaseEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_mouseReleaseEvent
|
|
func miqt_exec_callback_QVideoWidget_mouseReleaseEvent(self *C.QVideoWidget, cb C.intptr_t, event *C.QMouseEvent) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QMouseEvent), event *qt.QMouseEvent))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := qt.UnsafeNewQMouseEvent(unsafe.Pointer(event))
|
|
|
|
gofunc((&QVideoWidget{h: self}).callVirtualBase_MouseReleaseEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_MouseDoubleClickEvent(event *qt.QMouseEvent) {
|
|
|
|
C.QVideoWidget_virtualbase_mouseDoubleClickEvent(unsafe.Pointer(this.h), (*C.QMouseEvent)(event.UnsafePointer()))
|
|
|
|
}
|
|
func (this *QVideoWidget) OnmouseDoubleClickEvent(slot func(super func(event *qt.QMouseEvent), event *qt.QMouseEvent)) {
|
|
ok := C.QVideoWidget_override_virtual_mouseDoubleClickEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_mouseDoubleClickEvent
|
|
func miqt_exec_callback_QVideoWidget_mouseDoubleClickEvent(self *C.QVideoWidget, cb C.intptr_t, event *C.QMouseEvent) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QMouseEvent), event *qt.QMouseEvent))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := qt.UnsafeNewQMouseEvent(unsafe.Pointer(event))
|
|
|
|
gofunc((&QVideoWidget{h: self}).callVirtualBase_MouseDoubleClickEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_MouseMoveEvent(event *qt.QMouseEvent) {
|
|
|
|
C.QVideoWidget_virtualbase_mouseMoveEvent(unsafe.Pointer(this.h), (*C.QMouseEvent)(event.UnsafePointer()))
|
|
|
|
}
|
|
func (this *QVideoWidget) OnmouseMoveEvent(slot func(super func(event *qt.QMouseEvent), event *qt.QMouseEvent)) {
|
|
ok := C.QVideoWidget_override_virtual_mouseMoveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_mouseMoveEvent
|
|
func miqt_exec_callback_QVideoWidget_mouseMoveEvent(self *C.QVideoWidget, cb C.intptr_t, event *C.QMouseEvent) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QMouseEvent), event *qt.QMouseEvent))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := qt.UnsafeNewQMouseEvent(unsafe.Pointer(event))
|
|
|
|
gofunc((&QVideoWidget{h: self}).callVirtualBase_MouseMoveEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_WheelEvent(event *qt.QWheelEvent) {
|
|
|
|
C.QVideoWidget_virtualbase_wheelEvent(unsafe.Pointer(this.h), (*C.QWheelEvent)(event.UnsafePointer()))
|
|
|
|
}
|
|
func (this *QVideoWidget) OnwheelEvent(slot func(super func(event *qt.QWheelEvent), event *qt.QWheelEvent)) {
|
|
ok := C.QVideoWidget_override_virtual_wheelEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_wheelEvent
|
|
func miqt_exec_callback_QVideoWidget_wheelEvent(self *C.QVideoWidget, cb C.intptr_t, event *C.QWheelEvent) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QWheelEvent), event *qt.QWheelEvent))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := qt.UnsafeNewQWheelEvent(unsafe.Pointer(event))
|
|
|
|
gofunc((&QVideoWidget{h: self}).callVirtualBase_WheelEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_KeyPressEvent(event *qt.QKeyEvent) {
|
|
|
|
C.QVideoWidget_virtualbase_keyPressEvent(unsafe.Pointer(this.h), (*C.QKeyEvent)(event.UnsafePointer()))
|
|
|
|
}
|
|
func (this *QVideoWidget) OnkeyPressEvent(slot func(super func(event *qt.QKeyEvent), event *qt.QKeyEvent)) {
|
|
ok := C.QVideoWidget_override_virtual_keyPressEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_keyPressEvent
|
|
func miqt_exec_callback_QVideoWidget_keyPressEvent(self *C.QVideoWidget, cb C.intptr_t, event *C.QKeyEvent) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QKeyEvent), event *qt.QKeyEvent))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := qt.UnsafeNewQKeyEvent(unsafe.Pointer(event))
|
|
|
|
gofunc((&QVideoWidget{h: self}).callVirtualBase_KeyPressEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_KeyReleaseEvent(event *qt.QKeyEvent) {
|
|
|
|
C.QVideoWidget_virtualbase_keyReleaseEvent(unsafe.Pointer(this.h), (*C.QKeyEvent)(event.UnsafePointer()))
|
|
|
|
}
|
|
func (this *QVideoWidget) OnkeyReleaseEvent(slot func(super func(event *qt.QKeyEvent), event *qt.QKeyEvent)) {
|
|
ok := C.QVideoWidget_override_virtual_keyReleaseEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_keyReleaseEvent
|
|
func miqt_exec_callback_QVideoWidget_keyReleaseEvent(self *C.QVideoWidget, cb C.intptr_t, event *C.QKeyEvent) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QKeyEvent), event *qt.QKeyEvent))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := qt.UnsafeNewQKeyEvent(unsafe.Pointer(event))
|
|
|
|
gofunc((&QVideoWidget{h: self}).callVirtualBase_KeyReleaseEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_FocusInEvent(event *qt.QFocusEvent) {
|
|
|
|
C.QVideoWidget_virtualbase_focusInEvent(unsafe.Pointer(this.h), (*C.QFocusEvent)(event.UnsafePointer()))
|
|
|
|
}
|
|
func (this *QVideoWidget) OnfocusInEvent(slot func(super func(event *qt.QFocusEvent), event *qt.QFocusEvent)) {
|
|
ok := C.QVideoWidget_override_virtual_focusInEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_focusInEvent
|
|
func miqt_exec_callback_QVideoWidget_focusInEvent(self *C.QVideoWidget, cb C.intptr_t, event *C.QFocusEvent) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QFocusEvent), event *qt.QFocusEvent))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := qt.UnsafeNewQFocusEvent(unsafe.Pointer(event))
|
|
|
|
gofunc((&QVideoWidget{h: self}).callVirtualBase_FocusInEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_FocusOutEvent(event *qt.QFocusEvent) {
|
|
|
|
C.QVideoWidget_virtualbase_focusOutEvent(unsafe.Pointer(this.h), (*C.QFocusEvent)(event.UnsafePointer()))
|
|
|
|
}
|
|
func (this *QVideoWidget) OnfocusOutEvent(slot func(super func(event *qt.QFocusEvent), event *qt.QFocusEvent)) {
|
|
ok := C.QVideoWidget_override_virtual_focusOutEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_focusOutEvent
|
|
func miqt_exec_callback_QVideoWidget_focusOutEvent(self *C.QVideoWidget, cb C.intptr_t, event *C.QFocusEvent) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QFocusEvent), event *qt.QFocusEvent))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := qt.UnsafeNewQFocusEvent(unsafe.Pointer(event))
|
|
|
|
gofunc((&QVideoWidget{h: self}).callVirtualBase_FocusOutEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_EnterEvent(event *qt.QEvent) {
|
|
|
|
C.QVideoWidget_virtualbase_enterEvent(unsafe.Pointer(this.h), (*C.QEvent)(event.UnsafePointer()))
|
|
|
|
}
|
|
func (this *QVideoWidget) OnenterEvent(slot func(super func(event *qt.QEvent), event *qt.QEvent)) {
|
|
ok := C.QVideoWidget_override_virtual_enterEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_enterEvent
|
|
func miqt_exec_callback_QVideoWidget_enterEvent(self *C.QVideoWidget, cb C.intptr_t, event *C.QEvent) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QEvent), event *qt.QEvent))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := qt.UnsafeNewQEvent(unsafe.Pointer(event))
|
|
|
|
gofunc((&QVideoWidget{h: self}).callVirtualBase_EnterEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_LeaveEvent(event *qt.QEvent) {
|
|
|
|
C.QVideoWidget_virtualbase_leaveEvent(unsafe.Pointer(this.h), (*C.QEvent)(event.UnsafePointer()))
|
|
|
|
}
|
|
func (this *QVideoWidget) OnleaveEvent(slot func(super func(event *qt.QEvent), event *qt.QEvent)) {
|
|
ok := C.QVideoWidget_override_virtual_leaveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_leaveEvent
|
|
func miqt_exec_callback_QVideoWidget_leaveEvent(self *C.QVideoWidget, cb C.intptr_t, event *C.QEvent) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QEvent), event *qt.QEvent))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := qt.UnsafeNewQEvent(unsafe.Pointer(event))
|
|
|
|
gofunc((&QVideoWidget{h: self}).callVirtualBase_LeaveEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_CloseEvent(event *qt.QCloseEvent) {
|
|
|
|
C.QVideoWidget_virtualbase_closeEvent(unsafe.Pointer(this.h), (*C.QCloseEvent)(event.UnsafePointer()))
|
|
|
|
}
|
|
func (this *QVideoWidget) OncloseEvent(slot func(super func(event *qt.QCloseEvent), event *qt.QCloseEvent)) {
|
|
ok := C.QVideoWidget_override_virtual_closeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_closeEvent
|
|
func miqt_exec_callback_QVideoWidget_closeEvent(self *C.QVideoWidget, cb C.intptr_t, event *C.QCloseEvent) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QCloseEvent), event *qt.QCloseEvent))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := qt.UnsafeNewQCloseEvent(unsafe.Pointer(event))
|
|
|
|
gofunc((&QVideoWidget{h: self}).callVirtualBase_CloseEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_ContextMenuEvent(event *qt.QContextMenuEvent) {
|
|
|
|
C.QVideoWidget_virtualbase_contextMenuEvent(unsafe.Pointer(this.h), (*C.QContextMenuEvent)(event.UnsafePointer()))
|
|
|
|
}
|
|
func (this *QVideoWidget) OncontextMenuEvent(slot func(super func(event *qt.QContextMenuEvent), event *qt.QContextMenuEvent)) {
|
|
ok := C.QVideoWidget_override_virtual_contextMenuEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_contextMenuEvent
|
|
func miqt_exec_callback_QVideoWidget_contextMenuEvent(self *C.QVideoWidget, cb C.intptr_t, event *C.QContextMenuEvent) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QContextMenuEvent), event *qt.QContextMenuEvent))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := qt.UnsafeNewQContextMenuEvent(unsafe.Pointer(event))
|
|
|
|
gofunc((&QVideoWidget{h: self}).callVirtualBase_ContextMenuEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_TabletEvent(event *qt.QTabletEvent) {
|
|
|
|
C.QVideoWidget_virtualbase_tabletEvent(unsafe.Pointer(this.h), (*C.QTabletEvent)(event.UnsafePointer()))
|
|
|
|
}
|
|
func (this *QVideoWidget) OntabletEvent(slot func(super func(event *qt.QTabletEvent), event *qt.QTabletEvent)) {
|
|
ok := C.QVideoWidget_override_virtual_tabletEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_tabletEvent
|
|
func miqt_exec_callback_QVideoWidget_tabletEvent(self *C.QVideoWidget, cb C.intptr_t, event *C.QTabletEvent) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QTabletEvent), event *qt.QTabletEvent))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := qt.UnsafeNewQTabletEvent(unsafe.Pointer(event))
|
|
|
|
gofunc((&QVideoWidget{h: self}).callVirtualBase_TabletEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_ActionEvent(event *qt.QActionEvent) {
|
|
|
|
C.QVideoWidget_virtualbase_actionEvent(unsafe.Pointer(this.h), (*C.QActionEvent)(event.UnsafePointer()))
|
|
|
|
}
|
|
func (this *QVideoWidget) OnactionEvent(slot func(super func(event *qt.QActionEvent), event *qt.QActionEvent)) {
|
|
ok := C.QVideoWidget_override_virtual_actionEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_actionEvent
|
|
func miqt_exec_callback_QVideoWidget_actionEvent(self *C.QVideoWidget, cb C.intptr_t, event *C.QActionEvent) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QActionEvent), event *qt.QActionEvent))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := qt.UnsafeNewQActionEvent(unsafe.Pointer(event))
|
|
|
|
gofunc((&QVideoWidget{h: self}).callVirtualBase_ActionEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_DragEnterEvent(event *qt.QDragEnterEvent) {
|
|
|
|
C.QVideoWidget_virtualbase_dragEnterEvent(unsafe.Pointer(this.h), (*C.QDragEnterEvent)(event.UnsafePointer()))
|
|
|
|
}
|
|
func (this *QVideoWidget) OndragEnterEvent(slot func(super func(event *qt.QDragEnterEvent), event *qt.QDragEnterEvent)) {
|
|
ok := C.QVideoWidget_override_virtual_dragEnterEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_dragEnterEvent
|
|
func miqt_exec_callback_QVideoWidget_dragEnterEvent(self *C.QVideoWidget, cb C.intptr_t, event *C.QDragEnterEvent) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QDragEnterEvent), event *qt.QDragEnterEvent))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := qt.UnsafeNewQDragEnterEvent(unsafe.Pointer(event))
|
|
|
|
gofunc((&QVideoWidget{h: self}).callVirtualBase_DragEnterEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_DragMoveEvent(event *qt.QDragMoveEvent) {
|
|
|
|
C.QVideoWidget_virtualbase_dragMoveEvent(unsafe.Pointer(this.h), (*C.QDragMoveEvent)(event.UnsafePointer()))
|
|
|
|
}
|
|
func (this *QVideoWidget) OndragMoveEvent(slot func(super func(event *qt.QDragMoveEvent), event *qt.QDragMoveEvent)) {
|
|
ok := C.QVideoWidget_override_virtual_dragMoveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_dragMoveEvent
|
|
func miqt_exec_callback_QVideoWidget_dragMoveEvent(self *C.QVideoWidget, cb C.intptr_t, event *C.QDragMoveEvent) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QDragMoveEvent), event *qt.QDragMoveEvent))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := qt.UnsafeNewQDragMoveEvent(unsafe.Pointer(event))
|
|
|
|
gofunc((&QVideoWidget{h: self}).callVirtualBase_DragMoveEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_DragLeaveEvent(event *qt.QDragLeaveEvent) {
|
|
|
|
C.QVideoWidget_virtualbase_dragLeaveEvent(unsafe.Pointer(this.h), (*C.QDragLeaveEvent)(event.UnsafePointer()))
|
|
|
|
}
|
|
func (this *QVideoWidget) OndragLeaveEvent(slot func(super func(event *qt.QDragLeaveEvent), event *qt.QDragLeaveEvent)) {
|
|
ok := C.QVideoWidget_override_virtual_dragLeaveEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_dragLeaveEvent
|
|
func miqt_exec_callback_QVideoWidget_dragLeaveEvent(self *C.QVideoWidget, cb C.intptr_t, event *C.QDragLeaveEvent) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QDragLeaveEvent), event *qt.QDragLeaveEvent))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := qt.UnsafeNewQDragLeaveEvent(unsafe.Pointer(event))
|
|
|
|
gofunc((&QVideoWidget{h: self}).callVirtualBase_DragLeaveEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_DropEvent(event *qt.QDropEvent) {
|
|
|
|
C.QVideoWidget_virtualbase_dropEvent(unsafe.Pointer(this.h), (*C.QDropEvent)(event.UnsafePointer()))
|
|
|
|
}
|
|
func (this *QVideoWidget) OndropEvent(slot func(super func(event *qt.QDropEvent), event *qt.QDropEvent)) {
|
|
ok := C.QVideoWidget_override_virtual_dropEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_dropEvent
|
|
func miqt_exec_callback_QVideoWidget_dropEvent(self *C.QVideoWidget, cb C.intptr_t, event *C.QDropEvent) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QDropEvent), event *qt.QDropEvent))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := qt.UnsafeNewQDropEvent(unsafe.Pointer(event))
|
|
|
|
gofunc((&QVideoWidget{h: self}).callVirtualBase_DropEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *int64) bool {
|
|
eventType_alias := C.struct_miqt_string{}
|
|
if len(eventType) > 0 {
|
|
eventType_alias.data = (*C.char)(unsafe.Pointer(&eventType[0]))
|
|
} else {
|
|
eventType_alias.data = (*C.char)(unsafe.Pointer(nil))
|
|
}
|
|
eventType_alias.len = C.size_t(len(eventType))
|
|
|
|
return (bool)(C.QVideoWidget_virtualbase_nativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.long)(unsafe.Pointer(result))))
|
|
|
|
}
|
|
func (this *QVideoWidget) OnnativeEvent(slot func(super func(eventType []byte, message unsafe.Pointer, result *int64) bool, eventType []byte, message unsafe.Pointer, result *int64) bool) {
|
|
ok := C.QVideoWidget_override_virtual_nativeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_nativeEvent
|
|
func miqt_exec_callback_QVideoWidget_nativeEvent(self *C.QVideoWidget, cb C.intptr_t, eventType C.struct_miqt_string, message unsafe.Pointer, result *C.long) C.bool {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(eventType []byte, message unsafe.Pointer, result *int64) bool, eventType []byte, message unsafe.Pointer, result *int64) bool)
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
var eventType_bytearray C.struct_miqt_string = eventType
|
|
eventType_ret := C.GoBytes(unsafe.Pointer(eventType_bytearray.data), C.int(int64(eventType_bytearray.len)))
|
|
C.free(unsafe.Pointer(eventType_bytearray.data))
|
|
slotval1 := eventType_ret
|
|
slotval2 := (unsafe.Pointer)(message)
|
|
|
|
slotval3 := (*int64)(unsafe.Pointer(result))
|
|
|
|
virtualReturn := gofunc((&QVideoWidget{h: self}).callVirtualBase_NativeEvent, slotval1, slotval2, slotval3)
|
|
|
|
return (C.bool)(virtualReturn)
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_ChangeEvent(param1 *qt.QEvent) {
|
|
|
|
C.QVideoWidget_virtualbase_changeEvent(unsafe.Pointer(this.h), (*C.QEvent)(param1.UnsafePointer()))
|
|
|
|
}
|
|
func (this *QVideoWidget) OnchangeEvent(slot func(super func(param1 *qt.QEvent), param1 *qt.QEvent)) {
|
|
ok := C.QVideoWidget_override_virtual_changeEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_changeEvent
|
|
func miqt_exec_callback_QVideoWidget_changeEvent(self *C.QVideoWidget, cb C.intptr_t, param1 *C.QEvent) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *qt.QEvent), param1 *qt.QEvent))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := qt.UnsafeNewQEvent(unsafe.Pointer(param1))
|
|
|
|
gofunc((&QVideoWidget{h: self}).callVirtualBase_ChangeEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_Metric(param1 qt.QPaintDevice__PaintDeviceMetric) int {
|
|
|
|
return (int)(C.QVideoWidget_virtualbase_metric(unsafe.Pointer(this.h), (C.int)(param1)))
|
|
|
|
}
|
|
func (this *QVideoWidget) Onmetric(slot func(super func(param1 qt.QPaintDevice__PaintDeviceMetric) int, param1 qt.QPaintDevice__PaintDeviceMetric) int) {
|
|
ok := C.QVideoWidget_override_virtual_metric(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_metric
|
|
func miqt_exec_callback_QVideoWidget_metric(self *C.QVideoWidget, cb C.intptr_t, param1 C.int) C.int {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 qt.QPaintDevice__PaintDeviceMetric) int, param1 qt.QPaintDevice__PaintDeviceMetric) int)
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := (qt.QPaintDevice__PaintDeviceMetric)(param1)
|
|
|
|
virtualReturn := gofunc((&QVideoWidget{h: self}).callVirtualBase_Metric, slotval1)
|
|
|
|
return (C.int)(virtualReturn)
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_InitPainter(painter *qt.QPainter) {
|
|
|
|
C.QVideoWidget_virtualbase_initPainter(unsafe.Pointer(this.h), (*C.QPainter)(painter.UnsafePointer()))
|
|
|
|
}
|
|
func (this *QVideoWidget) OninitPainter(slot func(super func(painter *qt.QPainter), painter *qt.QPainter)) {
|
|
ok := C.QVideoWidget_override_virtual_initPainter(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_initPainter
|
|
func miqt_exec_callback_QVideoWidget_initPainter(self *C.QVideoWidget, cb C.intptr_t, painter *C.QPainter) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(painter *qt.QPainter), painter *qt.QPainter))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := qt.UnsafeNewQPainter(unsafe.Pointer(painter))
|
|
|
|
gofunc((&QVideoWidget{h: self}).callVirtualBase_InitPainter, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_Redirected(offset *qt.QPoint) *qt.QPaintDevice {
|
|
|
|
return qt.UnsafeNewQPaintDevice(unsafe.Pointer(C.QVideoWidget_virtualbase_redirected(unsafe.Pointer(this.h), (*C.QPoint)(offset.UnsafePointer()))))
|
|
|
|
}
|
|
func (this *QVideoWidget) Onredirected(slot func(super func(offset *qt.QPoint) *qt.QPaintDevice, offset *qt.QPoint) *qt.QPaintDevice) {
|
|
ok := C.QVideoWidget_override_virtual_redirected(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_redirected
|
|
func miqt_exec_callback_QVideoWidget_redirected(self *C.QVideoWidget, cb C.intptr_t, offset *C.QPoint) *C.QPaintDevice {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(offset *qt.QPoint) *qt.QPaintDevice, offset *qt.QPoint) *qt.QPaintDevice)
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := qt.UnsafeNewQPoint(unsafe.Pointer(offset))
|
|
|
|
virtualReturn := gofunc((&QVideoWidget{h: self}).callVirtualBase_Redirected, slotval1)
|
|
|
|
return (*C.QPaintDevice)(virtualReturn.UnsafePointer())
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_SharedPainter() *qt.QPainter {
|
|
|
|
return qt.UnsafeNewQPainter(unsafe.Pointer(C.QVideoWidget_virtualbase_sharedPainter(unsafe.Pointer(this.h))))
|
|
|
|
}
|
|
func (this *QVideoWidget) OnsharedPainter(slot func(super func() *qt.QPainter) *qt.QPainter) {
|
|
ok := C.QVideoWidget_override_virtual_sharedPainter(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_sharedPainter
|
|
func miqt_exec_callback_QVideoWidget_sharedPainter(self *C.QVideoWidget, cb C.intptr_t) *C.QPainter {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *qt.QPainter) *qt.QPainter)
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
virtualReturn := gofunc((&QVideoWidget{h: self}).callVirtualBase_SharedPainter)
|
|
|
|
return (*C.QPainter)(virtualReturn.UnsafePointer())
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_InputMethodEvent(param1 *qt.QInputMethodEvent) {
|
|
|
|
C.QVideoWidget_virtualbase_inputMethodEvent(unsafe.Pointer(this.h), (*C.QInputMethodEvent)(param1.UnsafePointer()))
|
|
|
|
}
|
|
func (this *QVideoWidget) OninputMethodEvent(slot func(super func(param1 *qt.QInputMethodEvent), param1 *qt.QInputMethodEvent)) {
|
|
ok := C.QVideoWidget_override_virtual_inputMethodEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_inputMethodEvent
|
|
func miqt_exec_callback_QVideoWidget_inputMethodEvent(self *C.QVideoWidget, cb C.intptr_t, param1 *C.QInputMethodEvent) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *qt.QInputMethodEvent), param1 *qt.QInputMethodEvent))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := qt.UnsafeNewQInputMethodEvent(unsafe.Pointer(param1))
|
|
|
|
gofunc((&QVideoWidget{h: self}).callVirtualBase_InputMethodEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_InputMethodQuery(param1 qt.InputMethodQuery) *qt.QVariant {
|
|
|
|
_goptr := qt.UnsafeNewQVariant(unsafe.Pointer(C.QVideoWidget_virtualbase_inputMethodQuery(unsafe.Pointer(this.h), (C.int)(param1))))
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
return _goptr
|
|
|
|
}
|
|
func (this *QVideoWidget) OninputMethodQuery(slot func(super func(param1 qt.InputMethodQuery) *qt.QVariant, param1 qt.InputMethodQuery) *qt.QVariant) {
|
|
ok := C.QVideoWidget_override_virtual_inputMethodQuery(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_inputMethodQuery
|
|
func miqt_exec_callback_QVideoWidget_inputMethodQuery(self *C.QVideoWidget, cb C.intptr_t, param1 C.int) *C.QVariant {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 qt.InputMethodQuery) *qt.QVariant, param1 qt.InputMethodQuery) *qt.QVariant)
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := (qt.InputMethodQuery)(param1)
|
|
|
|
virtualReturn := gofunc((&QVideoWidget{h: self}).callVirtualBase_InputMethodQuery, slotval1)
|
|
|
|
return (*C.QVariant)(virtualReturn.UnsafePointer())
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_FocusNextPrevChild(next bool) bool {
|
|
|
|
return (bool)(C.QVideoWidget_virtualbase_focusNextPrevChild(unsafe.Pointer(this.h), (C.bool)(next)))
|
|
|
|
}
|
|
func (this *QVideoWidget) OnfocusNextPrevChild(slot func(super func(next bool) bool, next bool) bool) {
|
|
ok := C.QVideoWidget_override_virtual_focusNextPrevChild(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_focusNextPrevChild
|
|
func miqt_exec_callback_QVideoWidget_focusNextPrevChild(self *C.QVideoWidget, cb C.intptr_t, next C.bool) C.bool {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(next bool) bool, next bool) bool)
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := (bool)(next)
|
|
|
|
virtualReturn := gofunc((&QVideoWidget{h: self}).callVirtualBase_FocusNextPrevChild, slotval1)
|
|
|
|
return (C.bool)(virtualReturn)
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_EventFilter(watched *qt.QObject, event *qt.QEvent) bool {
|
|
|
|
return (bool)(C.QVideoWidget_virtualbase_eventFilter(unsafe.Pointer(this.h), (*C.QObject)(watched.UnsafePointer()), (*C.QEvent)(event.UnsafePointer())))
|
|
|
|
}
|
|
func (this *QVideoWidget) OneventFilter(slot func(super func(watched *qt.QObject, event *qt.QEvent) bool, watched *qt.QObject, event *qt.QEvent) bool) {
|
|
ok := C.QVideoWidget_override_virtual_eventFilter(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_eventFilter
|
|
func miqt_exec_callback_QVideoWidget_eventFilter(self *C.QVideoWidget, cb C.intptr_t, watched *C.QObject, event *C.QEvent) C.bool {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(watched *qt.QObject, event *qt.QEvent) bool, watched *qt.QObject, event *qt.QEvent) bool)
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := qt.UnsafeNewQObject(unsafe.Pointer(watched))
|
|
|
|
slotval2 := qt.UnsafeNewQEvent(unsafe.Pointer(event))
|
|
|
|
virtualReturn := gofunc((&QVideoWidget{h: self}).callVirtualBase_EventFilter, slotval1, slotval2)
|
|
|
|
return (C.bool)(virtualReturn)
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_TimerEvent(event *qt.QTimerEvent) {
|
|
|
|
C.QVideoWidget_virtualbase_timerEvent(unsafe.Pointer(this.h), (*C.QTimerEvent)(event.UnsafePointer()))
|
|
|
|
}
|
|
func (this *QVideoWidget) OntimerEvent(slot func(super func(event *qt.QTimerEvent), event *qt.QTimerEvent)) {
|
|
ok := C.QVideoWidget_override_virtual_timerEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_timerEvent
|
|
func miqt_exec_callback_QVideoWidget_timerEvent(self *C.QVideoWidget, cb C.intptr_t, event *C.QTimerEvent) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QTimerEvent), event *qt.QTimerEvent))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := qt.UnsafeNewQTimerEvent(unsafe.Pointer(event))
|
|
|
|
gofunc((&QVideoWidget{h: self}).callVirtualBase_TimerEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_ChildEvent(event *qt.QChildEvent) {
|
|
|
|
C.QVideoWidget_virtualbase_childEvent(unsafe.Pointer(this.h), (*C.QChildEvent)(event.UnsafePointer()))
|
|
|
|
}
|
|
func (this *QVideoWidget) OnchildEvent(slot func(super func(event *qt.QChildEvent), event *qt.QChildEvent)) {
|
|
ok := C.QVideoWidget_override_virtual_childEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_childEvent
|
|
func miqt_exec_callback_QVideoWidget_childEvent(self *C.QVideoWidget, cb C.intptr_t, event *C.QChildEvent) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QChildEvent), event *qt.QChildEvent))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := qt.UnsafeNewQChildEvent(unsafe.Pointer(event))
|
|
|
|
gofunc((&QVideoWidget{h: self}).callVirtualBase_ChildEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_CustomEvent(event *qt.QEvent) {
|
|
|
|
C.QVideoWidget_virtualbase_customEvent(unsafe.Pointer(this.h), (*C.QEvent)(event.UnsafePointer()))
|
|
|
|
}
|
|
func (this *QVideoWidget) OncustomEvent(slot func(super func(event *qt.QEvent), event *qt.QEvent)) {
|
|
ok := C.QVideoWidget_override_virtual_customEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_customEvent
|
|
func miqt_exec_callback_QVideoWidget_customEvent(self *C.QVideoWidget, cb C.intptr_t, event *C.QEvent) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QEvent), event *qt.QEvent))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := qt.UnsafeNewQEvent(unsafe.Pointer(event))
|
|
|
|
gofunc((&QVideoWidget{h: self}).callVirtualBase_CustomEvent, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_ConnectNotify(signal *qt.QMetaMethod) {
|
|
|
|
C.QVideoWidget_virtualbase_connectNotify(unsafe.Pointer(this.h), (*C.QMetaMethod)(signal.UnsafePointer()))
|
|
|
|
}
|
|
func (this *QVideoWidget) OnconnectNotify(slot func(super func(signal *qt.QMetaMethod), signal *qt.QMetaMethod)) {
|
|
ok := C.QVideoWidget_override_virtual_connectNotify(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_connectNotify
|
|
func miqt_exec_callback_QVideoWidget_connectNotify(self *C.QVideoWidget, cb C.intptr_t, signal *C.QMetaMethod) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(signal *qt.QMetaMethod), signal *qt.QMetaMethod))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := qt.UnsafeNewQMetaMethod(unsafe.Pointer(signal))
|
|
|
|
gofunc((&QVideoWidget{h: self}).callVirtualBase_ConnectNotify, slotval1)
|
|
|
|
}
|
|
|
|
func (this *QVideoWidget) callVirtualBase_DisconnectNotify(signal *qt.QMetaMethod) {
|
|
|
|
C.QVideoWidget_virtualbase_disconnectNotify(unsafe.Pointer(this.h), (*C.QMetaMethod)(signal.UnsafePointer()))
|
|
|
|
}
|
|
func (this *QVideoWidget) OndisconnectNotify(slot func(super func(signal *qt.QMetaMethod), signal *qt.QMetaMethod)) {
|
|
ok := C.QVideoWidget_override_virtual_disconnectNotify(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
|
if !ok {
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
}
|
|
}
|
|
|
|
//export miqt_exec_callback_QVideoWidget_disconnectNotify
|
|
func miqt_exec_callback_QVideoWidget_disconnectNotify(self *C.QVideoWidget, cb C.intptr_t, signal *C.QMetaMethod) {
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(signal *qt.QMetaMethod), signal *qt.QMetaMethod))
|
|
if !ok {
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
}
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
slotval1 := qt.UnsafeNewQMetaMethod(unsafe.Pointer(signal))
|
|
|
|
gofunc((&QVideoWidget{h: self}).callVirtualBase_DisconnectNotify, slotval1)
|
|
|
|
}
|
|
|
|
// Delete this object from C++ memory.
|
|
func (this *QVideoWidget) Delete() {
|
|
C.QVideoWidget_delete(this.h)
|
|
}
|
|
|
|
// 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 *QVideoWidget) GoGC() {
|
|
runtime.SetFinalizer(this, func(this *QVideoWidget) {
|
|
this.Delete()
|
|
runtime.KeepAlive(this.h)
|
|
})
|
|
}
|