2024-08-25 04:08:24 +00:00
|
|
|
package qt
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
#include "gen_qdockwidget.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
*/
|
|
|
|
import "C"
|
|
|
|
|
|
|
|
import (
|
2024-09-14 22:29:05 +00:00
|
|
|
"runtime"
|
2024-08-25 04:08:24 +00:00
|
|
|
"runtime/cgo"
|
|
|
|
"unsafe"
|
|
|
|
)
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
type QDockWidget__DockWidgetFeature int
|
|
|
|
|
|
|
|
const (
|
2024-09-20 07:13:26 +00:00
|
|
|
QDockWidget__DockWidgetClosable QDockWidget__DockWidgetFeature = 1
|
|
|
|
QDockWidget__DockWidgetMovable QDockWidget__DockWidgetFeature = 2
|
|
|
|
QDockWidget__DockWidgetFloatable QDockWidget__DockWidgetFeature = 4
|
|
|
|
QDockWidget__DockWidgetVerticalTitleBar QDockWidget__DockWidgetFeature = 8
|
|
|
|
QDockWidget__DockWidgetFeatureMask QDockWidget__DockWidgetFeature = 15
|
|
|
|
QDockWidget__AllDockWidgetFeatures QDockWidget__DockWidgetFeature = 7
|
|
|
|
QDockWidget__NoDockWidgetFeatures QDockWidget__DockWidgetFeature = 0
|
|
|
|
QDockWidget__Reserved QDockWidget__DockWidgetFeature = 255
|
2024-09-04 06:54:22 +00:00
|
|
|
)
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
type QDockWidget struct {
|
|
|
|
h *C.QDockWidget
|
|
|
|
*QWidget
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QDockWidget) cPointer() *C.QDockWidget {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func (this *QDockWidget) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func newQDockWidget(h *C.QDockWidget) *QDockWidget {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-10-16 05:07:56 +00:00
|
|
|
return &QDockWidget{h: h, QWidget: UnsafeNewQWidget(unsafe.Pointer(h))}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func UnsafeNewQDockWidget(h unsafe.Pointer) *QDockWidget {
|
2024-08-25 04:08:24 +00:00
|
|
|
return newQDockWidget((*C.QDockWidget)(h))
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
// NewQDockWidget constructs a new QDockWidget object.
|
2024-10-26 00:46:42 +00:00
|
|
|
func NewQDockWidget(parent *QWidget) *QDockWidget {
|
|
|
|
ret := C.QDockWidget_new(parent.cPointer())
|
|
|
|
return newQDockWidget(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewQDockWidget2 constructs a new QDockWidget object.
|
|
|
|
func NewQDockWidget2(title string) *QDockWidget {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
2024-10-26 00:46:42 +00:00
|
|
|
ret := C.QDockWidget_new2(title_ms)
|
2024-08-29 07:01:51 +00:00
|
|
|
return newQDockWidget(ret)
|
|
|
|
}
|
|
|
|
|
2024-10-26 00:46:42 +00:00
|
|
|
// NewQDockWidget3 constructs a new QDockWidget object.
|
|
|
|
func NewQDockWidget3() *QDockWidget {
|
|
|
|
ret := C.QDockWidget_new3()
|
2024-08-29 07:01:51 +00:00
|
|
|
return newQDockWidget(ret)
|
|
|
|
}
|
|
|
|
|
2024-10-26 00:46:42 +00:00
|
|
|
// NewQDockWidget4 constructs a new QDockWidget object.
|
|
|
|
func NewQDockWidget4(title string, parent *QWidget) *QDockWidget {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
2024-10-26 00:46:42 +00:00
|
|
|
ret := C.QDockWidget_new4(title_ms, parent.cPointer())
|
2024-08-29 07:01:51 +00:00
|
|
|
return newQDockWidget(ret)
|
|
|
|
}
|
|
|
|
|
2024-10-26 00:46:42 +00:00
|
|
|
// NewQDockWidget5 constructs a new QDockWidget object.
|
|
|
|
func NewQDockWidget5(title string, parent *QWidget, flags WindowType) *QDockWidget {
|
2024-10-18 23:53:33 +00:00
|
|
|
title_ms := C.struct_miqt_string{}
|
|
|
|
title_ms.data = C.CString(title)
|
|
|
|
title_ms.len = C.size_t(len(title))
|
|
|
|
defer C.free(unsafe.Pointer(title_ms.data))
|
2024-10-26 00:46:42 +00:00
|
|
|
ret := C.QDockWidget_new5(title_ms, parent.cPointer(), (C.int)(flags))
|
2024-08-29 07:01:51 +00:00
|
|
|
return newQDockWidget(ret)
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewQDockWidget6 constructs a new QDockWidget object.
|
2024-09-20 06:40:03 +00:00
|
|
|
func NewQDockWidget6(parent *QWidget, flags WindowType) *QDockWidget {
|
2024-09-18 01:33:50 +00:00
|
|
|
ret := C.QDockWidget_new6(parent.cPointer(), (C.int)(flags))
|
2024-08-29 07:01:51 +00:00
|
|
|
return newQDockWidget(ret)
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QDockWidget) MetaObject() *QMetaObject {
|
2024-10-16 05:07:56 +00:00
|
|
|
return UnsafeNewQMetaObject(unsafe.Pointer(C.QDockWidget_MetaObject(this.h)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 22:32:57 +00:00
|
|
|
func (this *QDockWidget) 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.QDockWidget_Metacast(this.h, param1_Cstring))
|
2024-09-20 22:32:57 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func QDockWidget_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.QDockWidget_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 QDockWidget_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.QDockWidget_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 *QDockWidget) Widget() *QWidget {
|
2024-10-16 05:07:56 +00:00
|
|
|
return UnsafeNewQWidget(unsafe.Pointer(C.QDockWidget_Widget(this.h)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QDockWidget) SetWidget(widget *QWidget) {
|
|
|
|
C.QDockWidget_SetWidget(this.h, widget.cPointer())
|
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func (this *QDockWidget) SetFeatures(features QDockWidget__DockWidgetFeature) {
|
2024-09-18 01:33:50 +00:00
|
|
|
C.QDockWidget_SetFeatures(this.h, (C.int)(features))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func (this *QDockWidget) Features() QDockWidget__DockWidgetFeature {
|
|
|
|
return (QDockWidget__DockWidgetFeature)(C.QDockWidget_Features(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QDockWidget) SetFloating(floating bool) {
|
|
|
|
C.QDockWidget_SetFloating(this.h, (C.bool)(floating))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QDockWidget) IsFloating() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QDockWidget_IsFloating(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func (this *QDockWidget) SetAllowedAreas(areas DockWidgetArea) {
|
2024-09-18 01:33:50 +00:00
|
|
|
C.QDockWidget_SetAllowedAreas(this.h, (C.int)(areas))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func (this *QDockWidget) AllowedAreas() DockWidgetArea {
|
|
|
|
return (DockWidgetArea)(C.QDockWidget_AllowedAreas(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QDockWidget) SetTitleBarWidget(widget *QWidget) {
|
|
|
|
C.QDockWidget_SetTitleBarWidget(this.h, widget.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QDockWidget) TitleBarWidget() *QWidget {
|
2024-10-16 05:07:56 +00:00
|
|
|
return UnsafeNewQWidget(unsafe.Pointer(C.QDockWidget_TitleBarWidget(this.h)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QDockWidget) IsAreaAllowed(area DockWidgetArea) bool {
|
2024-09-18 00:12:02 +00:00
|
|
|
return (bool)(C.QDockWidget_IsAreaAllowed(this.h, (C.int)(area)))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QDockWidget) ToggleViewAction() *QAction {
|
2024-10-16 05:07:56 +00:00
|
|
|
return UnsafeNewQAction(unsafe.Pointer(C.QDockWidget_ToggleViewAction(this.h)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func (this *QDockWidget) FeaturesChanged(features QDockWidget__DockWidgetFeature) {
|
2024-09-18 01:33:50 +00:00
|
|
|
C.QDockWidget_FeaturesChanged(this.h, (C.int)(features))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
2024-09-20 06:40:03 +00:00
|
|
|
func (this *QDockWidget) OnFeaturesChanged(slot func(features QDockWidget__DockWidgetFeature)) {
|
2024-10-13 06:06:06 +00:00
|
|
|
C.QDockWidget_connect_FeaturesChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
2024-09-14 22:29:05 +00:00
|
|
|
}
|
2024-08-29 07:01:51 +00:00
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
//export miqt_exec_callback_QDockWidget_FeaturesChanged
|
2024-10-13 06:06:06 +00:00
|
|
|
func miqt_exec_callback_QDockWidget_FeaturesChanged(cb C.intptr_t, features C.int) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(features QDockWidget__DockWidgetFeature))
|
2024-09-14 22:29:05 +00:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Convert all CABI parameters to Go parameters
|
2024-09-20 06:40:03 +00:00
|
|
|
slotval1 := (QDockWidget__DockWidgetFeature)(features)
|
2024-09-14 22:29:05 +00:00
|
|
|
|
|
|
|
gofunc(slotval1)
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QDockWidget) TopLevelChanged(topLevel bool) {
|
|
|
|
C.QDockWidget_TopLevelChanged(this.h, (C.bool)(topLevel))
|
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
func (this *QDockWidget) OnTopLevelChanged(slot func(topLevel bool)) {
|
2024-10-13 06:06:06 +00:00
|
|
|
C.QDockWidget_connect_TopLevelChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
2024-09-14 22:29:05 +00:00
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
//export miqt_exec_callback_QDockWidget_TopLevelChanged
|
2024-10-13 06:06:06 +00:00
|
|
|
func miqt_exec_callback_QDockWidget_TopLevelChanged(cb C.intptr_t, topLevel C.bool) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(topLevel bool))
|
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
|
|
|
// Convert all CABI parameters to Go parameters
|
2024-09-17 07:30:27 +00:00
|
|
|
slotval1 := (bool)(topLevel)
|
2024-09-14 22:29:05 +00:00
|
|
|
|
|
|
|
gofunc(slotval1)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 06:40:03 +00:00
|
|
|
func (this *QDockWidget) AllowedAreasChanged(allowedAreas DockWidgetArea) {
|
2024-09-18 01:33:50 +00:00
|
|
|
C.QDockWidget_AllowedAreasChanged(this.h, (C.int)(allowedAreas))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
2024-09-20 06:40:03 +00:00
|
|
|
func (this *QDockWidget) OnAllowedAreasChanged(slot func(allowedAreas DockWidgetArea)) {
|
2024-10-13 06:06:06 +00:00
|
|
|
C.QDockWidget_connect_AllowedAreasChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
2024-09-14 22:29:05 +00:00
|
|
|
}
|
2024-08-29 07:01:51 +00:00
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
//export miqt_exec_callback_QDockWidget_AllowedAreasChanged
|
2024-10-13 06:06:06 +00:00
|
|
|
func miqt_exec_callback_QDockWidget_AllowedAreasChanged(cb C.intptr_t, allowedAreas C.int) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(allowedAreas DockWidgetArea))
|
2024-09-14 22:29:05 +00:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Convert all CABI parameters to Go parameters
|
2024-09-20 06:40:03 +00:00
|
|
|
slotval1 := (DockWidgetArea)(allowedAreas)
|
2024-09-14 22:29:05 +00:00
|
|
|
|
|
|
|
gofunc(slotval1)
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QDockWidget) VisibilityChanged(visible bool) {
|
|
|
|
C.QDockWidget_VisibilityChanged(this.h, (C.bool)(visible))
|
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
func (this *QDockWidget) OnVisibilityChanged(slot func(visible bool)) {
|
2024-10-13 06:06:06 +00:00
|
|
|
C.QDockWidget_connect_VisibilityChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
2024-09-14 22:29:05 +00:00
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
//export miqt_exec_callback_QDockWidget_VisibilityChanged
|
2024-10-13 06:06:06 +00:00
|
|
|
func miqt_exec_callback_QDockWidget_VisibilityChanged(cb C.intptr_t, visible C.bool) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(visible bool))
|
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
|
|
|
// Convert all CABI parameters to Go parameters
|
2024-09-17 07:30:27 +00:00
|
|
|
slotval1 := (bool)(visible)
|
2024-09-14 22:29:05 +00:00
|
|
|
|
|
|
|
gofunc(slotval1)
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QDockWidget) DockLocationChanged(area DockWidgetArea) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QDockWidget_DockLocationChanged(this.h, (C.int)(area))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
func (this *QDockWidget) OnDockLocationChanged(slot func(area DockWidgetArea)) {
|
2024-10-13 06:06:06 +00:00
|
|
|
C.QDockWidget_connect_DockLocationChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
2024-09-14 22:29:05 +00:00
|
|
|
}
|
2024-08-29 07:01:51 +00:00
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
//export miqt_exec_callback_QDockWidget_DockLocationChanged
|
2024-10-13 06:06:06 +00:00
|
|
|
func miqt_exec_callback_QDockWidget_DockLocationChanged(cb C.intptr_t, area C.int) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(area DockWidgetArea))
|
2024-09-14 22:29:05 +00:00
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Convert all CABI parameters to Go parameters
|
2024-09-17 07:30:27 +00:00
|
|
|
slotval1 := (DockWidgetArea)(area)
|
2024-09-14 22:29:05 +00:00
|
|
|
|
|
|
|
gofunc(slotval1)
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func QDockWidget_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.QDockWidget_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 QDockWidget_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.QDockWidget_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 QDockWidget_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.QDockWidget_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 QDockWidget_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.QDockWidget_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 *QDockWidget) Delete() {
|
|
|
|
C.QDockWidget_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 *QDockWidget) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QDockWidget) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|