package qt6 /* #include "gen_qscrollarea.h" #include */ import "C" import ( "runtime" "runtime/cgo" "unsafe" ) type QScrollArea struct { h *C.QScrollArea *QAbstractScrollArea } func (this *QScrollArea) cPointer() *C.QScrollArea { if this == nil { return nil } return this.h } func (this *QScrollArea) UnsafePointer() unsafe.Pointer { if this == nil { return nil } return unsafe.Pointer(this.h) } // newQScrollArea constructs the type using only CGO pointers. func newQScrollArea(h *C.QScrollArea) *QScrollArea { if h == nil { return nil } var outptr_QAbstractScrollArea *C.QAbstractScrollArea = nil C.QScrollArea_virtbase(h, &outptr_QAbstractScrollArea) return &QScrollArea{h: h, QAbstractScrollArea: newQAbstractScrollArea(outptr_QAbstractScrollArea)} } // UnsafeNewQScrollArea constructs the type using only unsafe pointers. func UnsafeNewQScrollArea(h unsafe.Pointer) *QScrollArea { return newQScrollArea((*C.QScrollArea)(h)) } // NewQScrollArea constructs a new QScrollArea object. func NewQScrollArea(parent *QWidget) *QScrollArea { return newQScrollArea(C.QScrollArea_new(parent.cPointer())) } // NewQScrollArea2 constructs a new QScrollArea object. func NewQScrollArea2() *QScrollArea { return newQScrollArea(C.QScrollArea_new2()) } func (this *QScrollArea) MetaObject() *QMetaObject { return newQMetaObject(C.QScrollArea_MetaObject(this.h)) } func (this *QScrollArea) Metacast(param1 string) unsafe.Pointer { param1_Cstring := C.CString(param1) defer C.free(unsafe.Pointer(param1_Cstring)) return (unsafe.Pointer)(C.QScrollArea_Metacast(this.h, param1_Cstring)) } func QScrollArea_Tr(s string) string { s_Cstring := C.CString(s) defer C.free(unsafe.Pointer(s_Cstring)) var _ms C.struct_miqt_string = C.QScrollArea_Tr(s_Cstring) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func (this *QScrollArea) Widget() *QWidget { return newQWidget(C.QScrollArea_Widget(this.h)) } func (this *QScrollArea) SetWidget(widget *QWidget) { C.QScrollArea_SetWidget(this.h, widget.cPointer()) } func (this *QScrollArea) TakeWidget() *QWidget { return newQWidget(C.QScrollArea_TakeWidget(this.h)) } func (this *QScrollArea) WidgetResizable() bool { return (bool)(C.QScrollArea_WidgetResizable(this.h)) } func (this *QScrollArea) SetWidgetResizable(resizable bool) { C.QScrollArea_SetWidgetResizable(this.h, (C.bool)(resizable)) } func (this *QScrollArea) SizeHint() *QSize { _goptr := newQSize(C.QScrollArea_SizeHint(this.h)) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QScrollArea) FocusNextPrevChild(next bool) bool { return (bool)(C.QScrollArea_FocusNextPrevChild(this.h, (C.bool)(next))) } func (this *QScrollArea) Alignment() AlignmentFlag { return (AlignmentFlag)(C.QScrollArea_Alignment(this.h)) } func (this *QScrollArea) SetAlignment(alignment AlignmentFlag) { C.QScrollArea_SetAlignment(this.h, (C.int)(alignment)) } func (this *QScrollArea) EnsureVisible(x int, y int) { C.QScrollArea_EnsureVisible(this.h, (C.int)(x), (C.int)(y)) } func (this *QScrollArea) EnsureWidgetVisible(childWidget *QWidget) { C.QScrollArea_EnsureWidgetVisible(this.h, childWidget.cPointer()) } func QScrollArea_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.QScrollArea_Tr2(s_Cstring, c_Cstring) _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) C.free(unsafe.Pointer(_ms.data)) return _ret } func QScrollArea_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.QScrollArea_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 (this *QScrollArea) EnsureVisible3(x int, y int, xmargin int) { C.QScrollArea_EnsureVisible3(this.h, (C.int)(x), (C.int)(y), (C.int)(xmargin)) } func (this *QScrollArea) EnsureVisible4(x int, y int, xmargin int, ymargin int) { C.QScrollArea_EnsureVisible4(this.h, (C.int)(x), (C.int)(y), (C.int)(xmargin), (C.int)(ymargin)) } func (this *QScrollArea) EnsureWidgetVisible2(childWidget *QWidget, xmargin int) { C.QScrollArea_EnsureWidgetVisible2(this.h, childWidget.cPointer(), (C.int)(xmargin)) } func (this *QScrollArea) EnsureWidgetVisible3(childWidget *QWidget, xmargin int, ymargin int) { C.QScrollArea_EnsureWidgetVisible3(this.h, childWidget.cPointer(), (C.int)(xmargin), (C.int)(ymargin)) } func (this *QScrollArea) callVirtualBase_SizeHint() *QSize { _goptr := newQSize(C.QScrollArea_virtualbase_SizeHint(unsafe.Pointer(this.h))) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QScrollArea) OnSizeHint(slot func(super func() *QSize) *QSize) { ok := C.QScrollArea_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_QScrollArea_SizeHint func miqt_exec_callback_QScrollArea_SizeHint(self *C.QScrollArea, cb C.intptr_t) *C.QSize { gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QSize) *QSize) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } virtualReturn := gofunc((&QScrollArea{h: self}).callVirtualBase_SizeHint) return virtualReturn.cPointer() } func (this *QScrollArea) callVirtualBase_FocusNextPrevChild(next bool) bool { return (bool)(C.QScrollArea_virtualbase_FocusNextPrevChild(unsafe.Pointer(this.h), (C.bool)(next))) } func (this *QScrollArea) OnFocusNextPrevChild(slot func(super func(next bool) bool, next bool) bool) { ok := C.QScrollArea_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_QScrollArea_FocusNextPrevChild func miqt_exec_callback_QScrollArea_FocusNextPrevChild(self *C.QScrollArea, 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((&QScrollArea{h: self}).callVirtualBase_FocusNextPrevChild, slotval1) return (C.bool)(virtualReturn) } func (this *QScrollArea) callVirtualBase_Event(param1 *QEvent) bool { return (bool)(C.QScrollArea_virtualbase_Event(unsafe.Pointer(this.h), param1.cPointer())) } func (this *QScrollArea) OnEvent(slot func(super func(param1 *QEvent) bool, param1 *QEvent) bool) { ok := C.QScrollArea_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_QScrollArea_Event func miqt_exec_callback_QScrollArea_Event(self *C.QScrollArea, cb C.intptr_t, param1 *C.QEvent) C.bool { gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QEvent) bool, param1 *QEvent) bool) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := newQEvent(param1) virtualReturn := gofunc((&QScrollArea{h: self}).callVirtualBase_Event, slotval1) return (C.bool)(virtualReturn) } func (this *QScrollArea) callVirtualBase_EventFilter(param1 *QObject, param2 *QEvent) bool { return (bool)(C.QScrollArea_virtualbase_EventFilter(unsafe.Pointer(this.h), param1.cPointer(), param2.cPointer())) } func (this *QScrollArea) OnEventFilter(slot func(super func(param1 *QObject, param2 *QEvent) bool, param1 *QObject, param2 *QEvent) bool) { ok := C.QScrollArea_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_QScrollArea_EventFilter func miqt_exec_callback_QScrollArea_EventFilter(self *C.QScrollArea, cb C.intptr_t, param1 *C.QObject, param2 *C.QEvent) C.bool { gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QObject, param2 *QEvent) bool, param1 *QObject, param2 *QEvent) bool) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := newQObject(param1) slotval2 := newQEvent(param2) virtualReturn := gofunc((&QScrollArea{h: self}).callVirtualBase_EventFilter, slotval1, slotval2) return (C.bool)(virtualReturn) } func (this *QScrollArea) callVirtualBase_ResizeEvent(param1 *QResizeEvent) { C.QScrollArea_virtualbase_ResizeEvent(unsafe.Pointer(this.h), param1.cPointer()) } func (this *QScrollArea) OnResizeEvent(slot func(super func(param1 *QResizeEvent), param1 *QResizeEvent)) { ok := C.QScrollArea_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_QScrollArea_ResizeEvent func miqt_exec_callback_QScrollArea_ResizeEvent(self *C.QScrollArea, cb C.intptr_t, param1 *C.QResizeEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QResizeEvent), param1 *QResizeEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := newQResizeEvent(param1) gofunc((&QScrollArea{h: self}).callVirtualBase_ResizeEvent, slotval1) } func (this *QScrollArea) callVirtualBase_ScrollContentsBy(dx int, dy int) { C.QScrollArea_virtualbase_ScrollContentsBy(unsafe.Pointer(this.h), (C.int)(dx), (C.int)(dy)) } func (this *QScrollArea) OnScrollContentsBy(slot func(super func(dx int, dy int), dx int, dy int)) { ok := C.QScrollArea_override_virtual_ScrollContentsBy(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_QScrollArea_ScrollContentsBy func miqt_exec_callback_QScrollArea_ScrollContentsBy(self *C.QScrollArea, cb C.intptr_t, dx C.int, dy C.int) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(dx int, dy int), dx int, dy int)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := (int)(dx) slotval2 := (int)(dy) gofunc((&QScrollArea{h: self}).callVirtualBase_ScrollContentsBy, slotval1, slotval2) } func (this *QScrollArea) callVirtualBase_ViewportSizeHint() *QSize { _goptr := newQSize(C.QScrollArea_virtualbase_ViewportSizeHint(unsafe.Pointer(this.h))) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QScrollArea) OnViewportSizeHint(slot func(super func() *QSize) *QSize) { ok := C.QScrollArea_override_virtual_ViewportSizeHint(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_QScrollArea_ViewportSizeHint func miqt_exec_callback_QScrollArea_ViewportSizeHint(self *C.QScrollArea, cb C.intptr_t) *C.QSize { gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QSize) *QSize) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } virtualReturn := gofunc((&QScrollArea{h: self}).callVirtualBase_ViewportSizeHint) return virtualReturn.cPointer() } func (this *QScrollArea) callVirtualBase_MinimumSizeHint() *QSize { _goptr := newQSize(C.QScrollArea_virtualbase_MinimumSizeHint(unsafe.Pointer(this.h))) _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer return _goptr } func (this *QScrollArea) OnMinimumSizeHint(slot func(super func() *QSize) *QSize) { ok := C.QScrollArea_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_QScrollArea_MinimumSizeHint func miqt_exec_callback_QScrollArea_MinimumSizeHint(self *C.QScrollArea, cb C.intptr_t) *C.QSize { gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QSize) *QSize) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } virtualReturn := gofunc((&QScrollArea{h: self}).callVirtualBase_MinimumSizeHint) return virtualReturn.cPointer() } func (this *QScrollArea) callVirtualBase_SetupViewport(viewport *QWidget) { C.QScrollArea_virtualbase_SetupViewport(unsafe.Pointer(this.h), viewport.cPointer()) } func (this *QScrollArea) OnSetupViewport(slot func(super func(viewport *QWidget), viewport *QWidget)) { ok := C.QScrollArea_override_virtual_SetupViewport(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_QScrollArea_SetupViewport func miqt_exec_callback_QScrollArea_SetupViewport(self *C.QScrollArea, cb C.intptr_t, viewport *C.QWidget) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(viewport *QWidget), viewport *QWidget)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := newQWidget(viewport) gofunc((&QScrollArea{h: self}).callVirtualBase_SetupViewport, slotval1) } func (this *QScrollArea) callVirtualBase_ViewportEvent(param1 *QEvent) bool { return (bool)(C.QScrollArea_virtualbase_ViewportEvent(unsafe.Pointer(this.h), param1.cPointer())) } func (this *QScrollArea) OnViewportEvent(slot func(super func(param1 *QEvent) bool, param1 *QEvent) bool) { ok := C.QScrollArea_override_virtual_ViewportEvent(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_QScrollArea_ViewportEvent func miqt_exec_callback_QScrollArea_ViewportEvent(self *C.QScrollArea, cb C.intptr_t, param1 *C.QEvent) C.bool { gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QEvent) bool, param1 *QEvent) bool) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := newQEvent(param1) virtualReturn := gofunc((&QScrollArea{h: self}).callVirtualBase_ViewportEvent, slotval1) return (C.bool)(virtualReturn) } func (this *QScrollArea) callVirtualBase_PaintEvent(param1 *QPaintEvent) { C.QScrollArea_virtualbase_PaintEvent(unsafe.Pointer(this.h), param1.cPointer()) } func (this *QScrollArea) OnPaintEvent(slot func(super func(param1 *QPaintEvent), param1 *QPaintEvent)) { ok := C.QScrollArea_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_QScrollArea_PaintEvent func miqt_exec_callback_QScrollArea_PaintEvent(self *C.QScrollArea, cb C.intptr_t, param1 *C.QPaintEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QPaintEvent), param1 *QPaintEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := newQPaintEvent(param1) gofunc((&QScrollArea{h: self}).callVirtualBase_PaintEvent, slotval1) } func (this *QScrollArea) callVirtualBase_MousePressEvent(param1 *QMouseEvent) { C.QScrollArea_virtualbase_MousePressEvent(unsafe.Pointer(this.h), param1.cPointer()) } func (this *QScrollArea) OnMousePressEvent(slot func(super func(param1 *QMouseEvent), param1 *QMouseEvent)) { ok := C.QScrollArea_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_QScrollArea_MousePressEvent func miqt_exec_callback_QScrollArea_MousePressEvent(self *C.QScrollArea, cb C.intptr_t, param1 *C.QMouseEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QMouseEvent), param1 *QMouseEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := newQMouseEvent(param1) gofunc((&QScrollArea{h: self}).callVirtualBase_MousePressEvent, slotval1) } func (this *QScrollArea) callVirtualBase_MouseReleaseEvent(param1 *QMouseEvent) { C.QScrollArea_virtualbase_MouseReleaseEvent(unsafe.Pointer(this.h), param1.cPointer()) } func (this *QScrollArea) OnMouseReleaseEvent(slot func(super func(param1 *QMouseEvent), param1 *QMouseEvent)) { ok := C.QScrollArea_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_QScrollArea_MouseReleaseEvent func miqt_exec_callback_QScrollArea_MouseReleaseEvent(self *C.QScrollArea, cb C.intptr_t, param1 *C.QMouseEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QMouseEvent), param1 *QMouseEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := newQMouseEvent(param1) gofunc((&QScrollArea{h: self}).callVirtualBase_MouseReleaseEvent, slotval1) } func (this *QScrollArea) callVirtualBase_MouseDoubleClickEvent(param1 *QMouseEvent) { C.QScrollArea_virtualbase_MouseDoubleClickEvent(unsafe.Pointer(this.h), param1.cPointer()) } func (this *QScrollArea) OnMouseDoubleClickEvent(slot func(super func(param1 *QMouseEvent), param1 *QMouseEvent)) { ok := C.QScrollArea_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_QScrollArea_MouseDoubleClickEvent func miqt_exec_callback_QScrollArea_MouseDoubleClickEvent(self *C.QScrollArea, cb C.intptr_t, param1 *C.QMouseEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QMouseEvent), param1 *QMouseEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := newQMouseEvent(param1) gofunc((&QScrollArea{h: self}).callVirtualBase_MouseDoubleClickEvent, slotval1) } func (this *QScrollArea) callVirtualBase_MouseMoveEvent(param1 *QMouseEvent) { C.QScrollArea_virtualbase_MouseMoveEvent(unsafe.Pointer(this.h), param1.cPointer()) } func (this *QScrollArea) OnMouseMoveEvent(slot func(super func(param1 *QMouseEvent), param1 *QMouseEvent)) { ok := C.QScrollArea_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_QScrollArea_MouseMoveEvent func miqt_exec_callback_QScrollArea_MouseMoveEvent(self *C.QScrollArea, cb C.intptr_t, param1 *C.QMouseEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QMouseEvent), param1 *QMouseEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := newQMouseEvent(param1) gofunc((&QScrollArea{h: self}).callVirtualBase_MouseMoveEvent, slotval1) } func (this *QScrollArea) callVirtualBase_WheelEvent(param1 *QWheelEvent) { C.QScrollArea_virtualbase_WheelEvent(unsafe.Pointer(this.h), param1.cPointer()) } func (this *QScrollArea) OnWheelEvent(slot func(super func(param1 *QWheelEvent), param1 *QWheelEvent)) { ok := C.QScrollArea_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_QScrollArea_WheelEvent func miqt_exec_callback_QScrollArea_WheelEvent(self *C.QScrollArea, cb C.intptr_t, param1 *C.QWheelEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QWheelEvent), param1 *QWheelEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := newQWheelEvent(param1) gofunc((&QScrollArea{h: self}).callVirtualBase_WheelEvent, slotval1) } func (this *QScrollArea) callVirtualBase_ContextMenuEvent(param1 *QContextMenuEvent) { C.QScrollArea_virtualbase_ContextMenuEvent(unsafe.Pointer(this.h), param1.cPointer()) } func (this *QScrollArea) OnContextMenuEvent(slot func(super func(param1 *QContextMenuEvent), param1 *QContextMenuEvent)) { ok := C.QScrollArea_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_QScrollArea_ContextMenuEvent func miqt_exec_callback_QScrollArea_ContextMenuEvent(self *C.QScrollArea, cb C.intptr_t, param1 *C.QContextMenuEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QContextMenuEvent), param1 *QContextMenuEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := newQContextMenuEvent(param1) gofunc((&QScrollArea{h: self}).callVirtualBase_ContextMenuEvent, slotval1) } func (this *QScrollArea) callVirtualBase_DragEnterEvent(param1 *QDragEnterEvent) { C.QScrollArea_virtualbase_DragEnterEvent(unsafe.Pointer(this.h), param1.cPointer()) } func (this *QScrollArea) OnDragEnterEvent(slot func(super func(param1 *QDragEnterEvent), param1 *QDragEnterEvent)) { ok := C.QScrollArea_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_QScrollArea_DragEnterEvent func miqt_exec_callback_QScrollArea_DragEnterEvent(self *C.QScrollArea, cb C.intptr_t, param1 *C.QDragEnterEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QDragEnterEvent), param1 *QDragEnterEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := newQDragEnterEvent(param1) gofunc((&QScrollArea{h: self}).callVirtualBase_DragEnterEvent, slotval1) } func (this *QScrollArea) callVirtualBase_DragMoveEvent(param1 *QDragMoveEvent) { C.QScrollArea_virtualbase_DragMoveEvent(unsafe.Pointer(this.h), param1.cPointer()) } func (this *QScrollArea) OnDragMoveEvent(slot func(super func(param1 *QDragMoveEvent), param1 *QDragMoveEvent)) { ok := C.QScrollArea_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_QScrollArea_DragMoveEvent func miqt_exec_callback_QScrollArea_DragMoveEvent(self *C.QScrollArea, cb C.intptr_t, param1 *C.QDragMoveEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QDragMoveEvent), param1 *QDragMoveEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := newQDragMoveEvent(param1) gofunc((&QScrollArea{h: self}).callVirtualBase_DragMoveEvent, slotval1) } func (this *QScrollArea) callVirtualBase_DragLeaveEvent(param1 *QDragLeaveEvent) { C.QScrollArea_virtualbase_DragLeaveEvent(unsafe.Pointer(this.h), param1.cPointer()) } func (this *QScrollArea) OnDragLeaveEvent(slot func(super func(param1 *QDragLeaveEvent), param1 *QDragLeaveEvent)) { ok := C.QScrollArea_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_QScrollArea_DragLeaveEvent func miqt_exec_callback_QScrollArea_DragLeaveEvent(self *C.QScrollArea, cb C.intptr_t, param1 *C.QDragLeaveEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QDragLeaveEvent), param1 *QDragLeaveEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := newQDragLeaveEvent(param1) gofunc((&QScrollArea{h: self}).callVirtualBase_DragLeaveEvent, slotval1) } func (this *QScrollArea) callVirtualBase_DropEvent(param1 *QDropEvent) { C.QScrollArea_virtualbase_DropEvent(unsafe.Pointer(this.h), param1.cPointer()) } func (this *QScrollArea) OnDropEvent(slot func(super func(param1 *QDropEvent), param1 *QDropEvent)) { ok := C.QScrollArea_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_QScrollArea_DropEvent func miqt_exec_callback_QScrollArea_DropEvent(self *C.QScrollArea, cb C.intptr_t, param1 *C.QDropEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QDropEvent), param1 *QDropEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := newQDropEvent(param1) gofunc((&QScrollArea{h: self}).callVirtualBase_DropEvent, slotval1) } func (this *QScrollArea) callVirtualBase_KeyPressEvent(param1 *QKeyEvent) { C.QScrollArea_virtualbase_KeyPressEvent(unsafe.Pointer(this.h), param1.cPointer()) } func (this *QScrollArea) OnKeyPressEvent(slot func(super func(param1 *QKeyEvent), param1 *QKeyEvent)) { ok := C.QScrollArea_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_QScrollArea_KeyPressEvent func miqt_exec_callback_QScrollArea_KeyPressEvent(self *C.QScrollArea, cb C.intptr_t, param1 *C.QKeyEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QKeyEvent), param1 *QKeyEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := newQKeyEvent(param1) gofunc((&QScrollArea{h: self}).callVirtualBase_KeyPressEvent, slotval1) } func (this *QScrollArea) callVirtualBase_ChangeEvent(param1 *QEvent) { C.QScrollArea_virtualbase_ChangeEvent(unsafe.Pointer(this.h), param1.cPointer()) } func (this *QScrollArea) OnChangeEvent(slot func(super func(param1 *QEvent), param1 *QEvent)) { ok := C.QScrollArea_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_QScrollArea_ChangeEvent func miqt_exec_callback_QScrollArea_ChangeEvent(self *C.QScrollArea, cb C.intptr_t, param1 *C.QEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QEvent), param1 *QEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := newQEvent(param1) gofunc((&QScrollArea{h: self}).callVirtualBase_ChangeEvent, slotval1) } func (this *QScrollArea) callVirtualBase_InitStyleOption(option *QStyleOptionFrame) { C.QScrollArea_virtualbase_InitStyleOption(unsafe.Pointer(this.h), option.cPointer()) } func (this *QScrollArea) OnInitStyleOption(slot func(super func(option *QStyleOptionFrame), option *QStyleOptionFrame)) { ok := C.QScrollArea_override_virtual_InitStyleOption(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_QScrollArea_InitStyleOption func miqt_exec_callback_QScrollArea_InitStyleOption(self *C.QScrollArea, cb C.intptr_t, option *C.QStyleOptionFrame) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(option *QStyleOptionFrame), option *QStyleOptionFrame)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := newQStyleOptionFrame(option) gofunc((&QScrollArea{h: self}).callVirtualBase_InitStyleOption, slotval1) } func (this *QScrollArea) callVirtualBase_DevType() int { return (int)(C.QScrollArea_virtualbase_DevType(unsafe.Pointer(this.h))) } func (this *QScrollArea) OnDevType(slot func(super func() int) int) { ok := C.QScrollArea_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_QScrollArea_DevType func miqt_exec_callback_QScrollArea_DevType(self *C.QScrollArea, 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((&QScrollArea{h: self}).callVirtualBase_DevType) return (C.int)(virtualReturn) } func (this *QScrollArea) callVirtualBase_SetVisible(visible bool) { C.QScrollArea_virtualbase_SetVisible(unsafe.Pointer(this.h), (C.bool)(visible)) } func (this *QScrollArea) OnSetVisible(slot func(super func(visible bool), visible bool)) { ok := C.QScrollArea_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_QScrollArea_SetVisible func miqt_exec_callback_QScrollArea_SetVisible(self *C.QScrollArea, 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((&QScrollArea{h: self}).callVirtualBase_SetVisible, slotval1) } func (this *QScrollArea) callVirtualBase_HeightForWidth(param1 int) int { return (int)(C.QScrollArea_virtualbase_HeightForWidth(unsafe.Pointer(this.h), (C.int)(param1))) } func (this *QScrollArea) OnHeightForWidth(slot func(super func(param1 int) int, param1 int) int) { ok := C.QScrollArea_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_QScrollArea_HeightForWidth func miqt_exec_callback_QScrollArea_HeightForWidth(self *C.QScrollArea, 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((&QScrollArea{h: self}).callVirtualBase_HeightForWidth, slotval1) return (C.int)(virtualReturn) } func (this *QScrollArea) callVirtualBase_HasHeightForWidth() bool { return (bool)(C.QScrollArea_virtualbase_HasHeightForWidth(unsafe.Pointer(this.h))) } func (this *QScrollArea) OnHasHeightForWidth(slot func(super func() bool) bool) { ok := C.QScrollArea_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_QScrollArea_HasHeightForWidth func miqt_exec_callback_QScrollArea_HasHeightForWidth(self *C.QScrollArea, 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((&QScrollArea{h: self}).callVirtualBase_HasHeightForWidth) return (C.bool)(virtualReturn) } func (this *QScrollArea) callVirtualBase_PaintEngine() *QPaintEngine { return newQPaintEngine(C.QScrollArea_virtualbase_PaintEngine(unsafe.Pointer(this.h))) } func (this *QScrollArea) OnPaintEngine(slot func(super func() *QPaintEngine) *QPaintEngine) { ok := C.QScrollArea_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_QScrollArea_PaintEngine func miqt_exec_callback_QScrollArea_PaintEngine(self *C.QScrollArea, cb C.intptr_t) *C.QPaintEngine { gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QPaintEngine) *QPaintEngine) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } virtualReturn := gofunc((&QScrollArea{h: self}).callVirtualBase_PaintEngine) return virtualReturn.cPointer() } func (this *QScrollArea) callVirtualBase_KeyReleaseEvent(event *QKeyEvent) { C.QScrollArea_virtualbase_KeyReleaseEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QScrollArea) OnKeyReleaseEvent(slot func(super func(event *QKeyEvent), event *QKeyEvent)) { ok := C.QScrollArea_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_QScrollArea_KeyReleaseEvent func miqt_exec_callback_QScrollArea_KeyReleaseEvent(self *C.QScrollArea, cb C.intptr_t, event *C.QKeyEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QKeyEvent), event *QKeyEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := newQKeyEvent(event) gofunc((&QScrollArea{h: self}).callVirtualBase_KeyReleaseEvent, slotval1) } func (this *QScrollArea) callVirtualBase_FocusInEvent(event *QFocusEvent) { C.QScrollArea_virtualbase_FocusInEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QScrollArea) OnFocusInEvent(slot func(super func(event *QFocusEvent), event *QFocusEvent)) { ok := C.QScrollArea_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_QScrollArea_FocusInEvent func miqt_exec_callback_QScrollArea_FocusInEvent(self *C.QScrollArea, cb C.intptr_t, event *C.QFocusEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QFocusEvent), event *QFocusEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := newQFocusEvent(event) gofunc((&QScrollArea{h: self}).callVirtualBase_FocusInEvent, slotval1) } func (this *QScrollArea) callVirtualBase_FocusOutEvent(event *QFocusEvent) { C.QScrollArea_virtualbase_FocusOutEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QScrollArea) OnFocusOutEvent(slot func(super func(event *QFocusEvent), event *QFocusEvent)) { ok := C.QScrollArea_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_QScrollArea_FocusOutEvent func miqt_exec_callback_QScrollArea_FocusOutEvent(self *C.QScrollArea, cb C.intptr_t, event *C.QFocusEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QFocusEvent), event *QFocusEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := newQFocusEvent(event) gofunc((&QScrollArea{h: self}).callVirtualBase_FocusOutEvent, slotval1) } func (this *QScrollArea) callVirtualBase_EnterEvent(event *QEnterEvent) { C.QScrollArea_virtualbase_EnterEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QScrollArea) OnEnterEvent(slot func(super func(event *QEnterEvent), event *QEnterEvent)) { ok := C.QScrollArea_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_QScrollArea_EnterEvent func miqt_exec_callback_QScrollArea_EnterEvent(self *C.QScrollArea, cb C.intptr_t, event *C.QEnterEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QEnterEvent), event *QEnterEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := newQEnterEvent(event) gofunc((&QScrollArea{h: self}).callVirtualBase_EnterEvent, slotval1) } func (this *QScrollArea) callVirtualBase_LeaveEvent(event *QEvent) { C.QScrollArea_virtualbase_LeaveEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QScrollArea) OnLeaveEvent(slot func(super func(event *QEvent), event *QEvent)) { ok := C.QScrollArea_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_QScrollArea_LeaveEvent func miqt_exec_callback_QScrollArea_LeaveEvent(self *C.QScrollArea, cb C.intptr_t, event *C.QEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QEvent), event *QEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := newQEvent(event) gofunc((&QScrollArea{h: self}).callVirtualBase_LeaveEvent, slotval1) } func (this *QScrollArea) callVirtualBase_MoveEvent(event *QMoveEvent) { C.QScrollArea_virtualbase_MoveEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QScrollArea) OnMoveEvent(slot func(super func(event *QMoveEvent), event *QMoveEvent)) { ok := C.QScrollArea_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_QScrollArea_MoveEvent func miqt_exec_callback_QScrollArea_MoveEvent(self *C.QScrollArea, cb C.intptr_t, event *C.QMoveEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QMoveEvent), event *QMoveEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := newQMoveEvent(event) gofunc((&QScrollArea{h: self}).callVirtualBase_MoveEvent, slotval1) } func (this *QScrollArea) callVirtualBase_CloseEvent(event *QCloseEvent) { C.QScrollArea_virtualbase_CloseEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QScrollArea) OnCloseEvent(slot func(super func(event *QCloseEvent), event *QCloseEvent)) { ok := C.QScrollArea_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_QScrollArea_CloseEvent func miqt_exec_callback_QScrollArea_CloseEvent(self *C.QScrollArea, cb C.intptr_t, event *C.QCloseEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QCloseEvent), event *QCloseEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := newQCloseEvent(event) gofunc((&QScrollArea{h: self}).callVirtualBase_CloseEvent, slotval1) } func (this *QScrollArea) callVirtualBase_TabletEvent(event *QTabletEvent) { C.QScrollArea_virtualbase_TabletEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QScrollArea) OnTabletEvent(slot func(super func(event *QTabletEvent), event *QTabletEvent)) { ok := C.QScrollArea_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_QScrollArea_TabletEvent func miqt_exec_callback_QScrollArea_TabletEvent(self *C.QScrollArea, cb C.intptr_t, event *C.QTabletEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QTabletEvent), event *QTabletEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := newQTabletEvent(event) gofunc((&QScrollArea{h: self}).callVirtualBase_TabletEvent, slotval1) } func (this *QScrollArea) callVirtualBase_ActionEvent(event *QActionEvent) { C.QScrollArea_virtualbase_ActionEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QScrollArea) OnActionEvent(slot func(super func(event *QActionEvent), event *QActionEvent)) { ok := C.QScrollArea_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_QScrollArea_ActionEvent func miqt_exec_callback_QScrollArea_ActionEvent(self *C.QScrollArea, cb C.intptr_t, event *C.QActionEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QActionEvent), event *QActionEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := newQActionEvent(event) gofunc((&QScrollArea{h: self}).callVirtualBase_ActionEvent, slotval1) } func (this *QScrollArea) callVirtualBase_ShowEvent(event *QShowEvent) { C.QScrollArea_virtualbase_ShowEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QScrollArea) OnShowEvent(slot func(super func(event *QShowEvent), event *QShowEvent)) { ok := C.QScrollArea_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_QScrollArea_ShowEvent func miqt_exec_callback_QScrollArea_ShowEvent(self *C.QScrollArea, cb C.intptr_t, event *C.QShowEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QShowEvent), event *QShowEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := newQShowEvent(event) gofunc((&QScrollArea{h: self}).callVirtualBase_ShowEvent, slotval1) } func (this *QScrollArea) callVirtualBase_HideEvent(event *QHideEvent) { C.QScrollArea_virtualbase_HideEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QScrollArea) OnHideEvent(slot func(super func(event *QHideEvent), event *QHideEvent)) { ok := C.QScrollArea_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_QScrollArea_HideEvent func miqt_exec_callback_QScrollArea_HideEvent(self *C.QScrollArea, cb C.intptr_t, event *C.QHideEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QHideEvent), event *QHideEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := newQHideEvent(event) gofunc((&QScrollArea{h: self}).callVirtualBase_HideEvent, slotval1) } func (this *QScrollArea) callVirtualBase_NativeEvent(eventType []byte, message unsafe.Pointer, result *uintptr) 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.QScrollArea_virtualbase_NativeEvent(unsafe.Pointer(this.h), eventType_alias, message, (*C.intptr_t)(unsafe.Pointer(result)))) } func (this *QScrollArea) OnNativeEvent(slot func(super func(eventType []byte, message unsafe.Pointer, result *uintptr) bool, eventType []byte, message unsafe.Pointer, result *uintptr) bool) { ok := C.QScrollArea_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_QScrollArea_NativeEvent func miqt_exec_callback_QScrollArea_NativeEvent(self *C.QScrollArea, cb C.intptr_t, eventType C.struct_miqt_string, message unsafe.Pointer, result *C.intptr_t) C.bool { gofunc, ok := cgo.Handle(cb).Value().(func(super func(eventType []byte, message unsafe.Pointer, result *uintptr) bool, eventType []byte, message unsafe.Pointer, result *uintptr) 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 := (*uintptr)(unsafe.Pointer(result)) virtualReturn := gofunc((&QScrollArea{h: self}).callVirtualBase_NativeEvent, slotval1, slotval2, slotval3) return (C.bool)(virtualReturn) } func (this *QScrollArea) callVirtualBase_Metric(param1 QPaintDevice__PaintDeviceMetric) int { return (int)(C.QScrollArea_virtualbase_Metric(unsafe.Pointer(this.h), (C.int)(param1))) } func (this *QScrollArea) OnMetric(slot func(super func(param1 QPaintDevice__PaintDeviceMetric) int, param1 QPaintDevice__PaintDeviceMetric) int) { ok := C.QScrollArea_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_QScrollArea_Metric func miqt_exec_callback_QScrollArea_Metric(self *C.QScrollArea, cb C.intptr_t, param1 C.int) C.int { gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 QPaintDevice__PaintDeviceMetric) int, param1 QPaintDevice__PaintDeviceMetric) int) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := (QPaintDevice__PaintDeviceMetric)(param1) virtualReturn := gofunc((&QScrollArea{h: self}).callVirtualBase_Metric, slotval1) return (C.int)(virtualReturn) } func (this *QScrollArea) callVirtualBase_InitPainter(painter *QPainter) { C.QScrollArea_virtualbase_InitPainter(unsafe.Pointer(this.h), painter.cPointer()) } func (this *QScrollArea) OnInitPainter(slot func(super func(painter *QPainter), painter *QPainter)) { ok := C.QScrollArea_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_QScrollArea_InitPainter func miqt_exec_callback_QScrollArea_InitPainter(self *C.QScrollArea, cb C.intptr_t, painter *C.QPainter) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(painter *QPainter), painter *QPainter)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := newQPainter(painter) gofunc((&QScrollArea{h: self}).callVirtualBase_InitPainter, slotval1) } func (this *QScrollArea) callVirtualBase_Redirected(offset *QPoint) *QPaintDevice { return newQPaintDevice(C.QScrollArea_virtualbase_Redirected(unsafe.Pointer(this.h), offset.cPointer())) } func (this *QScrollArea) OnRedirected(slot func(super func(offset *QPoint) *QPaintDevice, offset *QPoint) *QPaintDevice) { ok := C.QScrollArea_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_QScrollArea_Redirected func miqt_exec_callback_QScrollArea_Redirected(self *C.QScrollArea, cb C.intptr_t, offset *C.QPoint) *C.QPaintDevice { gofunc, ok := cgo.Handle(cb).Value().(func(super func(offset *QPoint) *QPaintDevice, offset *QPoint) *QPaintDevice) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := newQPoint(offset) virtualReturn := gofunc((&QScrollArea{h: self}).callVirtualBase_Redirected, slotval1) return virtualReturn.cPointer() } func (this *QScrollArea) callVirtualBase_SharedPainter() *QPainter { return newQPainter(C.QScrollArea_virtualbase_SharedPainter(unsafe.Pointer(this.h))) } func (this *QScrollArea) OnSharedPainter(slot func(super func() *QPainter) *QPainter) { ok := C.QScrollArea_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_QScrollArea_SharedPainter func miqt_exec_callback_QScrollArea_SharedPainter(self *C.QScrollArea, cb C.intptr_t) *C.QPainter { gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QPainter) *QPainter) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } virtualReturn := gofunc((&QScrollArea{h: self}).callVirtualBase_SharedPainter) return virtualReturn.cPointer() } func (this *QScrollArea) callVirtualBase_InputMethodEvent(param1 *QInputMethodEvent) { C.QScrollArea_virtualbase_InputMethodEvent(unsafe.Pointer(this.h), param1.cPointer()) } func (this *QScrollArea) OnInputMethodEvent(slot func(super func(param1 *QInputMethodEvent), param1 *QInputMethodEvent)) { ok := C.QScrollArea_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_QScrollArea_InputMethodEvent func miqt_exec_callback_QScrollArea_InputMethodEvent(self *C.QScrollArea, cb C.intptr_t, param1 *C.QInputMethodEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QInputMethodEvent), param1 *QInputMethodEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := newQInputMethodEvent(param1) gofunc((&QScrollArea{h: self}).callVirtualBase_InputMethodEvent, slotval1) } func (this *QScrollArea) callVirtualBase_InputMethodQuery(param1 InputMethodQuery) *QVariant { _goptr := newQVariant(C.QScrollArea_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 *QScrollArea) OnInputMethodQuery(slot func(super func(param1 InputMethodQuery) *QVariant, param1 InputMethodQuery) *QVariant) { ok := C.QScrollArea_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_QScrollArea_InputMethodQuery func miqt_exec_callback_QScrollArea_InputMethodQuery(self *C.QScrollArea, cb C.intptr_t, param1 C.int) *C.QVariant { gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 InputMethodQuery) *QVariant, param1 InputMethodQuery) *QVariant) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := (InputMethodQuery)(param1) virtualReturn := gofunc((&QScrollArea{h: self}).callVirtualBase_InputMethodQuery, slotval1) return virtualReturn.cPointer() } func (this *QScrollArea) callVirtualBase_TimerEvent(event *QTimerEvent) { C.QScrollArea_virtualbase_TimerEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QScrollArea) OnTimerEvent(slot func(super func(event *QTimerEvent), event *QTimerEvent)) { ok := C.QScrollArea_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_QScrollArea_TimerEvent func miqt_exec_callback_QScrollArea_TimerEvent(self *C.QScrollArea, cb C.intptr_t, event *C.QTimerEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QTimerEvent), event *QTimerEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := newQTimerEvent(event) gofunc((&QScrollArea{h: self}).callVirtualBase_TimerEvent, slotval1) } func (this *QScrollArea) callVirtualBase_ChildEvent(event *QChildEvent) { C.QScrollArea_virtualbase_ChildEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QScrollArea) OnChildEvent(slot func(super func(event *QChildEvent), event *QChildEvent)) { ok := C.QScrollArea_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_QScrollArea_ChildEvent func miqt_exec_callback_QScrollArea_ChildEvent(self *C.QScrollArea, cb C.intptr_t, event *C.QChildEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QChildEvent), event *QChildEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := newQChildEvent(event) gofunc((&QScrollArea{h: self}).callVirtualBase_ChildEvent, slotval1) } func (this *QScrollArea) callVirtualBase_CustomEvent(event *QEvent) { C.QScrollArea_virtualbase_CustomEvent(unsafe.Pointer(this.h), event.cPointer()) } func (this *QScrollArea) OnCustomEvent(slot func(super func(event *QEvent), event *QEvent)) { ok := C.QScrollArea_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_QScrollArea_CustomEvent func miqt_exec_callback_QScrollArea_CustomEvent(self *C.QScrollArea, cb C.intptr_t, event *C.QEvent) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QEvent), event *QEvent)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := newQEvent(event) gofunc((&QScrollArea{h: self}).callVirtualBase_CustomEvent, slotval1) } func (this *QScrollArea) callVirtualBase_ConnectNotify(signal *QMetaMethod) { C.QScrollArea_virtualbase_ConnectNotify(unsafe.Pointer(this.h), signal.cPointer()) } func (this *QScrollArea) OnConnectNotify(slot func(super func(signal *QMetaMethod), signal *QMetaMethod)) { ok := C.QScrollArea_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_QScrollArea_ConnectNotify func miqt_exec_callback_QScrollArea_ConnectNotify(self *C.QScrollArea, cb C.intptr_t, signal *C.QMetaMethod) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(signal *QMetaMethod), signal *QMetaMethod)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := newQMetaMethod(signal) gofunc((&QScrollArea{h: self}).callVirtualBase_ConnectNotify, slotval1) } func (this *QScrollArea) callVirtualBase_DisconnectNotify(signal *QMetaMethod) { C.QScrollArea_virtualbase_DisconnectNotify(unsafe.Pointer(this.h), signal.cPointer()) } func (this *QScrollArea) OnDisconnectNotify(slot func(super func(signal *QMetaMethod), signal *QMetaMethod)) { ok := C.QScrollArea_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_QScrollArea_DisconnectNotify func miqt_exec_callback_QScrollArea_DisconnectNotify(self *C.QScrollArea, cb C.intptr_t, signal *C.QMetaMethod) { gofunc, ok := cgo.Handle(cb).Value().(func(super func(signal *QMetaMethod), signal *QMetaMethod)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") } // Convert all CABI parameters to Go parameters slotval1 := newQMetaMethod(signal) gofunc((&QScrollArea{h: self}).callVirtualBase_DisconnectNotify, slotval1) } // Delete this object from C++ memory. func (this *QScrollArea) Delete() { C.QScrollArea_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 *QScrollArea) GoGC() { runtime.SetFinalizer(this, func(this *QScrollArea) { this.Delete() runtime.KeepAlive(this.h) }) }