-
Notifications
You must be signed in to change notification settings - Fork 0
/
colorlistbox.go
702 lines (527 loc) · 17.2 KB
/
colorlistbox.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
//----------------------------------------
// 代码由GenlibVcl工具自动生成。
// Copyright © ying32. All Rights Reserved.
//
//----------------------------------------
package vcl
import (
. "gitee.com/ying32/govcl/vcl/api"
. "gitee.com/ying32/govcl/vcl/types"
)
type TColorListBox struct {
IControl
instance uintptr
}
func NewColorListBox(owner IComponent) *TColorListBox {
c := new(TColorListBox)
c.instance = ColorListBox_Create(CheckPtr(owner))
return c
}
func ColorListBoxFromInst(inst uintptr) *TColorListBox {
c := new(TColorListBox)
c.instance = inst
return c
}
func ColorListBoxFromObj(obj IObject) *TColorListBox {
c := new(TColorListBox)
c.instance = CheckPtr(obj)
return c
}
func (c *TColorListBox) Free() {
if c.instance != 0 {
ColorListBox_Free(c.instance)
c.instance = 0
}
}
func (c *TColorListBox) Instance() uintptr {
return c.instance
}
func (c *TColorListBox) IsValid() bool {
return c.instance != 0
}
func (c *TColorListBox) AddItem(Item string, AObject IObject) {
ColorListBox_AddItem(c.instance, Item , CheckPtr(AObject))
}
func (c *TColorListBox) Clear() {
ColorListBox_Clear(c.instance)
}
func (c *TColorListBox) ClearSelection() {
ColorListBox_ClearSelection(c.instance)
}
func (c *TColorListBox) DeleteSelected() {
ColorListBox_DeleteSelected(c.instance)
}
func (c *TColorListBox) SelectAll() {
ColorListBox_SelectAll(c.instance)
}
func (c *TColorListBox) CanFocus() bool {
return ColorListBox_CanFocus(c.instance)
}
func (c *TColorListBox) FlipChildren(AllLevels bool) {
ColorListBox_FlipChildren(c.instance, AllLevels)
}
func (c *TColorListBox) Focused() bool {
return ColorListBox_Focused(c.instance)
}
func (c *TColorListBox) HandleAllocated() bool {
return ColorListBox_HandleAllocated(c.instance)
}
func (c *TColorListBox) Invalidate() {
ColorListBox_Invalidate(c.instance)
}
func (c *TColorListBox) Realign() {
ColorListBox_Realign(c.instance)
}
func (c *TColorListBox) Repaint() {
ColorListBox_Repaint(c.instance)
}
func (c *TColorListBox) ScaleBy(M int32, D int32) {
ColorListBox_ScaleBy(c.instance, M , D)
}
func (c *TColorListBox) SetBounds(ALeft int32, ATop int32, AWidth int32, AHeight int32) {
ColorListBox_SetBounds(c.instance, ALeft , ATop , AWidth , AHeight)
}
func (c *TColorListBox) SetFocus() {
ColorListBox_SetFocus(c.instance)
}
func (c *TColorListBox) Update() {
ColorListBox_Update(c.instance)
}
func (c *TColorListBox) BringToFront() {
ColorListBox_BringToFront(c.instance)
}
func (c *TColorListBox) HasParent() bool {
return ColorListBox_HasParent(c.instance)
}
func (c *TColorListBox) Hide() {
ColorListBox_Hide(c.instance)
}
func (c *TColorListBox) Perform(Msg uint32, WParam uintptr, LParam int) int {
return ColorListBox_Perform(c.instance, Msg , WParam , LParam)
}
func (c *TColorListBox) Refresh() {
ColorListBox_Refresh(c.instance)
}
func (c *TColorListBox) SendToBack() {
ColorListBox_SendToBack(c.instance)
}
func (c *TColorListBox) Show() {
ColorListBox_Show(c.instance)
}
func (c *TColorListBox) GetTextBuf(Buffer string, BufSize int32) int32 {
return ColorListBox_GetTextBuf(c.instance, Buffer , BufSize)
}
func (c *TColorListBox) GetTextLen() int32 {
return ColorListBox_GetTextLen(c.instance)
}
func (c *TColorListBox) FindComponent(AName string) *TComponent {
return ComponentFromInst(ColorListBox_FindComponent(c.instance, AName))
}
func (c *TColorListBox) GetNamePath() string {
return ColorListBox_GetNamePath(c.instance)
}
func (c *TColorListBox) Assign(Source IObject) {
ColorListBox_Assign(c.instance, CheckPtr(Source))
}
func (c *TColorListBox) ClassName() string {
return ColorListBox_ClassName(c.instance)
}
func (c *TColorListBox) Equals(Obj IObject) bool {
return ColorListBox_Equals(c.instance, CheckPtr(Obj))
}
func (c *TColorListBox) GetHashCode() int32 {
return ColorListBox_GetHashCode(c.instance)
}
func (c *TColorListBox) ToString() string {
return ColorListBox_ToString(c.instance)
}
func (c *TColorListBox) Align() TAlign {
return ColorListBox_GetAlign(c.instance)
}
func (c *TColorListBox) SetAlign(value TAlign) {
ColorListBox_SetAlign(c.instance, value)
}
func (c *TColorListBox) AutoComplete() bool {
return ColorListBox_GetAutoComplete(c.instance)
}
func (c *TColorListBox) SetAutoComplete(value bool) {
ColorListBox_SetAutoComplete(c.instance, value)
}
func (c *TColorListBox) DefaultColorColor() TColor {
return ColorListBox_GetDefaultColorColor(c.instance)
}
func (c *TColorListBox) SetDefaultColorColor(value TColor) {
ColorListBox_SetDefaultColorColor(c.instance, value)
}
func (c *TColorListBox) NoneColorColor() TColor {
return ColorListBox_GetNoneColorColor(c.instance)
}
func (c *TColorListBox) SetNoneColorColor(value TColor) {
ColorListBox_SetNoneColorColor(c.instance, value)
}
func (c *TColorListBox) Selected() TColor {
return ColorListBox_GetSelected(c.instance)
}
func (c *TColorListBox) SetSelected(value TColor) {
ColorListBox_SetSelected(c.instance, value)
}
func (c *TColorListBox) Style() TColorBoxStyle {
return ColorListBox_GetStyle(c.instance)
}
func (c *TColorListBox) SetStyle(value TColorBoxStyle) {
ColorListBox_SetStyle(c.instance, value)
}
func (c *TColorListBox) Anchors() TAnchors {
return ColorListBox_GetAnchors(c.instance)
}
func (c *TColorListBox) SetAnchors(value TAnchors) {
ColorListBox_SetAnchors(c.instance, value)
}
func (c *TColorListBox) BevelEdges() TBevelEdges {
return ColorListBox_GetBevelEdges(c.instance)
}
func (c *TColorListBox) SetBevelEdges(value TBevelEdges) {
ColorListBox_SetBevelEdges(c.instance, value)
}
func (c *TColorListBox) BevelInner() TBevelCut {
return ColorListBox_GetBevelInner(c.instance)
}
func (c *TColorListBox) SetBevelInner(value TBevelCut) {
ColorListBox_SetBevelInner(c.instance, value)
}
func (c *TColorListBox) BevelKind() TBevelKind {
return ColorListBox_GetBevelKind(c.instance)
}
func (c *TColorListBox) SetBevelKind(value TBevelKind) {
ColorListBox_SetBevelKind(c.instance, value)
}
func (c *TColorListBox) BevelOuter() TBevelCut {
return ColorListBox_GetBevelOuter(c.instance)
}
func (c *TColorListBox) SetBevelOuter(value TBevelCut) {
ColorListBox_SetBevelOuter(c.instance, value)
}
func (c *TColorListBox) BiDiMode() TBiDiMode {
return ColorListBox_GetBiDiMode(c.instance)
}
func (c *TColorListBox) SetBiDiMode(value TBiDiMode) {
ColorListBox_SetBiDiMode(c.instance, value)
}
func (c *TColorListBox) Color() TColor {
return ColorListBox_GetColor(c.instance)
}
func (c *TColorListBox) SetColor(value TColor) {
ColorListBox_SetColor(c.instance, value)
}
func (c *TColorListBox) DoubleBuffered() bool {
return ColorListBox_GetDoubleBuffered(c.instance)
}
func (c *TColorListBox) SetDoubleBuffered(value bool) {
ColorListBox_SetDoubleBuffered(c.instance, value)
}
func (c *TColorListBox) Enabled() bool {
return ColorListBox_GetEnabled(c.instance)
}
func (c *TColorListBox) SetEnabled(value bool) {
ColorListBox_SetEnabled(c.instance, value)
}
func (c *TColorListBox) Font() *TFont {
return FontFromInst(ColorListBox_GetFont(c.instance))
}
func (c *TColorListBox) SetFont(value *TFont) {
ColorListBox_SetFont(c.instance, CheckPtr(value))
}
func (c *TColorListBox) ItemHeight() int32 {
return ColorListBox_GetItemHeight(c.instance)
}
func (c *TColorListBox) SetItemHeight(value int32) {
ColorListBox_SetItemHeight(c.instance, value)
}
func (c *TColorListBox) ParentColor() bool {
return ColorListBox_GetParentColor(c.instance)
}
func (c *TColorListBox) SetParentColor(value bool) {
ColorListBox_SetParentColor(c.instance, value)
}
func (c *TColorListBox) ParentCtl3D() bool {
return ColorListBox_GetParentCtl3D(c.instance)
}
func (c *TColorListBox) SetParentCtl3D(value bool) {
ColorListBox_SetParentCtl3D(c.instance, value)
}
func (c *TColorListBox) ParentDoubleBuffered() bool {
return ColorListBox_GetParentDoubleBuffered(c.instance)
}
func (c *TColorListBox) SetParentDoubleBuffered(value bool) {
ColorListBox_SetParentDoubleBuffered(c.instance, value)
}
func (c *TColorListBox) ParentFont() bool {
return ColorListBox_GetParentFont(c.instance)
}
func (c *TColorListBox) SetParentFont(value bool) {
ColorListBox_SetParentFont(c.instance, value)
}
func (c *TColorListBox) ParentShowHint() bool {
return ColorListBox_GetParentShowHint(c.instance)
}
func (c *TColorListBox) SetParentShowHint(value bool) {
ColorListBox_SetParentShowHint(c.instance, value)
}
func (c *TColorListBox) PopupMenu() *TPopupMenu {
return PopupMenuFromInst(ColorListBox_GetPopupMenu(c.instance))
}
func (c *TColorListBox) SetPopupMenu(value IComponent) {
ColorListBox_SetPopupMenu(c.instance, CheckPtr(value))
}
func (c *TColorListBox) ShowHint() bool {
return ColorListBox_GetShowHint(c.instance)
}
func (c *TColorListBox) SetShowHint(value bool) {
ColorListBox_SetShowHint(c.instance, value)
}
func (c *TColorListBox) TabOrder() uint16 {
return ColorListBox_GetTabOrder(c.instance)
}
func (c *TColorListBox) SetTabOrder(value uint16) {
ColorListBox_SetTabOrder(c.instance, value)
}
func (c *TColorListBox) TabStop() bool {
return ColorListBox_GetTabStop(c.instance)
}
func (c *TColorListBox) SetTabStop(value bool) {
ColorListBox_SetTabStop(c.instance, value)
}
func (c *TColorListBox) Visible() bool {
return ColorListBox_GetVisible(c.instance)
}
func (c *TColorListBox) SetVisible(value bool) {
ColorListBox_SetVisible(c.instance, value)
}
func (c *TColorListBox) StyleElements() TStyleElements {
return ColorListBox_GetStyleElements(c.instance)
}
func (c *TColorListBox) SetStyleElements(value TStyleElements) {
ColorListBox_SetStyleElements(c.instance, value)
}
func (c *TColorListBox) SetOnClick(fn TNotifyEvent) {
ColorListBox_SetOnClick(c.instance, fn)
}
func (c *TColorListBox) SetOnDblClick(fn TNotifyEvent) {
ColorListBox_SetOnDblClick(c.instance, fn)
}
func (c *TColorListBox) SetOnEnter(fn TNotifyEvent) {
ColorListBox_SetOnEnter(c.instance, fn)
}
func (c *TColorListBox) SetOnExit(fn TNotifyEvent) {
ColorListBox_SetOnExit(c.instance, fn)
}
func (c *TColorListBox) SetOnKeyDown(fn TKeyEvent) {
ColorListBox_SetOnKeyDown(c.instance, fn)
}
func (c *TColorListBox) SetOnKeyPress(fn TKeyPressEvent) {
ColorListBox_SetOnKeyPress(c.instance, fn)
}
func (c *TColorListBox) SetOnKeyUp(fn TKeyEvent) {
ColorListBox_SetOnKeyUp(c.instance, fn)
}
func (c *TColorListBox) SetOnMouseDown(fn TMouseEvent) {
ColorListBox_SetOnMouseDown(c.instance, fn)
}
func (c *TColorListBox) SetOnMouseEnter(fn TNotifyEvent) {
ColorListBox_SetOnMouseEnter(c.instance, fn)
}
func (c *TColorListBox) SetOnMouseLeave(fn TNotifyEvent) {
ColorListBox_SetOnMouseLeave(c.instance, fn)
}
func (c *TColorListBox) SetOnMouseMove(fn TMouseMoveEvent) {
ColorListBox_SetOnMouseMove(c.instance, fn)
}
func (c *TColorListBox) SetOnMouseUp(fn TMouseEvent) {
ColorListBox_SetOnMouseUp(c.instance, fn)
}
func (c *TColorListBox) AutoCompleteDelay() uint32 {
return ColorListBox_GetAutoCompleteDelay(c.instance)
}
func (c *TColorListBox) SetAutoCompleteDelay(value uint32) {
ColorListBox_SetAutoCompleteDelay(c.instance, value)
}
func (c *TColorListBox) Canvas() *TCanvas {
return CanvasFromInst(ColorListBox_GetCanvas(c.instance))
}
func (c *TColorListBox) Count() int32 {
return ColorListBox_GetCount(c.instance)
}
func (c *TColorListBox) SetCount(value int32) {
ColorListBox_SetCount(c.instance, value)
}
func (c *TColorListBox) Items() *TStrings {
return StringsFromInst(ColorListBox_GetItems(c.instance))
}
func (c *TColorListBox) SetItems(value IObject) {
ColorListBox_SetItems(c.instance, CheckPtr(value))
}
func (c *TColorListBox) MultiSelect() bool {
return ColorListBox_GetMultiSelect(c.instance)
}
func (c *TColorListBox) SetMultiSelect(value bool) {
ColorListBox_SetMultiSelect(c.instance, value)
}
func (c *TColorListBox) SelCount() int32 {
return ColorListBox_GetSelCount(c.instance)
}
func (c *TColorListBox) ItemIndex() int32 {
return ColorListBox_GetItemIndex(c.instance)
}
func (c *TColorListBox) SetItemIndex(value int32) {
ColorListBox_SetItemIndex(c.instance, value)
}
func (c *TColorListBox) Brush() *TBrush {
return BrushFromInst(ColorListBox_GetBrush(c.instance))
}
func (c *TColorListBox) ControlCount() int32 {
return ColorListBox_GetControlCount(c.instance)
}
func (c *TColorListBox) Handle() HWND {
return ColorListBox_GetHandle(c.instance)
}
func (c *TColorListBox) ParentWindow() HWND {
return ColorListBox_GetParentWindow(c.instance)
}
func (c *TColorListBox) SetParentWindow(value HWND) {
ColorListBox_SetParentWindow(c.instance, value)
}
func (c *TColorListBox) Action() *TAction {
return ActionFromInst(ColorListBox_GetAction(c.instance))
}
func (c *TColorListBox) SetAction(value IComponent) {
ColorListBox_SetAction(c.instance, CheckPtr(value))
}
func (c *TColorListBox) BoundsRect() TRect {
return ColorListBox_GetBoundsRect(c.instance)
}
func (c *TColorListBox) SetBoundsRect(value TRect) {
ColorListBox_SetBoundsRect(c.instance, value)
}
func (c *TColorListBox) ClientHeight() int32 {
return ColorListBox_GetClientHeight(c.instance)
}
func (c *TColorListBox) SetClientHeight(value int32) {
ColorListBox_SetClientHeight(c.instance, value)
}
func (c *TColorListBox) ClientRect() TRect {
return ColorListBox_GetClientRect(c.instance)
}
func (c *TColorListBox) ClientWidth() int32 {
return ColorListBox_GetClientWidth(c.instance)
}
func (c *TColorListBox) SetClientWidth(value int32) {
ColorListBox_SetClientWidth(c.instance, value)
}
func (c *TColorListBox) ExplicitLeft() int32 {
return ColorListBox_GetExplicitLeft(c.instance)
}
func (c *TColorListBox) ExplicitTop() int32 {
return ColorListBox_GetExplicitTop(c.instance)
}
func (c *TColorListBox) ExplicitWidth() int32 {
return ColorListBox_GetExplicitWidth(c.instance)
}
func (c *TColorListBox) ExplicitHeight() int32 {
return ColorListBox_GetExplicitHeight(c.instance)
}
func (c *TColorListBox) Parent() *TControl {
return ControlFromInst(ColorListBox_GetParent(c.instance))
}
func (c *TColorListBox) SetParent(value IControl) {
ColorListBox_SetParent(c.instance, CheckPtr(value))
}
func (c *TColorListBox) AlignWithMargins() bool {
return ColorListBox_GetAlignWithMargins(c.instance)
}
func (c *TColorListBox) SetAlignWithMargins(value bool) {
ColorListBox_SetAlignWithMargins(c.instance, value)
}
func (c *TColorListBox) Left() int32 {
return ColorListBox_GetLeft(c.instance)
}
func (c *TColorListBox) SetLeft(value int32) {
ColorListBox_SetLeft(c.instance, value)
}
func (c *TColorListBox) Top() int32 {
return ColorListBox_GetTop(c.instance)
}
func (c *TColorListBox) SetTop(value int32) {
ColorListBox_SetTop(c.instance, value)
}
func (c *TColorListBox) Width() int32 {
return ColorListBox_GetWidth(c.instance)
}
func (c *TColorListBox) SetWidth(value int32) {
ColorListBox_SetWidth(c.instance, value)
}
func (c *TColorListBox) Height() int32 {
return ColorListBox_GetHeight(c.instance)
}
func (c *TColorListBox) SetHeight(value int32) {
ColorListBox_SetHeight(c.instance, value)
}
func (c *TColorListBox) Cursor() TCursor {
return ColorListBox_GetCursor(c.instance)
}
func (c *TColorListBox) SetCursor(value TCursor) {
ColorListBox_SetCursor(c.instance, value)
}
func (c *TColorListBox) Hint() string {
return ColorListBox_GetHint(c.instance)
}
func (c *TColorListBox) SetHint(value string) {
ColorListBox_SetHint(c.instance, value)
}
func (c *TColorListBox) Margins() *TMargins {
return MarginsFromInst(ColorListBox_GetMargins(c.instance))
}
func (c *TColorListBox) SetMargins(value *TMargins) {
ColorListBox_SetMargins(c.instance, CheckPtr(value))
}
func (c *TColorListBox) CustomHint() *TCustomHint {
return CustomHintFromInst(ColorListBox_GetCustomHint(c.instance))
}
func (c *TColorListBox) SetCustomHint(value IComponent) {
ColorListBox_SetCustomHint(c.instance, CheckPtr(value))
}
func (c *TColorListBox) ComponentCount() int32 {
return ColorListBox_GetComponentCount(c.instance)
}
func (c *TColorListBox) ComponentIndex() int32 {
return ColorListBox_GetComponentIndex(c.instance)
}
func (c *TColorListBox) SetComponentIndex(value int32) {
ColorListBox_SetComponentIndex(c.instance, value)
}
func (c *TColorListBox) Owner() *TComponent {
return ComponentFromInst(ColorListBox_GetOwner(c.instance))
}
func (c *TColorListBox) Name() string {
return ColorListBox_GetName(c.instance)
}
func (c *TColorListBox) SetName(value string) {
ColorListBox_SetName(c.instance, value)
}
func (c *TColorListBox) Tag() int {
return ColorListBox_GetTag(c.instance)
}
func (c *TColorListBox) SetTag(value int) {
ColorListBox_SetTag(c.instance, value)
}
func (c *TColorListBox) Colors(Index int32) TColor {
return ColorListBox_GetColors(c.instance, Index)
}
func (c *TColorListBox) ColorNames(Index int32) string {
return ColorListBox_GetColorNames(c.instance, Index)
}
func (c *TColorListBox) Controls(Index int32) *TControl {
return ControlFromInst(ColorListBox_GetControls(c.instance, Index))
}
func (c *TColorListBox) Components(AIndex int32) *TComponent {
return ComponentFromInst(ColorListBox_GetComponents(c.instance, AIndex))
}