2024-08-25 04:08:24 +00:00
|
|
|
package qt
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
#include "gen_qformlayout.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
*/
|
|
|
|
import "C"
|
|
|
|
|
|
|
|
import (
|
|
|
|
"runtime"
|
|
|
|
"unsafe"
|
|
|
|
)
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
type QFormLayout__FieldGrowthPolicy int
|
|
|
|
|
|
|
|
const (
|
2024-09-20 07:13:26 +00:00
|
|
|
QFormLayout__FieldsStayAtSizeHint QFormLayout__FieldGrowthPolicy = 0
|
|
|
|
QFormLayout__ExpandingFieldsGrow QFormLayout__FieldGrowthPolicy = 1
|
|
|
|
QFormLayout__AllNonFixedFieldsGrow QFormLayout__FieldGrowthPolicy = 2
|
2024-09-04 06:54:22 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type QFormLayout__RowWrapPolicy int
|
|
|
|
|
|
|
|
const (
|
2024-09-20 07:13:26 +00:00
|
|
|
QFormLayout__DontWrapRows QFormLayout__RowWrapPolicy = 0
|
|
|
|
QFormLayout__WrapLongRows QFormLayout__RowWrapPolicy = 1
|
|
|
|
QFormLayout__WrapAllRows QFormLayout__RowWrapPolicy = 2
|
2024-09-04 06:54:22 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type QFormLayout__ItemRole int
|
|
|
|
|
|
|
|
const (
|
2024-09-20 07:13:26 +00:00
|
|
|
QFormLayout__LabelRole QFormLayout__ItemRole = 0
|
|
|
|
QFormLayout__FieldRole QFormLayout__ItemRole = 1
|
|
|
|
QFormLayout__SpanningRole QFormLayout__ItemRole = 2
|
2024-09-04 06:54:22 +00:00
|
|
|
)
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
type QFormLayout struct {
|
|
|
|
h *C.QFormLayout
|
|
|
|
*QLayout
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFormLayout) cPointer() *C.QFormLayout {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func (this *QFormLayout) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func newQFormLayout(h *C.QFormLayout) *QFormLayout {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-10-16 05:07:56 +00:00
|
|
|
return &QFormLayout{h: h, QLayout: UnsafeNewQLayout(unsafe.Pointer(h))}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func UnsafeNewQFormLayout(h unsafe.Pointer) *QFormLayout {
|
2024-08-25 04:08:24 +00:00
|
|
|
return newQFormLayout((*C.QFormLayout)(h))
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewQFormLayout constructs a new QFormLayout object.
|
2024-10-26 00:46:42 +00:00
|
|
|
func NewQFormLayout(parent *QWidget) *QFormLayout {
|
|
|
|
ret := C.QFormLayout_new(parent.cPointer())
|
2024-08-25 04:08:24 +00:00
|
|
|
return newQFormLayout(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewQFormLayout2 constructs a new QFormLayout object.
|
2024-10-26 00:46:42 +00:00
|
|
|
func NewQFormLayout2() *QFormLayout {
|
|
|
|
ret := C.QFormLayout_new2()
|
2024-08-25 04:08:24 +00:00
|
|
|
return newQFormLayout(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFormLayout) MetaObject() *QMetaObject {
|
2024-10-16 05:07:56 +00:00
|
|
|
return UnsafeNewQMetaObject(unsafe.Pointer(C.QFormLayout_MetaObject(this.h)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 22:32:57 +00:00
|
|
|
func (this *QFormLayout) 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.QFormLayout_Metacast(this.h, param1_Cstring))
|
2024-09-20 22:32:57 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func QFormLayout_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.QFormLayout_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 QFormLayout_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.QFormLayout_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
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QFormLayout) SetFieldGrowthPolicy(policy QFormLayout__FieldGrowthPolicy) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QFormLayout_SetFieldGrowthPolicy(this.h, (C.int)(policy))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QFormLayout) FieldGrowthPolicy() QFormLayout__FieldGrowthPolicy {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (QFormLayout__FieldGrowthPolicy)(C.QFormLayout_FieldGrowthPolicy(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func (this *QFormLayout) SetRowWrapPolicy(policy QFormLayout__RowWrapPolicy) {
|
2024-08-29 07:01:51 +00:00
|
|
|
C.QFormLayout_SetRowWrapPolicy(this.h, (C.int)(policy))
|
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func (this *QFormLayout) RowWrapPolicy() QFormLayout__RowWrapPolicy {
|
|
|
|
return (QFormLayout__RowWrapPolicy)(C.QFormLayout_RowWrapPolicy(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func (this *QFormLayout) SetLabelAlignment(alignment AlignmentFlag) {
|
2024-09-18 01:33:50 +00:00
|
|
|
C.QFormLayout_SetLabelAlignment(this.h, (C.int)(alignment))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func (this *QFormLayout) LabelAlignment() AlignmentFlag {
|
|
|
|
return (AlignmentFlag)(C.QFormLayout_LabelAlignment(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func (this *QFormLayout) SetFormAlignment(alignment AlignmentFlag) {
|
2024-09-18 01:33:50 +00:00
|
|
|
C.QFormLayout_SetFormAlignment(this.h, (C.int)(alignment))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func (this *QFormLayout) FormAlignment() AlignmentFlag {
|
|
|
|
return (AlignmentFlag)(C.QFormLayout_FormAlignment(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QFormLayout) SetHorizontalSpacing(spacing int) {
|
|
|
|
C.QFormLayout_SetHorizontalSpacing(this.h, (C.int)(spacing))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFormLayout) HorizontalSpacing() int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QFormLayout_HorizontalSpacing(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFormLayout) SetVerticalSpacing(spacing int) {
|
|
|
|
C.QFormLayout_SetVerticalSpacing(this.h, (C.int)(spacing))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFormLayout) VerticalSpacing() int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QFormLayout_VerticalSpacing(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFormLayout) Spacing() int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QFormLayout_Spacing(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFormLayout) SetSpacing(spacing int) {
|
|
|
|
C.QFormLayout_SetSpacing(this.h, (C.int)(spacing))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFormLayout) AddRow(label *QWidget, field *QWidget) {
|
|
|
|
C.QFormLayout_AddRow(this.h, label.cPointer(), field.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFormLayout) AddRow2(label *QWidget, field *QLayout) {
|
|
|
|
C.QFormLayout_AddRow2(this.h, label.cPointer(), field.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFormLayout) AddRow3(labelText string, field *QWidget) {
|
2024-10-18 23:53:33 +00:00
|
|
|
labelText_ms := C.struct_miqt_string{}
|
|
|
|
labelText_ms.data = C.CString(labelText)
|
|
|
|
labelText_ms.len = C.size_t(len(labelText))
|
|
|
|
defer C.free(unsafe.Pointer(labelText_ms.data))
|
|
|
|
C.QFormLayout_AddRow3(this.h, labelText_ms, field.cPointer())
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFormLayout) AddRow4(labelText string, field *QLayout) {
|
2024-10-18 23:53:33 +00:00
|
|
|
labelText_ms := C.struct_miqt_string{}
|
|
|
|
labelText_ms.data = C.CString(labelText)
|
|
|
|
labelText_ms.len = C.size_t(len(labelText))
|
|
|
|
defer C.free(unsafe.Pointer(labelText_ms.data))
|
|
|
|
C.QFormLayout_AddRow4(this.h, labelText_ms, field.cPointer())
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFormLayout) AddRowWithWidget(widget *QWidget) {
|
|
|
|
C.QFormLayout_AddRowWithWidget(this.h, widget.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFormLayout) AddRowWithLayout(layout *QLayout) {
|
|
|
|
C.QFormLayout_AddRowWithLayout(this.h, layout.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFormLayout) InsertRow(row int, label *QWidget, field *QWidget) {
|
|
|
|
C.QFormLayout_InsertRow(this.h, (C.int)(row), label.cPointer(), field.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFormLayout) InsertRow2(row int, label *QWidget, field *QLayout) {
|
|
|
|
C.QFormLayout_InsertRow2(this.h, (C.int)(row), label.cPointer(), field.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFormLayout) InsertRow3(row int, labelText string, field *QWidget) {
|
2024-10-18 23:53:33 +00:00
|
|
|
labelText_ms := C.struct_miqt_string{}
|
|
|
|
labelText_ms.data = C.CString(labelText)
|
|
|
|
labelText_ms.len = C.size_t(len(labelText))
|
|
|
|
defer C.free(unsafe.Pointer(labelText_ms.data))
|
|
|
|
C.QFormLayout_InsertRow3(this.h, (C.int)(row), labelText_ms, field.cPointer())
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFormLayout) InsertRow4(row int, labelText string, field *QLayout) {
|
2024-10-18 23:53:33 +00:00
|
|
|
labelText_ms := C.struct_miqt_string{}
|
|
|
|
labelText_ms.data = C.CString(labelText)
|
|
|
|
labelText_ms.len = C.size_t(len(labelText))
|
|
|
|
defer C.free(unsafe.Pointer(labelText_ms.data))
|
|
|
|
C.QFormLayout_InsertRow4(this.h, (C.int)(row), labelText_ms, field.cPointer())
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFormLayout) InsertRow5(row int, widget *QWidget) {
|
|
|
|
C.QFormLayout_InsertRow5(this.h, (C.int)(row), widget.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFormLayout) InsertRow6(row int, layout *QLayout) {
|
|
|
|
C.QFormLayout_InsertRow6(this.h, (C.int)(row), layout.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFormLayout) RemoveRow(row int) {
|
|
|
|
C.QFormLayout_RemoveRow(this.h, (C.int)(row))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFormLayout) RemoveRowWithWidget(widget *QWidget) {
|
|
|
|
C.QFormLayout_RemoveRowWithWidget(this.h, widget.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFormLayout) RemoveRowWithLayout(layout *QLayout) {
|
|
|
|
C.QFormLayout_RemoveRowWithLayout(this.h, layout.cPointer())
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
func (this *QFormLayout) TakeRow(row int) *QFormLayout__TakeRowResult {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QFormLayout_TakeRow(this.h, (C.int)(row))
|
|
|
|
_goptr := newQFormLayout__TakeRowResult(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFormLayout) TakeRowWithWidget(widget *QWidget) *QFormLayout__TakeRowResult {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QFormLayout_TakeRowWithWidget(this.h, widget.cPointer())
|
|
|
|
_goptr := newQFormLayout__TakeRowResult(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFormLayout) TakeRowWithLayout(layout *QLayout) *QFormLayout__TakeRowResult {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QFormLayout_TakeRowWithLayout(this.h, layout.cPointer())
|
|
|
|
_goptr := newQFormLayout__TakeRowResult(_ret)
|
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func (this *QFormLayout) SetItem(row int, role QFormLayout__ItemRole, item *QLayoutItem) {
|
2024-08-29 07:01:51 +00:00
|
|
|
C.QFormLayout_SetItem(this.h, (C.int)(row), (C.int)(role), item.cPointer())
|
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func (this *QFormLayout) SetWidget(row int, role QFormLayout__ItemRole, widget *QWidget) {
|
2024-08-29 07:01:51 +00:00
|
|
|
C.QFormLayout_SetWidget(this.h, (C.int)(row), (C.int)(role), widget.cPointer())
|
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func (this *QFormLayout) SetLayout(row int, role QFormLayout__ItemRole, layout *QLayout) {
|
2024-08-29 07:01:51 +00:00
|
|
|
C.QFormLayout_SetLayout(this.h, (C.int)(row), (C.int)(role), layout.cPointer())
|
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func (this *QFormLayout) ItemAt(row int, role QFormLayout__ItemRole) *QLayoutItem {
|
2024-10-16 05:07:56 +00:00
|
|
|
return UnsafeNewQLayoutItem(unsafe.Pointer(C.QFormLayout_ItemAt(this.h, (C.int)(row), (C.int)(role))))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QFormLayout) LabelForField(field *QWidget) *QWidget {
|
2024-10-16 05:07:56 +00:00
|
|
|
return UnsafeNewQWidget(unsafe.Pointer(C.QFormLayout_LabelForField(this.h, field.cPointer())))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFormLayout) LabelForFieldWithField(field *QLayout) *QWidget {
|
2024-10-16 05:07:56 +00:00
|
|
|
return UnsafeNewQWidget(unsafe.Pointer(C.QFormLayout_LabelForFieldWithField(this.h, field.cPointer())))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFormLayout) AddItem(item *QLayoutItem) {
|
|
|
|
C.QFormLayout_AddItem(this.h, item.cPointer())
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
func (this *QFormLayout) ItemAtWithIndex(index int) *QLayoutItem {
|
2024-10-16 05:07:56 +00:00
|
|
|
return UnsafeNewQLayoutItem(unsafe.Pointer(C.QFormLayout_ItemAtWithIndex(this.h, (C.int)(index))))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFormLayout) TakeAt(index int) *QLayoutItem {
|
2024-10-16 05:07:56 +00:00
|
|
|
return UnsafeNewQLayoutItem(unsafe.Pointer(C.QFormLayout_TakeAt(this.h, (C.int)(index))))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFormLayout) SetGeometry(rect *QRect) {
|
|
|
|
C.QFormLayout_SetGeometry(this.h, rect.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFormLayout) MinimumSize() *QSize {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QFormLayout_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 *QFormLayout) SizeHint() *QSize {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QFormLayout_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 *QFormLayout) Invalidate() {
|
|
|
|
C.QFormLayout_Invalidate(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFormLayout) HasHeightForWidth() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QFormLayout_HasHeightForWidth(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFormLayout) HeightForWidth(width int) int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QFormLayout_HeightForWidth(this.h, (C.int)(width)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func (this *QFormLayout) ExpandingDirections() Orientation {
|
|
|
|
return (Orientation)(C.QFormLayout_ExpandingDirections(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QFormLayout) Count() int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QFormLayout_Count(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFormLayout) RowCount() int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QFormLayout_RowCount(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QFormLayout_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.QFormLayout_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 QFormLayout_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.QFormLayout_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 QFormLayout_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.QFormLayout_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 QFormLayout_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.QFormLayout_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-14 22:29:05 +00:00
|
|
|
// Delete this object from C++ memory.
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QFormLayout) Delete() {
|
|
|
|
C.QFormLayout_Delete(this.h)
|
|
|
|
}
|
2024-08-29 07:01:51 +00:00
|
|
|
|
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 *QFormLayout) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QFormLayout) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
type QFormLayout__TakeRowResult struct {
|
|
|
|
h *C.QFormLayout__TakeRowResult
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QFormLayout__TakeRowResult) cPointer() *C.QFormLayout__TakeRowResult {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func (this *QFormLayout__TakeRowResult) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
func newQFormLayout__TakeRowResult(h *C.QFormLayout__TakeRowResult) *QFormLayout__TakeRowResult {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-08-29 07:01:51 +00:00
|
|
|
return &QFormLayout__TakeRowResult{h: h}
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func UnsafeNewQFormLayout__TakeRowResult(h unsafe.Pointer) *QFormLayout__TakeRowResult {
|
2024-08-29 07:01:51 +00:00
|
|
|
return newQFormLayout__TakeRowResult((*C.QFormLayout__TakeRowResult)(h))
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Delete this object from C++ memory.
|
2024-08-29 07:01:51 +00:00
|
|
|
func (this *QFormLayout__TakeRowResult) Delete() {
|
|
|
|
C.QFormLayout__TakeRowResult_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 *QFormLayout__TakeRowResult) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QFormLayout__TakeRowResult) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|