-
Notifications
You must be signed in to change notification settings - Fork 227
/
listcolumn.go
346 lines (296 loc) · 7.02 KB
/
listcolumn.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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
//----------------------------------------
// The code is automatically generated by the GenlibLcl tool.
// Copyright © ying32. All Rights Reserved.
//
// Licensed under Apache License 2.0
//
//----------------------------------------
package vcl
import (
. "github.com/ying32/govcl/vcl/api"
. "github.com/ying32/govcl/vcl/types"
"unsafe"
)
type TListColumn struct {
IObject
instance unsafe.Pointer
}
// NewListColumn
//
// 创建一个新的对象。
//
// Create a new object.
func NewListColumn(AOwner *TCollection) *TListColumn {
l := new(TListColumn)
l.instance = unsafe.Pointer(ListColumn_Create(CheckPtr(AOwner)))
setFinalizer(l, (*TListColumn).Free)
return l
}
// AsListColumn
//
// 动态转换一个已存在的对象实例。
//
// Dynamically convert an existing object instance.
func AsListColumn(obj interface{}) *TListColumn {
instance := getInstance(obj)
if instance == nullptr { return nil }
return &TListColumn{instance: instance}
}
// Free
//
// 释放对象。
//
// Free object.
func (l *TListColumn) Free() {
if l.instance != nullptr {
ListColumn_Free(l._instance())
l.instance = nullptr
}
}
func (l *TListColumn) _instance() uintptr {
return uintptr(l.instance)
}
// Instance
//
// 返回对象实例指针。
//
// Return object instance pointer.
func (l *TListColumn) Instance() uintptr {
return l._instance()
}
// UnsafeAddr
//
// 获取一个不安全的地址。
//
// Get an unsafe address.
func (l *TListColumn) UnsafeAddr() unsafe.Pointer {
return l.instance
}
// IsValid
//
// 检测地址是否为空。
//
// Check if the address is empty.
func (l *TListColumn) IsValid() bool {
return l.instance != nullptr
}
// Is
//
// 检测当前对象是否继承自目标对象。
//
// Checks whether the current object is inherited from the target object.
func (l *TListColumn) Is() TIs {
return TIs(l._instance())
}
// As
//
// 动态转换当前对象为目标对象。
//
// Dynamically convert the current object to the target object.
//func (l *TListColumn) As() TAs {
// return TAs(l._instance())
//}
// TListColumnClass
//
// 获取类信息指针。
//
// Get class information pointer.
func TListColumnClass() TClass {
return ListColumn_StaticClassType()
}
// Assign
//
// 复制一个对象,如果对象实现了此方法的话。
//
// Copy an object, if the object implements this method.
func (l *TListColumn) Assign(Source IObject) {
ListColumn_Assign(l._instance(), CheckPtr(Source))
}
// GetNamePath
//
// 获取类名路径。
//
// Get the class name path.
func (l *TListColumn) GetNamePath() string {
return ListColumn_GetNamePath(l._instance())
}
// ClassType
//
// 获取类的类型信息。
//
// Get class type information.
func (l *TListColumn) ClassType() TClass {
return ListColumn_ClassType(l._instance())
}
// ClassName
//
// 获取当前对象类名称。
//
// Get the current object class name.
func (l *TListColumn) ClassName() string {
return ListColumn_ClassName(l._instance())
}
// InstanceSize
//
// 获取当前对象实例大小。
//
// Get the current object instance size.
func (l *TListColumn) InstanceSize() int32 {
return ListColumn_InstanceSize(l._instance())
}
// InheritsFrom
//
// 判断当前类是否继承自指定类。
//
// Determine whether the current class inherits from the specified class.
func (l *TListColumn) InheritsFrom(AClass TClass) bool {
return ListColumn_InheritsFrom(l._instance(), AClass)
}
// Equals
//
// 与一个对象进行比较。
//
// Compare with an object.
func (l *TListColumn) Equals(Obj IObject) bool {
return ListColumn_Equals(l._instance(), CheckPtr(Obj))
}
// GetHashCode
//
// 获取类的哈希值。
//
// Get the hash value of the class.
func (l *TListColumn) GetHashCode() int32 {
return ListColumn_GetHashCode(l._instance())
}
// ToString
//
// 文本类信息。
//
// Text information.
func (l *TListColumn) ToString() string {
return ListColumn_ToString(l._instance())
}
func (l *TListColumn) SortIndicator() TSortIndicator {
return ListColumn_GetSortIndicator(l._instance())
}
func (l *TListColumn) SetSortIndicator(value TSortIndicator) {
ListColumn_SetSortIndicator(l._instance(), value)
}
// Alignment
//
// 获取文字对齐。
//
// Get Text alignment.
func (l *TListColumn) Alignment() TAlignment {
return ListColumn_GetAlignment(l._instance())
}
// SetAlignment
//
// 设置文字对齐。
//
// Set Text alignment.
func (l *TListColumn) SetAlignment(value TAlignment) {
ListColumn_SetAlignment(l._instance(), value)
}
// AutoSize
//
// 获取自动调整大小。
func (l *TListColumn) AutoSize() bool {
return ListColumn_GetAutoSize(l._instance())
}
// SetAutoSize
//
// 设置自动调整大小。
func (l *TListColumn) SetAutoSize(value bool) {
ListColumn_SetAutoSize(l._instance(), value)
}
// Caption
//
// 获取控件标题。
//
// Get the control title.
func (l *TListColumn) Caption() string {
return ListColumn_GetCaption(l._instance())
}
// SetCaption
//
// 设置控件标题。
//
// Set the control title.
func (l *TListColumn) SetCaption(value string) {
ListColumn_SetCaption(l._instance(), value)
}
// ImageIndex
//
// 获取图像在images中的索引。
func (l *TListColumn) ImageIndex() int32 {
return ListColumn_GetImageIndex(l._instance())
}
// SetImageIndex
//
// 设置图像在images中的索引。
func (l *TListColumn) SetImageIndex(value int32) {
ListColumn_SetImageIndex(l._instance(), value)
}
func (l *TListColumn) MaxWidth() int32 {
return ListColumn_GetMaxWidth(l._instance())
}
func (l *TListColumn) SetMaxWidth(value int32) {
ListColumn_SetMaxWidth(l._instance(), value)
}
func (l *TListColumn) MinWidth() int32 {
return ListColumn_GetMinWidth(l._instance())
}
func (l *TListColumn) SetMinWidth(value int32) {
ListColumn_SetMinWidth(l._instance(), value)
}
// Tag
//
// 获取对象标记。
//
// Get the control tag.
func (l *TListColumn) Tag() int32 {
return ListColumn_GetTag(l._instance())
}
// SetTag
//
// 设置对象标记。
//
// Set the control tag.
func (l *TListColumn) SetTag(value int32) {
ListColumn_SetTag(l._instance(), value)
}
// Width
//
// 获取宽度。
//
// Get width.
func (l *TListColumn) Width() int32 {
return ListColumn_GetWidth(l._instance())
}
// SetWidth
//
// 设置宽度。
//
// Set width.
func (l *TListColumn) SetWidth(value int32) {
ListColumn_SetWidth(l._instance(), value)
}
func (l *TListColumn) Collection() *TCollection {
return AsCollection(ListColumn_GetCollection(l._instance()))
}
func (l *TListColumn) SetCollection(value *TCollection) {
ListColumn_SetCollection(l._instance(), CheckPtr(value))
}
func (l *TListColumn) Index() int32 {
return ListColumn_GetIndex(l._instance())
}
func (l *TListColumn) SetIndex(value int32) {
ListColumn_SetIndex(l._instance(), value)
}
func (l *TListColumn) DisplayName() string {
return ListColumn_GetDisplayName(l._instance())
}
func (l *TListColumn) SetDisplayName(value string) {
ListColumn_SetDisplayName(l._instance(), value)
}