2024-08-25 04:08:24 +00:00
|
|
|
package qt
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
#include "gen_qgridlayout.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
*/
|
|
|
|
import "C"
|
|
|
|
|
|
|
|
import (
|
|
|
|
"runtime"
|
|
|
|
"unsafe"
|
|
|
|
)
|
|
|
|
|
|
|
|
type QGridLayout struct {
|
|
|
|
h *C.QGridLayout
|
|
|
|
*QLayout
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGridLayout) cPointer() *C.QGridLayout {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func (this *QGridLayout) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func newQGridLayout(h *C.QGridLayout) *QGridLayout {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-10-16 05:07:56 +00:00
|
|
|
return &QGridLayout{h: h, QLayout: UnsafeNewQLayout(unsafe.Pointer(h))}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func UnsafeNewQGridLayout(h unsafe.Pointer) *QGridLayout {
|
2024-08-25 04:08:24 +00:00
|
|
|
return newQGridLayout((*C.QGridLayout)(h))
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewQGridLayout constructs a new QGridLayout object.
|
|
|
|
func NewQGridLayout(parent *QWidget) *QGridLayout {
|
|
|
|
ret := C.QGridLayout_new(parent.cPointer())
|
|
|
|
return newQGridLayout(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewQGridLayout2 constructs a new QGridLayout object.
|
|
|
|
func NewQGridLayout2() *QGridLayout {
|
|
|
|
ret := C.QGridLayout_new2()
|
|
|
|
return newQGridLayout(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGridLayout) MetaObject() *QMetaObject {
|
2024-10-16 05:07:56 +00:00
|
|
|
return UnsafeNewQMetaObject(unsafe.Pointer(C.QGridLayout_MetaObject(this.h)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 22:32:57 +00:00
|
|
|
func (this *QGridLayout) Metacast(param1 string) unsafe.Pointer {
|
|
|
|
param1_Cstring := C.CString(param1)
|
|
|
|
defer C.free(unsafe.Pointer(param1_Cstring))
|
2024-10-18 23:53:33 +00:00
|
|
|
return (unsafe.Pointer)(C.QGridLayout_Metacast(this.h, param1_Cstring))
|
2024-09-20 22:32:57 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func QGridLayout_Tr(s string) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
2024-10-18 23:53:33 +00:00
|
|
|
var _ms C.struct_miqt_string = C.QGridLayout_Tr(s_Cstring)
|
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QGridLayout_TrUtf8(s string) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
2024-10-18 23:53:33 +00:00
|
|
|
var _ms C.struct_miqt_string = C.QGridLayout_TrUtf8(s_Cstring)
|
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGridLayout) SizeHint() *QSize {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QGridLayout_SizeHint(this.h)
|
|
|
|
_goptr := newQSize(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGridLayout) MinimumSize() *QSize {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QGridLayout_MinimumSize(this.h)
|
|
|
|
_goptr := newQSize(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGridLayout) MaximumSize() *QSize {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QGridLayout_MaximumSize(this.h)
|
|
|
|
_goptr := newQSize(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGridLayout) SetHorizontalSpacing(spacing int) {
|
|
|
|
C.QGridLayout_SetHorizontalSpacing(this.h, (C.int)(spacing))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGridLayout) HorizontalSpacing() int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QGridLayout_HorizontalSpacing(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGridLayout) SetVerticalSpacing(spacing int) {
|
|
|
|
C.QGridLayout_SetVerticalSpacing(this.h, (C.int)(spacing))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGridLayout) VerticalSpacing() int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QGridLayout_VerticalSpacing(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGridLayout) SetSpacing(spacing int) {
|
|
|
|
C.QGridLayout_SetSpacing(this.h, (C.int)(spacing))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGridLayout) Spacing() int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QGridLayout_Spacing(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGridLayout) SetRowStretch(row int, stretch int) {
|
|
|
|
C.QGridLayout_SetRowStretch(this.h, (C.int)(row), (C.int)(stretch))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGridLayout) SetColumnStretch(column int, stretch int) {
|
|
|
|
C.QGridLayout_SetColumnStretch(this.h, (C.int)(column), (C.int)(stretch))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGridLayout) RowStretch(row int) int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QGridLayout_RowStretch(this.h, (C.int)(row)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGridLayout) ColumnStretch(column int) int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QGridLayout_ColumnStretch(this.h, (C.int)(column)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGridLayout) SetRowMinimumHeight(row int, minSize int) {
|
|
|
|
C.QGridLayout_SetRowMinimumHeight(this.h, (C.int)(row), (C.int)(minSize))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGridLayout) SetColumnMinimumWidth(column int, minSize int) {
|
|
|
|
C.QGridLayout_SetColumnMinimumWidth(this.h, (C.int)(column), (C.int)(minSize))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGridLayout) RowMinimumHeight(row int) int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QGridLayout_RowMinimumHeight(this.h, (C.int)(row)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGridLayout) ColumnMinimumWidth(column int) int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QGridLayout_ColumnMinimumWidth(this.h, (C.int)(column)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGridLayout) ColumnCount() int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QGridLayout_ColumnCount(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGridLayout) RowCount() int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QGridLayout_RowCount(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGridLayout) CellRect(row int, column int) *QRect {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QGridLayout_CellRect(this.h, (C.int)(row), (C.int)(column))
|
|
|
|
_goptr := newQRect(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGridLayout) HasHeightForWidth() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QGridLayout_HasHeightForWidth(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGridLayout) HeightForWidth(param1 int) int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QGridLayout_HeightForWidth(this.h, (C.int)(param1)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGridLayout) MinimumHeightForWidth(param1 int) int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QGridLayout_MinimumHeightForWidth(this.h, (C.int)(param1)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func (this *QGridLayout) ExpandingDirections() Orientation {
|
|
|
|
return (Orientation)(C.QGridLayout_ExpandingDirections(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QGridLayout) Invalidate() {
|
|
|
|
C.QGridLayout_Invalidate(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGridLayout) AddWidget(w *QWidget) {
|
|
|
|
C.QGridLayout_AddWidget(this.h, w.cPointer())
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
func (this *QGridLayout) AddWidget2(param1 *QWidget, row int, column int) {
|
|
|
|
C.QGridLayout_AddWidget2(this.h, param1.cPointer(), (C.int)(row), (C.int)(column))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGridLayout) AddWidget3(param1 *QWidget, row int, column int, rowSpan int, columnSpan int) {
|
|
|
|
C.QGridLayout_AddWidget3(this.h, param1.cPointer(), (C.int)(row), (C.int)(column), (C.int)(rowSpan), (C.int)(columnSpan))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGridLayout) AddLayout(param1 *QLayout, row int, column int) {
|
|
|
|
C.QGridLayout_AddLayout(this.h, param1.cPointer(), (C.int)(row), (C.int)(column))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGridLayout) AddLayout2(param1 *QLayout, row int, column int, rowSpan int, columnSpan int) {
|
|
|
|
C.QGridLayout_AddLayout2(this.h, param1.cPointer(), (C.int)(row), (C.int)(column), (C.int)(rowSpan), (C.int)(columnSpan))
|
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QGridLayout) SetOriginCorner(originCorner Corner) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QGridLayout_SetOriginCorner(this.h, (C.int)(originCorner))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QGridLayout) OriginCorner() Corner {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (Corner)(C.QGridLayout_OriginCorner(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QGridLayout) ItemAt(index int) *QLayoutItem {
|
2024-10-16 05:07:56 +00:00
|
|
|
return UnsafeNewQLayoutItem(unsafe.Pointer(C.QGridLayout_ItemAt(this.h, (C.int)(index))))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGridLayout) ItemAtPosition(row int, column int) *QLayoutItem {
|
2024-10-16 05:07:56 +00:00
|
|
|
return UnsafeNewQLayoutItem(unsafe.Pointer(C.QGridLayout_ItemAtPosition(this.h, (C.int)(row), (C.int)(column))))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGridLayout) TakeAt(index int) *QLayoutItem {
|
2024-10-16 05:07:56 +00:00
|
|
|
return UnsafeNewQLayoutItem(unsafe.Pointer(C.QGridLayout_TakeAt(this.h, (C.int)(index))))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGridLayout) Count() int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QGridLayout_Count(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGridLayout) SetGeometry(geometry *QRect) {
|
|
|
|
C.QGridLayout_SetGeometry(this.h, geometry.cPointer())
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
func (this *QGridLayout) AddItem(item *QLayoutItem, row int, column int) {
|
|
|
|
C.QGridLayout_AddItem(this.h, item.cPointer(), (C.int)(row), (C.int)(column))
|
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QGridLayout) SetDefaultPositioning(n int, orient Orientation) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QGridLayout_SetDefaultPositioning(this.h, (C.int)(n), (C.int)(orient))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QGridLayout) GetItemPosition(idx int, row *int, column *int, rowSpan *int, columnSpan *int) {
|
|
|
|
C.QGridLayout_GetItemPosition(this.h, (C.int)(idx), (*C.int)(unsafe.Pointer(row)), (*C.int)(unsafe.Pointer(column)), (*C.int)(unsafe.Pointer(rowSpan)), (*C.int)(unsafe.Pointer(columnSpan)))
|
|
|
|
}
|
|
|
|
|
|
|
|
func QGridLayout_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))
|
2024-10-18 23:53:33 +00:00
|
|
|
var _ms C.struct_miqt_string = C.QGridLayout_Tr2(s_Cstring, c_Cstring)
|
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QGridLayout_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))
|
2024-10-18 23:53:33 +00:00
|
|
|
var _ms C.struct_miqt_string = C.QGridLayout_Tr3(s_Cstring, c_Cstring, (C.int)(n))
|
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QGridLayout_TrUtf82(s string, c string) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
|
|
|
c_Cstring := C.CString(c)
|
|
|
|
defer C.free(unsafe.Pointer(c_Cstring))
|
2024-10-18 23:53:33 +00:00
|
|
|
var _ms C.struct_miqt_string = C.QGridLayout_TrUtf82(s_Cstring, c_Cstring)
|
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QGridLayout_TrUtf83(s string, c string, n int) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
|
|
|
c_Cstring := C.CString(c)
|
|
|
|
defer C.free(unsafe.Pointer(c_Cstring))
|
2024-10-18 23:53:33 +00:00
|
|
|
var _ms C.struct_miqt_string = C.QGridLayout_TrUtf83(s_Cstring, c_Cstring, (C.int)(n))
|
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
2024-09-14 22:29:05 +00:00
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func (this *QGridLayout) AddWidget4(param1 *QWidget, row int, column int, param4 AlignmentFlag) {
|
2024-09-18 01:33:50 +00:00
|
|
|
C.QGridLayout_AddWidget4(this.h, param1.cPointer(), (C.int)(row), (C.int)(column), (C.int)(param4))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func (this *QGridLayout) AddWidget6(param1 *QWidget, row int, column int, rowSpan int, columnSpan int, param6 AlignmentFlag) {
|
2024-09-18 01:33:50 +00:00
|
|
|
C.QGridLayout_AddWidget6(this.h, param1.cPointer(), (C.int)(row), (C.int)(column), (C.int)(rowSpan), (C.int)(columnSpan), (C.int)(param6))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func (this *QGridLayout) AddLayout4(param1 *QLayout, row int, column int, param4 AlignmentFlag) {
|
2024-09-18 01:33:50 +00:00
|
|
|
C.QGridLayout_AddLayout4(this.h, param1.cPointer(), (C.int)(row), (C.int)(column), (C.int)(param4))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func (this *QGridLayout) AddLayout6(param1 *QLayout, row int, column int, rowSpan int, columnSpan int, param6 AlignmentFlag) {
|
2024-09-18 01:33:50 +00:00
|
|
|
C.QGridLayout_AddLayout6(this.h, param1.cPointer(), (C.int)(row), (C.int)(column), (C.int)(rowSpan), (C.int)(columnSpan), (C.int)(param6))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGridLayout) AddItem4(item *QLayoutItem, row int, column int, rowSpan int) {
|
|
|
|
C.QGridLayout_AddItem4(this.h, item.cPointer(), (C.int)(row), (C.int)(column), (C.int)(rowSpan))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGridLayout) AddItem5(item *QLayoutItem, row int, column int, rowSpan int, columnSpan int) {
|
|
|
|
C.QGridLayout_AddItem5(this.h, item.cPointer(), (C.int)(row), (C.int)(column), (C.int)(rowSpan), (C.int)(columnSpan))
|
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func (this *QGridLayout) AddItem6(item *QLayoutItem, row int, column int, rowSpan int, columnSpan int, param6 AlignmentFlag) {
|
2024-09-18 01:33:50 +00:00
|
|
|
C.QGridLayout_AddItem6(this.h, item.cPointer(), (C.int)(row), (C.int)(column), (C.int)(rowSpan), (C.int)(columnSpan), (C.int)(param6))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Delete this object from C++ memory.
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QGridLayout) Delete() {
|
|
|
|
C.QGridLayout_Delete(this.h)
|
|
|
|
}
|
2024-09-14 22:29:05 +00: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 *QGridLayout) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QGridLayout) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|