2024-08-25 04:08:24 +00:00
|
|
|
package qt
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
#include "gen_qabstractspinbox.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
*/
|
|
|
|
import "C"
|
|
|
|
|
|
|
|
import (
|
2024-10-16 05:07:56 +00:00
|
|
|
"github.com/mappu/miqt/libmiqt"
|
2024-08-25 04:08:24 +00:00
|
|
|
"runtime"
|
|
|
|
"runtime/cgo"
|
|
|
|
"unsafe"
|
|
|
|
)
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
type QAbstractSpinBox__StepEnabledFlag int
|
|
|
|
|
|
|
|
const (
|
2024-09-20 07:13:26 +00:00
|
|
|
QAbstractSpinBox__StepNone QAbstractSpinBox__StepEnabledFlag = 0
|
|
|
|
QAbstractSpinBox__StepUpEnabled QAbstractSpinBox__StepEnabledFlag = 1
|
|
|
|
QAbstractSpinBox__StepDownEnabled QAbstractSpinBox__StepEnabledFlag = 2
|
2024-09-04 06:54:22 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type QAbstractSpinBox__ButtonSymbols int
|
|
|
|
|
|
|
|
const (
|
2024-09-20 07:13:26 +00:00
|
|
|
QAbstractSpinBox__UpDownArrows QAbstractSpinBox__ButtonSymbols = 0
|
|
|
|
QAbstractSpinBox__PlusMinus QAbstractSpinBox__ButtonSymbols = 1
|
|
|
|
QAbstractSpinBox__NoButtons QAbstractSpinBox__ButtonSymbols = 2
|
2024-09-04 06:54:22 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type QAbstractSpinBox__CorrectionMode int
|
|
|
|
|
|
|
|
const (
|
2024-09-20 07:13:26 +00:00
|
|
|
QAbstractSpinBox__CorrectToPreviousValue QAbstractSpinBox__CorrectionMode = 0
|
|
|
|
QAbstractSpinBox__CorrectToNearestValue QAbstractSpinBox__CorrectionMode = 1
|
2024-09-04 06:54:22 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type QAbstractSpinBox__StepType int
|
|
|
|
|
|
|
|
const (
|
2024-09-20 07:13:26 +00:00
|
|
|
QAbstractSpinBox__DefaultStepType QAbstractSpinBox__StepType = 0
|
|
|
|
QAbstractSpinBox__AdaptiveDecimalStepType QAbstractSpinBox__StepType = 1
|
2024-09-04 06:54:22 +00:00
|
|
|
)
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
type QAbstractSpinBox struct {
|
|
|
|
h *C.QAbstractSpinBox
|
|
|
|
*QWidget
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAbstractSpinBox) cPointer() *C.QAbstractSpinBox {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func (this *QAbstractSpinBox) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func newQAbstractSpinBox(h *C.QAbstractSpinBox) *QAbstractSpinBox {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-10-16 05:07:56 +00:00
|
|
|
return &QAbstractSpinBox{h: h, QWidget: UnsafeNewQWidget(unsafe.Pointer(h))}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func UnsafeNewQAbstractSpinBox(h unsafe.Pointer) *QAbstractSpinBox {
|
2024-08-25 04:08:24 +00:00
|
|
|
return newQAbstractSpinBox((*C.QAbstractSpinBox)(h))
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewQAbstractSpinBox constructs a new QAbstractSpinBox object.
|
|
|
|
func NewQAbstractSpinBox() *QAbstractSpinBox {
|
|
|
|
ret := C.QAbstractSpinBox_new()
|
|
|
|
return newQAbstractSpinBox(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewQAbstractSpinBox2 constructs a new QAbstractSpinBox object.
|
|
|
|
func NewQAbstractSpinBox2(parent *QWidget) *QAbstractSpinBox {
|
|
|
|
ret := C.QAbstractSpinBox_new2(parent.cPointer())
|
|
|
|
return newQAbstractSpinBox(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAbstractSpinBox) MetaObject() *QMetaObject {
|
2024-10-16 05:07:56 +00:00
|
|
|
return UnsafeNewQMetaObject(unsafe.Pointer(C.QAbstractSpinBox_MetaObject(this.h)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 22:32:57 +00:00
|
|
|
func (this *QAbstractSpinBox) Metacast(param1 string) unsafe.Pointer {
|
|
|
|
param1_Cstring := C.CString(param1)
|
|
|
|
defer C.free(unsafe.Pointer(param1_Cstring))
|
|
|
|
return C.QAbstractSpinBox_Metacast(this.h, param1_Cstring)
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func QAbstractSpinBox_Tr(s string) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
2024-09-14 22:29:05 +00:00
|
|
|
var _ms *C.struct_miqt_string = C.QAbstractSpinBox_Tr(s_Cstring)
|
|
|
|
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms))
|
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QAbstractSpinBox_TrUtf8(s string) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
2024-09-14 22:29:05 +00:00
|
|
|
var _ms *C.struct_miqt_string = C.QAbstractSpinBox_TrUtf8(s_Cstring)
|
|
|
|
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms))
|
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QAbstractSpinBox) ButtonSymbols() QAbstractSpinBox__ButtonSymbols {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (QAbstractSpinBox__ButtonSymbols)(C.QAbstractSpinBox_ButtonSymbols(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QAbstractSpinBox) SetButtonSymbols(bs QAbstractSpinBox__ButtonSymbols) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QAbstractSpinBox_SetButtonSymbols(this.h, (C.int)(bs))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QAbstractSpinBox) SetCorrectionMode(cm QAbstractSpinBox__CorrectionMode) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QAbstractSpinBox_SetCorrectionMode(this.h, (C.int)(cm))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QAbstractSpinBox) CorrectionMode() QAbstractSpinBox__CorrectionMode {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (QAbstractSpinBox__CorrectionMode)(C.QAbstractSpinBox_CorrectionMode(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QAbstractSpinBox) HasAcceptableInput() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QAbstractSpinBox_HasAcceptableInput(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAbstractSpinBox) Text() string {
|
2024-09-14 22:29:05 +00:00
|
|
|
var _ms *C.struct_miqt_string = C.QAbstractSpinBox_Text(this.h)
|
|
|
|
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms))
|
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAbstractSpinBox) SpecialValueText() string {
|
2024-09-14 22:29:05 +00:00
|
|
|
var _ms *C.struct_miqt_string = C.QAbstractSpinBox_SpecialValueText(this.h)
|
|
|
|
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms))
|
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAbstractSpinBox) SetSpecialValueText(txt string) {
|
2024-10-16 05:07:56 +00:00
|
|
|
txt_ms := libmiqt.Strdupg(txt)
|
2024-09-14 22:29:05 +00:00
|
|
|
defer C.free(txt_ms)
|
|
|
|
C.QAbstractSpinBox_SetSpecialValueText(this.h, (*C.struct_miqt_string)(txt_ms))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAbstractSpinBox) Wrapping() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QAbstractSpinBox_Wrapping(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAbstractSpinBox) SetWrapping(w bool) {
|
|
|
|
C.QAbstractSpinBox_SetWrapping(this.h, (C.bool)(w))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAbstractSpinBox) SetReadOnly(r bool) {
|
|
|
|
C.QAbstractSpinBox_SetReadOnly(this.h, (C.bool)(r))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAbstractSpinBox) IsReadOnly() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QAbstractSpinBox_IsReadOnly(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAbstractSpinBox) SetKeyboardTracking(kt bool) {
|
|
|
|
C.QAbstractSpinBox_SetKeyboardTracking(this.h, (C.bool)(kt))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAbstractSpinBox) KeyboardTracking() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QAbstractSpinBox_KeyboardTracking(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func (this *QAbstractSpinBox) SetAlignment(flag AlignmentFlag) {
|
2024-09-18 01:33:50 +00:00
|
|
|
C.QAbstractSpinBox_SetAlignment(this.h, (C.int)(flag))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func (this *QAbstractSpinBox) Alignment() AlignmentFlag {
|
|
|
|
return (AlignmentFlag)(C.QAbstractSpinBox_Alignment(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QAbstractSpinBox) SetFrame(frame bool) {
|
|
|
|
C.QAbstractSpinBox_SetFrame(this.h, (C.bool)(frame))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAbstractSpinBox) HasFrame() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QAbstractSpinBox_HasFrame(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAbstractSpinBox) SetAccelerated(on bool) {
|
|
|
|
C.QAbstractSpinBox_SetAccelerated(this.h, (C.bool)(on))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAbstractSpinBox) IsAccelerated() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QAbstractSpinBox_IsAccelerated(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAbstractSpinBox) SetGroupSeparatorShown(shown bool) {
|
|
|
|
C.QAbstractSpinBox_SetGroupSeparatorShown(this.h, (C.bool)(shown))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAbstractSpinBox) IsGroupSeparatorShown() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QAbstractSpinBox_IsGroupSeparatorShown(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAbstractSpinBox) SizeHint() *QSize {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QAbstractSpinBox_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 *QAbstractSpinBox) MinimumSizeHint() *QSize {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QAbstractSpinBox_MinimumSizeHint(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 *QAbstractSpinBox) InterpretText() {
|
|
|
|
C.QAbstractSpinBox_InterpretText(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAbstractSpinBox) Event(event *QEvent) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QAbstractSpinBox_Event(this.h, event.cPointer()))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QAbstractSpinBox) InputMethodQuery(param1 InputMethodQuery) *QVariant {
|
2024-09-18 00:12:02 +00:00
|
|
|
_ret := C.QAbstractSpinBox_InputMethodQuery(this.h, (C.int)(param1))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr := newQVariant(_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-04 06:54:22 +00:00
|
|
|
func (this *QAbstractSpinBox) Validate(input string, pos *int) QValidator__State {
|
2024-10-16 05:07:56 +00:00
|
|
|
input_ms := libmiqt.Strdupg(input)
|
2024-09-14 22:29:05 +00:00
|
|
|
defer C.free(input_ms)
|
2024-09-17 07:30:27 +00:00
|
|
|
return (QValidator__State)(C.QAbstractSpinBox_Validate(this.h, (*C.struct_miqt_string)(input_ms), (*C.int)(unsafe.Pointer(pos))))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QAbstractSpinBox) Fixup(input string) {
|
2024-10-16 05:07:56 +00:00
|
|
|
input_ms := libmiqt.Strdupg(input)
|
2024-09-14 22:29:05 +00:00
|
|
|
defer C.free(input_ms)
|
|
|
|
C.QAbstractSpinBox_Fixup(this.h, (*C.struct_miqt_string)(input_ms))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAbstractSpinBox) StepBy(steps int) {
|
|
|
|
C.QAbstractSpinBox_StepBy(this.h, (C.int)(steps))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAbstractSpinBox) StepUp() {
|
|
|
|
C.QAbstractSpinBox_StepUp(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAbstractSpinBox) StepDown() {
|
|
|
|
C.QAbstractSpinBox_StepDown(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAbstractSpinBox) SelectAll() {
|
|
|
|
C.QAbstractSpinBox_SelectAll(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAbstractSpinBox) Clear() {
|
|
|
|
C.QAbstractSpinBox_Clear(this.h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAbstractSpinBox) EditingFinished() {
|
|
|
|
C.QAbstractSpinBox_EditingFinished(this.h)
|
|
|
|
}
|
|
|
|
func (this *QAbstractSpinBox) OnEditingFinished(slot func()) {
|
2024-10-13 06:06:06 +00:00
|
|
|
C.QAbstractSpinBox_connect_EditingFinished(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
2024-09-14 22:29:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QAbstractSpinBox_EditingFinished
|
2024-10-13 06:06:06 +00:00
|
|
|
func miqt_exec_callback_QAbstractSpinBox_EditingFinished(cb C.intptr_t) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func())
|
2024-09-14 22:29:05 +00:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
gofunc()
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QAbstractSpinBox_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-09-14 22:29:05 +00:00
|
|
|
var _ms *C.struct_miqt_string = C.QAbstractSpinBox_Tr2(s_Cstring, c_Cstring)
|
|
|
|
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms))
|
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QAbstractSpinBox_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-09-14 22:29:05 +00:00
|
|
|
var _ms *C.struct_miqt_string = C.QAbstractSpinBox_Tr3(s_Cstring, c_Cstring, (C.int)(n))
|
|
|
|
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms))
|
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QAbstractSpinBox_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-09-14 22:29:05 +00:00
|
|
|
var _ms *C.struct_miqt_string = C.QAbstractSpinBox_TrUtf82(s_Cstring, c_Cstring)
|
|
|
|
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms))
|
|
|
|
return _ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func QAbstractSpinBox_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-09-14 22:29:05 +00:00
|
|
|
var _ms *C.struct_miqt_string = C.QAbstractSpinBox_TrUtf83(s_Cstring, c_Cstring, (C.int)(n))
|
|
|
|
_ret := C.GoStringN(&_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms))
|
|
|
|
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 *QAbstractSpinBox) Delete() {
|
|
|
|
C.QAbstractSpinBox_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 *QAbstractSpinBox) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QAbstractSpinBox) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|