- Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathqimageiohandler.go
636 lines (518 loc) · 22.2 KB
/
qimageiohandler.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
package qtgui
// /usr/include/qt/QtGui/qimageiohandler.h
// #include <qimageiohandler.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: 4
*/
// 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
/*
*/
typeQImageIOHandlerstruct {
*qtrt.CObject
}
typeQImageIOHandler_ITFinterface {
QImageIOHandler_PTR() *QImageIOHandler
}
func (ptr*QImageIOHandler) QImageIOHandler_PTR() *QImageIOHandler { returnptr }
func (this*QImageIOHandler) GetCthis() unsafe.Pointer {
ifthis==nil {
returnnil
} else {
returnthis.Cthis
}
}
func (this*QImageIOHandler) SetCthis(cthis unsafe.Pointer) {
ifthis.CObject==nil {
this.CObject=&qtrt.CObject{cthis}
} else {
this.CObject.Cthis=cthis
}
}
funcNewQImageIOHandlerFromPointer(cthis unsafe.Pointer) *QImageIOHandler {
return&QImageIOHandler{&qtrt.CObject{cthis}}
}
func (*QImageIOHandler) NewFromPointer(cthis unsafe.Pointer) *QImageIOHandler {
returnNewQImageIOHandlerFromPointer(cthis)
}
// /usr/include/qt/QtGui/qimageiohandler.h:62
// index:0
// Public Visibility=Default Availability=Available
// [-2] void QImageIOHandler()
/*
Constructs a QImageIOHandler object.
*/
func (*QImageIOHandler) NewForInherit() *QImageIOHandler {
returnNewQImageIOHandler()
}
funcNewQImageIOHandler() *QImageIOHandler {
rv, err:=qtrt.InvokeQtFunc6("_ZN15QImageIOHandlerC2Ev", qtrt.FFI_TYPE_POINTER)
qtrt.ErrPrint(err, rv)
gothis:=NewQImageIOHandlerFromPointer(unsafe.Pointer(uintptr(rv)))
qtrt.SetFinalizer(gothis, DeleteQImageIOHandler)
returngothis
}
// /usr/include/qt/QtGui/qimageiohandler.h:63
// index:0
// Public virtual Visibility=Default Availability=Available
// [-2] void ~QImageIOHandler()
/*
*/
funcDeleteQImageIOHandler(this*QImageIOHandler) {
rv, err:=qtrt.InvokeQtFunc6("_ZN15QImageIOHandlerD2Ev", qtrt.FFI_TYPE_VOID, this.GetCthis())
qtrt.Cmemset(this.GetCthis(), 9, 16)
qtrt.ErrPrint(err, rv)
this.SetCthis(nil)
}
// /usr/include/qt/QtGui/qimageiohandler.h:65
// index:0
// Public Visibility=Default Availability=Available
// [-2] void setDevice(QIODevice *)
/*
Sets the device of the QImageIOHandler to device. The image handler will use this device when reading and writing images.
The device can only be set once and must be set before calling canRead(), read(), write(), etc. If you need to read multiple files, construct multiple instances of the appropriate QImageIOHandler subclass.
See also device().
*/
func (this*QImageIOHandler) SetDevice(device qtcore.QIODevice_ITF/*777 QIODevice **/) {
varconvArg0 unsafe.Pointer
ifdevice!=nil&&device.QIODevice_PTR() !=nil {
convArg0=device.QIODevice_PTR().GetCthis()
}
rv, err:=qtrt.InvokeQtFunc6("_ZN15QImageIOHandler9setDeviceEP9QIODevice", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qimageiohandler.h:66
// index:0
// Public Visibility=Default Availability=Available
// [8] QIODevice * device() const
/*
Returns the device currently assigned to the QImageIOHandler. If not device has been assigned, 0 is returned.
See also setDevice().
*/
func (this*QImageIOHandler) Device() *qtcore.QIODevice/*777 QIODevice **/ {
rv, err:=qtrt.InvokeQtFunc6("_ZNK15QImageIOHandler6deviceEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
returnqtcore.NewQIODeviceFromPointer(unsafe.Pointer(uintptr(rv))) // 444
}
// /usr/include/qt/QtGui/qimageiohandler.h:68
// index:0
// Public Visibility=Default Availability=Available
// [-2] void setFormat(const QByteArray &)
/*
Sets the format of the QImageIOHandler to format. The format is most useful for handlers that support multiple image formats.
See also format().
*/
func (this*QImageIOHandler) SetFormat(format qtcore.QByteArray_ITF) {
varconvArg0 unsafe.Pointer
ifformat!=nil&&format.QByteArray_PTR() !=nil {
convArg0=format.QByteArray_PTR().GetCthis()
}
rv, err:=qtrt.InvokeQtFunc6("_ZN15QImageIOHandler9setFormatERK10QByteArray", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qimageiohandler.h:69
// index:1
// Public Visibility=Default Availability=Available
// [-2] void setFormat(const QByteArray &) const
/*
Sets the format of the QImageIOHandler to format. The format is most useful for handlers that support multiple image formats.
See also format().
*/
func (this*QImageIOHandler) SetFormat1(format qtcore.QByteArray_ITF) {
varconvArg0 unsafe.Pointer
ifformat!=nil&&format.QByteArray_PTR() !=nil {
convArg0=format.QByteArray_PTR().GetCthis()
}
rv, err:=qtrt.InvokeQtFunc6("_ZNK15QImageIOHandler9setFormatERK10QByteArray", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qimageiohandler.h:70
// index:0
// Public Visibility=Default Availability=Available
// [8] QByteArray format() const
/*
Returns the format that is currently assigned to QImageIOHandler. If no format has been assigned, an empty string is returned.
See also setFormat().
*/
func (this*QImageIOHandler) Format() *qtcore.QByteArray/*123*/ {
rv, err:=qtrt.InvokeQtFunc6("_ZNK15QImageIOHandler6formatEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
rv2:=qtcore.NewQByteArrayFromPointer(unsafe.Pointer(uintptr(rv))) // 333
qtrt.SetFinalizer(rv2, qtcore.DeleteQByteArray)
returnrv2
}
// /usr/include/qt/QtGui/qimageiohandler.h:72
// index:0
// Public virtual Visibility=Default Availability=Available
// [8] QByteArray name() const
/*
*/
func (this*QImageIOHandler) Name() *qtcore.QByteArray/*123*/ {
rv, err:=qtrt.InvokeQtFunc6("_ZNK15QImageIOHandler4nameEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
rv2:=qtcore.NewQByteArrayFromPointer(unsafe.Pointer(uintptr(rv))) // 333
qtrt.SetFinalizer(rv2, qtcore.DeleteQByteArray)
returnrv2
}
// /usr/include/qt/QtGui/qimageiohandler.h:74
// index:0
// Public purevirtual virtual Visibility=Default Availability=Available
// [1] bool canRead() const
/*
Returns true if an image can be read from the device (i.e., the image format is supported, the device can be read from and the initial header information suggests that the image can be read); otherwise returns false.
When reimplementing canRead(), make sure that the I/O device (device()) is left in its original state (e.g., by using peek() rather than read()).
See also read() and QIODevice::peek().
*/
func (this*QImageIOHandler) CanRead() bool {
rv, err:=qtrt.InvokeQtFunc6("_ZNK15QImageIOHandler7canReadEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
returnrv!=0
}
// /usr/include/qt/QtGui/qimageiohandler.h:75
// index:0
// Public purevirtual virtual Visibility=Default Availability=Available
// [1] bool read(QImage *)
/*
Read an image from the device, and stores it in image. Returns true if the image is successfully read; otherwise returns false.
For image formats that support incremental loading, and for animation formats, the image handler can assume that image points to the previous frame.
See also canRead().
*/
func (this*QImageIOHandler) Read(imageQImage_ITF/*777 QImage **/) bool {
varconvArg0 unsafe.Pointer
ifimage!=nil&&image.QImage_PTR() !=nil {
convArg0=image.QImage_PTR().GetCthis()
}
rv, err:=qtrt.InvokeQtFunc6("_ZN15QImageIOHandler4readEP6QImage", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0)
qtrt.ErrPrint(err, rv)
returnrv!=0
}
// /usr/include/qt/QtGui/qimageiohandler.h:76
// index:0
// Public virtual Visibility=Default Availability=Available
// [1] bool write(const QImage &)
/*
Writes the image image to the assigned device. Returns true on success; otherwise returns false.
The default implementation does nothing, and simply returns false.
*/
func (this*QImageIOHandler) Write(imageQImage_ITF) bool {
varconvArg0 unsafe.Pointer
ifimage!=nil&&image.QImage_PTR() !=nil {
convArg0=image.QImage_PTR().GetCthis()
}
rv, err:=qtrt.InvokeQtFunc6("_ZN15QImageIOHandler5writeERK6QImage", qtrt.FFI_TYPE_POINTER, this.GetCthis(), convArg0)
qtrt.ErrPrint(err, rv)
returnrv!=0
}
// /usr/include/qt/QtGui/qimageiohandler.h:115
// index:0
// Public virtual Visibility=Default Availability=Available
// [16] QVariant option(QImageIOHandler::ImageOption) const
/*
Returns the value assigned to option as a QVariant. The type of the value depends on the option. For example, option(Size) returns a QSize variant.
See also setOption() and supportsOption().
*/
func (this*QImageIOHandler) Option(optionint) *qtcore.QVariant/*123*/ {
rv, err:=qtrt.InvokeQtFunc6("_ZNK15QImageIOHandler6optionENS_11ImageOptionE", qtrt.FFI_TYPE_POINTER, this.GetCthis(), option)
qtrt.ErrPrint(err, rv)
rv2:=qtcore.NewQVariantFromPointer(unsafe.Pointer(uintptr(rv))) // 333
qtrt.SetFinalizer(rv2, qtcore.DeleteQVariant)
returnrv2
}
// /usr/include/qt/QtGui/qimageiohandler.h:116
// index:0
// Public virtual Visibility=Default Availability=Available
// [-2] void setOption(QImageIOHandler::ImageOption, const QVariant &)
/*
Sets the option option with the value value.
See also option() and ImageOption.
*/
func (this*QImageIOHandler) SetOption(optionint, value qtcore.QVariant_ITF) {
varconvArg1 unsafe.Pointer
ifvalue!=nil&&value.QVariant_PTR() !=nil {
convArg1=value.QVariant_PTR().GetCthis()
}
rv, err:=qtrt.InvokeQtFunc6("_ZN15QImageIOHandler9setOptionENS_11ImageOptionERK8QVariant", qtrt.FFI_TYPE_POINTER, this.GetCthis(), option, convArg1)
qtrt.ErrPrint(err, rv)
}
// /usr/include/qt/QtGui/qimageiohandler.h:117
// index:0
// Public virtual Visibility=Default Availability=Available
// [1] bool supportsOption(QImageIOHandler::ImageOption) const
/*
Returns true if the QImageIOHandler supports the option option; otherwise returns false. For example, if the QImageIOHandler supports the Size option, supportsOption(Size) must return true.
See also setOption() and option().
*/
func (this*QImageIOHandler) SupportsOption(optionint) bool {
rv, err:=qtrt.InvokeQtFunc6("_ZNK15QImageIOHandler14supportsOptionENS_11ImageOptionE", qtrt.FFI_TYPE_POINTER, this.GetCthis(), option)
qtrt.ErrPrint(err, rv)
returnrv!=0
}
// /usr/include/qt/QtGui/qimageiohandler.h:120
// index:0
// Public virtual Visibility=Default Availability=Available
// [1] bool jumpToNextImage()
/*
For image formats that support animation, this function jumps to the next image.
The default implementation does nothing, and returns false.
*/
func (this*QImageIOHandler) JumpToNextImage() bool {
rv, err:=qtrt.InvokeQtFunc6("_ZN15QImageIOHandler15jumpToNextImageEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
returnrv!=0
}
// /usr/include/qt/QtGui/qimageiohandler.h:121
// index:0
// Public virtual Visibility=Default Availability=Available
// [1] bool jumpToImage(int)
/*
For image formats that support animation, this function jumps to the image whose sequence number is imageNumber. The next call to read() will attempt to read this image.
The default implementation does nothing, and returns false.
*/
func (this*QImageIOHandler) JumpToImage(imageNumberint) bool {
rv, err:=qtrt.InvokeQtFunc6("_ZN15QImageIOHandler11jumpToImageEi", qtrt.FFI_TYPE_POINTER, this.GetCthis(), imageNumber)
qtrt.ErrPrint(err, rv)
returnrv!=0
}
// /usr/include/qt/QtGui/qimageiohandler.h:122
// index:0
// Public virtual Visibility=Default Availability=Available
// [4] int loopCount() const
/*
For image formats that support animation, this function returns the number of times the animation should loop. If the image format does not support animation, 0 is returned.
*/
func (this*QImageIOHandler) LoopCount() int {
rv, err:=qtrt.InvokeQtFunc6("_ZNK15QImageIOHandler9loopCountEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
returnqtrt.Cretval2go("int", rv).(int) // 1111
}
// /usr/include/qt/QtGui/qimageiohandler.h:123
// index:0
// Public virtual Visibility=Default Availability=Available
// [4] int imageCount() const
/*
For image formats that support animation, this function returns the number of images in the animation. If the image format does not support animation, or if it is unable to determine the number of images, 0 is returned.
The default implementation returns 1 if canRead() returns true; otherwise 0 is returned.
*/
func (this*QImageIOHandler) ImageCount() int {
rv, err:=qtrt.InvokeQtFunc6("_ZNK15QImageIOHandler10imageCountEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
returnqtrt.Cretval2go("int", rv).(int) // 1111
}
// /usr/include/qt/QtGui/qimageiohandler.h:124
// index:0
// Public virtual Visibility=Default Availability=Available
// [4] int nextImageDelay() const
/*
For image formats that support animation, this function returns the number of milliseconds to wait until reading the next image. If the image format does not support animation, 0 is returned.
*/
func (this*QImageIOHandler) NextImageDelay() int {
rv, err:=qtrt.InvokeQtFunc6("_ZNK15QImageIOHandler14nextImageDelayEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
returnqtrt.Cretval2go("int", rv).(int) // 1111
}
// /usr/include/qt/QtGui/qimageiohandler.h:125
// index:0
// Public virtual Visibility=Default Availability=Available
// [4] int currentImageNumber() const
/*
For image formats that support animation, this function returns the sequence number of the current image in the animation. If this function is called before any image is read(), -1 is returned. The number of the first image in the sequence is 0.
If the image format does not support animation, 0 is returned.
See also read().
*/
func (this*QImageIOHandler) CurrentImageNumber() int {
rv, err:=qtrt.InvokeQtFunc6("_ZNK15QImageIOHandler18currentImageNumberEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
returnqtrt.Cretval2go("int", rv).(int) // 1111
}
// /usr/include/qt/QtGui/qimageiohandler.h:126
// index:0
// Public virtual Visibility=Default Availability=Available
// [16] QRect currentImageRect() const
/*
Returns the rect of the current image. If no rect is defined for the image, and empty QRect() is returned.
This function is useful for animations, where only parts of the frame may be updated at a time.
*/
func (this*QImageIOHandler) CurrentImageRect() *qtcore.QRect/*123*/ {
rv, err:=qtrt.InvokeQtFunc6("_ZNK15QImageIOHandler16currentImageRectEv", qtrt.FFI_TYPE_POINTER, this.GetCthis())
qtrt.ErrPrint(err, rv)
rv2:=qtcore.NewQRectFromPointer(unsafe.Pointer(uintptr(rv))) // 333
qtrt.SetFinalizer(rv2, qtcore.DeleteQRect)
returnrv2
}
/*
This enum describes the different options supported by QImageIOHandler. Some options are used to query an image for properties, and others are used to toggle the way in which an image should be written.
*/
typeQImageIOHandler__ImageOption=int
// The original size of an image. A handler that supports this option is expected to read the size of the image from the image metadata, and return this size from option() as a QSize.
constQImageIOHandler__SizeQImageIOHandler__ImageOption=0
// The clip rect, or ROI (Region Of Interest). A handler that supports this option is expected to only read the provided QRect area from the original image in read(), before any other transformation is applied.
constQImageIOHandler__ClipRectQImageIOHandler__ImageOption=1
// The image description. Some image formats, such as GIF and PNG, allow embedding of text or comments into the image data (e.g., for storing copyright information). It's common that the text is stored in key-value pairs, but some formats store all text in one continuous block. QImageIOHandler returns the text as one QString, where keys and values are separated by a ':', and keys-value pairs are separated by two newlines (\n\n). For example, "Title: Sunset\n\nAuthor: Jim Smith\nSarah Jones\n\n". Formats that store text in a single block can use "Description" as the key.
constQImageIOHandler__DescriptionQImageIOHandler__ImageOption=2
// The scaled clip rect (or ROI, Region Of Interest) of the image. A handler that supports this option is expected to apply the provided clip rect (a QRect), after applying any scaling (ScaleSize) or regular clipping (ClipRect). If the handler does not support this option, QImageReader will apply the scaled clip rect after the image has been read.
constQImageIOHandler__ScaledClipRectQImageIOHandler__ImageOption=3
// The scaled size of the image. A handler that supports this option is expected to scale the image to the provided size (a QSize), after applying any clip rect transformation (ClipRect). If the handler does not support this option, QImageReader will perform the scaling after the image has been read.
constQImageIOHandler__ScaledSizeQImageIOHandler__ImageOption=4
// The compression ratio of the image data. A handler that supports this option is expected to set its compression rate depending on the value of this option (an int) when writing.
constQImageIOHandler__CompressionRatioQImageIOHandler__ImageOption=5
// The gamma level of the image. A handler that supports this option is expected to set the image gamma level depending on the value of this option (a float) when writing.
constQImageIOHandler__GammaQImageIOHandler__ImageOption=6
// The quality level of the image. A handler that supports this option is expected to set the image quality level depending on the value of this option (an int) when writing.
constQImageIOHandler__QualityQImageIOHandler__ImageOption=7
// The name of the image. A handler that supports this option is expected to read the name from the image metadata and return this as a QString, or when writing an image it is expected to store the name in the image metadata.
constQImageIOHandler__NameQImageIOHandler__ImageOption=8
// The subtype of the image. A handler that supports this option can use the subtype value to help when reading and writing images. For example, a PPM handler may have a subtype value of "ppm" or "ppmraw".
constQImageIOHandler__SubTypeQImageIOHandler__ImageOption=9
//
constQImageIOHandler__IncrementalReadingQImageIOHandler__ImageOption=10
//
constQImageIOHandler__EndiannessQImageIOHandler__ImageOption=11
//
constQImageIOHandler__AnimationQImageIOHandler__ImageOption=12
//
constQImageIOHandler__BackgroundColorQImageIOHandler__ImageOption=13
//
constQImageIOHandler__ImageFormatQImageIOHandler__ImageOption=14
//
constQImageIOHandler__SupportedSubTypesQImageIOHandler__ImageOption=15
//
constQImageIOHandler__OptimizedWriteQImageIOHandler__ImageOption=16
//
constQImageIOHandler__ProgressiveScanWriteQImageIOHandler__ImageOption=17
//
constQImageIOHandler__ImageTransformationQImageIOHandler__ImageOption=18
//
constQImageIOHandler__TransformedByDefaultQImageIOHandler__ImageOption=19
func (this*QImageIOHandler) ImageOptionItemName(valint) string {
switchval {
caseQImageIOHandler__Size: // 0
return"Size"
caseQImageIOHandler__ClipRect: // 1
return"ClipRect"
caseQImageIOHandler__Description: // 2
return"Description"
caseQImageIOHandler__ScaledClipRect: // 3
return"ScaledClipRect"
caseQImageIOHandler__ScaledSize: // 4
return"ScaledSize"
caseQImageIOHandler__CompressionRatio: // 5
return"CompressionRatio"
caseQImageIOHandler__Gamma: // 6
return"Gamma"
caseQImageIOHandler__Quality: // 7
return"Quality"
caseQImageIOHandler__Name: // 8
return"Name"
caseQImageIOHandler__SubType: // 9
return"SubType"
caseQImageIOHandler__IncrementalReading: // 10
return"IncrementalReading"
caseQImageIOHandler__Endianness: // 11
return"Endianness"
caseQImageIOHandler__Animation: // 12
return"Animation"
caseQImageIOHandler__BackgroundColor: // 13
return"BackgroundColor"
caseQImageIOHandler__ImageFormat: // 14
return"ImageFormat"
caseQImageIOHandler__SupportedSubTypes: // 15
return"SupportedSubTypes"
caseQImageIOHandler__OptimizedWrite: // 16
return"OptimizedWrite"
caseQImageIOHandler__ProgressiveScanWrite: // 17
return"ProgressiveScanWrite"
caseQImageIOHandler__ImageTransformation: // 18
return"ImageTransformation"
caseQImageIOHandler__TransformedByDefault: // 19
return"TransformedByDefault"
default:
returnfmt.Sprintf("%d", val)
}
}
funcQImageIOHandler_ImageOptionItemName(valint) string {
varnilthis*QImageIOHandler
returnnilthis.ImageOptionItemName(val)
}
/*
*/
typeQImageIOHandler__Transformation=int
//
constQImageIOHandler__TransformationNoneQImageIOHandler__Transformation=0
//
constQImageIOHandler__TransformationMirrorQImageIOHandler__Transformation=1
//
constQImageIOHandler__TransformationFlipQImageIOHandler__Transformation=2
//
constQImageIOHandler__TransformationRotate180QImageIOHandler__Transformation=3
//
constQImageIOHandler__TransformationRotate90QImageIOHandler__Transformation=4
//
constQImageIOHandler__TransformationMirrorAndRotate90QImageIOHandler__Transformation=5
//
constQImageIOHandler__TransformationFlipAndRotate90QImageIOHandler__Transformation=6
//
constQImageIOHandler__TransformationRotate270QImageIOHandler__Transformation=7
func (this*QImageIOHandler) TransformationItemName(valint) string {
switchval {
caseQImageIOHandler__TransformationNone: // 0
return"TransformationNone"
caseQImageIOHandler__TransformationMirror: // 1
return"TransformationMirror"
caseQImageIOHandler__TransformationFlip: // 2
return"TransformationFlip"
caseQImageIOHandler__TransformationRotate180: // 3
return"TransformationRotate180"
caseQImageIOHandler__TransformationRotate90: // 4
return"TransformationRotate90"
caseQImageIOHandler__TransformationMirrorAndRotate90: // 5
return"TransformationMirrorAndRotate90"
caseQImageIOHandler__TransformationFlipAndRotate90: // 6
return"TransformationFlipAndRotate90"
caseQImageIOHandler__TransformationRotate270: // 7
return"TransformationRotate270"
default:
returnfmt.Sprintf("%d", val)
}
}
funcQImageIOHandler_TransformationItemName(valint) string {
varnilthis*QImageIOHandler
returnnilthis.TransformationItemName(val)
}
// body block end
// keep block begin
funcinit_unused_10881() {
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