miqt/qt6/gen_qboxlayout.go

2888 lines
98 KiB
Go
Raw Normal View History

2024-10-20 18:21:03 +13:00
package qt6
/*
#include "gen_qboxlayout.h"
#include <stdlib.h>
*/
import "C"
import (
"runtime"
2024-11-19 19:29:06 +13:00
"runtime/cgo"
2024-10-20 18:21:03 +13:00
"unsafe"
)
type QBoxLayout__Direction int
const (
QBoxLayout__LeftToRight QBoxLayout__Direction = 0
QBoxLayout__RightToLeft QBoxLayout__Direction = 1
QBoxLayout__TopToBottom QBoxLayout__Direction = 2
QBoxLayout__BottomToTop QBoxLayout__Direction = 3
QBoxLayout__Down QBoxLayout__Direction = 2
QBoxLayout__Up QBoxLayout__Direction = 3
)
type QBoxLayout struct {
h *C.QBoxLayout
2024-10-20 18:21:03 +13:00
*QLayout
}
func (this *QBoxLayout) cPointer() *C.QBoxLayout {
if this == nil {
return nil
}
return this.h
}
func (this *QBoxLayout) UnsafePointer() unsafe.Pointer {
if this == nil {
return nil
}
return unsafe.Pointer(this.h)
}
2024-11-19 19:29:06 +13:00
// newQBoxLayout constructs the type using only CGO pointers.
2024-12-07 17:15:57 +13:00
func newQBoxLayout(h *C.QBoxLayout) *QBoxLayout {
2024-10-20 18:21:03 +13:00
if h == nil {
return nil
}
2024-12-07 17:15:57 +13:00
var outptr_QLayout *C.QLayout = nil
C.QBoxLayout_virtbase(h, &outptr_QLayout)
2024-11-19 19:29:06 +13:00
return &QBoxLayout{h: h,
2024-12-07 17:15:57 +13:00
QLayout: newQLayout(outptr_QLayout)}
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
// UnsafeNewQBoxLayout constructs the type using only unsafe pointers.
2024-12-07 17:15:57 +13:00
func UnsafeNewQBoxLayout(h unsafe.Pointer) *QBoxLayout {
return newQBoxLayout((*C.QBoxLayout)(h))
2024-10-20 18:21:03 +13:00
}
// NewQBoxLayout constructs a new QBoxLayout object.
func NewQBoxLayout(param1 QBoxLayout__Direction) *QBoxLayout {
2024-11-19 19:29:06 +13:00
return newQBoxLayout(C.QBoxLayout_new((C.int)(param1)))
2024-10-20 18:21:03 +13:00
}
// NewQBoxLayout2 constructs a new QBoxLayout object.
func NewQBoxLayout2(param1 QBoxLayout__Direction, parent *QWidget) *QBoxLayout {
2024-11-19 19:29:06 +13:00
return newQBoxLayout(C.QBoxLayout_new2((C.int)(param1), parent.cPointer()))
2024-10-20 18:21:03 +13:00
}
func (this *QBoxLayout) MetaObject() *QMetaObject {
return newQMetaObject(C.QBoxLayout_MetaObject(this.h))
2024-10-20 18:21:03 +13:00
}
func (this *QBoxLayout) Metacast(param1 string) unsafe.Pointer {
param1_Cstring := C.CString(param1)
defer C.free(unsafe.Pointer(param1_Cstring))
return (unsafe.Pointer)(C.QBoxLayout_Metacast(this.h, param1_Cstring))
}
func QBoxLayout_Tr(s string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
var _ms C.struct_miqt_string = C.QBoxLayout_Tr(s_Cstring)
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func (this *QBoxLayout) Direction() QBoxLayout__Direction {
return (QBoxLayout__Direction)(C.QBoxLayout_Direction(this.h))
}
func (this *QBoxLayout) SetDirection(direction QBoxLayout__Direction) {
C.QBoxLayout_SetDirection(this.h, (C.int)(direction))
}
func (this *QBoxLayout) AddSpacing(size int) {
C.QBoxLayout_AddSpacing(this.h, (C.int)(size))
}
func (this *QBoxLayout) AddStretch() {
C.QBoxLayout_AddStretch(this.h)
}
func (this *QBoxLayout) AddSpacerItem(spacerItem *QSpacerItem) {
C.QBoxLayout_AddSpacerItem(this.h, spacerItem.cPointer())
}
func (this *QBoxLayout) AddWidget(param1 *QWidget) {
C.QBoxLayout_AddWidget(this.h, param1.cPointer())
}
func (this *QBoxLayout) AddLayout(layout *QLayout) {
C.QBoxLayout_AddLayout(this.h, layout.cPointer())
}
func (this *QBoxLayout) AddStrut(param1 int) {
C.QBoxLayout_AddStrut(this.h, (C.int)(param1))
}
func (this *QBoxLayout) AddItem(param1 *QLayoutItem) {
C.QBoxLayout_AddItem(this.h, param1.cPointer())
}
func (this *QBoxLayout) InsertSpacing(index int, size int) {
C.QBoxLayout_InsertSpacing(this.h, (C.int)(index), (C.int)(size))
}
func (this *QBoxLayout) InsertStretch(index int) {
C.QBoxLayout_InsertStretch(this.h, (C.int)(index))
}
func (this *QBoxLayout) InsertSpacerItem(index int, spacerItem *QSpacerItem) {
C.QBoxLayout_InsertSpacerItem(this.h, (C.int)(index), spacerItem.cPointer())
}
func (this *QBoxLayout) InsertWidget(index int, widget *QWidget) {
C.QBoxLayout_InsertWidget(this.h, (C.int)(index), widget.cPointer())
}
func (this *QBoxLayout) InsertLayout(index int, layout *QLayout) {
C.QBoxLayout_InsertLayout(this.h, (C.int)(index), layout.cPointer())
}
func (this *QBoxLayout) InsertItem(index int, param2 *QLayoutItem) {
C.QBoxLayout_InsertItem(this.h, (C.int)(index), param2.cPointer())
}
func (this *QBoxLayout) Spacing() int {
return (int)(C.QBoxLayout_Spacing(this.h))
}
func (this *QBoxLayout) SetSpacing(spacing int) {
C.QBoxLayout_SetSpacing(this.h, (C.int)(spacing))
}
func (this *QBoxLayout) SetStretchFactor(w *QWidget, stretch int) bool {
return (bool)(C.QBoxLayout_SetStretchFactor(this.h, w.cPointer(), (C.int)(stretch)))
}
func (this *QBoxLayout) SetStretchFactor2(l *QLayout, stretch int) bool {
return (bool)(C.QBoxLayout_SetStretchFactor2(this.h, l.cPointer(), (C.int)(stretch)))
}
func (this *QBoxLayout) SetStretch(index int, stretch int) {
C.QBoxLayout_SetStretch(this.h, (C.int)(index), (C.int)(stretch))
}
func (this *QBoxLayout) Stretch(index int) int {
return (int)(C.QBoxLayout_Stretch(this.h, (C.int)(index)))
}
func (this *QBoxLayout) SizeHint() *QSize {
_goptr := newQSize(C.QBoxLayout_SizeHint(this.h))
2024-10-20 18:21:03 +13:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QBoxLayout) MinimumSize() *QSize {
_goptr := newQSize(C.QBoxLayout_MinimumSize(this.h))
2024-10-20 18:21:03 +13:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QBoxLayout) MaximumSize() *QSize {
_goptr := newQSize(C.QBoxLayout_MaximumSize(this.h))
2024-10-20 18:21:03 +13:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QBoxLayout) HasHeightForWidth() bool {
return (bool)(C.QBoxLayout_HasHeightForWidth(this.h))
}
func (this *QBoxLayout) HeightForWidth(param1 int) int {
return (int)(C.QBoxLayout_HeightForWidth(this.h, (C.int)(param1)))
}
func (this *QBoxLayout) MinimumHeightForWidth(param1 int) int {
return (int)(C.QBoxLayout_MinimumHeightForWidth(this.h, (C.int)(param1)))
}
func (this *QBoxLayout) ExpandingDirections() Orientation {
return (Orientation)(C.QBoxLayout_ExpandingDirections(this.h))
}
func (this *QBoxLayout) Invalidate() {
C.QBoxLayout_Invalidate(this.h)
}
func (this *QBoxLayout) ItemAt(param1 int) *QLayoutItem {
return newQLayoutItem(C.QBoxLayout_ItemAt(this.h, (C.int)(param1)))
2024-10-20 18:21:03 +13:00
}
func (this *QBoxLayout) TakeAt(param1 int) *QLayoutItem {
return newQLayoutItem(C.QBoxLayout_TakeAt(this.h, (C.int)(param1)))
2024-10-20 18:21:03 +13:00
}
func (this *QBoxLayout) Count() int {
return (int)(C.QBoxLayout_Count(this.h))
}
func (this *QBoxLayout) SetGeometry(geometry *QRect) {
C.QBoxLayout_SetGeometry(this.h, geometry.cPointer())
}
func QBoxLayout_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.QBoxLayout_Tr2(s_Cstring, c_Cstring)
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func QBoxLayout_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.QBoxLayout_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 *QBoxLayout) AddStretch1(stretch int) {
C.QBoxLayout_AddStretch1(this.h, (C.int)(stretch))
}
func (this *QBoxLayout) AddWidget2(param1 *QWidget, stretch int) {
C.QBoxLayout_AddWidget2(this.h, param1.cPointer(), (C.int)(stretch))
}
func (this *QBoxLayout) AddWidget3(param1 *QWidget, stretch int, alignment AlignmentFlag) {
C.QBoxLayout_AddWidget3(this.h, param1.cPointer(), (C.int)(stretch), (C.int)(alignment))
}
func (this *QBoxLayout) AddLayout2(layout *QLayout, stretch int) {
C.QBoxLayout_AddLayout2(this.h, layout.cPointer(), (C.int)(stretch))
}
func (this *QBoxLayout) InsertStretch2(index int, stretch int) {
C.QBoxLayout_InsertStretch2(this.h, (C.int)(index), (C.int)(stretch))
}
func (this *QBoxLayout) InsertWidget3(index int, widget *QWidget, stretch int) {
C.QBoxLayout_InsertWidget3(this.h, (C.int)(index), widget.cPointer(), (C.int)(stretch))
}
func (this *QBoxLayout) InsertWidget4(index int, widget *QWidget, stretch int, alignment AlignmentFlag) {
C.QBoxLayout_InsertWidget4(this.h, (C.int)(index), widget.cPointer(), (C.int)(stretch), (C.int)(alignment))
}
func (this *QBoxLayout) InsertLayout3(index int, layout *QLayout, stretch int) {
C.QBoxLayout_InsertLayout3(this.h, (C.int)(index), layout.cPointer(), (C.int)(stretch))
}
2024-11-19 19:29:06 +13:00
func (this *QBoxLayout) callVirtualBase_AddItem(param1 *QLayoutItem) {
C.QBoxLayout_virtualbase_AddItem(unsafe.Pointer(this.h), param1.cPointer())
}
func (this *QBoxLayout) OnAddItem(slot func(super func(param1 *QLayoutItem), param1 *QLayoutItem)) {
ok := C.QBoxLayout_override_virtual_AddItem(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
//export miqt_exec_callback_QBoxLayout_AddItem
func miqt_exec_callback_QBoxLayout_AddItem(self *C.QBoxLayout, cb C.intptr_t, param1 *C.QLayoutItem) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QLayoutItem), param1 *QLayoutItem))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQLayoutItem(param1)
2024-11-19 19:29:06 +13:00
gofunc((&QBoxLayout{h: self}).callVirtualBase_AddItem, slotval1)
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
func (this *QBoxLayout) callVirtualBase_Spacing() int {
return (int)(C.QBoxLayout_virtualbase_Spacing(unsafe.Pointer(this.h)))
}
func (this *QBoxLayout) OnSpacing(slot func(super func() int) int) {
ok := C.QBoxLayout_override_virtual_Spacing(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
//export miqt_exec_callback_QBoxLayout_Spacing
func miqt_exec_callback_QBoxLayout_Spacing(self *C.QBoxLayout, 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?)")
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
virtualReturn := gofunc((&QBoxLayout{h: self}).callVirtualBase_Spacing)
return (C.int)(virtualReturn)
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
func (this *QBoxLayout) callVirtualBase_SetSpacing(spacing int) {
C.QBoxLayout_virtualbase_SetSpacing(unsafe.Pointer(this.h), (C.int)(spacing))
}
func (this *QBoxLayout) OnSetSpacing(slot func(super func(spacing int), spacing int)) {
ok := C.QBoxLayout_override_virtual_SetSpacing(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QBoxLayout_SetSpacing
func miqt_exec_callback_QBoxLayout_SetSpacing(self *C.QBoxLayout, cb C.intptr_t, spacing C.int) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(spacing int), spacing int))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
// Convert all CABI parameters to Go parameters
slotval1 := (int)(spacing)
gofunc((&QBoxLayout{h: self}).callVirtualBase_SetSpacing, slotval1)
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
func (this *QBoxLayout) callVirtualBase_SizeHint() *QSize {
_goptr := newQSize(C.QBoxLayout_virtualbase_SizeHint(unsafe.Pointer(this.h)))
2024-11-19 19:29:06 +13:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QBoxLayout) OnSizeHint(slot func(super func() *QSize) *QSize) {
ok := C.QBoxLayout_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")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QBoxLayout_SizeHint
func miqt_exec_callback_QBoxLayout_SizeHint(self *C.QBoxLayout, 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?)")
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
virtualReturn := gofunc((&QBoxLayout{h: self}).callVirtualBase_SizeHint)
return virtualReturn.cPointer()
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
func (this *QBoxLayout) callVirtualBase_MinimumSize() *QSize {
_goptr := newQSize(C.QBoxLayout_virtualbase_MinimumSize(unsafe.Pointer(this.h)))
2024-11-19 19:29:06 +13:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QBoxLayout) OnMinimumSize(slot func(super func() *QSize) *QSize) {
ok := C.QBoxLayout_override_virtual_MinimumSize(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
//export miqt_exec_callback_QBoxLayout_MinimumSize
func miqt_exec_callback_QBoxLayout_MinimumSize(self *C.QBoxLayout, 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((&QBoxLayout{h: self}).callVirtualBase_MinimumSize)
return virtualReturn.cPointer()
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
func (this *QBoxLayout) callVirtualBase_MaximumSize() *QSize {
_goptr := newQSize(C.QBoxLayout_virtualbase_MaximumSize(unsafe.Pointer(this.h)))
2024-11-19 19:29:06 +13:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QBoxLayout) OnMaximumSize(slot func(super func() *QSize) *QSize) {
ok := C.QBoxLayout_override_virtual_MaximumSize(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
//export miqt_exec_callback_QBoxLayout_MaximumSize
func miqt_exec_callback_QBoxLayout_MaximumSize(self *C.QBoxLayout, 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((&QBoxLayout{h: self}).callVirtualBase_MaximumSize)
return virtualReturn.cPointer()
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
func (this *QBoxLayout) callVirtualBase_HasHeightForWidth() bool {
return (bool)(C.QBoxLayout_virtualbase_HasHeightForWidth(unsafe.Pointer(this.h)))
}
func (this *QBoxLayout) OnHasHeightForWidth(slot func(super func() bool) bool) {
ok := C.QBoxLayout_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")
}
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
//export miqt_exec_callback_QBoxLayout_HasHeightForWidth
func miqt_exec_callback_QBoxLayout_HasHeightForWidth(self *C.QBoxLayout, 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((&QBoxLayout{h: self}).callVirtualBase_HasHeightForWidth)
return (C.bool)(virtualReturn)
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
func (this *QBoxLayout) callVirtualBase_HeightForWidth(param1 int) int {
return (int)(C.QBoxLayout_virtualbase_HeightForWidth(unsafe.Pointer(this.h), (C.int)(param1)))
}
func (this *QBoxLayout) OnHeightForWidth(slot func(super func(param1 int) int, param1 int) int) {
ok := C.QBoxLayout_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")
}
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
//export miqt_exec_callback_QBoxLayout_HeightForWidth
func miqt_exec_callback_QBoxLayout_HeightForWidth(self *C.QBoxLayout, 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((&QBoxLayout{h: self}).callVirtualBase_HeightForWidth, slotval1)
return (C.int)(virtualReturn)
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
func (this *QBoxLayout) callVirtualBase_MinimumHeightForWidth(param1 int) int {
return (int)(C.QBoxLayout_virtualbase_MinimumHeightForWidth(unsafe.Pointer(this.h), (C.int)(param1)))
}
func (this *QBoxLayout) OnMinimumHeightForWidth(slot func(super func(param1 int) int, param1 int) int) {
ok := C.QBoxLayout_override_virtual_MinimumHeightForWidth(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
//export miqt_exec_callback_QBoxLayout_MinimumHeightForWidth
func miqt_exec_callback_QBoxLayout_MinimumHeightForWidth(self *C.QBoxLayout, 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((&QBoxLayout{h: self}).callVirtualBase_MinimumHeightForWidth, slotval1)
return (C.int)(virtualReturn)
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
func (this *QBoxLayout) callVirtualBase_ExpandingDirections() Orientation {
return (Orientation)(C.QBoxLayout_virtualbase_ExpandingDirections(unsafe.Pointer(this.h)))
}
func (this *QBoxLayout) OnExpandingDirections(slot func(super func() Orientation) Orientation) {
ok := C.QBoxLayout_override_virtual_ExpandingDirections(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
//export miqt_exec_callback_QBoxLayout_ExpandingDirections
func miqt_exec_callback_QBoxLayout_ExpandingDirections(self *C.QBoxLayout, cb C.intptr_t) C.int {
gofunc, ok := cgo.Handle(cb).Value().(func(super func() Orientation) Orientation)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
virtualReturn := gofunc((&QBoxLayout{h: self}).callVirtualBase_ExpandingDirections)
return (C.int)(virtualReturn)
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
func (this *QBoxLayout) callVirtualBase_Invalidate() {
C.QBoxLayout_virtualbase_Invalidate(unsafe.Pointer(this.h))
}
func (this *QBoxLayout) OnInvalidate(slot func(super func())) {
ok := C.QBoxLayout_override_virtual_Invalidate(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QBoxLayout_Invalidate
func miqt_exec_callback_QBoxLayout_Invalidate(self *C.QBoxLayout, cb C.intptr_t) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func()))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
gofunc((&QBoxLayout{h: self}).callVirtualBase_Invalidate)
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
func (this *QBoxLayout) callVirtualBase_ItemAt(param1 int) *QLayoutItem {
return newQLayoutItem(C.QBoxLayout_virtualbase_ItemAt(unsafe.Pointer(this.h), (C.int)(param1)))
2024-11-19 19:29:06 +13:00
}
func (this *QBoxLayout) OnItemAt(slot func(super func(param1 int) *QLayoutItem, param1 int) *QLayoutItem) {
ok := C.QBoxLayout_override_virtual_ItemAt(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QBoxLayout_ItemAt
func miqt_exec_callback_QBoxLayout_ItemAt(self *C.QBoxLayout, cb C.intptr_t, param1 C.int) *C.QLayoutItem {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 int) *QLayoutItem, param1 int) *QLayoutItem)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
// Convert all CABI parameters to Go parameters
slotval1 := (int)(param1)
virtualReturn := gofunc((&QBoxLayout{h: self}).callVirtualBase_ItemAt, slotval1)
return virtualReturn.cPointer()
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
func (this *QBoxLayout) callVirtualBase_TakeAt(param1 int) *QLayoutItem {
return newQLayoutItem(C.QBoxLayout_virtualbase_TakeAt(unsafe.Pointer(this.h), (C.int)(param1)))
2024-11-19 19:29:06 +13:00
}
func (this *QBoxLayout) OnTakeAt(slot func(super func(param1 int) *QLayoutItem, param1 int) *QLayoutItem) {
ok := C.QBoxLayout_override_virtual_TakeAt(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
//export miqt_exec_callback_QBoxLayout_TakeAt
func miqt_exec_callback_QBoxLayout_TakeAt(self *C.QBoxLayout, cb C.intptr_t, param1 C.int) *C.QLayoutItem {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 int) *QLayoutItem, param1 int) *QLayoutItem)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (int)(param1)
virtualReturn := gofunc((&QBoxLayout{h: self}).callVirtualBase_TakeAt, slotval1)
return virtualReturn.cPointer()
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
func (this *QBoxLayout) callVirtualBase_Count() int {
return (int)(C.QBoxLayout_virtualbase_Count(unsafe.Pointer(this.h)))
}
func (this *QBoxLayout) OnCount(slot func(super func() int) int) {
ok := C.QBoxLayout_override_virtual_Count(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
//export miqt_exec_callback_QBoxLayout_Count
func miqt_exec_callback_QBoxLayout_Count(self *C.QBoxLayout, 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((&QBoxLayout{h: self}).callVirtualBase_Count)
return (C.int)(virtualReturn)
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
func (this *QBoxLayout) callVirtualBase_SetGeometry(geometry *QRect) {
C.QBoxLayout_virtualbase_SetGeometry(unsafe.Pointer(this.h), geometry.cPointer())
}
func (this *QBoxLayout) OnSetGeometry(slot func(super func(geometry *QRect), geometry *QRect)) {
ok := C.QBoxLayout_override_virtual_SetGeometry(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
//export miqt_exec_callback_QBoxLayout_SetGeometry
func miqt_exec_callback_QBoxLayout_SetGeometry(self *C.QBoxLayout, cb C.intptr_t, geometry *C.QRect) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(geometry *QRect), geometry *QRect))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQRect(geometry)
2024-11-19 19:29:06 +13:00
gofunc((&QBoxLayout{h: self}).callVirtualBase_SetGeometry, slotval1)
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
func (this *QBoxLayout) callVirtualBase_Geometry() *QRect {
_goptr := newQRect(C.QBoxLayout_virtualbase_Geometry(unsafe.Pointer(this.h)))
2024-11-19 19:29:06 +13:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QBoxLayout) OnGeometry(slot func(super func() *QRect) *QRect) {
ok := C.QBoxLayout_override_virtual_Geometry(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-10-20 18:21:03 +13:00
}
2024-11-19 19:29:06 +13:00
//export miqt_exec_callback_QBoxLayout_Geometry
func miqt_exec_callback_QBoxLayout_Geometry(self *C.QBoxLayout, cb C.intptr_t) *C.QRect {
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QRect) *QRect)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
virtualReturn := gofunc((&QBoxLayout{h: self}).callVirtualBase_Geometry)
return virtualReturn.cPointer()
}
func (this *QBoxLayout) callVirtualBase_IndexOf(param1 *QWidget) int {
return (int)(C.QBoxLayout_virtualbase_IndexOf(unsafe.Pointer(this.h), param1.cPointer()))
}
func (this *QBoxLayout) OnIndexOf(slot func(super func(param1 *QWidget) int, param1 *QWidget) int) {
ok := C.QBoxLayout_override_virtual_IndexOf(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QBoxLayout_IndexOf
func miqt_exec_callback_QBoxLayout_IndexOf(self *C.QBoxLayout, cb C.intptr_t, param1 *C.QWidget) C.int {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QWidget) int, param1 *QWidget) int)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
2024-12-07 17:15:57 +13:00
slotval1 := newQWidget(param1)
2024-11-19 19:29:06 +13:00
virtualReturn := gofunc((&QBoxLayout{h: self}).callVirtualBase_IndexOf, slotval1)
return (C.int)(virtualReturn)
}
func (this *QBoxLayout) callVirtualBase_IsEmpty() bool {
return (bool)(C.QBoxLayout_virtualbase_IsEmpty(unsafe.Pointer(this.h)))
}
func (this *QBoxLayout) OnIsEmpty(slot func(super func() bool) bool) {
ok := C.QBoxLayout_override_virtual_IsEmpty(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QBoxLayout_IsEmpty
func miqt_exec_callback_QBoxLayout_IsEmpty(self *C.QBoxLayout, 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((&QBoxLayout{h: self}).callVirtualBase_IsEmpty)
return (C.bool)(virtualReturn)
}
func (this *QBoxLayout) callVirtualBase_ControlTypes() QSizePolicy__ControlType {
return (QSizePolicy__ControlType)(C.QBoxLayout_virtualbase_ControlTypes(unsafe.Pointer(this.h)))
}
func (this *QBoxLayout) OnControlTypes(slot func(super func() QSizePolicy__ControlType) QSizePolicy__ControlType) {
ok := C.QBoxLayout_override_virtual_ControlTypes(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QBoxLayout_ControlTypes
func miqt_exec_callback_QBoxLayout_ControlTypes(self *C.QBoxLayout, cb C.intptr_t) C.int {
gofunc, ok := cgo.Handle(cb).Value().(func(super func() QSizePolicy__ControlType) QSizePolicy__ControlType)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
virtualReturn := gofunc((&QBoxLayout{h: self}).callVirtualBase_ControlTypes)
return (C.int)(virtualReturn)
}
func (this *QBoxLayout) callVirtualBase_ReplaceWidget(from *QWidget, to *QWidget, options FindChildOption) *QLayoutItem {
return newQLayoutItem(C.QBoxLayout_virtualbase_ReplaceWidget(unsafe.Pointer(this.h), from.cPointer(), to.cPointer(), (C.int)(options)))
2024-11-19 19:29:06 +13:00
}
func (this *QBoxLayout) OnReplaceWidget(slot func(super func(from *QWidget, to *QWidget, options FindChildOption) *QLayoutItem, from *QWidget, to *QWidget, options FindChildOption) *QLayoutItem) {
ok := C.QBoxLayout_override_virtual_ReplaceWidget(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QBoxLayout_ReplaceWidget
func miqt_exec_callback_QBoxLayout_ReplaceWidget(self *C.QBoxLayout, cb C.intptr_t, from *C.QWidget, to *C.QWidget, options C.int) *C.QLayoutItem {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(from *QWidget, to *QWidget, options FindChildOption) *QLayoutItem, from *QWidget, to *QWidget, options FindChildOption) *QLayoutItem)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
2024-12-07 17:15:57 +13:00
slotval1 := newQWidget(from)
2024-12-07 17:15:57 +13:00
slotval2 := newQWidget(to)
2024-11-19 19:29:06 +13:00
slotval3 := (FindChildOption)(options)
virtualReturn := gofunc((&QBoxLayout{h: self}).callVirtualBase_ReplaceWidget, slotval1, slotval2, slotval3)
return virtualReturn.cPointer()
}
func (this *QBoxLayout) callVirtualBase_Layout() *QLayout {
2024-12-07 17:15:57 +13:00
return newQLayout(C.QBoxLayout_virtualbase_Layout(unsafe.Pointer(this.h)))
2024-11-19 19:29:06 +13:00
}
func (this *QBoxLayout) OnLayout(slot func(super func() *QLayout) *QLayout) {
ok := C.QBoxLayout_override_virtual_Layout(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QBoxLayout_Layout
func miqt_exec_callback_QBoxLayout_Layout(self *C.QBoxLayout, cb C.intptr_t) *C.QLayout {
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QLayout) *QLayout)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
virtualReturn := gofunc((&QBoxLayout{h: self}).callVirtualBase_Layout)
return virtualReturn.cPointer()
}
func (this *QBoxLayout) callVirtualBase_ChildEvent(e *QChildEvent) {
C.QBoxLayout_virtualbase_ChildEvent(unsafe.Pointer(this.h), e.cPointer())
}
func (this *QBoxLayout) OnChildEvent(slot func(super func(e *QChildEvent), e *QChildEvent)) {
ok := C.QBoxLayout_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")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QBoxLayout_ChildEvent
func miqt_exec_callback_QBoxLayout_ChildEvent(self *C.QBoxLayout, cb C.intptr_t, e *C.QChildEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(e *QChildEvent), e *QChildEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
2024-12-07 17:15:57 +13:00
slotval1 := newQChildEvent(e)
2024-11-19 19:29:06 +13:00
gofunc((&QBoxLayout{h: self}).callVirtualBase_ChildEvent, slotval1)
}
func (this *QBoxLayout) callVirtualBase_Event(event *QEvent) bool {
return (bool)(C.QBoxLayout_virtualbase_Event(unsafe.Pointer(this.h), event.cPointer()))
}
func (this *QBoxLayout) OnEvent(slot func(super func(event *QEvent) bool, event *QEvent) bool) {
ok := C.QBoxLayout_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_QBoxLayout_Event
func miqt_exec_callback_QBoxLayout_Event(self *C.QBoxLayout, cb C.intptr_t, event *C.QEvent) C.bool {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QEvent) bool, event *QEvent) bool)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQEvent(event)
virtualReturn := gofunc((&QBoxLayout{h: self}).callVirtualBase_Event, slotval1)
return (C.bool)(virtualReturn)
}
func (this *QBoxLayout) callVirtualBase_EventFilter(watched *QObject, event *QEvent) bool {
return (bool)(C.QBoxLayout_virtualbase_EventFilter(unsafe.Pointer(this.h), watched.cPointer(), event.cPointer()))
}
func (this *QBoxLayout) OnEventFilter(slot func(super func(watched *QObject, event *QEvent) bool, watched *QObject, event *QEvent) bool) {
ok := C.QBoxLayout_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_QBoxLayout_EventFilter
func miqt_exec_callback_QBoxLayout_EventFilter(self *C.QBoxLayout, cb C.intptr_t, watched *C.QObject, event *C.QEvent) C.bool {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(watched *QObject, event *QEvent) bool, watched *QObject, event *QEvent) bool)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQObject(watched)
slotval2 := newQEvent(event)
virtualReturn := gofunc((&QBoxLayout{h: self}).callVirtualBase_EventFilter, slotval1, slotval2)
return (C.bool)(virtualReturn)
}
func (this *QBoxLayout) callVirtualBase_TimerEvent(event *QTimerEvent) {
C.QBoxLayout_virtualbase_TimerEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QBoxLayout) OnTimerEvent(slot func(super func(event *QTimerEvent), event *QTimerEvent)) {
ok := C.QBoxLayout_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_QBoxLayout_TimerEvent
func miqt_exec_callback_QBoxLayout_TimerEvent(self *C.QBoxLayout, 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((&QBoxLayout{h: self}).callVirtualBase_TimerEvent, slotval1)
}
func (this *QBoxLayout) callVirtualBase_CustomEvent(event *QEvent) {
C.QBoxLayout_virtualbase_CustomEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QBoxLayout) OnCustomEvent(slot func(super func(event *QEvent), event *QEvent)) {
ok := C.QBoxLayout_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_QBoxLayout_CustomEvent
func miqt_exec_callback_QBoxLayout_CustomEvent(self *C.QBoxLayout, 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((&QBoxLayout{h: self}).callVirtualBase_CustomEvent, slotval1)
}
func (this *QBoxLayout) callVirtualBase_ConnectNotify(signal *QMetaMethod) {
C.QBoxLayout_virtualbase_ConnectNotify(unsafe.Pointer(this.h), signal.cPointer())
}
func (this *QBoxLayout) OnConnectNotify(slot func(super func(signal *QMetaMethod), signal *QMetaMethod)) {
ok := C.QBoxLayout_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_QBoxLayout_ConnectNotify
func miqt_exec_callback_QBoxLayout_ConnectNotify(self *C.QBoxLayout, 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((&QBoxLayout{h: self}).callVirtualBase_ConnectNotify, slotval1)
}
func (this *QBoxLayout) callVirtualBase_DisconnectNotify(signal *QMetaMethod) {
C.QBoxLayout_virtualbase_DisconnectNotify(unsafe.Pointer(this.h), signal.cPointer())
}
func (this *QBoxLayout) OnDisconnectNotify(slot func(super func(signal *QMetaMethod), signal *QMetaMethod)) {
ok := C.QBoxLayout_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_QBoxLayout_DisconnectNotify
func miqt_exec_callback_QBoxLayout_DisconnectNotify(self *C.QBoxLayout, 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((&QBoxLayout{h: self}).callVirtualBase_DisconnectNotify, slotval1)
}
func (this *QBoxLayout) callVirtualBase_Widget() *QWidget {
return newQWidget(C.QBoxLayout_virtualbase_Widget(unsafe.Pointer(this.h)))
}
func (this *QBoxLayout) OnWidget(slot func(super func() *QWidget) *QWidget) {
ok := C.QBoxLayout_override_virtual_Widget(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_QBoxLayout_Widget
func miqt_exec_callback_QBoxLayout_Widget(self *C.QBoxLayout, cb C.intptr_t) *C.QWidget {
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QWidget) *QWidget)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
virtualReturn := gofunc((&QBoxLayout{h: self}).callVirtualBase_Widget)
return virtualReturn.cPointer()
}
func (this *QBoxLayout) callVirtualBase_SpacerItem() *QSpacerItem {
return newQSpacerItem(C.QBoxLayout_virtualbase_SpacerItem(unsafe.Pointer(this.h)))
}
func (this *QBoxLayout) OnSpacerItem(slot func(super func() *QSpacerItem) *QSpacerItem) {
ok := C.QBoxLayout_override_virtual_SpacerItem(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_QBoxLayout_SpacerItem
func miqt_exec_callback_QBoxLayout_SpacerItem(self *C.QBoxLayout, cb C.intptr_t) *C.QSpacerItem {
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QSpacerItem) *QSpacerItem)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
virtualReturn := gofunc((&QBoxLayout{h: self}).callVirtualBase_SpacerItem)
return virtualReturn.cPointer()
}
2024-11-19 19:29:06 +13:00
// Delete this object from C++ memory.
func (this *QBoxLayout) Delete() {
C.QBoxLayout_Delete(this.h)
2024-11-19 19:29:06 +13:00
}
// 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 *QBoxLayout) GoGC() {
runtime.SetFinalizer(this, func(this *QBoxLayout) {
this.Delete()
runtime.KeepAlive(this.h)
})
}
type QHBoxLayout struct {
h *C.QHBoxLayout
2024-11-19 19:29:06 +13:00
*QBoxLayout
}
func (this *QHBoxLayout) cPointer() *C.QHBoxLayout {
if this == nil {
return nil
}
return this.h
}
func (this *QHBoxLayout) UnsafePointer() unsafe.Pointer {
if this == nil {
return nil
}
return unsafe.Pointer(this.h)
}
// newQHBoxLayout constructs the type using only CGO pointers.
2024-12-07 17:15:57 +13:00
func newQHBoxLayout(h *C.QHBoxLayout) *QHBoxLayout {
2024-11-19 19:29:06 +13:00
if h == nil {
return nil
}
2024-12-07 17:15:57 +13:00
var outptr_QBoxLayout *C.QBoxLayout = nil
C.QHBoxLayout_virtbase(h, &outptr_QBoxLayout)
2024-11-19 19:29:06 +13:00
return &QHBoxLayout{h: h,
2024-12-07 17:15:57 +13:00
QBoxLayout: newQBoxLayout(outptr_QBoxLayout)}
2024-11-19 19:29:06 +13:00
}
// UnsafeNewQHBoxLayout constructs the type using only unsafe pointers.
2024-12-07 17:15:57 +13:00
func UnsafeNewQHBoxLayout(h unsafe.Pointer) *QHBoxLayout {
return newQHBoxLayout((*C.QHBoxLayout)(h))
2024-11-19 19:29:06 +13:00
}
// NewQHBoxLayout constructs a new QHBoxLayout object.
func NewQHBoxLayout(parent *QWidget) *QHBoxLayout {
return newQHBoxLayout(C.QHBoxLayout_new(parent.cPointer()))
2024-11-19 19:29:06 +13:00
}
// NewQHBoxLayout2 constructs a new QHBoxLayout object.
func NewQHBoxLayout2() *QHBoxLayout {
return newQHBoxLayout(C.QHBoxLayout_new2())
2024-11-19 19:29:06 +13:00
}
func (this *QHBoxLayout) MetaObject() *QMetaObject {
return newQMetaObject(C.QHBoxLayout_MetaObject(this.h))
2024-11-19 19:29:06 +13:00
}
func (this *QHBoxLayout) Metacast(param1 string) unsafe.Pointer {
param1_Cstring := C.CString(param1)
defer C.free(unsafe.Pointer(param1_Cstring))
return (unsafe.Pointer)(C.QHBoxLayout_Metacast(this.h, param1_Cstring))
}
func QHBoxLayout_Tr(s string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
var _ms C.struct_miqt_string = C.QHBoxLayout_Tr(s_Cstring)
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func QHBoxLayout_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.QHBoxLayout_Tr2(s_Cstring, c_Cstring)
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func QHBoxLayout_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.QHBoxLayout_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 *QHBoxLayout) callVirtualBase_AddItem(param1 *QLayoutItem) {
C.QHBoxLayout_virtualbase_AddItem(unsafe.Pointer(this.h), param1.cPointer())
}
func (this *QHBoxLayout) OnAddItem(slot func(super func(param1 *QLayoutItem), param1 *QLayoutItem)) {
ok := C.QHBoxLayout_override_virtual_AddItem(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QHBoxLayout_AddItem
func miqt_exec_callback_QHBoxLayout_AddItem(self *C.QHBoxLayout, cb C.intptr_t, param1 *C.QLayoutItem) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QLayoutItem), param1 *QLayoutItem))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQLayoutItem(param1)
2024-11-19 19:29:06 +13:00
gofunc((&QHBoxLayout{h: self}).callVirtualBase_AddItem, slotval1)
}
func (this *QHBoxLayout) callVirtualBase_Spacing() int {
return (int)(C.QHBoxLayout_virtualbase_Spacing(unsafe.Pointer(this.h)))
}
func (this *QHBoxLayout) OnSpacing(slot func(super func() int) int) {
ok := C.QHBoxLayout_override_virtual_Spacing(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QHBoxLayout_Spacing
func miqt_exec_callback_QHBoxLayout_Spacing(self *C.QHBoxLayout, 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((&QHBoxLayout{h: self}).callVirtualBase_Spacing)
return (C.int)(virtualReturn)
}
func (this *QHBoxLayout) callVirtualBase_SetSpacing(spacing int) {
C.QHBoxLayout_virtualbase_SetSpacing(unsafe.Pointer(this.h), (C.int)(spacing))
}
func (this *QHBoxLayout) OnSetSpacing(slot func(super func(spacing int), spacing int)) {
ok := C.QHBoxLayout_override_virtual_SetSpacing(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QHBoxLayout_SetSpacing
func miqt_exec_callback_QHBoxLayout_SetSpacing(self *C.QHBoxLayout, cb C.intptr_t, spacing C.int) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(spacing int), spacing int))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (int)(spacing)
gofunc((&QHBoxLayout{h: self}).callVirtualBase_SetSpacing, slotval1)
}
func (this *QHBoxLayout) callVirtualBase_SizeHint() *QSize {
_goptr := newQSize(C.QHBoxLayout_virtualbase_SizeHint(unsafe.Pointer(this.h)))
2024-11-19 19:29:06 +13:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QHBoxLayout) OnSizeHint(slot func(super func() *QSize) *QSize) {
ok := C.QHBoxLayout_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")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QHBoxLayout_SizeHint
func miqt_exec_callback_QHBoxLayout_SizeHint(self *C.QHBoxLayout, 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((&QHBoxLayout{h: self}).callVirtualBase_SizeHint)
return virtualReturn.cPointer()
}
func (this *QHBoxLayout) callVirtualBase_MinimumSize() *QSize {
_goptr := newQSize(C.QHBoxLayout_virtualbase_MinimumSize(unsafe.Pointer(this.h)))
2024-11-19 19:29:06 +13:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QHBoxLayout) OnMinimumSize(slot func(super func() *QSize) *QSize) {
ok := C.QHBoxLayout_override_virtual_MinimumSize(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QHBoxLayout_MinimumSize
func miqt_exec_callback_QHBoxLayout_MinimumSize(self *C.QHBoxLayout, 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((&QHBoxLayout{h: self}).callVirtualBase_MinimumSize)
return virtualReturn.cPointer()
}
func (this *QHBoxLayout) callVirtualBase_MaximumSize() *QSize {
_goptr := newQSize(C.QHBoxLayout_virtualbase_MaximumSize(unsafe.Pointer(this.h)))
2024-11-19 19:29:06 +13:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QHBoxLayout) OnMaximumSize(slot func(super func() *QSize) *QSize) {
ok := C.QHBoxLayout_override_virtual_MaximumSize(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QHBoxLayout_MaximumSize
func miqt_exec_callback_QHBoxLayout_MaximumSize(self *C.QHBoxLayout, 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((&QHBoxLayout{h: self}).callVirtualBase_MaximumSize)
return virtualReturn.cPointer()
}
func (this *QHBoxLayout) callVirtualBase_HasHeightForWidth() bool {
return (bool)(C.QHBoxLayout_virtualbase_HasHeightForWidth(unsafe.Pointer(this.h)))
}
func (this *QHBoxLayout) OnHasHeightForWidth(slot func(super func() bool) bool) {
ok := C.QHBoxLayout_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")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QHBoxLayout_HasHeightForWidth
func miqt_exec_callback_QHBoxLayout_HasHeightForWidth(self *C.QHBoxLayout, 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((&QHBoxLayout{h: self}).callVirtualBase_HasHeightForWidth)
return (C.bool)(virtualReturn)
}
func (this *QHBoxLayout) callVirtualBase_HeightForWidth(param1 int) int {
return (int)(C.QHBoxLayout_virtualbase_HeightForWidth(unsafe.Pointer(this.h), (C.int)(param1)))
}
func (this *QHBoxLayout) OnHeightForWidth(slot func(super func(param1 int) int, param1 int) int) {
ok := C.QHBoxLayout_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")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QHBoxLayout_HeightForWidth
func miqt_exec_callback_QHBoxLayout_HeightForWidth(self *C.QHBoxLayout, 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((&QHBoxLayout{h: self}).callVirtualBase_HeightForWidth, slotval1)
return (C.int)(virtualReturn)
}
func (this *QHBoxLayout) callVirtualBase_MinimumHeightForWidth(param1 int) int {
return (int)(C.QHBoxLayout_virtualbase_MinimumHeightForWidth(unsafe.Pointer(this.h), (C.int)(param1)))
}
func (this *QHBoxLayout) OnMinimumHeightForWidth(slot func(super func(param1 int) int, param1 int) int) {
ok := C.QHBoxLayout_override_virtual_MinimumHeightForWidth(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QHBoxLayout_MinimumHeightForWidth
func miqt_exec_callback_QHBoxLayout_MinimumHeightForWidth(self *C.QHBoxLayout, 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((&QHBoxLayout{h: self}).callVirtualBase_MinimumHeightForWidth, slotval1)
return (C.int)(virtualReturn)
}
func (this *QHBoxLayout) callVirtualBase_ExpandingDirections() Orientation {
return (Orientation)(C.QHBoxLayout_virtualbase_ExpandingDirections(unsafe.Pointer(this.h)))
}
func (this *QHBoxLayout) OnExpandingDirections(slot func(super func() Orientation) Orientation) {
ok := C.QHBoxLayout_override_virtual_ExpandingDirections(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QHBoxLayout_ExpandingDirections
func miqt_exec_callback_QHBoxLayout_ExpandingDirections(self *C.QHBoxLayout, cb C.intptr_t) C.int {
gofunc, ok := cgo.Handle(cb).Value().(func(super func() Orientation) Orientation)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
virtualReturn := gofunc((&QHBoxLayout{h: self}).callVirtualBase_ExpandingDirections)
return (C.int)(virtualReturn)
}
func (this *QHBoxLayout) callVirtualBase_Invalidate() {
C.QHBoxLayout_virtualbase_Invalidate(unsafe.Pointer(this.h))
}
func (this *QHBoxLayout) OnInvalidate(slot func(super func())) {
ok := C.QHBoxLayout_override_virtual_Invalidate(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QHBoxLayout_Invalidate
func miqt_exec_callback_QHBoxLayout_Invalidate(self *C.QHBoxLayout, cb C.intptr_t) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func()))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
gofunc((&QHBoxLayout{h: self}).callVirtualBase_Invalidate)
}
func (this *QHBoxLayout) callVirtualBase_ItemAt(param1 int) *QLayoutItem {
return newQLayoutItem(C.QHBoxLayout_virtualbase_ItemAt(unsafe.Pointer(this.h), (C.int)(param1)))
2024-11-19 19:29:06 +13:00
}
func (this *QHBoxLayout) OnItemAt(slot func(super func(param1 int) *QLayoutItem, param1 int) *QLayoutItem) {
ok := C.QHBoxLayout_override_virtual_ItemAt(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QHBoxLayout_ItemAt
func miqt_exec_callback_QHBoxLayout_ItemAt(self *C.QHBoxLayout, cb C.intptr_t, param1 C.int) *C.QLayoutItem {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 int) *QLayoutItem, param1 int) *QLayoutItem)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (int)(param1)
virtualReturn := gofunc((&QHBoxLayout{h: self}).callVirtualBase_ItemAt, slotval1)
return virtualReturn.cPointer()
}
func (this *QHBoxLayout) callVirtualBase_TakeAt(param1 int) *QLayoutItem {
return newQLayoutItem(C.QHBoxLayout_virtualbase_TakeAt(unsafe.Pointer(this.h), (C.int)(param1)))
2024-11-19 19:29:06 +13:00
}
func (this *QHBoxLayout) OnTakeAt(slot func(super func(param1 int) *QLayoutItem, param1 int) *QLayoutItem) {
ok := C.QHBoxLayout_override_virtual_TakeAt(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QHBoxLayout_TakeAt
func miqt_exec_callback_QHBoxLayout_TakeAt(self *C.QHBoxLayout, cb C.intptr_t, param1 C.int) *C.QLayoutItem {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 int) *QLayoutItem, param1 int) *QLayoutItem)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (int)(param1)
virtualReturn := gofunc((&QHBoxLayout{h: self}).callVirtualBase_TakeAt, slotval1)
return virtualReturn.cPointer()
}
func (this *QHBoxLayout) callVirtualBase_Count() int {
return (int)(C.QHBoxLayout_virtualbase_Count(unsafe.Pointer(this.h)))
}
func (this *QHBoxLayout) OnCount(slot func(super func() int) int) {
ok := C.QHBoxLayout_override_virtual_Count(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QHBoxLayout_Count
func miqt_exec_callback_QHBoxLayout_Count(self *C.QHBoxLayout, 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((&QHBoxLayout{h: self}).callVirtualBase_Count)
return (C.int)(virtualReturn)
}
func (this *QHBoxLayout) callVirtualBase_SetGeometry(geometry *QRect) {
C.QHBoxLayout_virtualbase_SetGeometry(unsafe.Pointer(this.h), geometry.cPointer())
}
func (this *QHBoxLayout) OnSetGeometry(slot func(super func(geometry *QRect), geometry *QRect)) {
ok := C.QHBoxLayout_override_virtual_SetGeometry(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QHBoxLayout_SetGeometry
func miqt_exec_callback_QHBoxLayout_SetGeometry(self *C.QHBoxLayout, cb C.intptr_t, geometry *C.QRect) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(geometry *QRect), geometry *QRect))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQRect(geometry)
2024-11-19 19:29:06 +13:00
gofunc((&QHBoxLayout{h: self}).callVirtualBase_SetGeometry, slotval1)
}
func (this *QHBoxLayout) callVirtualBase_Geometry() *QRect {
2024-11-19 19:29:06 +13:00
_goptr := newQRect(C.QHBoxLayout_virtualbase_Geometry(unsafe.Pointer(this.h)))
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
2024-11-19 19:29:06 +13:00
}
func (this *QHBoxLayout) OnGeometry(slot func(super func() *QRect) *QRect) {
ok := C.QHBoxLayout_override_virtual_Geometry(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
2024-11-19 19:29:06 +13:00
}
}
//export miqt_exec_callback_QHBoxLayout_Geometry
func miqt_exec_callback_QHBoxLayout_Geometry(self *C.QHBoxLayout, cb C.intptr_t) *C.QRect {
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QRect) *QRect)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
2024-11-19 19:29:06 +13:00
}
virtualReturn := gofunc((&QHBoxLayout{h: self}).callVirtualBase_Geometry)
2024-12-07 17:15:57 +13:00
return virtualReturn.cPointer()
2024-11-19 19:29:06 +13:00
}
func (this *QHBoxLayout) callVirtualBase_IndexOf(param1 *QWidget) int {
2024-11-19 19:29:06 +13:00
return (int)(C.QHBoxLayout_virtualbase_IndexOf(unsafe.Pointer(this.h), param1.cPointer()))
2024-11-19 19:29:06 +13:00
}
func (this *QHBoxLayout) OnIndexOf(slot func(super func(param1 *QWidget) int, param1 *QWidget) int) {
ok := C.QHBoxLayout_override_virtual_IndexOf(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QHBoxLayout_IndexOf
func miqt_exec_callback_QHBoxLayout_IndexOf(self *C.QHBoxLayout, cb C.intptr_t, param1 *C.QWidget) C.int {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QWidget) int, param1 *QWidget) int)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
2024-11-19 19:29:06 +13:00
// Convert all CABI parameters to Go parameters
slotval1 := newQWidget(param1)
2024-11-19 19:29:06 +13:00
virtualReturn := gofunc((&QHBoxLayout{h: self}).callVirtualBase_IndexOf, slotval1)
return (C.int)(virtualReturn)
2024-11-19 19:29:06 +13:00
}
func (this *QHBoxLayout) callVirtualBase_IsEmpty() bool {
2024-11-19 19:29:06 +13:00
return (bool)(C.QHBoxLayout_virtualbase_IsEmpty(unsafe.Pointer(this.h)))
2024-11-19 19:29:06 +13:00
}
func (this *QHBoxLayout) OnIsEmpty(slot func(super func() bool) bool) {
ok := C.QHBoxLayout_override_virtual_IsEmpty(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QHBoxLayout_IsEmpty
func miqt_exec_callback_QHBoxLayout_IsEmpty(self *C.QHBoxLayout, cb C.intptr_t) C.bool {
gofunc, ok := cgo.Handle(cb).Value().(func(super func() bool) bool)
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
virtualReturn := gofunc((&QHBoxLayout{h: self}).callVirtualBase_IsEmpty)
2024-11-19 19:29:06 +13:00
return (C.bool)(virtualReturn)
2024-11-19 19:29:06 +13:00
}
func (this *QHBoxLayout) callVirtualBase_ControlTypes() QSizePolicy__ControlType {
2024-11-19 19:29:06 +13:00
return (QSizePolicy__ControlType)(C.QHBoxLayout_virtualbase_ControlTypes(unsafe.Pointer(this.h)))
2024-11-19 19:29:06 +13:00
}
func (this *QHBoxLayout) OnControlTypes(slot func(super func() QSizePolicy__ControlType) QSizePolicy__ControlType) {
ok := C.QHBoxLayout_override_virtual_ControlTypes(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_QHBoxLayout_ControlTypes
func miqt_exec_callback_QHBoxLayout_ControlTypes(self *C.QHBoxLayout, cb C.intptr_t) C.int {
gofunc, ok := cgo.Handle(cb).Value().(func(super func() QSizePolicy__ControlType) QSizePolicy__ControlType)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
virtualReturn := gofunc((&QHBoxLayout{h: self}).callVirtualBase_ControlTypes)
return (C.int)(virtualReturn)
}
func (this *QHBoxLayout) callVirtualBase_ReplaceWidget(from *QWidget, to *QWidget, options FindChildOption) *QLayoutItem {
return newQLayoutItem(C.QHBoxLayout_virtualbase_ReplaceWidget(unsafe.Pointer(this.h), from.cPointer(), to.cPointer(), (C.int)(options)))
}
func (this *QHBoxLayout) OnReplaceWidget(slot func(super func(from *QWidget, to *QWidget, options FindChildOption) *QLayoutItem, from *QWidget, to *QWidget, options FindChildOption) *QLayoutItem) {
ok := C.QHBoxLayout_override_virtual_ReplaceWidget(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_QHBoxLayout_ReplaceWidget
func miqt_exec_callback_QHBoxLayout_ReplaceWidget(self *C.QHBoxLayout, cb C.intptr_t, from *C.QWidget, to *C.QWidget, options C.int) *C.QLayoutItem {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(from *QWidget, to *QWidget, options FindChildOption) *QLayoutItem, from *QWidget, to *QWidget, options FindChildOption) *QLayoutItem)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQWidget(from)
slotval2 := newQWidget(to)
slotval3 := (FindChildOption)(options)
virtualReturn := gofunc((&QHBoxLayout{h: self}).callVirtualBase_ReplaceWidget, slotval1, slotval2, slotval3)
return virtualReturn.cPointer()
}
func (this *QHBoxLayout) callVirtualBase_Layout() *QLayout {
return newQLayout(C.QHBoxLayout_virtualbase_Layout(unsafe.Pointer(this.h)))
}
func (this *QHBoxLayout) OnLayout(slot func(super func() *QLayout) *QLayout) {
ok := C.QHBoxLayout_override_virtual_Layout(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_QHBoxLayout_Layout
func miqt_exec_callback_QHBoxLayout_Layout(self *C.QHBoxLayout, cb C.intptr_t) *C.QLayout {
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QLayout) *QLayout)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
virtualReturn := gofunc((&QHBoxLayout{h: self}).callVirtualBase_Layout)
return virtualReturn.cPointer()
}
func (this *QHBoxLayout) callVirtualBase_ChildEvent(e *QChildEvent) {
C.QHBoxLayout_virtualbase_ChildEvent(unsafe.Pointer(this.h), e.cPointer())
}
func (this *QHBoxLayout) OnChildEvent(slot func(super func(e *QChildEvent), e *QChildEvent)) {
ok := C.QHBoxLayout_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_QHBoxLayout_ChildEvent
func miqt_exec_callback_QHBoxLayout_ChildEvent(self *C.QHBoxLayout, cb C.intptr_t, e *C.QChildEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(e *QChildEvent), e *QChildEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQChildEvent(e)
gofunc((&QHBoxLayout{h: self}).callVirtualBase_ChildEvent, slotval1)
}
func (this *QHBoxLayout) callVirtualBase_Event(event *QEvent) bool {
return (bool)(C.QHBoxLayout_virtualbase_Event(unsafe.Pointer(this.h), event.cPointer()))
}
func (this *QHBoxLayout) OnEvent(slot func(super func(event *QEvent) bool, event *QEvent) bool) {
ok := C.QHBoxLayout_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_QHBoxLayout_Event
func miqt_exec_callback_QHBoxLayout_Event(self *C.QHBoxLayout, cb C.intptr_t, event *C.QEvent) C.bool {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QEvent) bool, event *QEvent) bool)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQEvent(event)
virtualReturn := gofunc((&QHBoxLayout{h: self}).callVirtualBase_Event, slotval1)
return (C.bool)(virtualReturn)
}
func (this *QHBoxLayout) callVirtualBase_EventFilter(watched *QObject, event *QEvent) bool {
return (bool)(C.QHBoxLayout_virtualbase_EventFilter(unsafe.Pointer(this.h), watched.cPointer(), event.cPointer()))
}
func (this *QHBoxLayout) OnEventFilter(slot func(super func(watched *QObject, event *QEvent) bool, watched *QObject, event *QEvent) bool) {
ok := C.QHBoxLayout_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_QHBoxLayout_EventFilter
func miqt_exec_callback_QHBoxLayout_EventFilter(self *C.QHBoxLayout, cb C.intptr_t, watched *C.QObject, event *C.QEvent) C.bool {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(watched *QObject, event *QEvent) bool, watched *QObject, event *QEvent) bool)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQObject(watched)
slotval2 := newQEvent(event)
virtualReturn := gofunc((&QHBoxLayout{h: self}).callVirtualBase_EventFilter, slotval1, slotval2)
return (C.bool)(virtualReturn)
}
func (this *QHBoxLayout) callVirtualBase_TimerEvent(event *QTimerEvent) {
C.QHBoxLayout_virtualbase_TimerEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QHBoxLayout) OnTimerEvent(slot func(super func(event *QTimerEvent), event *QTimerEvent)) {
ok := C.QHBoxLayout_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_QHBoxLayout_TimerEvent
func miqt_exec_callback_QHBoxLayout_TimerEvent(self *C.QHBoxLayout, 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((&QHBoxLayout{h: self}).callVirtualBase_TimerEvent, slotval1)
}
func (this *QHBoxLayout) callVirtualBase_CustomEvent(event *QEvent) {
C.QHBoxLayout_virtualbase_CustomEvent(unsafe.Pointer(this.h), event.cPointer())
}
func (this *QHBoxLayout) OnCustomEvent(slot func(super func(event *QEvent), event *QEvent)) {
ok := C.QHBoxLayout_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_QHBoxLayout_CustomEvent
func miqt_exec_callback_QHBoxLayout_CustomEvent(self *C.QHBoxLayout, 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((&QHBoxLayout{h: self}).callVirtualBase_CustomEvent, slotval1)
}
func (this *QHBoxLayout) callVirtualBase_ConnectNotify(signal *QMetaMethod) {
C.QHBoxLayout_virtualbase_ConnectNotify(unsafe.Pointer(this.h), signal.cPointer())
}
func (this *QHBoxLayout) OnConnectNotify(slot func(super func(signal *QMetaMethod), signal *QMetaMethod)) {
ok := C.QHBoxLayout_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_QHBoxLayout_ConnectNotify
func miqt_exec_callback_QHBoxLayout_ConnectNotify(self *C.QHBoxLayout, 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((&QHBoxLayout{h: self}).callVirtualBase_ConnectNotify, slotval1)
}
func (this *QHBoxLayout) callVirtualBase_DisconnectNotify(signal *QMetaMethod) {
C.QHBoxLayout_virtualbase_DisconnectNotify(unsafe.Pointer(this.h), signal.cPointer())
}
func (this *QHBoxLayout) OnDisconnectNotify(slot func(super func(signal *QMetaMethod), signal *QMetaMethod)) {
ok := C.QHBoxLayout_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_QHBoxLayout_DisconnectNotify
func miqt_exec_callback_QHBoxLayout_DisconnectNotify(self *C.QHBoxLayout, 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((&QHBoxLayout{h: self}).callVirtualBase_DisconnectNotify, slotval1)
}
func (this *QHBoxLayout) callVirtualBase_Widget() *QWidget {
return newQWidget(C.QHBoxLayout_virtualbase_Widget(unsafe.Pointer(this.h)))
}
func (this *QHBoxLayout) OnWidget(slot func(super func() *QWidget) *QWidget) {
ok := C.QHBoxLayout_override_virtual_Widget(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_QHBoxLayout_Widget
func miqt_exec_callback_QHBoxLayout_Widget(self *C.QHBoxLayout, cb C.intptr_t) *C.QWidget {
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QWidget) *QWidget)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
virtualReturn := gofunc((&QHBoxLayout{h: self}).callVirtualBase_Widget)
return virtualReturn.cPointer()
}
func (this *QHBoxLayout) callVirtualBase_SpacerItem() *QSpacerItem {
return newQSpacerItem(C.QHBoxLayout_virtualbase_SpacerItem(unsafe.Pointer(this.h)))
}
func (this *QHBoxLayout) OnSpacerItem(slot func(super func() *QSpacerItem) *QSpacerItem) {
ok := C.QHBoxLayout_override_virtual_SpacerItem(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_QHBoxLayout_SpacerItem
func miqt_exec_callback_QHBoxLayout_SpacerItem(self *C.QHBoxLayout, cb C.intptr_t) *C.QSpacerItem {
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QSpacerItem) *QSpacerItem)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
virtualReturn := gofunc((&QHBoxLayout{h: self}).callVirtualBase_SpacerItem)
return virtualReturn.cPointer()
}
// Delete this object from C++ memory.
func (this *QHBoxLayout) Delete() {
C.QHBoxLayout_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 *QHBoxLayout) GoGC() {
runtime.SetFinalizer(this, func(this *QHBoxLayout) {
this.Delete()
runtime.KeepAlive(this.h)
})
}
type QVBoxLayout struct {
h *C.QVBoxLayout
*QBoxLayout
}
func (this *QVBoxLayout) cPointer() *C.QVBoxLayout {
if this == nil {
return nil
}
return this.h
}
func (this *QVBoxLayout) UnsafePointer() unsafe.Pointer {
if this == nil {
return nil
}
return unsafe.Pointer(this.h)
}
// newQVBoxLayout constructs the type using only CGO pointers.
func newQVBoxLayout(h *C.QVBoxLayout) *QVBoxLayout {
if h == nil {
return nil
}
var outptr_QBoxLayout *C.QBoxLayout = nil
C.QVBoxLayout_virtbase(h, &outptr_QBoxLayout)
return &QVBoxLayout{h: h,
QBoxLayout: newQBoxLayout(outptr_QBoxLayout)}
}
// UnsafeNewQVBoxLayout constructs the type using only unsafe pointers.
func UnsafeNewQVBoxLayout(h unsafe.Pointer) *QVBoxLayout {
return newQVBoxLayout((*C.QVBoxLayout)(h))
}
// NewQVBoxLayout constructs a new QVBoxLayout object.
func NewQVBoxLayout(parent *QWidget) *QVBoxLayout {
return newQVBoxLayout(C.QVBoxLayout_new(parent.cPointer()))
}
// NewQVBoxLayout2 constructs a new QVBoxLayout object.
func NewQVBoxLayout2() *QVBoxLayout {
return newQVBoxLayout(C.QVBoxLayout_new2())
}
func (this *QVBoxLayout) MetaObject() *QMetaObject {
return newQMetaObject(C.QVBoxLayout_MetaObject(this.h))
}
func (this *QVBoxLayout) Metacast(param1 string) unsafe.Pointer {
param1_Cstring := C.CString(param1)
defer C.free(unsafe.Pointer(param1_Cstring))
return (unsafe.Pointer)(C.QVBoxLayout_Metacast(this.h, param1_Cstring))
}
func QVBoxLayout_Tr(s string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
var _ms C.struct_miqt_string = C.QVBoxLayout_Tr(s_Cstring)
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func QVBoxLayout_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.QVBoxLayout_Tr2(s_Cstring, c_Cstring)
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func QVBoxLayout_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.QVBoxLayout_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 *QVBoxLayout) callVirtualBase_AddItem(param1 *QLayoutItem) {
C.QVBoxLayout_virtualbase_AddItem(unsafe.Pointer(this.h), param1.cPointer())
}
func (this *QVBoxLayout) OnAddItem(slot func(super func(param1 *QLayoutItem), param1 *QLayoutItem)) {
ok := C.QVBoxLayout_override_virtual_AddItem(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_QVBoxLayout_AddItem
func miqt_exec_callback_QVBoxLayout_AddItem(self *C.QVBoxLayout, cb C.intptr_t, param1 *C.QLayoutItem) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QLayoutItem), param1 *QLayoutItem))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQLayoutItem(param1)
gofunc((&QVBoxLayout{h: self}).callVirtualBase_AddItem, slotval1)
}
func (this *QVBoxLayout) callVirtualBase_Spacing() int {
return (int)(C.QVBoxLayout_virtualbase_Spacing(unsafe.Pointer(this.h)))
}
func (this *QVBoxLayout) OnSpacing(slot func(super func() int) int) {
ok := C.QVBoxLayout_override_virtual_Spacing(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QVBoxLayout_Spacing
func miqt_exec_callback_QVBoxLayout_Spacing(self *C.QVBoxLayout, 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((&QVBoxLayout{h: self}).callVirtualBase_Spacing)
return (C.int)(virtualReturn)
}
func (this *QVBoxLayout) callVirtualBase_SetSpacing(spacing int) {
C.QVBoxLayout_virtualbase_SetSpacing(unsafe.Pointer(this.h), (C.int)(spacing))
}
func (this *QVBoxLayout) OnSetSpacing(slot func(super func(spacing int), spacing int)) {
ok := C.QVBoxLayout_override_virtual_SetSpacing(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_QVBoxLayout_SetSpacing
func miqt_exec_callback_QVBoxLayout_SetSpacing(self *C.QVBoxLayout, cb C.intptr_t, spacing C.int) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(spacing int), spacing int))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (int)(spacing)
gofunc((&QVBoxLayout{h: self}).callVirtualBase_SetSpacing, slotval1)
}
func (this *QVBoxLayout) callVirtualBase_SizeHint() *QSize {
_goptr := newQSize(C.QVBoxLayout_virtualbase_SizeHint(unsafe.Pointer(this.h)))
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QVBoxLayout) OnSizeHint(slot func(super func() *QSize) *QSize) {
ok := C.QVBoxLayout_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_QVBoxLayout_SizeHint
func miqt_exec_callback_QVBoxLayout_SizeHint(self *C.QVBoxLayout, 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((&QVBoxLayout{h: self}).callVirtualBase_SizeHint)
return virtualReturn.cPointer()
}
func (this *QVBoxLayout) callVirtualBase_MinimumSize() *QSize {
_goptr := newQSize(C.QVBoxLayout_virtualbase_MinimumSize(unsafe.Pointer(this.h)))
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QVBoxLayout) OnMinimumSize(slot func(super func() *QSize) *QSize) {
ok := C.QVBoxLayout_override_virtual_MinimumSize(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_QVBoxLayout_MinimumSize
func miqt_exec_callback_QVBoxLayout_MinimumSize(self *C.QVBoxLayout, 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((&QVBoxLayout{h: self}).callVirtualBase_MinimumSize)
return virtualReturn.cPointer()
}
func (this *QVBoxLayout) callVirtualBase_MaximumSize() *QSize {
_goptr := newQSize(C.QVBoxLayout_virtualbase_MaximumSize(unsafe.Pointer(this.h)))
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QVBoxLayout) OnMaximumSize(slot func(super func() *QSize) *QSize) {
ok := C.QVBoxLayout_override_virtual_MaximumSize(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_QVBoxLayout_MaximumSize
func miqt_exec_callback_QVBoxLayout_MaximumSize(self *C.QVBoxLayout, 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((&QVBoxLayout{h: self}).callVirtualBase_MaximumSize)
return virtualReturn.cPointer()
}
func (this *QVBoxLayout) callVirtualBase_HasHeightForWidth() bool {
return (bool)(C.QVBoxLayout_virtualbase_HasHeightForWidth(unsafe.Pointer(this.h)))
}
func (this *QVBoxLayout) OnHasHeightForWidth(slot func(super func() bool) bool) {
ok := C.QVBoxLayout_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_QVBoxLayout_HasHeightForWidth
func miqt_exec_callback_QVBoxLayout_HasHeightForWidth(self *C.QVBoxLayout, 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((&QVBoxLayout{h: self}).callVirtualBase_HasHeightForWidth)
return (C.bool)(virtualReturn)
}
func (this *QVBoxLayout) callVirtualBase_HeightForWidth(param1 int) int {
return (int)(C.QVBoxLayout_virtualbase_HeightForWidth(unsafe.Pointer(this.h), (C.int)(param1)))
}
func (this *QVBoxLayout) OnHeightForWidth(slot func(super func(param1 int) int, param1 int) int) {
ok := C.QVBoxLayout_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_QVBoxLayout_HeightForWidth
func miqt_exec_callback_QVBoxLayout_HeightForWidth(self *C.QVBoxLayout, 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((&QVBoxLayout{h: self}).callVirtualBase_HeightForWidth, slotval1)
return (C.int)(virtualReturn)
}
func (this *QVBoxLayout) callVirtualBase_MinimumHeightForWidth(param1 int) int {
return (int)(C.QVBoxLayout_virtualbase_MinimumHeightForWidth(unsafe.Pointer(this.h), (C.int)(param1)))
}
func (this *QVBoxLayout) OnMinimumHeightForWidth(slot func(super func(param1 int) int, param1 int) int) {
ok := C.QVBoxLayout_override_virtual_MinimumHeightForWidth(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_QVBoxLayout_MinimumHeightForWidth
func miqt_exec_callback_QVBoxLayout_MinimumHeightForWidth(self *C.QVBoxLayout, 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((&QVBoxLayout{h: self}).callVirtualBase_MinimumHeightForWidth, slotval1)
return (C.int)(virtualReturn)
}
func (this *QVBoxLayout) callVirtualBase_ExpandingDirections() Orientation {
return (Orientation)(C.QVBoxLayout_virtualbase_ExpandingDirections(unsafe.Pointer(this.h)))
}
func (this *QVBoxLayout) OnExpandingDirections(slot func(super func() Orientation) Orientation) {
ok := C.QVBoxLayout_override_virtual_ExpandingDirections(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_QVBoxLayout_ExpandingDirections
func miqt_exec_callback_QVBoxLayout_ExpandingDirections(self *C.QVBoxLayout, cb C.intptr_t) C.int {
gofunc, ok := cgo.Handle(cb).Value().(func(super func() Orientation) Orientation)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
virtualReturn := gofunc((&QVBoxLayout{h: self}).callVirtualBase_ExpandingDirections)
return (C.int)(virtualReturn)
}
func (this *QVBoxLayout) callVirtualBase_Invalidate() {
C.QVBoxLayout_virtualbase_Invalidate(unsafe.Pointer(this.h))
}
func (this *QVBoxLayout) OnInvalidate(slot func(super func())) {
ok := C.QVBoxLayout_override_virtual_Invalidate(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_QVBoxLayout_Invalidate
func miqt_exec_callback_QVBoxLayout_Invalidate(self *C.QVBoxLayout, cb C.intptr_t) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func()))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
gofunc((&QVBoxLayout{h: self}).callVirtualBase_Invalidate)
}
func (this *QVBoxLayout) callVirtualBase_ItemAt(param1 int) *QLayoutItem {
return newQLayoutItem(C.QVBoxLayout_virtualbase_ItemAt(unsafe.Pointer(this.h), (C.int)(param1)))
}
func (this *QVBoxLayout) OnItemAt(slot func(super func(param1 int) *QLayoutItem, param1 int) *QLayoutItem) {
ok := C.QVBoxLayout_override_virtual_ItemAt(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_QVBoxLayout_ItemAt
func miqt_exec_callback_QVBoxLayout_ItemAt(self *C.QVBoxLayout, cb C.intptr_t, param1 C.int) *C.QLayoutItem {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 int) *QLayoutItem, param1 int) *QLayoutItem)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (int)(param1)
virtualReturn := gofunc((&QVBoxLayout{h: self}).callVirtualBase_ItemAt, slotval1)
return virtualReturn.cPointer()
}
func (this *QVBoxLayout) callVirtualBase_TakeAt(param1 int) *QLayoutItem {
return newQLayoutItem(C.QVBoxLayout_virtualbase_TakeAt(unsafe.Pointer(this.h), (C.int)(param1)))
}
func (this *QVBoxLayout) OnTakeAt(slot func(super func(param1 int) *QLayoutItem, param1 int) *QLayoutItem) {
ok := C.QVBoxLayout_override_virtual_TakeAt(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_QVBoxLayout_TakeAt
func miqt_exec_callback_QVBoxLayout_TakeAt(self *C.QVBoxLayout, cb C.intptr_t, param1 C.int) *C.QLayoutItem {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 int) *QLayoutItem, param1 int) *QLayoutItem)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (int)(param1)
virtualReturn := gofunc((&QVBoxLayout{h: self}).callVirtualBase_TakeAt, slotval1)
return virtualReturn.cPointer()
}
func (this *QVBoxLayout) callVirtualBase_Count() int {
return (int)(C.QVBoxLayout_virtualbase_Count(unsafe.Pointer(this.h)))
}
func (this *QVBoxLayout) OnCount(slot func(super func() int) int) {
ok := C.QVBoxLayout_override_virtual_Count(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_QVBoxLayout_Count
func miqt_exec_callback_QVBoxLayout_Count(self *C.QVBoxLayout, cb C.intptr_t) C.int {
2024-11-19 19:29:06 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func() int) int)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
virtualReturn := gofunc((&QVBoxLayout{h: self}).callVirtualBase_Count)
2024-11-19 19:29:06 +13:00
return (C.int)(virtualReturn)
}
func (this *QVBoxLayout) callVirtualBase_SetGeometry(geometry *QRect) {
2024-11-19 19:29:06 +13:00
C.QVBoxLayout_virtualbase_SetGeometry(unsafe.Pointer(this.h), geometry.cPointer())
2024-11-19 19:29:06 +13:00
}
func (this *QVBoxLayout) OnSetGeometry(slot func(super func(geometry *QRect), geometry *QRect)) {
ok := C.QVBoxLayout_override_virtual_SetGeometry(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QVBoxLayout_SetGeometry
func miqt_exec_callback_QVBoxLayout_SetGeometry(self *C.QVBoxLayout, cb C.intptr_t, geometry *C.QRect) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(geometry *QRect), geometry *QRect))
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQRect(geometry)
2024-11-19 19:29:06 +13:00
gofunc((&QVBoxLayout{h: self}).callVirtualBase_SetGeometry, slotval1)
2024-11-19 19:29:06 +13:00
}
func (this *QVBoxLayout) callVirtualBase_Geometry() *QRect {
2024-11-19 19:29:06 +13:00
_goptr := newQRect(C.QVBoxLayout_virtualbase_Geometry(unsafe.Pointer(this.h)))
2024-11-19 19:29:06 +13:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QVBoxLayout) OnGeometry(slot func(super func() *QRect) *QRect) {
ok := C.QVBoxLayout_override_virtual_Geometry(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QVBoxLayout_Geometry
func miqt_exec_callback_QVBoxLayout_Geometry(self *C.QVBoxLayout, cb C.intptr_t) *C.QRect {
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QRect) *QRect)
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
virtualReturn := gofunc((&QVBoxLayout{h: self}).callVirtualBase_Geometry)
2024-11-19 19:29:06 +13:00
return virtualReturn.cPointer()
}
func (this *QVBoxLayout) callVirtualBase_IndexOf(param1 *QWidget) int {
2024-11-19 19:29:06 +13:00
return (int)(C.QVBoxLayout_virtualbase_IndexOf(unsafe.Pointer(this.h), param1.cPointer()))
2024-11-19 19:29:06 +13:00
}
func (this *QVBoxLayout) OnIndexOf(slot func(super func(param1 *QWidget) int, param1 *QWidget) int) {
ok := C.QVBoxLayout_override_virtual_IndexOf(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QVBoxLayout_IndexOf
func miqt_exec_callback_QVBoxLayout_IndexOf(self *C.QVBoxLayout, cb C.intptr_t, param1 *C.QWidget) C.int {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(param1 *QWidget) int, param1 *QWidget) int)
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQWidget(param1)
virtualReturn := gofunc((&QVBoxLayout{h: self}).callVirtualBase_IndexOf, slotval1)
return (C.int)(virtualReturn)
}
func (this *QVBoxLayout) callVirtualBase_IsEmpty() bool {
return (bool)(C.QVBoxLayout_virtualbase_IsEmpty(unsafe.Pointer(this.h)))
}
func (this *QVBoxLayout) OnIsEmpty(slot func(super func() bool) bool) {
ok := C.QVBoxLayout_override_virtual_IsEmpty(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_QVBoxLayout_IsEmpty
func miqt_exec_callback_QVBoxLayout_IsEmpty(self *C.QVBoxLayout, 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((&QVBoxLayout{h: self}).callVirtualBase_IsEmpty)
return (C.bool)(virtualReturn)
}
func (this *QVBoxLayout) callVirtualBase_ControlTypes() QSizePolicy__ControlType {
return (QSizePolicy__ControlType)(C.QVBoxLayout_virtualbase_ControlTypes(unsafe.Pointer(this.h)))
}
func (this *QVBoxLayout) OnControlTypes(slot func(super func() QSizePolicy__ControlType) QSizePolicy__ControlType) {
ok := C.QVBoxLayout_override_virtual_ControlTypes(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_QVBoxLayout_ControlTypes
func miqt_exec_callback_QVBoxLayout_ControlTypes(self *C.QVBoxLayout, cb C.intptr_t) C.int {
gofunc, ok := cgo.Handle(cb).Value().(func(super func() QSizePolicy__ControlType) QSizePolicy__ControlType)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
virtualReturn := gofunc((&QVBoxLayout{h: self}).callVirtualBase_ControlTypes)
return (C.int)(virtualReturn)
}
func (this *QVBoxLayout) callVirtualBase_ReplaceWidget(from *QWidget, to *QWidget, options FindChildOption) *QLayoutItem {
return newQLayoutItem(C.QVBoxLayout_virtualbase_ReplaceWidget(unsafe.Pointer(this.h), from.cPointer(), to.cPointer(), (C.int)(options)))
}
func (this *QVBoxLayout) OnReplaceWidget(slot func(super func(from *QWidget, to *QWidget, options FindChildOption) *QLayoutItem, from *QWidget, to *QWidget, options FindChildOption) *QLayoutItem) {
ok := C.QVBoxLayout_override_virtual_ReplaceWidget(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_QVBoxLayout_ReplaceWidget
func miqt_exec_callback_QVBoxLayout_ReplaceWidget(self *C.QVBoxLayout, cb C.intptr_t, from *C.QWidget, to *C.QWidget, options C.int) *C.QLayoutItem {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(from *QWidget, to *QWidget, options FindChildOption) *QLayoutItem, from *QWidget, to *QWidget, options FindChildOption) *QLayoutItem)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQWidget(from)
slotval2 := newQWidget(to)
slotval3 := (FindChildOption)(options)
virtualReturn := gofunc((&QVBoxLayout{h: self}).callVirtualBase_ReplaceWidget, slotval1, slotval2, slotval3)
2024-11-19 19:29:06 +13:00
return virtualReturn.cPointer()
}
func (this *QVBoxLayout) callVirtualBase_Layout() *QLayout {
2024-11-19 19:29:06 +13:00
return newQLayout(C.QVBoxLayout_virtualbase_Layout(unsafe.Pointer(this.h)))
2024-11-19 19:29:06 +13:00
}
func (this *QVBoxLayout) OnLayout(slot func(super func() *QLayout) *QLayout) {
ok := C.QVBoxLayout_override_virtual_Layout(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QVBoxLayout_Layout
func miqt_exec_callback_QVBoxLayout_Layout(self *C.QVBoxLayout, cb C.intptr_t) *C.QLayout {
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QLayout) *QLayout)
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
virtualReturn := gofunc((&QVBoxLayout{h: self}).callVirtualBase_Layout)
2024-11-19 19:29:06 +13:00
return virtualReturn.cPointer()
}
func (this *QVBoxLayout) callVirtualBase_ChildEvent(e *QChildEvent) {
2024-11-19 19:29:06 +13:00
C.QVBoxLayout_virtualbase_ChildEvent(unsafe.Pointer(this.h), e.cPointer())
2024-11-19 19:29:06 +13:00
}
func (this *QVBoxLayout) OnChildEvent(slot func(super func(e *QChildEvent), e *QChildEvent)) {
ok := C.QVBoxLayout_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")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QVBoxLayout_ChildEvent
func miqt_exec_callback_QVBoxLayout_ChildEvent(self *C.QVBoxLayout, cb C.intptr_t, e *C.QChildEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(e *QChildEvent), e *QChildEvent))
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQChildEvent(e)
2024-11-19 19:29:06 +13:00
gofunc((&QVBoxLayout{h: self}).callVirtualBase_ChildEvent, slotval1)
2024-11-19 19:29:06 +13:00
}
func (this *QVBoxLayout) callVirtualBase_Event(event *QEvent) bool {
2024-11-19 19:29:06 +13:00
return (bool)(C.QVBoxLayout_virtualbase_Event(unsafe.Pointer(this.h), event.cPointer()))
2024-11-19 19:29:06 +13:00
}
func (this *QVBoxLayout) OnEvent(slot func(super func(event *QEvent) bool, event *QEvent) bool) {
ok := C.QVBoxLayout_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")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QVBoxLayout_Event
func miqt_exec_callback_QVBoxLayout_Event(self *C.QVBoxLayout, cb C.intptr_t, event *C.QEvent) C.bool {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QEvent) bool, event *QEvent) bool)
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQEvent(event)
2024-11-19 19:29:06 +13:00
virtualReturn := gofunc((&QVBoxLayout{h: self}).callVirtualBase_Event, slotval1)
2024-11-19 19:29:06 +13:00
return (C.bool)(virtualReturn)
2024-11-19 19:29:06 +13:00
}
func (this *QVBoxLayout) callVirtualBase_EventFilter(watched *QObject, event *QEvent) bool {
2024-11-19 19:29:06 +13:00
return (bool)(C.QVBoxLayout_virtualbase_EventFilter(unsafe.Pointer(this.h), watched.cPointer(), event.cPointer()))
2024-11-19 19:29:06 +13:00
}
func (this *QVBoxLayout) OnEventFilter(slot func(super func(watched *QObject, event *QEvent) bool, watched *QObject, event *QEvent) bool) {
ok := C.QVBoxLayout_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")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QVBoxLayout_EventFilter
func miqt_exec_callback_QVBoxLayout_EventFilter(self *C.QVBoxLayout, cb C.intptr_t, watched *C.QObject, event *C.QEvent) C.bool {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(watched *QObject, event *QEvent) bool, watched *QObject, event *QEvent) bool)
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQObject(watched)
2024-11-19 19:29:06 +13:00
slotval2 := newQEvent(event)
2024-11-19 19:29:06 +13:00
virtualReturn := gofunc((&QVBoxLayout{h: self}).callVirtualBase_EventFilter, slotval1, slotval2)
return (C.bool)(virtualReturn)
2024-11-19 19:29:06 +13:00
}
func (this *QVBoxLayout) callVirtualBase_TimerEvent(event *QTimerEvent) {
2024-11-19 19:29:06 +13:00
C.QVBoxLayout_virtualbase_TimerEvent(unsafe.Pointer(this.h), event.cPointer())
2024-11-19 19:29:06 +13:00
}
func (this *QVBoxLayout) OnTimerEvent(slot func(super func(event *QTimerEvent), event *QTimerEvent)) {
ok := C.QVBoxLayout_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")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QVBoxLayout_TimerEvent
func miqt_exec_callback_QVBoxLayout_TimerEvent(self *C.QVBoxLayout, cb C.intptr_t, event *C.QTimerEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QTimerEvent), event *QTimerEvent))
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQTimerEvent(event)
2024-11-19 19:29:06 +13:00
gofunc((&QVBoxLayout{h: self}).callVirtualBase_TimerEvent, slotval1)
2024-11-19 19:29:06 +13:00
}
func (this *QVBoxLayout) callVirtualBase_CustomEvent(event *QEvent) {
2024-11-19 19:29:06 +13:00
C.QVBoxLayout_virtualbase_CustomEvent(unsafe.Pointer(this.h), event.cPointer())
2024-11-19 19:29:06 +13:00
}
func (this *QVBoxLayout) OnCustomEvent(slot func(super func(event *QEvent), event *QEvent)) {
ok := C.QVBoxLayout_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")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QVBoxLayout_CustomEvent
func miqt_exec_callback_QVBoxLayout_CustomEvent(self *C.QVBoxLayout, cb C.intptr_t, event *C.QEvent) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *QEvent), event *QEvent))
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQEvent(event)
gofunc((&QVBoxLayout{h: self}).callVirtualBase_CustomEvent, slotval1)
2024-11-19 19:29:06 +13:00
}
func (this *QVBoxLayout) callVirtualBase_ConnectNotify(signal *QMetaMethod) {
2024-11-19 19:29:06 +13:00
C.QVBoxLayout_virtualbase_ConnectNotify(unsafe.Pointer(this.h), signal.cPointer())
2024-11-19 19:29:06 +13:00
}
func (this *QVBoxLayout) OnConnectNotify(slot func(super func(signal *QMetaMethod), signal *QMetaMethod)) {
ok := C.QVBoxLayout_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")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QVBoxLayout_ConnectNotify
func miqt_exec_callback_QVBoxLayout_ConnectNotify(self *C.QVBoxLayout, cb C.intptr_t, signal *C.QMetaMethod) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(signal *QMetaMethod), signal *QMetaMethod))
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQMetaMethod(signal)
2024-11-19 19:29:06 +13:00
gofunc((&QVBoxLayout{h: self}).callVirtualBase_ConnectNotify, slotval1)
2024-11-19 19:29:06 +13:00
}
func (this *QVBoxLayout) callVirtualBase_DisconnectNotify(signal *QMetaMethod) {
2024-11-19 19:29:06 +13:00
C.QVBoxLayout_virtualbase_DisconnectNotify(unsafe.Pointer(this.h), signal.cPointer())
2024-11-19 19:29:06 +13:00
}
func (this *QVBoxLayout) OnDisconnectNotify(slot func(super func(signal *QMetaMethod), signal *QMetaMethod)) {
ok := C.QVBoxLayout_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")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QVBoxLayout_DisconnectNotify
func miqt_exec_callback_QVBoxLayout_DisconnectNotify(self *C.QVBoxLayout, cb C.intptr_t, signal *C.QMetaMethod) {
gofunc, ok := cgo.Handle(cb).Value().(func(super func(signal *QMetaMethod), signal *QMetaMethod))
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := newQMetaMethod(signal)
2024-11-19 19:29:06 +13:00
gofunc((&QVBoxLayout{h: self}).callVirtualBase_DisconnectNotify, slotval1)
2024-11-19 19:29:06 +13:00
}
func (this *QVBoxLayout) callVirtualBase_Widget() *QWidget {
2024-11-19 19:29:06 +13:00
return newQWidget(C.QVBoxLayout_virtualbase_Widget(unsafe.Pointer(this.h)))
2024-11-19 19:29:06 +13:00
}
func (this *QVBoxLayout) OnWidget(slot func(super func() *QWidget) *QWidget) {
ok := C.QVBoxLayout_override_virtual_Widget(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QVBoxLayout_Widget
func miqt_exec_callback_QVBoxLayout_Widget(self *C.QVBoxLayout, cb C.intptr_t) *C.QWidget {
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QWidget) *QWidget)
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
virtualReturn := gofunc((&QVBoxLayout{h: self}).callVirtualBase_Widget)
2024-11-19 19:29:06 +13:00
return virtualReturn.cPointer()
2024-11-19 19:29:06 +13:00
}
func (this *QVBoxLayout) callVirtualBase_SpacerItem() *QSpacerItem {
2024-11-19 19:29:06 +13:00
return newQSpacerItem(C.QVBoxLayout_virtualbase_SpacerItem(unsafe.Pointer(this.h)))
2024-11-19 19:29:06 +13:00
}
func (this *QVBoxLayout) OnSpacerItem(slot func(super func() *QSpacerItem) *QSpacerItem) {
ok := C.QVBoxLayout_override_virtual_SpacerItem(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-19 19:29:06 +13:00
}
//export miqt_exec_callback_QVBoxLayout_SpacerItem
func miqt_exec_callback_QVBoxLayout_SpacerItem(self *C.QVBoxLayout, cb C.intptr_t) *C.QSpacerItem {
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QSpacerItem) *QSpacerItem)
2024-11-19 19:29:06 +13:00
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
virtualReturn := gofunc((&QVBoxLayout{h: self}).callVirtualBase_SpacerItem)
2024-11-19 19:29:06 +13:00
return virtualReturn.cPointer()
2024-11-19 19:29:06 +13:00
2024-10-20 18:21:03 +13:00
}
// Delete this object from C++ memory.
func (this *QVBoxLayout) Delete() {
C.QVBoxLayout_Delete(this.h)
2024-10-20 18:21:03 +13:00
}
// 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 *QVBoxLayout) GoGC() {
runtime.SetFinalizer(this, func(this *QVBoxLayout) {
this.Delete()
runtime.KeepAlive(this.h)
})
}