- Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathqclipboard.go
733 lines (578 loc) · 27.9 KB
/
qclipboard.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
package qtgui
// /usr/include/qt/QtGui/qclipboard.h
// #include <qclipboard.h>
// #include <QtGui>
// header block end
// main block begin
// main block end
// use block begin
// use block end
// ext block begin
/*
#include <stdlib.h>
// extern C begin: 16
*/
// import "C"
import"unsafe"
import"reflect"
import"fmt"
import"log"
import"github.com/kitech/qt.go/qtrt"
import"github.com/kitech/qt.go/qtcore"
// ext block end
// body block begin
/*
*/
typeQClipboardstruct {
*qtcore.QObject
}
typeQClipboard_ITFinterface {
qtcore.QObject_ITF
QClipboard_PTR() *QClipboard
}
func (ptr*QClipboard) QClipboard_PTR() *QClipboard { returnptr }
func (this*QClipboard) GetCthis() unsafe.Pointer {
ifthis==nil {
returnnil
} else {
returnthis.QObject.GetCthis()
}
}
func (this*QClipboard) SetCthis(cthis unsafe.Pointer) {
this.QObject=qtcore.NewQObjectFromPointer(cthis)
}
funcNewQClipboardFromPointer(cthis unsafe.Pointer) *QClipboard {
bcthis0:=qtcore.NewQObjectFromPointer(cthis)
return&QClipboard{bcthis0}
}
func (*QClipboard) NewFromPointer(cthis unsafe.Pointer) *QClipboard {
returnNewQClipboardFromPointer(cthis)
}
// /usr/include/qt/QtGui/qclipboard.h:57
// index:0
// Public virtual Visibility=Default Availability=Available
// [8] const QMetaObject * metaObject() const
/*
*/
func (this*QClipboard) MetaObject() *qtcore.QMetaObject/*777 const QMetaObject **/ {
rv, err:=qtrt.InvokeQtFunc6("_ZNK10QClipboard10metaObjectEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
returnqtcore.NewQMetaObjectFromPointer(unsafe.Pointer(uintptr(rv))) // 444
}
// /usr/include/qt/QtGui/qclipboard.h:65
// index:0
// Public Visibility=Default Availability=Available
// [-2] void clear(QClipboard::Mode)
/*
Clear the clipboard contents.
The mode argument is used to control which part of the system clipboard is used. If mode is QClipboard::Clipboard, this function clears the global clipboard contents. If mode is QClipboard::Selection, this function clears the global mouse selection contents. If mode is QClipboard::FindBuffer, this function clears the search string buffer.
See also QClipboard::Mode and supportsSelection().
*/
func (this*QClipboard) Clear(modeint) {
rv, err:=qtrt.InvokeQtFunc6("_ZN10QClipboard5clearENS_4ModeE", qtrt.FFI_TYPE_POINTER, this.GetCthis(), mode)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qclipboard.h:65
// index:0
// Public Visibility=Default Availability=Available
// [-2] void clear(QClipboard::Mode)
/*
Clear the clipboard contents.
The mode argument is used to control which part of the system clipboard is used. If mode is QClipboard::Clipboard, this function clears the global clipboard contents. If mode is QClipboard::Selection, this function clears the global mouse selection contents. If mode is QClipboard::FindBuffer, this function clears the search string buffer.
See also QClipboard::Mode and supportsSelection().
*/
func (this*QClipboard) Clearp() {
// arg: 0, QClipboard::Mode=Enum, QClipboard::Mode=Enum, , Invalid
mode:=0
rv, err:=qtrt.InvokeQtFunc6("_ZN10QClipboard5clearENS_4ModeE", qtrt.FFI_TYPE_POINTER, this.GetCthis(), mode)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qclipboard.h:67
// index:0
// Public Visibility=Default Availability=Available
// [1] bool supportsSelection() const
/*
Returns true if the clipboard supports mouse selection; otherwise returns false.
*/
func (this*QClipboard) SupportsSelection() bool {
rv, err:=qtrt.InvokeQtFunc6("_ZNK10QClipboard17supportsSelectionEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
returnrv!=0
}
// /usr/include/qt/QtGui/qclipboard.h:68
// index:0
// Public Visibility=Default Availability=Available
// [1] bool supportsFindBuffer() const
/*
Returns true if the clipboard supports a separate search buffer; otherwise returns false.
*/
func (this*QClipboard) SupportsFindBuffer() bool {
rv, err:=qtrt.InvokeQtFunc6("_ZNK10QClipboard18supportsFindBufferEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
returnrv!=0
}
// /usr/include/qt/QtGui/qclipboard.h:70
// index:0
// Public Visibility=Default Availability=Available
// [1] bool ownsSelection() const
/*
Returns true if this clipboard object owns the mouse selection data; otherwise returns false.
*/
func (this*QClipboard) OwnsSelection() bool {
rv, err:=qtrt.InvokeQtFunc6("_ZNK10QClipboard13ownsSelectionEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
returnrv!=0
}
// /usr/include/qt/QtGui/qclipboard.h:71
// index:0
// Public Visibility=Default Availability=Available
// [1] bool ownsClipboard() const
/*
Returns true if this clipboard object owns the clipboard data; otherwise returns false.
*/
func (this*QClipboard) OwnsClipboard() bool {
rv, err:=qtrt.InvokeQtFunc6("_ZNK10QClipboard13ownsClipboardEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
returnrv!=0
}
// /usr/include/qt/QtGui/qclipboard.h:72
// index:0
// Public Visibility=Default Availability=Available
// [1] bool ownsFindBuffer() const
/*
Returns true if this clipboard object owns the find buffer data; otherwise returns false.
This function was introduced in Qt 4.2.
*/
func (this*QClipboard) OwnsFindBuffer() bool {
rv, err:=qtrt.InvokeQtFunc6("_ZNK10QClipboard14ownsFindBufferEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
returnrv!=0
}
// /usr/include/qt/QtGui/qclipboard.h:74
// index:0
// Public Visibility=Default Availability=Available
// [8] QString text(QClipboard::Mode) const
/*
Returns the clipboard text as plain text, or an empty string if the clipboard does not contain any text.
The mode argument is used to control which part of the system clipboard is used. If mode is QClipboard::Clipboard, the text is retrieved from the global clipboard. If mode is QClipboard::Selection, the text is retrieved from the global mouse selection. If mode is QClipboard::FindBuffer, the text is retrieved from the search string buffer.
See also setText() and mimeData().
*/
func (this*QClipboard) Text(modeint) string {
rv, err:=qtrt.InvokeQtFunc6("_ZNK10QClipboard4textENS_4ModeE", qtrt.FFI_TYPE_POINTER, this.GetCthis(), mode)
qtrt.ErrPrint(err, rv)
rv2:=qtcore.NewQStringFromPointer(unsafe.Pointer(uintptr(rv)))
rv3:=rv2.ToUtf8().Data()
qtcore.DeleteQString(rv2)
returnrv3
}
// /usr/include/qt/QtGui/qclipboard.h:74
// index:0
// Public Visibility=Default Availability=Available
// [8] QString text(QClipboard::Mode) const
/*
Returns the clipboard text as plain text, or an empty string if the clipboard does not contain any text.
The mode argument is used to control which part of the system clipboard is used. If mode is QClipboard::Clipboard, the text is retrieved from the global clipboard. If mode is QClipboard::Selection, the text is retrieved from the global mouse selection. If mode is QClipboard::FindBuffer, the text is retrieved from the search string buffer.
See also setText() and mimeData().
*/
func (this*QClipboard) Textp() string {
// arg: 0, QClipboard::Mode=Enum, QClipboard::Mode=Enum, , Invalid
mode:=0
rv, err:=qtrt.InvokeQtFunc6("_ZNK10QClipboard4textENS_4ModeE", qtrt.FFI_TYPE_POINTER, this.GetCthis(), mode)
qtrt.ErrPrint(err, rv)
rv2:=qtcore.NewQStringFromPointer(unsafe.Pointer(uintptr(rv)))
rv3:=rv2.ToUtf8().Data()
qtcore.DeleteQString(rv2)
returnrv3
}
// /usr/include/qt/QtGui/qclipboard.h:75
// index:1
// Public Visibility=Default Availability=Available
// [8] QString text(QString &, QClipboard::Mode) const
/*
Returns the clipboard text as plain text, or an empty string if the clipboard does not contain any text.
The mode argument is used to control which part of the system clipboard is used. If mode is QClipboard::Clipboard, the text is retrieved from the global clipboard. If mode is QClipboard::Selection, the text is retrieved from the global mouse selection. If mode is QClipboard::FindBuffer, the text is retrieved from the search string buffer.
See also setText() and mimeData().
*/
func (this*QClipboard) Text1(subtypestring, modeint) string {
vartmpArg0=qtcore.NewQString5(subtype)
varconvArg0=tmpArg0.GetCthis()
rv, err:=qtrt.InvokeQtFunc6("_ZNK10QClipboard4textER7QStringNS_4ModeE", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0, mode)
qtrt.ErrPrint(err, rv)
rv2:=qtcore.NewQStringFromPointer(unsafe.Pointer(uintptr(rv)))
rv3:=rv2.ToUtf8().Data()
qtcore.DeleteQString(rv2)
returnrv3
}
// /usr/include/qt/QtGui/qclipboard.h:75
// index:1
// Public Visibility=Default Availability=Available
// [8] QString text(QString &, QClipboard::Mode) const
/*
Returns the clipboard text as plain text, or an empty string if the clipboard does not contain any text.
The mode argument is used to control which part of the system clipboard is used. If mode is QClipboard::Clipboard, the text is retrieved from the global clipboard. If mode is QClipboard::Selection, the text is retrieved from the global mouse selection. If mode is QClipboard::FindBuffer, the text is retrieved from the search string buffer.
See also setText() and mimeData().
*/
func (this*QClipboard) Text1p(subtypestring) string {
vartmpArg0=qtcore.NewQString5(subtype)
varconvArg0=tmpArg0.GetCthis()
// arg: 1, QClipboard::Mode=Enum, QClipboard::Mode=Enum, , Invalid
mode:=0
rv, err:=qtrt.InvokeQtFunc6("_ZNK10QClipboard4textER7QStringNS_4ModeE", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0, mode)
qtrt.ErrPrint(err, rv)
rv2:=qtcore.NewQStringFromPointer(unsafe.Pointer(uintptr(rv)))
rv3:=rv2.ToUtf8().Data()
qtcore.DeleteQString(rv2)
returnrv3
}
// /usr/include/qt/QtGui/qclipboard.h:76
// index:0
// Public Visibility=Default Availability=Available
// [-2] void setText(const QString &, QClipboard::Mode)
/*
Copies text into the clipboard as plain text.
The mode argument is used to control which part of the system clipboard is used. If mode is QClipboard::Clipboard, the text is stored in the global clipboard. If mode is QClipboard::Selection, the text is stored in the global mouse selection. If mode is QClipboard::FindBuffer, the text is stored in the search string buffer.
See also text() and setMimeData().
*/
func (this*QClipboard) SetText(arg0string, modeint) {
vartmpArg0=qtcore.NewQString5(arg0)
varconvArg0=tmpArg0.GetCthis()
rv, err:=qtrt.InvokeQtFunc6("_ZN10QClipboard7setTextERK7QStringNS_4ModeE", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0, mode)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qclipboard.h:76
// index:0
// Public Visibility=Default Availability=Available
// [-2] void setText(const QString &, QClipboard::Mode)
/*
Copies text into the clipboard as plain text.
The mode argument is used to control which part of the system clipboard is used. If mode is QClipboard::Clipboard, the text is stored in the global clipboard. If mode is QClipboard::Selection, the text is stored in the global mouse selection. If mode is QClipboard::FindBuffer, the text is stored in the search string buffer.
See also text() and setMimeData().
*/
func (this*QClipboard) SetTextp(arg0string) {
vartmpArg0=qtcore.NewQString5(arg0)
varconvArg0=tmpArg0.GetCthis()
// arg: 1, QClipboard::Mode=Enum, QClipboard::Mode=Enum, , Invalid
mode:=0
rv, err:=qtrt.InvokeQtFunc6("_ZN10QClipboard7setTextERK7QStringNS_4ModeE", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0, mode)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qclipboard.h:78
// index:0
// Public Visibility=Default Availability=Available
// [8] const QMimeData * mimeData(QClipboard::Mode) const
/*
Returns a pointer to a QMimeData representation of the current clipboard data (can be NULL if the given mode is not supported by the platform).
The mode argument is used to control which part of the system clipboard is used. If mode is QClipboard::Clipboard, the data is retrieved from the global clipboard. If mode is QClipboard::Selection, the data is retrieved from the global mouse selection. If mode is QClipboard::FindBuffer, the data is retrieved from the search string buffer.
The text(), image(), and pixmap() functions are simpler wrappers for retrieving text, image, and pixmap data.
Note: The pointer returned might become invalidated when the contents of the clipboard changes; either by calling one of the setter functions or externally by the system clipboard changing.
See also setMimeData().
*/
func (this*QClipboard) MimeData(modeint) *qtcore.QMimeData/*777 const QMimeData **/ {
rv, err:=qtrt.InvokeQtFunc6("_ZNK10QClipboard8mimeDataENS_4ModeE", qtrt.FFI_TYPE_POINTER, this.GetCthis(), mode)
qtrt.ErrPrint(err, rv)
returnqtcore.NewQMimeDataFromPointer(unsafe.Pointer(uintptr(rv))) // 444
}
// /usr/include/qt/QtGui/qclipboard.h:78
// index:0
// Public Visibility=Default Availability=Available
// [8] const QMimeData * mimeData(QClipboard::Mode) const
/*
Returns a pointer to a QMimeData representation of the current clipboard data (can be NULL if the given mode is not supported by the platform).
The mode argument is used to control which part of the system clipboard is used. If mode is QClipboard::Clipboard, the data is retrieved from the global clipboard. If mode is QClipboard::Selection, the data is retrieved from the global mouse selection. If mode is QClipboard::FindBuffer, the data is retrieved from the search string buffer.
The text(), image(), and pixmap() functions are simpler wrappers for retrieving text, image, and pixmap data.
Note: The pointer returned might become invalidated when the contents of the clipboard changes; either by calling one of the setter functions or externally by the system clipboard changing.
See also setMimeData().
*/
func (this*QClipboard) MimeDatap() *qtcore.QMimeData/*777 const QMimeData **/ {
// arg: 0, QClipboard::Mode=Enum, QClipboard::Mode=Enum, , Invalid
mode:=0
rv, err:=qtrt.InvokeQtFunc6("_ZNK10QClipboard8mimeDataENS_4ModeE", qtrt.FFI_TYPE_POINTER, this.GetCthis(), mode)
qtrt.ErrPrint(err, rv)
returnqtcore.NewQMimeDataFromPointer(unsafe.Pointer(uintptr(rv))) // 444
}
// /usr/include/qt/QtGui/qclipboard.h:79
// index:0
// Public Visibility=Default Availability=Available
// [-2] void setMimeData(QMimeData *, QClipboard::Mode)
/*
Sets the clipboard data to src. Ownership of the data is transferred to the clipboard. If you want to remove the data either call clear() or call setMimeData() again with new data.
The mode argument is used to control which part of the system clipboard is used. If mode is QClipboard::Clipboard, the data is stored in the global clipboard. If mode is QClipboard::Selection, the data is stored in the global mouse selection. If mode is QClipboard::FindBuffer, the data is stored in the search string buffer.
The setText(), setImage() and setPixmap() functions are simpler wrappers for setting text, image and pixmap data respectively.
See also mimeData().
*/
func (this*QClipboard) SetMimeData(data qtcore.QMimeData_ITF/*777 QMimeData **/, modeint) {
varconvArg0 unsafe.Pointer
ifdata!=nil&&data.QMimeData_PTR() !=nil {
convArg0=data.QMimeData_PTR().GetCthis()
}
rv, err:=qtrt.InvokeQtFunc6("_ZN10QClipboard11setMimeDataEP9QMimeDataNS_4ModeE", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0, mode)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qclipboard.h:79
// index:0
// Public Visibility=Default Availability=Available
// [-2] void setMimeData(QMimeData *, QClipboard::Mode)
/*
Sets the clipboard data to src. Ownership of the data is transferred to the clipboard. If you want to remove the data either call clear() or call setMimeData() again with new data.
The mode argument is used to control which part of the system clipboard is used. If mode is QClipboard::Clipboard, the data is stored in the global clipboard. If mode is QClipboard::Selection, the data is stored in the global mouse selection. If mode is QClipboard::FindBuffer, the data is stored in the search string buffer.
The setText(), setImage() and setPixmap() functions are simpler wrappers for setting text, image and pixmap data respectively.
See also mimeData().
*/
func (this*QClipboard) SetMimeDatap(data qtcore.QMimeData_ITF/*777 QMimeData **/) {
varconvArg0 unsafe.Pointer
ifdata!=nil&&data.QMimeData_PTR() !=nil {
convArg0=data.QMimeData_PTR().GetCthis()
}
// arg: 1, QClipboard::Mode=Enum, QClipboard::Mode=Enum, , Invalid
mode:=0
rv, err:=qtrt.InvokeQtFunc6("_ZN10QClipboard11setMimeDataEP9QMimeDataNS_4ModeE", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0, mode)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qclipboard.h:81
// index:0
// Public Visibility=Default Availability=Available
// [32] QImage image(QClipboard::Mode) const
/*
Returns the clipboard image, or returns a null image if the clipboard does not contain an image or if it contains an image in an unsupported image format.
The mode argument is used to control which part of the system clipboard is used. If mode is QClipboard::Clipboard, the image is retrieved from the global clipboard. If mode is QClipboard::Selection, the image is retrieved from the global mouse selection.
See also setImage(), pixmap(), mimeData(), and QImage::isNull().
*/
func (this*QClipboard) Image(modeint) *QImage/*123*/ {
rv, err:=qtrt.InvokeQtFunc6("_ZNK10QClipboard5imageENS_4ModeE", qtrt.FFI_TYPE_POINTER, this.GetCthis(), mode)
qtrt.ErrPrint(err, rv)
rv2:=/*==*/NewQImageFromPointer(unsafe.Pointer(uintptr(rv))) // 333
qtrt.SetFinalizer(rv2/*==*/, DeleteQImage)
returnrv2
}
// /usr/include/qt/QtGui/qclipboard.h:81
// index:0
// Public Visibility=Default Availability=Available
// [32] QImage image(QClipboard::Mode) const
/*
Returns the clipboard image, or returns a null image if the clipboard does not contain an image or if it contains an image in an unsupported image format.
The mode argument is used to control which part of the system clipboard is used. If mode is QClipboard::Clipboard, the image is retrieved from the global clipboard. If mode is QClipboard::Selection, the image is retrieved from the global mouse selection.
See also setImage(), pixmap(), mimeData(), and QImage::isNull().
*/
func (this*QClipboard) Imagep() *QImage/*123*/ {
// arg: 0, QClipboard::Mode=Enum, QClipboard::Mode=Enum, , Invalid
mode:=0
rv, err:=qtrt.InvokeQtFunc6("_ZNK10QClipboard5imageENS_4ModeE", qtrt.FFI_TYPE_POINTER, this.GetCthis(), mode)
qtrt.ErrPrint(err, rv)
rv2:=/*==*/NewQImageFromPointer(unsafe.Pointer(uintptr(rv))) // 333
qtrt.SetFinalizer(rv2/*==*/, DeleteQImage)
returnrv2
}
// /usr/include/qt/QtGui/qclipboard.h:82
// index:0
// Public Visibility=Default Availability=Available
// [32] QPixmap pixmap(QClipboard::Mode) const
/*
Returns the clipboard pixmap, or null if the clipboard does not contain a pixmap. Note that this can lose information. For example, if the image is 24-bit and the display is 8-bit, the result is converted to 8 bits, and if the image has an alpha channel, the result just has a mask.
The mode argument is used to control which part of the system clipboard is used. If mode is QClipboard::Clipboard, the pixmap is retrieved from the global clipboard. If mode is QClipboard::Selection, the pixmap is retrieved from the global mouse selection.
See also setPixmap(), image(), mimeData(), and QPixmap::convertFromImage().
*/
func (this*QClipboard) Pixmap(modeint) *QPixmap/*123*/ {
rv, err:=qtrt.InvokeQtFunc6("_ZNK10QClipboard6pixmapENS_4ModeE", qtrt.FFI_TYPE_POINTER, this.GetCthis(), mode)
qtrt.ErrPrint(err, rv)
rv2:=/*==*/NewQPixmapFromPointer(unsafe.Pointer(uintptr(rv))) // 333
qtrt.SetFinalizer(rv2/*==*/, DeleteQPixmap)
returnrv2
}
// /usr/include/qt/QtGui/qclipboard.h:82
// index:0
// Public Visibility=Default Availability=Available
// [32] QPixmap pixmap(QClipboard::Mode) const
/*
Returns the clipboard pixmap, or null if the clipboard does not contain a pixmap. Note that this can lose information. For example, if the image is 24-bit and the display is 8-bit, the result is converted to 8 bits, and if the image has an alpha channel, the result just has a mask.
The mode argument is used to control which part of the system clipboard is used. If mode is QClipboard::Clipboard, the pixmap is retrieved from the global clipboard. If mode is QClipboard::Selection, the pixmap is retrieved from the global mouse selection.
See also setPixmap(), image(), mimeData(), and QPixmap::convertFromImage().
*/
func (this*QClipboard) Pixmapp() *QPixmap/*123*/ {
// arg: 0, QClipboard::Mode=Enum, QClipboard::Mode=Enum, , Invalid
mode:=0
rv, err:=qtrt.InvokeQtFunc6("_ZNK10QClipboard6pixmapENS_4ModeE", qtrt.FFI_TYPE_POINTER, this.GetCthis(), mode)
qtrt.ErrPrint(err, rv)
rv2:=/*==*/NewQPixmapFromPointer(unsafe.Pointer(uintptr(rv))) // 333
qtrt.SetFinalizer(rv2/*==*/, DeleteQPixmap)
returnrv2
}
// /usr/include/qt/QtGui/qclipboard.h:83
// index:0
// Public Visibility=Default Availability=Available
// [-2] void setImage(const QImage &, QClipboard::Mode)
/*
Copies the image into the clipboard.
The mode argument is used to control which part of the system clipboard is used. If mode is QClipboard::Clipboard, the image is stored in the global clipboard. If mode is QClipboard::Selection, the data is stored in the global mouse selection.
This is shorthand for:
QMimeData *data = new QMimeData;
data->setImageData(image);
clipboard->setMimeData(data, mode);
See also image(), setPixmap(), and setMimeData().
*/
func (this*QClipboard) SetImage(arg0QImage_ITF, modeint) {
varconvArg0 unsafe.Pointer
ifarg0!=nil&&arg0.QImage_PTR() !=nil {
convArg0=arg0.QImage_PTR().GetCthis()
}
rv, err:=qtrt.InvokeQtFunc6("_ZN10QClipboard8setImageERK6QImageNS_4ModeE", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0, mode)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qclipboard.h:83
// index:0
// Public Visibility=Default Availability=Available
// [-2] void setImage(const QImage &, QClipboard::Mode)
/*
Copies the image into the clipboard.
The mode argument is used to control which part of the system clipboard is used. If mode is QClipboard::Clipboard, the image is stored in the global clipboard. If mode is QClipboard::Selection, the data is stored in the global mouse selection.
This is shorthand for:
QMimeData *data = new QMimeData;
data->setImageData(image);
clipboard->setMimeData(data, mode);
See also image(), setPixmap(), and setMimeData().
*/
func (this*QClipboard) SetImagep(arg0QImage_ITF) {
varconvArg0 unsafe.Pointer
ifarg0!=nil&&arg0.QImage_PTR() !=nil {
convArg0=arg0.QImage_PTR().GetCthis()
}
// arg: 1, QClipboard::Mode=Enum, QClipboard::Mode=Enum, , Invalid
mode:=0
rv, err:=qtrt.InvokeQtFunc6("_ZN10QClipboard8setImageERK6QImageNS_4ModeE", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0, mode)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qclipboard.h:84
// index:0
// Public Visibility=Default Availability=Available
// [-2] void setPixmap(const QPixmap &, QClipboard::Mode)
/*
Copies pixmap into the clipboard. Note that this is slower than setImage() because it needs to convert the QPixmap to a QImage first.
The mode argument is used to control which part of the system clipboard is used. If mode is QClipboard::Clipboard, the pixmap is stored in the global clipboard. If mode is QClipboard::Selection, the pixmap is stored in the global mouse selection.
See also pixmap(), setImage(), and setMimeData().
*/
func (this*QClipboard) SetPixmap(arg0QPixmap_ITF, modeint) {
varconvArg0 unsafe.Pointer
ifarg0!=nil&&arg0.QPixmap_PTR() !=nil {
convArg0=arg0.QPixmap_PTR().GetCthis()
}
rv, err:=qtrt.InvokeQtFunc6("_ZN10QClipboard9setPixmapERK7QPixmapNS_4ModeE", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0, mode)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qclipboard.h:84
// index:0
// Public Visibility=Default Availability=Available
// [-2] void setPixmap(const QPixmap &, QClipboard::Mode)
/*
Copies pixmap into the clipboard. Note that this is slower than setImage() because it needs to convert the QPixmap to a QImage first.
The mode argument is used to control which part of the system clipboard is used. If mode is QClipboard::Clipboard, the pixmap is stored in the global clipboard. If mode is QClipboard::Selection, the pixmap is stored in the global mouse selection.
See also pixmap(), setImage(), and setMimeData().
*/
func (this*QClipboard) SetPixmapp(arg0QPixmap_ITF) {
varconvArg0 unsafe.Pointer
ifarg0!=nil&&arg0.QPixmap_PTR() !=nil {
convArg0=arg0.QPixmap_PTR().GetCthis()
}
// arg: 1, QClipboard::Mode=Enum, QClipboard::Mode=Enum, , Invalid
mode:=0
rv, err:=qtrt.InvokeQtFunc6("_ZN10QClipboard9setPixmapERK7QPixmapNS_4ModeE", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0, mode)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qclipboard.h:87
// index:0
// Public Visibility=Default Availability=Available
// [-2] void changed(QClipboard::Mode)
/*
This signal is emitted when the data for the given clipboard mode is changed.
This function was introduced in Qt 4.2.
See also dataChanged(), selectionChanged(), and findBufferChanged().
*/
func (this*QClipboard) Changed(modeint) {
rv, err:=qtrt.InvokeQtFunc6("_ZN10QClipboard7changedENS_4ModeE", qtrt.FFI_TYPE_POINTER, this.GetCthis(), mode)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qclipboard.h:88
// index:0
// Public Visibility=Default Availability=Available
// [-2] void selectionChanged()
/*
This signal is emitted when the selection is changed. This only applies to windowing systems that support selections, e.g. X11. Windows and macOS don't support selections.
See also dataChanged(), findBufferChanged(), and changed().
*/
func (this*QClipboard) SelectionChanged() {
rv, err:=qtrt.InvokeQtFunc6("_ZN10QClipboard16selectionChangedEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qclipboard.h:89
// index:0
// Public Visibility=Default Availability=Available
// [-2] void findBufferChanged()
/*
This signal is emitted when the find buffer is changed. This only applies to macOS.
With Qt version 4.3 or higher, clipboard changes made by other applications will only be detected when the application is activated.
This function was introduced in Qt 4.2.
See also dataChanged(), selectionChanged(), and changed().
*/
func (this*QClipboard) FindBufferChanged() {
rv, err:=qtrt.InvokeQtFunc6("_ZN10QClipboard17findBufferChangedEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qclipboard.h:90
// index:0
// Public Visibility=Default Availability=Available
// [-2] void dataChanged()
/*
This signal is emitted when the clipboard data is changed.
On macOS and with Qt version 4.3 or higher, clipboard changes made by other applications will only be detected when the application is activated.
See also findBufferChanged(), selectionChanged(), and changed().
*/
func (this*QClipboard) DataChanged() {
rv, err:=qtrt.InvokeQtFunc6("_ZN10QClipboard11dataChangedEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
}
funcDeleteQClipboard(this*QClipboard) {
rv, err:=qtrt.InvokeQtFunc6("_ZN10QClipboardD2Ev", qtrt.FFI_TYPE_VOID, this.GetCthis())
qtrt.ErrPrint(err, rv)
this.SetCthis(nil)
}
/*
This enum type is used to control which part of the system clipboard is used by QClipboard::mimeData(), QClipboard::setMimeData() and related functions.
See also QClipboard::supportsSelection().
*/
typeQClipboard__Mode=int
// indicates that data should be stored and retrieved from the global clipboard.
constQClipboard__ClipboardQClipboard__Mode=0
//
constQClipboard__SelectionQClipboard__Mode=1
// indicates that data should be stored and retrieved from the Find buffer. This mode is used for holding search strings on macOS.
constQClipboard__FindBufferQClipboard__Mode=2
//
constQClipboard__LastModeQClipboard__Mode=2
func (this*QClipboard) ModeItemName(valint) string {
returnqtrt.GetClassEnumItemName(this, val)
}
funcQClipboard_ModeItemName(valint) string {
varnilthis*QClipboard
returnnilthis.ModeItemName(val)
}
// body block end
// keep block begin
funcinit_unused_10857() {
iffalse {
reflect.TypeOf(123)
}
iffalse {
reflect.TypeOf(unsafe.Sizeof(0))
}
iffalse {
fmt.Println(123)
}
iffalse {
log.Println(123)
}
iffalse {
qtrt.KeepMe()
}
iffalse {
qtcore.KeepMe()
}
}
// keep block end