-
Notifications
You must be signed in to change notification settings - Fork 1
/
controlborderspacing.go
317 lines (267 loc) · 7.54 KB
/
controlborderspacing.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
//----------------------------------------
// 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 TControlBorderSpacing struct {
IObject
instance unsafe.Pointer
}
// AsControlBorderSpacing
//
// 动态转换一个已存在的对象实例。
//
// Dynamically convert an existing object instance.
func AsControlBorderSpacing(obj interface{}) *TControlBorderSpacing {
instance := getInstance(obj)
if instance == nullptr {
return nil
}
return &TControlBorderSpacing{instance: instance}
}
func (c *TControlBorderSpacing) _instance() uintptr {
return uintptr(c.instance)
}
// Instance
//
// 返回对象实例指针。
//
// Return object instance pointer.
func (c *TControlBorderSpacing) Instance() uintptr {
return c._instance()
}
// UnsafeAddr
//
// 获取一个不安全的地址。
//
// Get an unsafe address.
func (c *TControlBorderSpacing) UnsafeAddr() unsafe.Pointer {
return c.instance
}
// IsValid
//
// 检测地址是否为空。
//
// Check if the address is empty.
func (c *TControlBorderSpacing) IsValid() bool {
return c.instance != nullptr
}
// Is
//
// 检测当前对象是否继承自目标对象。
//
// Checks whether the current object is inherited from the target object.
func (c *TControlBorderSpacing) Is() TIs {
return TIs(c._instance())
}
// As
//
// 动态转换当前对象为目标对象。
//
// Dynamically convert the current object to the target object.
//func (c *TControlBorderSpacing) As() TAs {
// return TAs(c._instance())
//}
// TControlBorderSpacingClass
//
// 获取类信息指针。
//
// Get class information pointer.
func TControlBorderSpacingClass() TClass {
return ControlBorderSpacing_StaticClassType()
}
// Assign
//
// 复制一个对象,如果对象实现了此方法的话。
//
// Copy an object, if the object implements this method.
func (c *TControlBorderSpacing) Assign(Source IObject) {
ControlBorderSpacing_Assign(c._instance(), CheckPtr(Source))
}
// GetNamePath
//
// 获取类名路径。
//
// Get the class name path.
func (c *TControlBorderSpacing) GetNamePath() string {
return ControlBorderSpacing_GetNamePath(c._instance())
}
// ClassType
//
// 获取类的类型信息。
//
// Get class type information.
func (c *TControlBorderSpacing) ClassType() TClass {
return ControlBorderSpacing_ClassType(c._instance())
}
// ClassName
//
// 获取当前对象类名称。
//
// Get the current object class name.
func (c *TControlBorderSpacing) ClassName() string {
return ControlBorderSpacing_ClassName(c._instance())
}
// InstanceSize
//
// 获取当前对象实例大小。
//
// Get the current object instance size.
func (c *TControlBorderSpacing) InstanceSize() int32 {
return ControlBorderSpacing_InstanceSize(c._instance())
}
// InheritsFrom
//
// 判断当前类是否继承自指定类。
//
// Determine whether the current class inherits from the specified class.
func (c *TControlBorderSpacing) InheritsFrom(AClass TClass) bool {
return ControlBorderSpacing_InheritsFrom(c._instance(), AClass)
}
// Equals
//
// 与一个对象进行比较。
//
// Compare with an object.
func (c *TControlBorderSpacing) Equals(Obj IObject) bool {
return ControlBorderSpacing_Equals(c._instance(), CheckPtr(Obj))
}
// GetHashCode
//
// 获取类的哈希值。
//
// Get the hash value of the class.
func (c *TControlBorderSpacing) GetHashCode() int32 {
return ControlBorderSpacing_GetHashCode(c._instance())
}
// ToString
//
// 文本类信息。
//
// Text information.
func (c *TControlBorderSpacing) ToString() string {
return ControlBorderSpacing_ToString(c._instance())
}
func (c *TControlBorderSpacing) Control() *TControl {
return AsControl(ControlBorderSpacing_GetControl(c._instance()))
}
func (c *TControlBorderSpacing) AroundLeft() int32 {
return ControlBorderSpacing_GetAroundLeft(c._instance())
}
func (c *TControlBorderSpacing) AroundTop() int32 {
return ControlBorderSpacing_GetAroundTop(c._instance())
}
func (c *TControlBorderSpacing) AroundRight() int32 {
return ControlBorderSpacing_GetAroundRight(c._instance())
}
func (c *TControlBorderSpacing) AroundBottom() int32 {
return ControlBorderSpacing_GetAroundBottom(c._instance())
}
func (c *TControlBorderSpacing) ControlLeft() int32 {
return ControlBorderSpacing_GetControlLeft(c._instance())
}
func (c *TControlBorderSpacing) ControlTop() int32 {
return ControlBorderSpacing_GetControlTop(c._instance())
}
func (c *TControlBorderSpacing) ControlWidth() int32 {
return ControlBorderSpacing_GetControlWidth(c._instance())
}
func (c *TControlBorderSpacing) ControlHeight() int32 {
return ControlBorderSpacing_GetControlHeight(c._instance())
}
func (c *TControlBorderSpacing) ControlRight() int32 {
return ControlBorderSpacing_GetControlRight(c._instance())
}
func (c *TControlBorderSpacing) ControlBottom() int32 {
return ControlBorderSpacing_GetControlBottom(c._instance())
}
// SetOnChange
//
// 设置改变事件。
//
// Set changed event.
func (c *TControlBorderSpacing) SetOnChange(fn TNotifyEvent) {
ControlBorderSpacing_SetOnChange(c._instance(), fn)
}
// Left
//
// 获取左边位置。
//
// Get Left position.
func (c *TControlBorderSpacing) Left() int32 {
return ControlBorderSpacing_GetLeft(c._instance())
}
// SetLeft
//
// 设置左边位置。
//
// Set Left position.
func (c *TControlBorderSpacing) SetLeft(value int32) {
ControlBorderSpacing_SetLeft(c._instance(), value)
}
// Top
//
// 获取顶边位置。
//
// Get Top position.
func (c *TControlBorderSpacing) Top() int32 {
return ControlBorderSpacing_GetTop(c._instance())
}
// SetTop
//
// 设置顶边位置。
//
// Set Top position.
func (c *TControlBorderSpacing) SetTop(value int32) {
ControlBorderSpacing_SetTop(c._instance(), value)
}
func (c *TControlBorderSpacing) Right() int32 {
return ControlBorderSpacing_GetRight(c._instance())
}
func (c *TControlBorderSpacing) SetRight(value int32) {
ControlBorderSpacing_SetRight(c._instance(), value)
}
func (c *TControlBorderSpacing) Bottom() int32 {
return ControlBorderSpacing_GetBottom(c._instance())
}
func (c *TControlBorderSpacing) SetBottom(value int32) {
ControlBorderSpacing_SetBottom(c._instance(), value)
}
func (c *TControlBorderSpacing) Around() int32 {
return ControlBorderSpacing_GetAround(c._instance())
}
func (c *TControlBorderSpacing) SetAround(value int32) {
ControlBorderSpacing_SetAround(c._instance(), value)
}
func (c *TControlBorderSpacing) InnerBorder() int32 {
return ControlBorderSpacing_GetInnerBorder(c._instance())
}
func (c *TControlBorderSpacing) SetInnerBorder(value int32) {
ControlBorderSpacing_SetInnerBorder(c._instance(), value)
}
func (c *TControlBorderSpacing) CellAlignHorizontal() TControlCellAlign {
return ControlBorderSpacing_GetCellAlignHorizontal(c._instance())
}
func (c *TControlBorderSpacing) SetCellAlignHorizontal(value TControlCellAlign) {
ControlBorderSpacing_SetCellAlignHorizontal(c._instance(), value)
}
func (c *TControlBorderSpacing) CellAlignVertical() TControlCellAlign {
return ControlBorderSpacing_GetCellAlignVertical(c._instance())
}
func (c *TControlBorderSpacing) SetCellAlignVertical(value TControlCellAlign) {
ControlBorderSpacing_SetCellAlignVertical(c._instance(), value)
}
func (c *TControlBorderSpacing) Space(Kind TAnchorKind) int32 {
return ControlBorderSpacing_GetSpace(c._instance(), Kind)
}
func (c *TControlBorderSpacing) SetSpace(Kind TAnchorKind, value int32) {
ControlBorderSpacing_SetSpace(c._instance(), Kind, value)
}