forked from progrium/darwinkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaztec_code_descriptor.gen.go
116 lines (96 loc) · 4.67 KB
/
aztec_code_descriptor.gen.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
// Code generated by DarwinKit. DO NOT EDIT.
package coreimage
import (
"unsafe"
"github.com/progrium/macdriver/objc"
)
// The class instance for the [AztecCodeDescriptor] class.
var AztecCodeDescriptorClass = _AztecCodeDescriptorClass{objc.GetClass("CIAztecCodeDescriptor")}
type _AztecCodeDescriptorClass struct {
objc.Class
}
// An interface definition for the [AztecCodeDescriptor] class.
type IAztecCodeDescriptor interface {
IBarcodeDescriptor
ErrorCorrectedPayload() []byte
LayerCount() int
IsCompact() bool
DataCodewordCount() int
}
// A concrete subclass of CIBarcodeDescriptor that represents an Aztec code symbol. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciazteccodedescriptor?language=objc
type AztecCodeDescriptor struct {
BarcodeDescriptor
}
func AztecCodeDescriptorFrom(ptr unsafe.Pointer) AztecCodeDescriptor {
return AztecCodeDescriptor{
BarcodeDescriptor: BarcodeDescriptorFrom(ptr),
}
}
func (a_ AztecCodeDescriptor) InitWithPayloadIsCompactLayerCountDataCodewordCount(errorCorrectedPayload []byte, isCompact bool, layerCount int, dataCodewordCount int) AztecCodeDescriptor {
rv := objc.Call[AztecCodeDescriptor](a_, objc.Sel("initWithPayload:isCompact:layerCount:dataCodewordCount:"), errorCorrectedPayload, isCompact, layerCount, dataCodewordCount)
return rv
}
// Initializes a descriptor that can be used as input to the CIBarcodeGenerator filter. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciazteccodedescriptor/2875188-initwithpayload?language=objc
func NewAztecCodeDescriptorWithPayloadIsCompactLayerCountDataCodewordCount(errorCorrectedPayload []byte, isCompact bool, layerCount int, dataCodewordCount int) AztecCodeDescriptor {
instance := AztecCodeDescriptorClass.Alloc().InitWithPayloadIsCompactLayerCountDataCodewordCount(errorCorrectedPayload, isCompact, layerCount, dataCodewordCount)
instance.Autorelease()
return instance
}
func (ac _AztecCodeDescriptorClass) DescriptorWithPayloadIsCompactLayerCountDataCodewordCount(errorCorrectedPayload []byte, isCompact bool, layerCount int, dataCodewordCount int) AztecCodeDescriptor {
rv := objc.Call[AztecCodeDescriptor](ac, objc.Sel("descriptorWithPayload:isCompact:layerCount:dataCodewordCount:"), errorCorrectedPayload, isCompact, layerCount, dataCodewordCount)
return rv
}
// Creates an Aztec code descriptor encoding the given payload and parameters. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciazteccodedescriptor/2875192-descriptorwithpayload?language=objc
func AztecCodeDescriptor_DescriptorWithPayloadIsCompactLayerCountDataCodewordCount(errorCorrectedPayload []byte, isCompact bool, layerCount int, dataCodewordCount int) AztecCodeDescriptor {
return AztecCodeDescriptorClass.DescriptorWithPayloadIsCompactLayerCountDataCodewordCount(errorCorrectedPayload, isCompact, layerCount, dataCodewordCount)
}
func (ac _AztecCodeDescriptorClass) Alloc() AztecCodeDescriptor {
rv := objc.Call[AztecCodeDescriptor](ac, objc.Sel("alloc"))
return rv
}
func (ac _AztecCodeDescriptorClass) New() AztecCodeDescriptor {
rv := objc.Call[AztecCodeDescriptor](ac, objc.Sel("new"))
rv.Autorelease()
return rv
}
func NewAztecCodeDescriptor() AztecCodeDescriptor {
return AztecCodeDescriptorClass.New()
}
func (a_ AztecCodeDescriptor) Init() AztecCodeDescriptor {
rv := objc.Call[AztecCodeDescriptor](a_, objc.Sel("init"))
return rv
}
// The error-corrected payload containing the data encoded in the Aztec code. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciazteccodedescriptor/2875187-errorcorrectedpayload?language=objc
func (a_ AztecCodeDescriptor) ErrorCorrectedPayload() []byte {
rv := objc.Call[[]byte](a_, objc.Sel("errorCorrectedPayload"))
return rv
}
// The number of layers embedded in the Aztec code. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciazteccodedescriptor/2875174-layercount?language=objc
func (a_ AztecCodeDescriptor) LayerCount() int {
rv := objc.Call[int](a_, objc.Sel("layerCount"))
return rv
}
// A Boolean value telling if the Aztec code is compact. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciazteccodedescriptor/2875203-iscompact?language=objc
func (a_ AztecCodeDescriptor) IsCompact() bool {
rv := objc.Call[bool](a_, objc.Sel("isCompact"))
return rv
}
// The number of data codewords in the Aztec code. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciazteccodedescriptor/2875166-datacodewordcount?language=objc
func (a_ AztecCodeDescriptor) DataCodewordCount() int {
rv := objc.Call[int](a_, objc.Sel("dataCodewordCount"))
return rv
}