-
Notifications
You must be signed in to change notification settings - Fork 1
/
gridcolumntitle.go
310 lines (267 loc) · 6.67 KB
/
gridcolumntitle.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
//----------------------------------------
// The code is automatically generated by the GenlibLcl tool.
// Copyright © ying32. All Rights Reserved.
//
// Licensed under Apache License 2.0
//
//----------------------------------------
package lcl
import (
. "github.com/energye/golcl/lcl/api"
. "github.com/energye/golcl/lcl/types"
"unsafe"
)
type TGridColumnTitle struct {
IObject
instance unsafe.Pointer
}
// AsGridColumnTitle
//
// 动态转换一个已存在的对象实例。
//
// Dynamically convert an existing object instance.
func AsGridColumnTitle(obj interface{}) *TGridColumnTitle {
instance := getInstance(obj)
if instance == nullptr {
return nil
}
return &TGridColumnTitle{instance: instance}
}
func (g *TGridColumnTitle) _instance() uintptr {
return uintptr(g.instance)
}
// Instance
//
// 返回对象实例指针。
//
// Return object instance pointer.
func (g *TGridColumnTitle) Instance() uintptr {
return g._instance()
}
// UnsafeAddr
//
// 获取一个不安全的地址。
//
// Get an unsafe address.
func (g *TGridColumnTitle) UnsafeAddr() unsafe.Pointer {
return g.instance
}
// IsValid
//
// 检测地址是否为空。
//
// Check if the address is empty.
func (g *TGridColumnTitle) IsValid() bool {
return g.instance != nullptr
}
// Is
//
// 检测当前对象是否继承自目标对象。
//
// Checks whether the current object is inherited from the target object.
func (g *TGridColumnTitle) Is() TIs {
return TIs(g._instance())
}
// As
//
// 动态转换当前对象为目标对象。
//
// Dynamically convert the current object to the target object.
//func (g *TGridColumnTitle) As() TAs {
// return TAs(g._instance())
//}
// TGridColumnTitleClass
//
// 获取类信息指针。
//
// Get class information pointer.
func TGridColumnTitleClass() TClass {
return GridColumnTitle_StaticClassType()
}
// Assign
//
// 复制一个对象,如果对象实现了此方法的话。
//
// Copy an object, if the object implements this method.
func (g *TGridColumnTitle) Assign(Source IObject) {
GridColumnTitle_Assign(g._instance(), CheckPtr(Source))
}
func (g *TGridColumnTitle) FillTitleDefaultFont() {
GridColumnTitle_FillTitleDefaultFont(g._instance())
}
func (g *TGridColumnTitle) FixDesignFontsPPI(ADesignTimePPI int32) {
GridColumnTitle_FixDesignFontsPPI(g._instance(), ADesignTimePPI)
}
func (g *TGridColumnTitle) ScaleFontsPPI(AToPPI int32, AProportion float64) {
GridColumnTitle_ScaleFontsPPI(g._instance(), AToPPI, AProportion)
}
func (g *TGridColumnTitle) IsDefault() bool {
return GridColumnTitle_IsDefault(g._instance())
}
// GetNamePath
//
// 获取类名路径。
//
// Get the class name path.
func (g *TGridColumnTitle) GetNamePath() string {
return GridColumnTitle_GetNamePath(g._instance())
}
// ClassType
//
// 获取类的类型信息。
//
// Get class type information.
func (g *TGridColumnTitle) ClassType() TClass {
return GridColumnTitle_ClassType(g._instance())
}
// ClassName
//
// 获取当前对象类名称。
//
// Get the current object class name.
func (g *TGridColumnTitle) ClassName() string {
return GridColumnTitle_ClassName(g._instance())
}
// InstanceSize
//
// 获取当前对象实例大小。
//
// Get the current object instance size.
func (g *TGridColumnTitle) InstanceSize() int32 {
return GridColumnTitle_InstanceSize(g._instance())
}
// InheritsFrom
//
// 判断当前类是否继承自指定类。
//
// Determine whether the current class inherits from the specified class.
func (g *TGridColumnTitle) InheritsFrom(AClass TClass) bool {
return GridColumnTitle_InheritsFrom(g._instance(), AClass)
}
// Equals
//
// 与一个对象进行比较。
//
// Compare with an object.
func (g *TGridColumnTitle) Equals(Obj IObject) bool {
return GridColumnTitle_Equals(g._instance(), CheckPtr(Obj))
}
// GetHashCode
//
// 获取类的哈希值。
//
// Get the hash value of the class.
func (g *TGridColumnTitle) GetHashCode() int32 {
return GridColumnTitle_GetHashCode(g._instance())
}
// ToString
//
// 文本类信息。
//
// Text information.
func (g *TGridColumnTitle) ToString() string {
return GridColumnTitle_ToString(g._instance())
}
func (g *TGridColumnTitle) Column() *TGridColumn {
return AsGridColumn(GridColumnTitle_GetColumn(g._instance()))
}
// Alignment
//
// 获取文字对齐。
//
// Get Text alignment.
func (g *TGridColumnTitle) Alignment() TAlignment {
return GridColumnTitle_GetAlignment(g._instance())
}
// SetAlignment
//
// 设置文字对齐。
//
// Set Text alignment.
func (g *TGridColumnTitle) SetAlignment(value TAlignment) {
GridColumnTitle_SetAlignment(g._instance(), value)
}
// Caption
//
// 获取控件标题。
//
// Get the control title.
func (g *TGridColumnTitle) Caption() string {
return GridColumnTitle_GetCaption(g._instance())
}
// SetCaption
//
// 设置控件标题。
//
// Set the control title.
func (g *TGridColumnTitle) SetCaption(value string) {
GridColumnTitle_SetCaption(g._instance(), value)
}
// Color
//
// 获取颜色。
//
// Get color.
func (g *TGridColumnTitle) Color() TColor {
return GridColumnTitle_GetColor(g._instance())
}
// SetColor
//
// 设置颜色。
//
// Set color.
func (g *TGridColumnTitle) SetColor(value TColor) {
GridColumnTitle_SetColor(g._instance(), value)
}
// Font
//
// 获取字体。
//
// Get Font.
func (g *TGridColumnTitle) Font() *TFont {
return AsFont(GridColumnTitle_GetFont(g._instance()))
}
// SetFont
//
// 设置字体。
//
// Set Font.
func (g *TGridColumnTitle) SetFont(value *TFont) {
GridColumnTitle_SetFont(g._instance(), CheckPtr(value))
}
// ImageIndex
//
// 获取图像在images中的索引。
func (g *TGridColumnTitle) ImageIndex() int32 {
return GridColumnTitle_GetImageIndex(g._instance())
}
// SetImageIndex
//
// 设置图像在images中的索引。
func (g *TGridColumnTitle) SetImageIndex(value int32) {
GridColumnTitle_SetImageIndex(g._instance(), value)
}
func (g *TGridColumnTitle) ImageLayout() TButtonLayout {
return GridColumnTitle_GetImageLayout(g._instance())
}
func (g *TGridColumnTitle) SetImageLayout(value TButtonLayout) {
GridColumnTitle_SetImageLayout(g._instance(), value)
}
func (g *TGridColumnTitle) Layout() TTextLayout {
return GridColumnTitle_GetLayout(g._instance())
}
func (g *TGridColumnTitle) SetLayout(value TTextLayout) {
GridColumnTitle_SetLayout(g._instance(), value)
}
func (g *TGridColumnTitle) MultiLine() bool {
return GridColumnTitle_GetMultiLine(g._instance())
}
func (g *TGridColumnTitle) SetMultiLine(value bool) {
GridColumnTitle_SetMultiLine(g._instance(), value)
}
func (g *TGridColumnTitle) PrefixOption() TPrefixOption {
return GridColumnTitle_GetPrefixOption(g._instance())
}
func (g *TGridColumnTitle) SetPrefixOption(value TPrefixOption) {
GridColumnTitle_SetPrefixOption(g._instance(), value)
}