-
Notifications
You must be signed in to change notification settings - Fork 1
/
bevel.go
988 lines (857 loc) · 19.5 KB
/
bevel.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
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
//----------------------------------------
// 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 TBevel struct {
IControl
instance unsafe.Pointer
}
// NewBevel
//
// 创建一个新的对象。
//
// Create a new object.
func NewBevel(owner IComponent) *TBevel {
b := new(TBevel)
b.instance = unsafe.Pointer(Bevel_Create(CheckPtr(owner)))
return b
}
// AsBevel
//
// 动态转换一个已存在的对象实例。
//
// Dynamically convert an existing object instance.
func AsBevel(obj interface{}) *TBevel {
instance := getInstance(obj)
if instance == nullptr {
return nil
}
return &TBevel{instance: instance}
}
// Free
//
// 释放对象。
//
// Free object.
func (b *TBevel) Free() {
if b.instance != nullptr {
Bevel_Free(b._instance())
b.instance = nullptr
}
}
func (b *TBevel) _instance() uintptr {
return uintptr(b.instance)
}
// Instance
//
// 返回对象实例指针。
//
// Return object instance pointer.
func (b *TBevel) Instance() uintptr {
return b._instance()
}
// UnsafeAddr
//
// 获取一个不安全的地址。
//
// Get an unsafe address.
func (b *TBevel) UnsafeAddr() unsafe.Pointer {
return b.instance
}
// IsValid
//
// 检测地址是否为空。
//
// Check if the address is empty.
func (b *TBevel) IsValid() bool {
return b.instance != nullptr
}
// Is
//
// 检测当前对象是否继承自目标对象。
//
// Checks whether the current object is inherited from the target object.
func (b *TBevel) Is() TIs {
return TIs(b._instance())
}
// As
//
// 动态转换当前对象为目标对象。
//
// Dynamically convert the current object to the target object.
//func (b *TBevel) As() TAs {
// return TAs(b._instance())
//}
// TBevelClass
//
// 获取类信息指针。
//
// Get class information pointer.
func TBevelClass() TClass {
return Bevel_StaticClassType()
}
// BringToFront
//
// 将控件置于最前。
//
// Bring the control to the front.
func (b *TBevel) BringToFront() {
Bevel_BringToFront(b._instance())
}
// ClientToScreen
//
// 将客户端坐标转为绝对的屏幕坐标。
//
// Convert client coordinates to absolute screen coordinates.
func (b *TBevel) ClientToScreen(Point TPoint) TPoint {
return Bevel_ClientToScreen(b._instance(), Point)
}
// ClientToParent
//
// 将客户端坐标转为父容器坐标。
//
// Convert client coordinates to parent container coordinates.
func (b *TBevel) ClientToParent(Point TPoint, AParent IWinControl) TPoint {
return Bevel_ClientToParent(b._instance(), Point, CheckPtr(AParent))
}
// Dragging
//
// 是否在拖拽中。
//
// Is it in the middle of dragging.
func (b *TBevel) Dragging() bool {
return Bevel_Dragging(b._instance())
}
// HasParent
//
// 是否有父容器。
//
// Is there a parent container.
func (b *TBevel) HasParent() bool {
return Bevel_HasParent(b._instance())
}
// Hide
//
// 隐藏控件。
//
// Hidden control.
func (b *TBevel) Hide() {
Bevel_Hide(b._instance())
}
// Invalidate
//
// 要求重绘。
//
// Redraw.
func (b *TBevel) Invalidate() {
Bevel_Invalidate(b._instance())
}
// Perform
//
// 发送一个消息。
//
// Send a message.
func (b *TBevel) Perform(Msg uint32, WParam uintptr, LParam int) int {
return Bevel_Perform(b._instance(), Msg, WParam, LParam)
}
// Refresh
//
// 刷新控件。
//
// Refresh control.
func (b *TBevel) Refresh() {
Bevel_Refresh(b._instance())
}
// Repaint
//
// 重绘。
//
// Repaint.
func (b *TBevel) Repaint() {
Bevel_Repaint(b._instance())
}
// ScreenToClient
//
// 将屏幕坐标转为客户端坐标。
//
// Convert screen coordinates to client coordinates.
func (b *TBevel) ScreenToClient(Point TPoint) TPoint {
return Bevel_ScreenToClient(b._instance(), Point)
}
// ParentToClient
//
// 将父容器坐标转为客户端坐标。
//
// Convert parent container coordinates to client coordinates.
func (b *TBevel) ParentToClient(Point TPoint, AParent IWinControl) TPoint {
return Bevel_ParentToClient(b._instance(), Point, CheckPtr(AParent))
}
// SendToBack
//
// 控件至于最后面。
//
// The control is placed at the end.
func (b *TBevel) SendToBack() {
Bevel_SendToBack(b._instance())
}
// SetBounds
//
// 设置组件边界。
//
// Set component boundaries.
func (b *TBevel) SetBounds(ALeft int32, ATop int32, AWidth int32, AHeight int32) {
Bevel_SetBounds(b._instance(), ALeft, ATop, AWidth, AHeight)
}
// Show
//
// 显示控件。
//
// Show control.
func (b *TBevel) Show() {
Bevel_Show(b._instance())
}
// Update
//
// 控件更新。
//
// Update.
func (b *TBevel) Update() {
Bevel_Update(b._instance())
}
// GetTextBuf
//
// 获取控件的字符,如果有。
//
// Get the characters of the control, if any.
func (b *TBevel) GetTextBuf(Buffer *string, BufSize int32) int32 {
return Bevel_GetTextBuf(b._instance(), Buffer, BufSize)
}
// GetTextLen
//
// 获取控件的字符长,如果有。
//
// Get the character length of the control, if any.
func (b *TBevel) GetTextLen() int32 {
return Bevel_GetTextLen(b._instance())
}
// SetTextBuf
//
// 设置控件字符,如果有。
//
// Set control characters, if any.
func (b *TBevel) SetTextBuf(Buffer string) {
Bevel_SetTextBuf(b._instance(), Buffer)
}
// FindComponent
//
// 查找指定名称的组件。
//
// Find the component with the specified name.
func (b *TBevel) FindComponent(AName string) *TComponent {
return AsComponent(Bevel_FindComponent(b._instance(), AName))
}
// GetNamePath
//
// 获取类名路径。
//
// Get the class name path.
func (b *TBevel) GetNamePath() string {
return Bevel_GetNamePath(b._instance())
}
// Assign
//
// 复制一个对象,如果对象实现了此方法的话。
//
// Copy an object, if the object implements this method.
func (b *TBevel) Assign(Source IObject) {
Bevel_Assign(b._instance(), CheckPtr(Source))
}
// ClassType
//
// 获取类的类型信息。
//
// Get class type information.
func (b *TBevel) ClassType() TClass {
return Bevel_ClassType(b._instance())
}
// ClassName
//
// 获取当前对象类名称。
//
// Get the current object class name.
func (b *TBevel) ClassName() string {
return Bevel_ClassName(b._instance())
}
// InstanceSize
//
// 获取当前对象实例大小。
//
// Get the current object instance size.
func (b *TBevel) InstanceSize() int32 {
return Bevel_InstanceSize(b._instance())
}
// InheritsFrom
//
// 判断当前类是否继承自指定类。
//
// Determine whether the current class inherits from the specified class.
func (b *TBevel) InheritsFrom(AClass TClass) bool {
return Bevel_InheritsFrom(b._instance(), AClass)
}
// Equals
//
// 与一个对象进行比较。
//
// Compare with an object.
func (b *TBevel) Equals(Obj IObject) bool {
return Bevel_Equals(b._instance(), CheckPtr(Obj))
}
// GetHashCode
//
// 获取类的哈希值。
//
// Get the hash value of the class.
func (b *TBevel) GetHashCode() int32 {
return Bevel_GetHashCode(b._instance())
}
// ToString
//
// 文本类信息。
//
// Text information.
func (b *TBevel) ToString() string {
return Bevel_ToString(b._instance())
}
func (b *TBevel) AnchorToNeighbour(ASide TAnchorKind, ASpace int32, ASibling IControl) {
Bevel_AnchorToNeighbour(b._instance(), ASide, ASpace, CheckPtr(ASibling))
}
func (b *TBevel) AnchorParallel(ASide TAnchorKind, ASpace int32, ASibling IControl) {
Bevel_AnchorParallel(b._instance(), ASide, ASpace, CheckPtr(ASibling))
}
// AnchorHorizontalCenterTo
//
// 置于指定控件的横向中心。
func (b *TBevel) AnchorHorizontalCenterTo(ASibling IControl) {
Bevel_AnchorHorizontalCenterTo(b._instance(), CheckPtr(ASibling))
}
// AnchorVerticalCenterTo
//
// 置于指定控件的纵向中心。
func (b *TBevel) AnchorVerticalCenterTo(ASibling IControl) {
Bevel_AnchorVerticalCenterTo(b._instance(), CheckPtr(ASibling))
}
func (b *TBevel) AnchorSame(ASide TAnchorKind, ASibling IControl) {
Bevel_AnchorSame(b._instance(), ASide, CheckPtr(ASibling))
}
func (b *TBevel) AnchorAsAlign(ATheAlign TAlign, ASpace int32) {
Bevel_AnchorAsAlign(b._instance(), ATheAlign, ASpace)
}
func (b *TBevel) AnchorClient(ASpace int32) {
Bevel_AnchorClient(b._instance(), ASpace)
}
func (b *TBevel) ScaleDesignToForm(ASize int32) int32 {
return Bevel_ScaleDesignToForm(b._instance(), ASize)
}
func (b *TBevel) ScaleFormToDesign(ASize int32) int32 {
return Bevel_ScaleFormToDesign(b._instance(), ASize)
}
func (b *TBevel) Scale96ToForm(ASize int32) int32 {
return Bevel_Scale96ToForm(b._instance(), ASize)
}
func (b *TBevel) ScaleFormTo96(ASize int32) int32 {
return Bevel_ScaleFormTo96(b._instance(), ASize)
}
func (b *TBevel) Scale96ToFont(ASize int32) int32 {
return Bevel_Scale96ToFont(b._instance(), ASize)
}
func (b *TBevel) ScaleFontTo96(ASize int32) int32 {
return Bevel_ScaleFontTo96(b._instance(), ASize)
}
func (b *TBevel) ScaleScreenToFont(ASize int32) int32 {
return Bevel_ScaleScreenToFont(b._instance(), ASize)
}
func (b *TBevel) ScaleFontToScreen(ASize int32) int32 {
return Bevel_ScaleFontToScreen(b._instance(), ASize)
}
func (b *TBevel) Scale96ToScreen(ASize int32) int32 {
return Bevel_Scale96ToScreen(b._instance(), ASize)
}
func (b *TBevel) ScaleScreenTo96(ASize int32) int32 {
return Bevel_ScaleScreenTo96(b._instance(), ASize)
}
func (b *TBevel) AutoAdjustLayout(AMode TLayoutAdjustmentPolicy, AFromPPI int32, AToPPI int32, AOldFormWidth int32, ANewFormWidth int32) {
Bevel_AutoAdjustLayout(b._instance(), AMode, AFromPPI, AToPPI, AOldFormWidth, ANewFormWidth)
}
func (b *TBevel) FixDesignFontsPPI(ADesignTimePPI int32) {
Bevel_FixDesignFontsPPI(b._instance(), ADesignTimePPI)
}
func (b *TBevel) ScaleFontsPPI(AToPPI int32, AProportion float64) {
Bevel_ScaleFontsPPI(b._instance(), AToPPI, AProportion)
}
// Align
//
// 获取控件自动调整。
//
// Get Control automatically adjusts.
func (b *TBevel) Align() TAlign {
return Bevel_GetAlign(b._instance())
}
// SetAlign
//
// 设置控件自动调整。
//
// Set Control automatically adjusts.
func (b *TBevel) SetAlign(value TAlign) {
Bevel_SetAlign(b._instance(), value)
}
// Anchors
//
// 获取四个角位置的锚点。
func (b *TBevel) Anchors() TAnchors {
return Bevel_GetAnchors(b._instance())
}
// SetAnchors
//
// 设置四个角位置的锚点。
func (b *TBevel) SetAnchors(value TAnchors) {
Bevel_SetAnchors(b._instance(), value)
}
// Constraints
//
// 获取约束控件大小。
func (b *TBevel) Constraints() *TSizeConstraints {
return AsSizeConstraints(Bevel_GetConstraints(b._instance()))
}
// SetConstraints
//
// 设置约束控件大小。
func (b *TBevel) SetConstraints(value *TSizeConstraints) {
Bevel_SetConstraints(b._instance(), CheckPtr(value))
}
// ParentShowHint
//
// 获取以父容器的ShowHint属性为准。
func (b *TBevel) ParentShowHint() bool {
return Bevel_GetParentShowHint(b._instance())
}
// SetParentShowHint
//
// 设置以父容器的ShowHint属性为准。
func (b *TBevel) SetParentShowHint(value bool) {
Bevel_SetParentShowHint(b._instance(), value)
}
func (b *TBevel) Shape() TBevelShape {
return Bevel_GetShape(b._instance())
}
func (b *TBevel) SetShape(value TBevelShape) {
Bevel_SetShape(b._instance(), value)
}
// ShowHint
//
// 获取显示鼠标悬停提示。
//
// Get Show mouseover tips.
func (b *TBevel) ShowHint() bool {
return Bevel_GetShowHint(b._instance())
}
// SetShowHint
//
// 设置显示鼠标悬停提示。
//
// Set Show mouseover tips.
func (b *TBevel) SetShowHint(value bool) {
Bevel_SetShowHint(b._instance(), value)
}
func (b *TBevel) Style() TBevelStyle {
return Bevel_GetStyle(b._instance())
}
func (b *TBevel) SetStyle(value TBevelStyle) {
Bevel_SetStyle(b._instance(), value)
}
// Visible
//
// 获取控件可视。
//
// Get the control visible.
func (b *TBevel) Visible() bool {
return Bevel_GetVisible(b._instance())
}
// SetVisible
//
// 设置控件可视。
//
// Set the control visible.
func (b *TBevel) SetVisible(value bool) {
Bevel_SetVisible(b._instance(), value)
}
// Enabled
//
// 获取控件启用。
//
// Get the control enabled.
func (b *TBevel) Enabled() bool {
return Bevel_GetEnabled(b._instance())
}
// SetEnabled
//
// 设置控件启用。
//
// Set the control enabled.
func (b *TBevel) SetEnabled(value bool) {
Bevel_SetEnabled(b._instance(), value)
}
func (b *TBevel) Action() *TAction {
return AsAction(Bevel_GetAction(b._instance()))
}
func (b *TBevel) SetAction(value IComponent) {
Bevel_SetAction(b._instance(), CheckPtr(value))
}
func (b *TBevel) BiDiMode() TBiDiMode {
return Bevel_GetBiDiMode(b._instance())
}
func (b *TBevel) SetBiDiMode(value TBiDiMode) {
Bevel_SetBiDiMode(b._instance(), value)
}
func (b *TBevel) BoundsRect() TRect {
return Bevel_GetBoundsRect(b._instance())
}
func (b *TBevel) SetBoundsRect(value TRect) {
Bevel_SetBoundsRect(b._instance(), value)
}
// ClientHeight
//
// 获取客户区高度。
//
// Get client height.
func (b *TBevel) ClientHeight() int32 {
return Bevel_GetClientHeight(b._instance())
}
// SetClientHeight
//
// 设置客户区高度。
//
// Set client height.
func (b *TBevel) SetClientHeight(value int32) {
Bevel_SetClientHeight(b._instance(), value)
}
func (b *TBevel) ClientOrigin() TPoint {
return Bevel_GetClientOrigin(b._instance())
}
// ClientRect
//
// 获取客户区矩形。
//
// Get client rectangle.
func (b *TBevel) ClientRect() TRect {
return Bevel_GetClientRect(b._instance())
}
// ClientWidth
//
// 获取客户区宽度。
//
// Get client width.
func (b *TBevel) ClientWidth() int32 {
return Bevel_GetClientWidth(b._instance())
}
// SetClientWidth
//
// 设置客户区宽度。
//
// Set client width.
func (b *TBevel) SetClientWidth(value int32) {
Bevel_SetClientWidth(b._instance(), value)
}
// ControlState
//
// 获取控件状态。
//
// Get control state.
func (b *TBevel) ControlState() TControlState {
return Bevel_GetControlState(b._instance())
}
// SetControlState
//
// 设置控件状态。
//
// Set control state.
func (b *TBevel) SetControlState(value TControlState) {
Bevel_SetControlState(b._instance(), value)
}
// ControlStyle
//
// 获取控件样式。
//
// Get control style.
func (b *TBevel) ControlStyle() TControlStyle {
return Bevel_GetControlStyle(b._instance())
}
// SetControlStyle
//
// 设置控件样式。
//
// Set control style.
func (b *TBevel) SetControlStyle(value TControlStyle) {
Bevel_SetControlStyle(b._instance(), value)
}
func (b *TBevel) Floating() bool {
return Bevel_GetFloating(b._instance())
}
// Parent
//
// 获取控件父容器。
//
// Get control parent container.
func (b *TBevel) Parent() *TWinControl {
return AsWinControl(Bevel_GetParent(b._instance()))
}
// SetParent
//
// 设置控件父容器。
//
// Set control parent container.
func (b *TBevel) SetParent(value IWinControl) {
Bevel_SetParent(b._instance(), CheckPtr(value))
}
// Left
//
// 获取左边位置。
//
// Get Left position.
func (b *TBevel) Left() int32 {
return Bevel_GetLeft(b._instance())
}
// SetLeft
//
// 设置左边位置。
//
// Set Left position.
func (b *TBevel) SetLeft(value int32) {
Bevel_SetLeft(b._instance(), value)
}
// Top
//
// 获取顶边位置。
//
// Get Top position.
func (b *TBevel) Top() int32 {
return Bevel_GetTop(b._instance())
}
// SetTop
//
// 设置顶边位置。
//
// Set Top position.
func (b *TBevel) SetTop(value int32) {
Bevel_SetTop(b._instance(), value)
}
// Width
//
// 获取宽度。
//
// Get width.
func (b *TBevel) Width() int32 {
return Bevel_GetWidth(b._instance())
}
// SetWidth
//
// 设置宽度。
//
// Set width.
func (b *TBevel) SetWidth(value int32) {
Bevel_SetWidth(b._instance(), value)
}
// Height
//
// 获取高度。
//
// Get height.
func (b *TBevel) Height() int32 {
return Bevel_GetHeight(b._instance())
}
// SetHeight
//
// 设置高度。
//
// Set height.
func (b *TBevel) SetHeight(value int32) {
Bevel_SetHeight(b._instance(), value)
}
// Cursor
//
// 获取控件光标。
//
// Get control cursor.
func (b *TBevel) Cursor() TCursor {
return Bevel_GetCursor(b._instance())
}
// SetCursor
//
// 设置控件光标。
//
// Set control cursor.
func (b *TBevel) SetCursor(value TCursor) {
Bevel_SetCursor(b._instance(), value)
}
// Hint
//
// 获取组件鼠标悬停提示。
//
// Get component mouse hints.
func (b *TBevel) Hint() string {
return Bevel_GetHint(b._instance())
}
// SetHint
//
// 设置组件鼠标悬停提示。
//
// Set component mouse hints.
func (b *TBevel) SetHint(value string) {
Bevel_SetHint(b._instance(), value)
}
// ComponentCount
//
// 获取组件总数。
//
// Get the total number of components.
func (b *TBevel) ComponentCount() int32 {
return Bevel_GetComponentCount(b._instance())
}
// ComponentIndex
//
// 获取组件索引。
//
// Get component index.
func (b *TBevel) ComponentIndex() int32 {
return Bevel_GetComponentIndex(b._instance())
}
// SetComponentIndex
//
// 设置组件索引。
//
// Set component index.
func (b *TBevel) SetComponentIndex(value int32) {
Bevel_SetComponentIndex(b._instance(), value)
}
// Owner
//
// 获取组件所有者。
//
// Get component owner.
func (b *TBevel) Owner() *TComponent {
return AsComponent(Bevel_GetOwner(b._instance()))
}
// Name
//
// 获取组件名称。
//
// Get the component name.
func (b *TBevel) Name() string {
return Bevel_GetName(b._instance())
}
// SetName
//
// 设置组件名称。
//
// Set the component name.
func (b *TBevel) SetName(value string) {
Bevel_SetName(b._instance(), value)
}
// Tag
//
// 获取对象标记。
//
// Get the control tag.
func (b *TBevel) Tag() int {
return Bevel_GetTag(b._instance())
}
// SetTag
//
// 设置对象标记。
//
// Set the control tag.
func (b *TBevel) SetTag(value int) {
Bevel_SetTag(b._instance(), value)
}
// AnchorSideLeft
//
// 获取左边锚点。
func (b *TBevel) AnchorSideLeft() *TAnchorSide {
return AsAnchorSide(Bevel_GetAnchorSideLeft(b._instance()))
}
// SetAnchorSideLeft
//
// 设置左边锚点。
func (b *TBevel) SetAnchorSideLeft(value *TAnchorSide) {
Bevel_SetAnchorSideLeft(b._instance(), CheckPtr(value))
}
// AnchorSideTop
//
// 获取顶边锚点。
func (b *TBevel) AnchorSideTop() *TAnchorSide {
return AsAnchorSide(Bevel_GetAnchorSideTop(b._instance()))
}
// SetAnchorSideTop
//
// 设置顶边锚点。
func (b *TBevel) SetAnchorSideTop(value *TAnchorSide) {
Bevel_SetAnchorSideTop(b._instance(), CheckPtr(value))
}
// AnchorSideRight
//
// 获取右边锚点。
func (b *TBevel) AnchorSideRight() *TAnchorSide {
return AsAnchorSide(Bevel_GetAnchorSideRight(b._instance()))
}
// SetAnchorSideRight
//
// 设置右边锚点。
func (b *TBevel) SetAnchorSideRight(value *TAnchorSide) {
Bevel_SetAnchorSideRight(b._instance(), CheckPtr(value))
}
// AnchorSideBottom
//
// 获取底边锚点。
func (b *TBevel) AnchorSideBottom() *TAnchorSide {
return AsAnchorSide(Bevel_GetAnchorSideBottom(b._instance()))
}
// SetAnchorSideBottom
//
// 设置底边锚点。
func (b *TBevel) SetAnchorSideBottom(value *TAnchorSide) {
Bevel_SetAnchorSideBottom(b._instance(), CheckPtr(value))
}
// BorderSpacing
//
// 获取边框间距。
func (b *TBevel) BorderSpacing() *TControlBorderSpacing {
return AsControlBorderSpacing(Bevel_GetBorderSpacing(b._instance()))
}
// SetBorderSpacing
//
// 设置边框间距。
func (b *TBevel) SetBorderSpacing(value *TControlBorderSpacing) {
Bevel_SetBorderSpacing(b._instance(), CheckPtr(value))
}
// Components
//
// 获取指定索引组件。
//
// Get the specified index component.
func (b *TBevel) Components(AIndex int32) *TComponent {
return AsComponent(Bevel_GetComponents(b._instance(), AIndex))
}
// AnchorSide
//
// 获取锚侧面。
func (b *TBevel) AnchorSide(AKind TAnchorKind) *TAnchorSide {
return AsAnchorSide(Bevel_GetAnchorSide(b._instance(), AKind))
}