This repository has been archived by the owner on Nov 20, 2023. It is now read-only.
/
path_cell.go
193 lines (156 loc) · 5.97 KB
/
path_cell.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
// auto-generated code, do not modify
package appkit
import (
"unsafe"
"github.com/hsiafan/cocoa/foundation"
"github.com/hsiafan/cocoa/objc"
)
var PathCellClass = _PathCellClass{objc.GetClass("NSPathCell")}
type _PathCellClass struct {
objc.Class
}
type IPathCell interface {
IActionCell
MouseEntered_WithFrame_InView(event IEvent, frame foundation.Rect, view IView)
MouseExited_WithFrame_InView(event IEvent, frame foundation.Rect, view IView)
RectOfPathComponentCell_WithFrame_InView(cell IPathComponentCell, frame foundation.Rect, view IView) foundation.Rect
PathComponentCellAtPoint_WithFrame_InView(point foundation.Point, frame foundation.Rect, view IView) PathComponentCell
AllowedTypes() []string
SetAllowedTypes(value []string)
PathStyle() PathStyle
SetPathStyle(value PathStyle)
PlaceholderAttributedString() foundation.AttributedString
SetPlaceholderAttributedString(value foundation.IAttributedString)
PlaceholderString() string
SetPlaceholderString(value string)
BackgroundColor() Color
SetBackgroundColor(value IColor)
ClickedPathComponentCell() PathComponentCell
PathComponentCells() []PathComponentCell
SetPathComponentCells(value []IPathComponentCell)
DoubleAction() objc.Selector
SetDoubleAction(value objc.Selector)
URL() foundation.URL
SetURL(value foundation.IURL)
Delegate() objc.Object
SetDelegate(value objc.IObject)
}
type PathCell struct {
ActionCell
}
func MakePathCell(ptr unsafe.Pointer) PathCell {
return PathCell{
ActionCell: MakeActionCell(ptr),
}
}
func (p_ PathCell) InitImageCell(image IImage) PathCell {
rv := objc.CallMethod[PathCell](p_, objc.SEL("initImageCell:"), objc.ExtractPtr(image))
return rv
}
func (p_ PathCell) InitTextCell(string_ string) PathCell {
rv := objc.CallMethod[PathCell](p_, objc.SEL("initTextCell:"), string_)
return rv
}
func (p_ PathCell) Init() PathCell {
rv := objc.CallMethod[PathCell](p_, objc.SEL("init"))
return rv
}
func (pc _PathCellClass) Alloc() PathCell {
rv := objc.CallMethod[PathCell](pc, objc.SEL("alloc"))
return rv
}
func (pc _PathCellClass) New() PathCell {
rv := objc.CallMethod[PathCell](pc, objc.SEL("new"))
rv.Autorelease()
return rv
}
func NewPathCell() PathCell {
return PathCellClass.New()
}
func (p_ PathCell) MouseEntered_WithFrame_InView(event IEvent, frame foundation.Rect, view IView) {
objc.CallMethod[objc.Void](p_, objc.SEL("mouseEntered:withFrame:inView:"), objc.ExtractPtr(event), frame, objc.ExtractPtr(view))
}
func (p_ PathCell) MouseExited_WithFrame_InView(event IEvent, frame foundation.Rect, view IView) {
objc.CallMethod[objc.Void](p_, objc.SEL("mouseExited:withFrame:inView:"), objc.ExtractPtr(event), frame, objc.ExtractPtr(view))
}
func (p_ PathCell) RectOfPathComponentCell_WithFrame_InView(cell IPathComponentCell, frame foundation.Rect, view IView) foundation.Rect {
rv := objc.CallMethod[foundation.Rect](p_, objc.SEL("rectOfPathComponentCell:withFrame:inView:"), objc.ExtractPtr(cell), frame, objc.ExtractPtr(view))
return rv
}
func (p_ PathCell) PathComponentCellAtPoint_WithFrame_InView(point foundation.Point, frame foundation.Rect, view IView) PathComponentCell {
rv := objc.CallMethod[PathComponentCell](p_, objc.SEL("pathComponentCellAtPoint:withFrame:inView:"), point, frame, objc.ExtractPtr(view))
return rv
}
func (p_ PathCell) AllowedTypes() []string {
rv := objc.CallMethod[[]string](p_, objc.SEL("allowedTypes"))
return rv
}
func (p_ PathCell) SetAllowedTypes(value []string) {
objc.CallMethod[objc.Void](p_, objc.SEL("setAllowedTypes:"), value)
}
func (p_ PathCell) PathStyle() PathStyle {
rv := objc.CallMethod[PathStyle](p_, objc.SEL("pathStyle"))
return rv
}
func (p_ PathCell) SetPathStyle(value PathStyle) {
objc.CallMethod[objc.Void](p_, objc.SEL("setPathStyle:"), value)
}
func (p_ PathCell) PlaceholderAttributedString() foundation.AttributedString {
rv := objc.CallMethod[foundation.AttributedString](p_, objc.SEL("placeholderAttributedString"))
return rv
}
func (p_ PathCell) SetPlaceholderAttributedString(value foundation.IAttributedString) {
objc.CallMethod[objc.Void](p_, objc.SEL("setPlaceholderAttributedString:"), objc.ExtractPtr(value))
}
func (p_ PathCell) PlaceholderString() string {
rv := objc.CallMethod[string](p_, objc.SEL("placeholderString"))
return rv
}
func (p_ PathCell) SetPlaceholderString(value string) {
objc.CallMethod[objc.Void](p_, objc.SEL("setPlaceholderString:"), value)
}
func (p_ PathCell) BackgroundColor() Color {
rv := objc.CallMethod[Color](p_, objc.SEL("backgroundColor"))
return rv
}
func (p_ PathCell) SetBackgroundColor(value IColor) {
objc.CallMethod[objc.Void](p_, objc.SEL("setBackgroundColor:"), objc.ExtractPtr(value))
}
func (pc _PathCellClass) PathComponentCellClass() objc.Class {
rv := objc.CallMethod[objc.Class](pc, objc.SEL("pathComponentCellClass"))
return rv
}
func (p_ PathCell) ClickedPathComponentCell() PathComponentCell {
rv := objc.CallMethod[PathComponentCell](p_, objc.SEL("clickedPathComponentCell"))
return rv
}
func (p_ PathCell) PathComponentCells() []PathComponentCell {
rv := objc.CallMethod[[]PathComponentCell](p_, objc.SEL("pathComponentCells"))
return rv
}
func (p_ PathCell) SetPathComponentCells(value []IPathComponentCell) {
objc.CallMethod[objc.Void](p_, objc.SEL("setPathComponentCells:"), value)
}
func (p_ PathCell) DoubleAction() objc.Selector {
rv := objc.CallMethod[objc.Selector](p_, objc.SEL("doubleAction"))
return rv
}
func (p_ PathCell) SetDoubleAction(value objc.Selector) {
objc.CallMethod[objc.Void](p_, objc.SEL("setDoubleAction:"), value)
}
func (p_ PathCell) URL() foundation.URL {
rv := objc.CallMethod[foundation.URL](p_, objc.SEL("URL"))
return rv
}
func (p_ PathCell) SetURL(value foundation.IURL) {
objc.CallMethod[objc.Void](p_, objc.SEL("setURL:"), objc.ExtractPtr(value))
}
// weak property
func (p_ PathCell) Delegate() objc.Object {
rv := objc.CallMethod[objc.Object](p_, objc.SEL("delegate"))
return rv
}
// weak property
func (p_ PathCell) SetDelegate(value objc.IObject) {
objc.CallMethod[objc.Void](p_, objc.SEL("setDelegate:"), objc.ExtractPtr(value))
}