forked from progrium/darwinkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathattributed_text_image_generator.gen.go
80 lines (65 loc) · 2.59 KB
/
attributed_text_image_generator.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
// AUTO-GENERATED CODE, DO NOT MODIFY
package coreimage
import (
"github.com/progrium/macdriver/macos/foundation"
"github.com/progrium/macdriver/objc"
)
// The properties you use to configure an attributed-text image generator filter. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciattributedtextimagegenerator?language=objc
type PAttributedTextImageGenerator interface {
// optional
SetScaleFactor(value float64)
HasSetScaleFactor() bool
// optional
ScaleFactor() float64
HasScaleFactor() bool
// optional
SetText(value foundation.AttributedString)
HasSetText() bool
// optional
Text() foundation.IAttributedString
HasText() bool
}
// A concrete type wrapper for the [PAttributedTextImageGenerator] protocol.
type AttributedTextImageGeneratorWrapper struct {
objc.Object
}
func (a_ AttributedTextImageGeneratorWrapper) HasSetScaleFactor() bool {
return a_.RespondsToSelector(objc.Sel("setScaleFactor:"))
}
// The scale at which to render the text. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciattributedtextimagegenerator/3228060-scalefactor?language=objc
func (a_ AttributedTextImageGeneratorWrapper) SetScaleFactor(value float64) {
objc.Call[objc.Void](a_, objc.Sel("setScaleFactor:"), value)
}
func (a_ AttributedTextImageGeneratorWrapper) HasScaleFactor() bool {
return a_.RespondsToSelector(objc.Sel("scaleFactor"))
}
// The scale at which to render the text. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciattributedtextimagegenerator/3228060-scalefactor?language=objc
func (a_ AttributedTextImageGeneratorWrapper) ScaleFactor() float64 {
rv := objc.Call[float64](a_, objc.Sel("scaleFactor"))
return rv
}
func (a_ AttributedTextImageGeneratorWrapper) HasSetText() bool {
return a_.RespondsToSelector(objc.Sel("setText:"))
}
// The text to render. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciattributedtextimagegenerator/3228061-text?language=objc
func (a_ AttributedTextImageGeneratorWrapper) SetText(value foundation.IAttributedString) {
objc.Call[objc.Void](a_, objc.Sel("setText:"), objc.Ptr(value))
}
func (a_ AttributedTextImageGeneratorWrapper) HasText() bool {
return a_.RespondsToSelector(objc.Sel("text"))
}
// The text to render. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciattributedtextimagegenerator/3228061-text?language=objc
func (a_ AttributedTextImageGeneratorWrapper) Text() foundation.AttributedString {
rv := objc.Call[foundation.AttributedString](a_, objc.Sel("text"))
return rv
}