This repository has been archived by the owner on Nov 20, 2023. It is now read-only.
/
collection_view_layout_attributes.go
147 lines (118 loc) · 5.07 KB
/
collection_view_layout_attributes.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
// auto-generated code, do not modify
package appkit
import (
"unsafe"
"github.com/hsiafan/cocoa/foundation"
"github.com/hsiafan/cocoa/objc"
)
var CollectionViewLayoutAttributesClass = _CollectionViewLayoutAttributesClass{objc.GetClass("NSCollectionViewLayoutAttributes")}
type _CollectionViewLayoutAttributesClass struct {
objc.Class
}
type ICollectionViewLayoutAttributes interface {
objc.IObject
RepresentedElementCategory() CollectionElementCategory
IndexPath() foundation.IndexPath
SetIndexPath(value foundation.IIndexPath)
RepresentedElementKind() string
Frame() foundation.Rect
SetFrame(value foundation.Rect)
Size() foundation.Size
SetSize(value foundation.Size)
Alpha() float64
SetAlpha(value float64)
IsHidden() bool
SetHidden(value bool)
ZIndex() int
SetZIndex(value int)
}
type CollectionViewLayoutAttributes struct {
objc.Object
}
func MakeCollectionViewLayoutAttributes(ptr unsafe.Pointer) CollectionViewLayoutAttributes {
return CollectionViewLayoutAttributes{
Object: objc.MakeObject(ptr),
}
}
func (cc _CollectionViewLayoutAttributesClass) LayoutAttributesForItemWithIndexPath(indexPath foundation.IIndexPath) CollectionViewLayoutAttributes {
rv := objc.CallMethod[CollectionViewLayoutAttributes](cc, objc.SEL("layoutAttributesForItemWithIndexPath:"), objc.ExtractPtr(indexPath))
return rv
}
func (cc _CollectionViewLayoutAttributesClass) LayoutAttributesForSupplementaryViewOfKind_WithIndexPath(elementKind CollectionViewSupplementaryElementKind, indexPath foundation.IIndexPath) CollectionViewLayoutAttributes {
rv := objc.CallMethod[CollectionViewLayoutAttributes](cc, objc.SEL("layoutAttributesForSupplementaryViewOfKind:withIndexPath:"), elementKind, objc.ExtractPtr(indexPath))
return rv
}
func (cc _CollectionViewLayoutAttributesClass) LayoutAttributesForDecorationViewOfKind_WithIndexPath(decorationViewKind CollectionViewDecorationElementKind, indexPath foundation.IIndexPath) CollectionViewLayoutAttributes {
rv := objc.CallMethod[CollectionViewLayoutAttributes](cc, objc.SEL("layoutAttributesForDecorationViewOfKind:withIndexPath:"), decorationViewKind, objc.ExtractPtr(indexPath))
return rv
}
func (cc _CollectionViewLayoutAttributesClass) LayoutAttributesForInterItemGapBeforeIndexPath(indexPath foundation.IIndexPath) CollectionViewLayoutAttributes {
rv := objc.CallMethod[CollectionViewLayoutAttributes](cc, objc.SEL("layoutAttributesForInterItemGapBeforeIndexPath:"), objc.ExtractPtr(indexPath))
return rv
}
func (cc _CollectionViewLayoutAttributesClass) Alloc() CollectionViewLayoutAttributes {
rv := objc.CallMethod[CollectionViewLayoutAttributes](cc, objc.SEL("alloc"))
return rv
}
func (cc _CollectionViewLayoutAttributesClass) New() CollectionViewLayoutAttributes {
rv := objc.CallMethod[CollectionViewLayoutAttributes](cc, objc.SEL("new"))
rv.Autorelease()
return rv
}
func NewCollectionViewLayoutAttributes() CollectionViewLayoutAttributes {
return CollectionViewLayoutAttributesClass.New()
}
func (c_ CollectionViewLayoutAttributes) Init() CollectionViewLayoutAttributes {
rv := objc.CallMethod[CollectionViewLayoutAttributes](c_, objc.SEL("init"))
return rv
}
func (c_ CollectionViewLayoutAttributes) RepresentedElementCategory() CollectionElementCategory {
rv := objc.CallMethod[CollectionElementCategory](c_, objc.SEL("representedElementCategory"))
return rv
}
func (c_ CollectionViewLayoutAttributes) IndexPath() foundation.IndexPath {
rv := objc.CallMethod[foundation.IndexPath](c_, objc.SEL("indexPath"))
return rv
}
func (c_ CollectionViewLayoutAttributes) SetIndexPath(value foundation.IIndexPath) {
objc.CallMethod[objc.Void](c_, objc.SEL("setIndexPath:"), objc.ExtractPtr(value))
}
func (c_ CollectionViewLayoutAttributes) RepresentedElementKind() string {
rv := objc.CallMethod[string](c_, objc.SEL("representedElementKind"))
return rv
}
func (c_ CollectionViewLayoutAttributes) Frame() foundation.Rect {
rv := objc.CallMethod[foundation.Rect](c_, objc.SEL("frame"))
return rv
}
func (c_ CollectionViewLayoutAttributes) SetFrame(value foundation.Rect) {
objc.CallMethod[objc.Void](c_, objc.SEL("setFrame:"), value)
}
func (c_ CollectionViewLayoutAttributes) Size() foundation.Size {
rv := objc.CallMethod[foundation.Size](c_, objc.SEL("size"))
return rv
}
func (c_ CollectionViewLayoutAttributes) SetSize(value foundation.Size) {
objc.CallMethod[objc.Void](c_, objc.SEL("setSize:"), value)
}
func (c_ CollectionViewLayoutAttributes) Alpha() float64 {
rv := objc.CallMethod[float64](c_, objc.SEL("alpha"))
return rv
}
func (c_ CollectionViewLayoutAttributes) SetAlpha(value float64) {
objc.CallMethod[objc.Void](c_, objc.SEL("setAlpha:"), value)
}
func (c_ CollectionViewLayoutAttributes) IsHidden() bool {
rv := objc.CallMethod[bool](c_, objc.SEL("isHidden"))
return rv
}
func (c_ CollectionViewLayoutAttributes) SetHidden(value bool) {
objc.CallMethod[objc.Void](c_, objc.SEL("setHidden:"), value)
}
func (c_ CollectionViewLayoutAttributes) ZIndex() int {
rv := objc.CallMethod[int](c_, objc.SEL("zIndex"))
return rv
}
func (c_ CollectionViewLayoutAttributes) SetZIndex(value int) {
objc.CallMethod[objc.Void](c_, objc.SEL("setZIndex:"), value)
}