2024-08-25 04:08:24 +00:00
|
|
|
package qt
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
#include "gen_qclipboard.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
*/
|
|
|
|
import "C"
|
|
|
|
|
|
|
|
import (
|
|
|
|
"runtime/cgo"
|
|
|
|
"unsafe"
|
|
|
|
)
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
type QClipboard__Mode int
|
|
|
|
|
|
|
|
const (
|
2024-09-20 07:13:26 +00:00
|
|
|
QClipboard__Clipboard QClipboard__Mode = 0
|
|
|
|
QClipboard__Selection QClipboard__Mode = 1
|
|
|
|
QClipboard__FindBuffer QClipboard__Mode = 2
|
|
|
|
QClipboard__LastMode QClipboard__Mode = 2
|
2024-09-04 06:54:22 +00:00
|
|
|
)
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
type QClipboard struct {
|
2024-11-19 06:29:06 +00:00
|
|
|
h *C.QClipboard
|
|
|
|
isSubclass bool
|
2024-08-25 04:08:24 +00:00
|
|
|
*QObject
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QClipboard) cPointer() *C.QClipboard {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func (this *QClipboard) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// newQClipboard constructs the type using only CGO pointers.
|
|
|
|
func newQClipboard(h *C.QClipboard, h_QObject *C.QObject) *QClipboard {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-11-19 06:29:06 +00:00
|
|
|
return &QClipboard{h: h,
|
|
|
|
QObject: newQObject(h_QObject)}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// UnsafeNewQClipboard constructs the type using only unsafe pointers.
|
|
|
|
func UnsafeNewQClipboard(h unsafe.Pointer, h_QObject unsafe.Pointer) *QClipboard {
|
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
return &QClipboard{h: (*C.QClipboard)(h),
|
|
|
|
QObject: UnsafeNewQObject(h_QObject)}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QClipboard) MetaObject() *QMetaObject {
|
2024-10-16 05:07:56 +00:00
|
|
|
return UnsafeNewQMetaObject(unsafe.Pointer(C.QClipboard_MetaObject(this.h)))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 22:32:57 +00:00
|
|
|
func (this *QClipboard) 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.QClipboard_Metacast(this.h, param1_Cstring))
|
2024-09-20 22:32:57 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func QClipboard_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.QClipboard_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 QClipboard_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.QClipboard_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-08-29 07:01:51 +00:00
|
|
|
func (this *QClipboard) Clear() {
|
|
|
|
C.QClipboard_Clear(this.h)
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QClipboard) SupportsSelection() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QClipboard_SupportsSelection(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QClipboard) SupportsFindBuffer() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QClipboard_SupportsFindBuffer(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QClipboard) OwnsSelection() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QClipboard_OwnsSelection(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QClipboard) OwnsClipboard() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QClipboard_OwnsClipboard(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QClipboard) OwnsFindBuffer() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QClipboard_OwnsFindBuffer(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
func (this *QClipboard) Text() string {
|
2024-10-18 23:53:33 +00:00
|
|
|
var _ms C.struct_miqt_string = C.QClipboard_Text(this.h)
|
|
|
|
_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-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QClipboard) TextWithSubtype(subtype string) string {
|
2024-10-18 23:53:33 +00:00
|
|
|
subtype_ms := C.struct_miqt_string{}
|
|
|
|
subtype_ms.data = C.CString(subtype)
|
|
|
|
subtype_ms.len = C.size_t(len(subtype))
|
|
|
|
defer C.free(unsafe.Pointer(subtype_ms.data))
|
|
|
|
var _ms C.struct_miqt_string = C.QClipboard_TextWithSubtype(this.h, subtype_ms)
|
|
|
|
_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-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QClipboard) SetText(param1 string) {
|
2024-10-18 23:53:33 +00:00
|
|
|
param1_ms := C.struct_miqt_string{}
|
|
|
|
param1_ms.data = C.CString(param1)
|
|
|
|
param1_ms.len = C.size_t(len(param1))
|
|
|
|
defer C.free(unsafe.Pointer(param1_ms.data))
|
|
|
|
C.QClipboard_SetText(this.h, param1_ms)
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QClipboard) MimeData() *QMimeData {
|
2024-11-19 06:29:06 +00:00
|
|
|
return UnsafeNewQMimeData(unsafe.Pointer(C.QClipboard_MimeData(this.h)), nil)
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QClipboard) SetMimeData(data *QMimeData) {
|
|
|
|
C.QClipboard_SetMimeData(this.h, data.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QClipboard) Image() *QImage {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QClipboard_Image(this.h)
|
2024-11-19 06:29:06 +00:00
|
|
|
_goptr := newQImage(_ret, nil)
|
2024-09-14 22:29:05 +00:00
|
|
|
_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 *QClipboard) Pixmap() *QPixmap {
|
2024-09-14 22:29:05 +00:00
|
|
|
_ret := C.QClipboard_Pixmap(this.h)
|
2024-11-19 06:29:06 +00:00
|
|
|
_goptr := newQPixmap(_ret, nil)
|
2024-09-14 22:29:05 +00:00
|
|
|
_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 *QClipboard) SetImage(param1 *QImage) {
|
|
|
|
C.QClipboard_SetImage(this.h, param1.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QClipboard) SetPixmap(param1 *QPixmap) {
|
|
|
|
C.QClipboard_SetPixmap(this.h, param1.cPointer())
|
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QClipboard) Changed(mode QClipboard__Mode) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QClipboard_Changed(this.h, (C.int)(mode))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
func (this *QClipboard) OnChanged(slot func(mode QClipboard__Mode)) {
|
2024-10-13 06:06:06 +00:00
|
|
|
C.QClipboard_connect_Changed(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_QClipboard_Changed
|
2024-10-13 06:06:06 +00:00
|
|
|
func miqt_exec_callback_QClipboard_Changed(cb C.intptr_t, mode C.int) {
|
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(mode QClipboard__Mode))
|
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 := (QClipboard__Mode)(mode)
|
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 *QClipboard) SelectionChanged() {
|
|
|
|
C.QClipboard_SelectionChanged(this.h)
|
|
|
|
}
|
|
|
|
func (this *QClipboard) OnSelectionChanged(slot func()) {
|
2024-10-13 06:06:06 +00:00
|
|
|
C.QClipboard_connect_SelectionChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
2024-09-14 22:29:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QClipboard_SelectionChanged
|
2024-10-13 06:06:06 +00:00
|
|
|
func miqt_exec_callback_QClipboard_SelectionChanged(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 (this *QClipboard) FindBufferChanged() {
|
|
|
|
C.QClipboard_FindBufferChanged(this.h)
|
|
|
|
}
|
|
|
|
func (this *QClipboard) OnFindBufferChanged(slot func()) {
|
2024-10-13 06:06:06 +00:00
|
|
|
C.QClipboard_connect_FindBufferChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
2024-09-14 22:29:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QClipboard_FindBufferChanged
|
2024-10-13 06:06:06 +00:00
|
|
|
func miqt_exec_callback_QClipboard_FindBufferChanged(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 (this *QClipboard) DataChanged() {
|
|
|
|
C.QClipboard_DataChanged(this.h)
|
|
|
|
}
|
|
|
|
func (this *QClipboard) OnDataChanged(slot func()) {
|
2024-10-13 06:06:06 +00:00
|
|
|
C.QClipboard_connect_DataChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
2024-09-14 22:29:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//export miqt_exec_callback_QClipboard_DataChanged
|
2024-10-13 06:06:06 +00:00
|
|
|
func miqt_exec_callback_QClipboard_DataChanged(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 QClipboard_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.QClipboard_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 QClipboard_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.QClipboard_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 QClipboard_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.QClipboard_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 QClipboard_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.QClipboard_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-08-29 07:01:51 +00:00
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QClipboard) Clear1(mode QClipboard__Mode) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QClipboard_Clear1(this.h, (C.int)(mode))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QClipboard) Text1(mode QClipboard__Mode) string {
|
2024-10-18 23:53:33 +00:00
|
|
|
var _ms C.struct_miqt_string = C.QClipboard_Text1(this.h, (C.int)(mode))
|
|
|
|
_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-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QClipboard) Text2(subtype string, mode QClipboard__Mode) string {
|
2024-10-18 23:53:33 +00:00
|
|
|
subtype_ms := C.struct_miqt_string{}
|
|
|
|
subtype_ms.data = C.CString(subtype)
|
|
|
|
subtype_ms.len = C.size_t(len(subtype))
|
|
|
|
defer C.free(unsafe.Pointer(subtype_ms.data))
|
|
|
|
var _ms C.struct_miqt_string = C.QClipboard_Text2(this.h, subtype_ms, (C.int)(mode))
|
|
|
|
_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-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QClipboard) SetText2(param1 string, mode QClipboard__Mode) {
|
2024-10-18 23:53:33 +00:00
|
|
|
param1_ms := C.struct_miqt_string{}
|
|
|
|
param1_ms.data = C.CString(param1)
|
|
|
|
param1_ms.len = C.size_t(len(param1))
|
|
|
|
defer C.free(unsafe.Pointer(param1_ms.data))
|
|
|
|
C.QClipboard_SetText2(this.h, param1_ms, (C.int)(mode))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QClipboard) MimeData1(mode QClipboard__Mode) *QMimeData {
|
2024-11-19 06:29:06 +00:00
|
|
|
return UnsafeNewQMimeData(unsafe.Pointer(C.QClipboard_MimeData1(this.h, (C.int)(mode))), nil)
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QClipboard) SetMimeData2(data *QMimeData, mode QClipboard__Mode) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QClipboard_SetMimeData2(this.h, data.cPointer(), (C.int)(mode))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QClipboard) Image1(mode QClipboard__Mode) *QImage {
|
2024-09-18 00:12:02 +00:00
|
|
|
_ret := C.QClipboard_Image1(this.h, (C.int)(mode))
|
2024-11-19 06:29:06 +00:00
|
|
|
_goptr := newQImage(_ret, nil)
|
2024-09-14 22:29:05 +00:00
|
|
|
_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 *QClipboard) Pixmap1(mode QClipboard__Mode) *QPixmap {
|
2024-09-18 00:12:02 +00:00
|
|
|
_ret := C.QClipboard_Pixmap1(this.h, (C.int)(mode))
|
2024-11-19 06:29:06 +00:00
|
|
|
_goptr := newQPixmap(_ret, nil)
|
2024-09-14 22:29:05 +00:00
|
|
|
_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 *QClipboard) SetImage2(param1 *QImage, mode QClipboard__Mode) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QClipboard_SetImage2(this.h, param1.cPointer(), (C.int)(mode))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QClipboard) SetPixmap2(param1 *QPixmap, mode QClipboard__Mode) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QClipboard_SetPixmap2(this.h, param1.cPointer(), (C.int)(mode))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|