2024-08-25 04:08:24 +00:00
|
|
|
package qt
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
#include "gen_qpagesize.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
*/
|
|
|
|
import "C"
|
|
|
|
|
|
|
|
import (
|
|
|
|
"runtime"
|
|
|
|
"unsafe"
|
|
|
|
)
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
type QPageSize__PageSizeId int
|
|
|
|
|
|
|
|
const (
|
2024-09-20 07:13:26 +00:00
|
|
|
QPageSize__A4 QPageSize__PageSizeId = 0
|
|
|
|
QPageSize__B5 QPageSize__PageSizeId = 1
|
|
|
|
QPageSize__Letter QPageSize__PageSizeId = 2
|
|
|
|
QPageSize__Legal QPageSize__PageSizeId = 3
|
|
|
|
QPageSize__Executive QPageSize__PageSizeId = 4
|
|
|
|
QPageSize__A0 QPageSize__PageSizeId = 5
|
|
|
|
QPageSize__A1 QPageSize__PageSizeId = 6
|
|
|
|
QPageSize__A2 QPageSize__PageSizeId = 7
|
|
|
|
QPageSize__A3 QPageSize__PageSizeId = 8
|
|
|
|
QPageSize__A5 QPageSize__PageSizeId = 9
|
|
|
|
QPageSize__A6 QPageSize__PageSizeId = 10
|
|
|
|
QPageSize__A7 QPageSize__PageSizeId = 11
|
|
|
|
QPageSize__A8 QPageSize__PageSizeId = 12
|
|
|
|
QPageSize__A9 QPageSize__PageSizeId = 13
|
|
|
|
QPageSize__B0 QPageSize__PageSizeId = 14
|
|
|
|
QPageSize__B1 QPageSize__PageSizeId = 15
|
|
|
|
QPageSize__B10 QPageSize__PageSizeId = 16
|
|
|
|
QPageSize__B2 QPageSize__PageSizeId = 17
|
|
|
|
QPageSize__B3 QPageSize__PageSizeId = 18
|
|
|
|
QPageSize__B4 QPageSize__PageSizeId = 19
|
|
|
|
QPageSize__B6 QPageSize__PageSizeId = 20
|
|
|
|
QPageSize__B7 QPageSize__PageSizeId = 21
|
|
|
|
QPageSize__B8 QPageSize__PageSizeId = 22
|
|
|
|
QPageSize__B9 QPageSize__PageSizeId = 23
|
|
|
|
QPageSize__C5E QPageSize__PageSizeId = 24
|
|
|
|
QPageSize__Comm10E QPageSize__PageSizeId = 25
|
|
|
|
QPageSize__DLE QPageSize__PageSizeId = 26
|
|
|
|
QPageSize__Folio QPageSize__PageSizeId = 27
|
|
|
|
QPageSize__Ledger QPageSize__PageSizeId = 28
|
|
|
|
QPageSize__Tabloid QPageSize__PageSizeId = 29
|
|
|
|
QPageSize__Custom QPageSize__PageSizeId = 30
|
|
|
|
QPageSize__A10 QPageSize__PageSizeId = 31
|
|
|
|
QPageSize__A3Extra QPageSize__PageSizeId = 32
|
|
|
|
QPageSize__A4Extra QPageSize__PageSizeId = 33
|
|
|
|
QPageSize__A4Plus QPageSize__PageSizeId = 34
|
|
|
|
QPageSize__A4Small QPageSize__PageSizeId = 35
|
|
|
|
QPageSize__A5Extra QPageSize__PageSizeId = 36
|
|
|
|
QPageSize__B5Extra QPageSize__PageSizeId = 37
|
|
|
|
QPageSize__JisB0 QPageSize__PageSizeId = 38
|
|
|
|
QPageSize__JisB1 QPageSize__PageSizeId = 39
|
|
|
|
QPageSize__JisB2 QPageSize__PageSizeId = 40
|
|
|
|
QPageSize__JisB3 QPageSize__PageSizeId = 41
|
|
|
|
QPageSize__JisB4 QPageSize__PageSizeId = 42
|
|
|
|
QPageSize__JisB5 QPageSize__PageSizeId = 43
|
|
|
|
QPageSize__JisB6 QPageSize__PageSizeId = 44
|
|
|
|
QPageSize__JisB7 QPageSize__PageSizeId = 45
|
|
|
|
QPageSize__JisB8 QPageSize__PageSizeId = 46
|
|
|
|
QPageSize__JisB9 QPageSize__PageSizeId = 47
|
|
|
|
QPageSize__JisB10 QPageSize__PageSizeId = 48
|
|
|
|
QPageSize__AnsiC QPageSize__PageSizeId = 49
|
|
|
|
QPageSize__AnsiD QPageSize__PageSizeId = 50
|
|
|
|
QPageSize__AnsiE QPageSize__PageSizeId = 51
|
|
|
|
QPageSize__LegalExtra QPageSize__PageSizeId = 52
|
|
|
|
QPageSize__LetterExtra QPageSize__PageSizeId = 53
|
|
|
|
QPageSize__LetterPlus QPageSize__PageSizeId = 54
|
|
|
|
QPageSize__LetterSmall QPageSize__PageSizeId = 55
|
|
|
|
QPageSize__TabloidExtra QPageSize__PageSizeId = 56
|
|
|
|
QPageSize__ArchA QPageSize__PageSizeId = 57
|
|
|
|
QPageSize__ArchB QPageSize__PageSizeId = 58
|
|
|
|
QPageSize__ArchC QPageSize__PageSizeId = 59
|
|
|
|
QPageSize__ArchD QPageSize__PageSizeId = 60
|
|
|
|
QPageSize__ArchE QPageSize__PageSizeId = 61
|
|
|
|
QPageSize__Imperial7x9 QPageSize__PageSizeId = 62
|
|
|
|
QPageSize__Imperial8x10 QPageSize__PageSizeId = 63
|
|
|
|
QPageSize__Imperial9x11 QPageSize__PageSizeId = 64
|
|
|
|
QPageSize__Imperial9x12 QPageSize__PageSizeId = 65
|
|
|
|
QPageSize__Imperial10x11 QPageSize__PageSizeId = 66
|
|
|
|
QPageSize__Imperial10x13 QPageSize__PageSizeId = 67
|
|
|
|
QPageSize__Imperial10x14 QPageSize__PageSizeId = 68
|
|
|
|
QPageSize__Imperial12x11 QPageSize__PageSizeId = 69
|
|
|
|
QPageSize__Imperial15x11 QPageSize__PageSizeId = 70
|
|
|
|
QPageSize__ExecutiveStandard QPageSize__PageSizeId = 71
|
|
|
|
QPageSize__Note QPageSize__PageSizeId = 72
|
|
|
|
QPageSize__Quarto QPageSize__PageSizeId = 73
|
|
|
|
QPageSize__Statement QPageSize__PageSizeId = 74
|
|
|
|
QPageSize__SuperA QPageSize__PageSizeId = 75
|
|
|
|
QPageSize__SuperB QPageSize__PageSizeId = 76
|
|
|
|
QPageSize__Postcard QPageSize__PageSizeId = 77
|
|
|
|
QPageSize__DoublePostcard QPageSize__PageSizeId = 78
|
|
|
|
QPageSize__Prc16K QPageSize__PageSizeId = 79
|
|
|
|
QPageSize__Prc32K QPageSize__PageSizeId = 80
|
|
|
|
QPageSize__Prc32KBig QPageSize__PageSizeId = 81
|
|
|
|
QPageSize__FanFoldUS QPageSize__PageSizeId = 82
|
|
|
|
QPageSize__FanFoldGerman QPageSize__PageSizeId = 83
|
|
|
|
QPageSize__FanFoldGermanLegal QPageSize__PageSizeId = 84
|
|
|
|
QPageSize__EnvelopeB4 QPageSize__PageSizeId = 85
|
|
|
|
QPageSize__EnvelopeB5 QPageSize__PageSizeId = 86
|
|
|
|
QPageSize__EnvelopeB6 QPageSize__PageSizeId = 87
|
|
|
|
QPageSize__EnvelopeC0 QPageSize__PageSizeId = 88
|
|
|
|
QPageSize__EnvelopeC1 QPageSize__PageSizeId = 89
|
|
|
|
QPageSize__EnvelopeC2 QPageSize__PageSizeId = 90
|
|
|
|
QPageSize__EnvelopeC3 QPageSize__PageSizeId = 91
|
|
|
|
QPageSize__EnvelopeC4 QPageSize__PageSizeId = 92
|
|
|
|
QPageSize__EnvelopeC6 QPageSize__PageSizeId = 93
|
|
|
|
QPageSize__EnvelopeC65 QPageSize__PageSizeId = 94
|
|
|
|
QPageSize__EnvelopeC7 QPageSize__PageSizeId = 95
|
|
|
|
QPageSize__Envelope9 QPageSize__PageSizeId = 96
|
|
|
|
QPageSize__Envelope11 QPageSize__PageSizeId = 97
|
|
|
|
QPageSize__Envelope12 QPageSize__PageSizeId = 98
|
|
|
|
QPageSize__Envelope14 QPageSize__PageSizeId = 99
|
|
|
|
QPageSize__EnvelopeMonarch QPageSize__PageSizeId = 100
|
|
|
|
QPageSize__EnvelopePersonal QPageSize__PageSizeId = 101
|
|
|
|
QPageSize__EnvelopeChou3 QPageSize__PageSizeId = 102
|
|
|
|
QPageSize__EnvelopeChou4 QPageSize__PageSizeId = 103
|
|
|
|
QPageSize__EnvelopeInvite QPageSize__PageSizeId = 104
|
|
|
|
QPageSize__EnvelopeItalian QPageSize__PageSizeId = 105
|
|
|
|
QPageSize__EnvelopeKaku2 QPageSize__PageSizeId = 106
|
|
|
|
QPageSize__EnvelopeKaku3 QPageSize__PageSizeId = 107
|
|
|
|
QPageSize__EnvelopePrc1 QPageSize__PageSizeId = 108
|
|
|
|
QPageSize__EnvelopePrc2 QPageSize__PageSizeId = 109
|
|
|
|
QPageSize__EnvelopePrc3 QPageSize__PageSizeId = 110
|
|
|
|
QPageSize__EnvelopePrc4 QPageSize__PageSizeId = 111
|
|
|
|
QPageSize__EnvelopePrc5 QPageSize__PageSizeId = 112
|
|
|
|
QPageSize__EnvelopePrc6 QPageSize__PageSizeId = 113
|
|
|
|
QPageSize__EnvelopePrc7 QPageSize__PageSizeId = 114
|
|
|
|
QPageSize__EnvelopePrc8 QPageSize__PageSizeId = 115
|
|
|
|
QPageSize__EnvelopePrc9 QPageSize__PageSizeId = 116
|
|
|
|
QPageSize__EnvelopePrc10 QPageSize__PageSizeId = 117
|
|
|
|
QPageSize__EnvelopeYou4 QPageSize__PageSizeId = 118
|
|
|
|
QPageSize__LastPageSize QPageSize__PageSizeId = 118
|
|
|
|
QPageSize__NPageSize QPageSize__PageSizeId = 118
|
|
|
|
QPageSize__NPaperSize QPageSize__PageSizeId = 118
|
|
|
|
QPageSize__AnsiA QPageSize__PageSizeId = 2
|
|
|
|
QPageSize__AnsiB QPageSize__PageSizeId = 28
|
|
|
|
QPageSize__EnvelopeC5 QPageSize__PageSizeId = 24
|
|
|
|
QPageSize__EnvelopeDL QPageSize__PageSizeId = 26
|
|
|
|
QPageSize__Envelope10 QPageSize__PageSizeId = 25
|
2024-09-04 06:54:22 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type QPageSize__Unit int
|
|
|
|
|
|
|
|
const (
|
2024-09-20 07:13:26 +00:00
|
|
|
QPageSize__Millimeter QPageSize__Unit = 0
|
|
|
|
QPageSize__Point QPageSize__Unit = 1
|
|
|
|
QPageSize__Inch QPageSize__Unit = 2
|
|
|
|
QPageSize__Pica QPageSize__Unit = 3
|
|
|
|
QPageSize__Didot QPageSize__Unit = 4
|
|
|
|
QPageSize__Cicero QPageSize__Unit = 5
|
2024-09-04 06:54:22 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type QPageSize__SizeMatchPolicy int
|
|
|
|
|
|
|
|
const (
|
2024-09-20 07:13:26 +00:00
|
|
|
QPageSize__FuzzyMatch QPageSize__SizeMatchPolicy = 0
|
|
|
|
QPageSize__FuzzyOrientationMatch QPageSize__SizeMatchPolicy = 1
|
|
|
|
QPageSize__ExactMatch QPageSize__SizeMatchPolicy = 2
|
2024-09-04 06:54:22 +00:00
|
|
|
)
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
type QPageSize struct {
|
2024-11-19 06:29:06 +00:00
|
|
|
h *C.QPageSize
|
|
|
|
isSubclass bool
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QPageSize) cPointer() *C.QPageSize {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func (this *QPageSize) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// newQPageSize constructs the type using only CGO pointers.
|
2024-08-25 04:08:24 +00:00
|
|
|
func newQPageSize(h *C.QPageSize) *QPageSize {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-12-07 04:15:57 +00:00
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
return &QPageSize{h: h}
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// UnsafeNewQPageSize constructs the type using only unsafe pointers.
|
2024-10-16 05:07:56 +00:00
|
|
|
func UnsafeNewQPageSize(h unsafe.Pointer) *QPageSize {
|
2024-12-07 04:15:57 +00:00
|
|
|
return newQPageSize((*C.QPageSize)(h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQPageSize constructs a new QPageSize object.
|
|
|
|
func NewQPageSize() *QPageSize {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQPageSize(C.QPageSize_new())
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQPageSize2 constructs a new QPageSize object.
|
2024-09-04 06:54:22 +00:00
|
|
|
func NewQPageSize2(pageSizeId QPageSize__PageSizeId) *QPageSize {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQPageSize(C.QPageSize_new2((C.int)(pageSizeId)))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQPageSize3 constructs a new QPageSize object.
|
|
|
|
func NewQPageSize3(pointSize *QSize) *QPageSize {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQPageSize(C.QPageSize_new3(pointSize.cPointer()))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQPageSize4 constructs a new QPageSize object.
|
2024-09-04 06:54:22 +00:00
|
|
|
func NewQPageSize4(size *QSizeF, units QPageSize__Unit) *QPageSize {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQPageSize(C.QPageSize_new4(size.cPointer(), (C.int)(units)))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQPageSize5 constructs a new QPageSize object.
|
|
|
|
func NewQPageSize5(other *QPageSize) *QPageSize {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQPageSize(C.QPageSize_new5(other.cPointer()))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQPageSize6 constructs a new QPageSize object.
|
|
|
|
func NewQPageSize6(pointSize *QSize, name string) *QPageSize {
|
2024-10-18 23:53:33 +00:00
|
|
|
name_ms := C.struct_miqt_string{}
|
|
|
|
name_ms.data = C.CString(name)
|
|
|
|
name_ms.len = C.size_t(len(name))
|
|
|
|
defer C.free(unsafe.Pointer(name_ms.data))
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQPageSize(C.QPageSize_new6(pointSize.cPointer(), name_ms))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQPageSize7 constructs a new QPageSize object.
|
2024-09-04 06:54:22 +00:00
|
|
|
func NewQPageSize7(pointSize *QSize, name string, matchPolicy QPageSize__SizeMatchPolicy) *QPageSize {
|
2024-10-18 23:53:33 +00:00
|
|
|
name_ms := C.struct_miqt_string{}
|
|
|
|
name_ms.data = C.CString(name)
|
|
|
|
name_ms.len = C.size_t(len(name))
|
|
|
|
defer C.free(unsafe.Pointer(name_ms.data))
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQPageSize(C.QPageSize_new7(pointSize.cPointer(), name_ms, (C.int)(matchPolicy)))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQPageSize8 constructs a new QPageSize object.
|
2024-09-04 06:54:22 +00:00
|
|
|
func NewQPageSize8(size *QSizeF, units QPageSize__Unit, name string) *QPageSize {
|
2024-10-18 23:53:33 +00:00
|
|
|
name_ms := C.struct_miqt_string{}
|
|
|
|
name_ms.data = C.CString(name)
|
|
|
|
name_ms.len = C.size_t(len(name))
|
|
|
|
defer C.free(unsafe.Pointer(name_ms.data))
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQPageSize(C.QPageSize_new8(size.cPointer(), (C.int)(units), name_ms))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQPageSize9 constructs a new QPageSize object.
|
2024-09-04 06:54:22 +00:00
|
|
|
func NewQPageSize9(size *QSizeF, units QPageSize__Unit, name string, matchPolicy QPageSize__SizeMatchPolicy) *QPageSize {
|
2024-10-18 23:53:33 +00:00
|
|
|
name_ms := C.struct_miqt_string{}
|
|
|
|
name_ms.data = C.CString(name)
|
|
|
|
name_ms.len = C.size_t(len(name))
|
|
|
|
defer C.free(unsafe.Pointer(name_ms.data))
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQPageSize(C.QPageSize_new9(size.cPointer(), (C.int)(units), name_ms, (C.int)(matchPolicy)))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QPageSize) OperatorAssign(other *QPageSize) {
|
|
|
|
C.QPageSize_OperatorAssign(this.h, other.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QPageSize) Swap(other *QPageSize) {
|
|
|
|
C.QPageSize_Swap(this.h, other.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QPageSize) IsEquivalentTo(other *QPageSize) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QPageSize_IsEquivalentTo(this.h, other.cPointer()))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QPageSize) IsValid() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QPageSize_IsValid(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QPageSize) Key() string {
|
2024-10-18 23:53:33 +00:00
|
|
|
var _ms C.struct_miqt_string = C.QPageSize_Key(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-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QPageSize) Name() string {
|
2024-10-18 23:53:33 +00:00
|
|
|
var _ms C.struct_miqt_string = C.QPageSize_Name(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-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QPageSize) Id() QPageSize__PageSizeId {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (QPageSize__PageSizeId)(C.QPageSize_Id(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QPageSize) WindowsId() int {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (int)(C.QPageSize_WindowsId(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QPageSize) DefinitionSize() *QSizeF {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQSizeF(C.QPageSize_DefinitionSize(this.h))
|
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-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QPageSize) DefinitionUnits() QPageSize__Unit {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (QPageSize__Unit)(C.QPageSize_DefinitionUnits(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QPageSize) Size(units QPageSize__Unit) *QSizeF {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQSizeF(C.QPageSize_Size(this.h, (C.int)(units)))
|
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-08-25 04:08:24 +00:00
|
|
|
func (this *QPageSize) SizePoints() *QSize {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQSize(C.QPageSize_SizePoints(this.h))
|
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-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QPageSize) SizePixels(resolution int) *QSize {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQSize(C.QPageSize_SizePixels(this.h, (C.int)(resolution)))
|
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-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QPageSize) Rect(units QPageSize__Unit) *QRectF {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQRectF(C.QPageSize_Rect(this.h, (C.int)(units)))
|
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-08-25 04:08:24 +00:00
|
|
|
func (this *QPageSize) RectPoints() *QRect {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQRect(C.QPageSize_RectPoints(this.h))
|
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-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QPageSize) RectPixels(resolution int) *QRect {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQRect(C.QPageSize_RectPixels(this.h, (C.int)(resolution)))
|
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-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func QPageSize_KeyWithPageSizeId(pageSizeId QPageSize__PageSizeId) string {
|
2024-10-18 23:53:33 +00:00
|
|
|
var _ms C.struct_miqt_string = C.QPageSize_KeyWithPageSizeId((C.int)(pageSizeId))
|
|
|
|
_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 QPageSize_NameWithPageSizeId(pageSizeId QPageSize__PageSizeId) string {
|
2024-10-18 23:53:33 +00:00
|
|
|
var _ms C.struct_miqt_string = C.QPageSize_NameWithPageSizeId((C.int)(pageSizeId))
|
|
|
|
_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 QPageSize_IdWithPointSize(pointSize *QSize) QPageSize__PageSizeId {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (QPageSize__PageSizeId)(C.QPageSize_IdWithPointSize(pointSize.cPointer()))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func QPageSize_Id2(size *QSizeF, units QPageSize__Unit) QPageSize__PageSizeId {
|
2024-09-18 00:12:02 +00:00
|
|
|
return (QPageSize__PageSizeId)(C.QPageSize_Id2(size.cPointer(), (C.int)(units)))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func QPageSize_IdWithWindowsId(windowsId int) QPageSize__PageSizeId {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (QPageSize__PageSizeId)(C.QPageSize_IdWithWindowsId((C.int)(windowsId)))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func QPageSize_WindowsIdWithPageSizeId(pageSizeId QPageSize__PageSizeId) int {
|
2024-09-18 00:12:02 +00:00
|
|
|
return (int)(C.QPageSize_WindowsIdWithPageSizeId((C.int)(pageSizeId)))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func QPageSize_DefinitionSizeWithPageSizeId(pageSizeId QPageSize__PageSizeId) *QSizeF {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQSizeF(C.QPageSize_DefinitionSizeWithPageSizeId((C.int)(pageSizeId)))
|
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 QPageSize_DefinitionUnitsWithPageSizeId(pageSizeId QPageSize__PageSizeId) QPageSize__Unit {
|
2024-09-18 00:12:02 +00:00
|
|
|
return (QPageSize__Unit)(C.QPageSize_DefinitionUnitsWithPageSizeId((C.int)(pageSizeId)))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func QPageSize_Size2(pageSizeId QPageSize__PageSizeId, units QPageSize__Unit) *QSizeF {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQSizeF(C.QPageSize_Size2((C.int)(pageSizeId), (C.int)(units)))
|
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 QPageSize_SizePointsWithPageSizeId(pageSizeId QPageSize__PageSizeId) *QSize {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQSize(C.QPageSize_SizePointsWithPageSizeId((C.int)(pageSizeId)))
|
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 QPageSize_SizePixels2(pageSizeId QPageSize__PageSizeId, resolution int) *QSize {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQSize(C.QPageSize_SizePixels2((C.int)(pageSizeId), (C.int)(resolution)))
|
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 QPageSize_Id22(pointSize *QSize, matchPolicy QPageSize__SizeMatchPolicy) QPageSize__PageSizeId {
|
2024-09-18 00:12:02 +00:00
|
|
|
return (QPageSize__PageSizeId)(C.QPageSize_Id22(pointSize.cPointer(), (C.int)(matchPolicy)))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func QPageSize_Id3(size *QSizeF, units QPageSize__Unit, matchPolicy QPageSize__SizeMatchPolicy) QPageSize__PageSizeId {
|
2024-09-18 00:12:02 +00:00
|
|
|
return (QPageSize__PageSizeId)(C.QPageSize_Id3(size.cPointer(), (C.int)(units), (C.int)(matchPolicy)))
|
2024-08-29 07:01:51 +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 *QPageSize) Delete() {
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QPageSize_Delete(this.h, C.bool(this.isSubclass))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
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 *QPageSize) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QPageSize) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|