-
-
Notifications
You must be signed in to change notification settings - Fork 318
/
Copy pathFMX.Colors.xml
1883 lines (1740 loc) · 184 KB
/
FMX.Colors.xml
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
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" ?><namespace name="FMX.Colors" platform="Win32">
<const name="ColorPickSize" type="Integer" file="FMX.Colors.pas" line="21">
<value>
$A
</value>
</const>
<class name="THueTrackBar" file="FMX.Colors.pas" line="27">
<members>
<function name="IsValueStored" visibility="private" file="FMX.Colors.pas" line="29">
<parameters>
<retval type="Boolean"/>
</parameters>
</function>
<procedure name="FillBitmap" visibility="protected" procflags="override" file="FMX.Colors.pas" line="31">
</procedure>
<constructor name="Create" visibility="public" file="FMX.Colors.pas" line="33">
<parameters>
<parameter name="AOwner" type="TComponent"/>
</parameters>
</constructor>
<property name="Value" visibility="published" read="GetValue" write="SetValue" stored="IsValueStored" type="Single" hoisted="true" file="FMX.Colors.pas" line="35"/>
</members>
</class>
<class name="TAlphaTrackBar" file="FMX.Colors.pas" line="40">
<members>
<function name="IsValueStored" visibility="private" file="FMX.Colors.pas" line="42">
<parameters>
<retval type="Boolean"/>
</parameters>
</function>
<procedure name="FillBitmap" visibility="protected" procflags="override" file="FMX.Colors.pas" line="44">
</procedure>
<constructor name="Create" visibility="public" file="FMX.Colors.pas" line="46">
<parameters>
<parameter name="AOwner" type="TComponent"/>
</parameters>
</constructor>
<property name="Value" visibility="published" read="GetValue" write="SetValue" stored="IsValueStored" type="Single" hoisted="true" file="FMX.Colors.pas" line="48"/>
</members>
</class>
<class name="TBWTrackBar" file="FMX.Colors.pas" line="53">
<members>
<function name="IsValueStored" visibility="private" file="FMX.Colors.pas" line="55">
<parameters>
<retval type="Boolean"/>
</parameters>
</function>
<procedure name="FillBitmap" visibility="protected" procflags="override" file="FMX.Colors.pas" line="57">
</procedure>
<constructor name="Create" visibility="public" file="FMX.Colors.pas" line="59">
<parameters>
<parameter name="AOwner" type="TComponent"/>
</parameters>
</constructor>
<property name="Value" visibility="published" read="GetValue" write="SetValue" stored="IsValueStored" type="Single" hoisted="true" file="FMX.Colors.pas" line="61"/>
</members>
</class>
<class name="TColorBox" file="FMX.Colors.pas" line="66">
<members>
<field name="FColor" type="TAlphaColor" visibility="private" size="4" offset="904" file="FMX.Colors.pas" line="68"/>
<procedure name="SetColor" visibility="private" file="FMX.Colors.pas" line="69">
<parameters>
<parameter name="Value" type="TAlphaColor" paramflags="const"/>
</parameters>
</procedure>
<procedure name="Paint" visibility="protected" procflags="override" file="FMX.Colors.pas" line="71">
<devnotes><summary>
Renders the control's surface.
FMX.Colors.TColorBox.Paint inherits from FMX.Controls.TControl.Paint. All content below this line refers to FMX.Controls.TControl.Paint.
Renders the control's surface.
The Paint method is called by DoPaint when a control is being painted by the PaintTo method. Before DoPaint, Painting is called. AfterPaint is called immediately after.
FireMonkey internally calls Paint to paint the control when the window is being painted. You must not call Paint explicitly.
The base class TControl implements an empty Paint. The descendants of TControl override Paint to provide specific rendering of the respective controls.
For example, Paint methods in classes of the FMX.Objects unit draw and fill shapes using the properties defined in these classes. See the descriptions of these classes to find the properties of the respective shapes.
</summary></devnotes></procedure>
<constructor name="Create" visibility="public" file="FMX.Colors.pas" line="73">
<parameters>
<parameter name="AOwner" type="TComponent"/>
</parameters>
<devnotes><summary>
Allocates memory and constructs a safely initialized instance of a component.
Allocates memory and constructs a safely initialized instance of a component.
Allocates memory and constructs a safely initialized instance of a component.
FMX.Colors.TColorBox.Create inherits from System.Classes.TComponent.Create. All content below this line refers to System.Classes.TComponent.Create.
Allocates memory and constructs a safely initialized instance of a component.
All objects have a Create method that constructs the object. TComponent redefines Create so that, for components, Create also:
Establishes the relationship of a component and its Owner, as indicated by the AOwner parameter.
Sets the ComponentStyle property to csInheritable, meaning that the component can be inherited by a descendent form type.
It is not necessary to explicitly create components added in the Form Designer. These components are created automatically when the application is run, and they are destroyed when the application is closed.
For components created programmatically, that is, not created in the Form Designer, call Create and pass in an owner component as the AOwner parameter. The owner disposes of the component when it is destroyed. If the component is not owned, then use Free when it needs to be destroyed.
Tip: When passing in Self as the Owner parameter, consider what Self references. If a component creates another component in one of its methods, then Self refers to the first component and not the component being created, which is then owned by the first component.
Note: The TComponent constructor is virtual in part to allow polymorphic instantiation of class references. This is critical to the streaming system and to the Form Designer. Do not forget to use the override directive when declaring a new component's Create constructor.</summary></devnotes></constructor>
<property name="Align" visibility="published" read="FAlign" write="SetAlign" type="TAlignLayout" default="0" hoisted="true" file="FMX.Colors.pas" line="75"/>
<property name="Anchors" visibility="published" read="FAnchors" write="SetAnchors" stored="IsAnchorsStored" type="TAnchors" hoisted="true" file="FMX.Colors.pas" line="76"/>
<property name="ClipChildren" visibility="published" read="FClipChildren" write="SetClipChildren" type="Boolean" default="0" hoisted="true" file="FMX.Colors.pas" line="77"/>
<property name="ClipParent" visibility="published" read="FClipParent" write="FClipParent" type="Boolean" default="0" hoisted="true" file="FMX.Colors.pas" line="78"/>
<property name="Color" visibility="published" read="FColor" write="SetColor" type="TAlphaColor" file="FMX.Colors.pas" line="79"><devnotes><summary>
Specifies the alpha color displayed by this color box.
</summary></devnotes></property>
<property name="Cursor" visibility="published" read="GetCursor" write="SetCursor" type="TCursor" default="0" hoisted="true" file="FMX.Colors.pas" line="80"/>
<property name="DragMode" visibility="published" read="GetDragMode" write="SetDragMode" type="TDragMode" default="0" hoisted="true" file="FMX.Colors.pas" line="81"/>
<property name="EnableDragHighlight" visibility="published" read="FEnableDragHighlight" write="FEnableDragHighlight" type="Boolean" default="1" hoisted="true" file="FMX.Colors.pas" line="82"/>
<property name="Enabled" visibility="published" read="FEnabled" write="SetEnabled" stored="EnabledStored" type="Boolean" default="1" hoisted="true" file="FMX.Colors.pas" line="83"/>
<property name="Locked" visibility="published" read="FLocked" write="SetLocked" type="Boolean" default="0" hoisted="true" file="FMX.Colors.pas" line="84"/>
<property name="Height" visibility="published" read="GetHeight" write="SetHeight" stored="False" type="Single" hoisted="true" file="FMX.Colors.pas" line="85"/>
<property name="Hint" visibility="published" read="FHint" write="SetHint" stored="HintStored" type="string" default="0" hoisted="true" file="FMX.Colors.pas" line="86"/>
<property name="HitTest" visibility="published" read="FHitTest" write="SetHitTest" type="Boolean" default="1" hoisted="true" file="FMX.Colors.pas" line="87"/>
<property name="Padding" visibility="published" read="GetPadding" write="SetPadding" type="TBounds" hoisted="true" file="FMX.Colors.pas" line="88"/>
<property name="Opacity" visibility="published" read="FOpacity" write="SetOpacity" stored="IsOpacityStored" type="Single" hoisted="true" file="FMX.Colors.pas" line="89"/>
<property name="Margins" visibility="published" read="GetMargins" write="SetMargins" type="TBounds" hoisted="true" file="FMX.Colors.pas" line="90"/>
<property name="PopupMenu" visibility="published" read="FPopupMenu" write="SetPopupMenu" stored="IsPopupMenuStored" type="TCustomPopupMenu" hoisted="true" file="FMX.Colors.pas" line="91"/>
<property name="Position" visibility="published" read="FPosition" write="SetPosition" stored="IsPositionStored" type="TPosition" hoisted="true" file="FMX.Colors.pas" line="92"/>
<property name="RotationAngle" visibility="published" read="GetRotationAngle" write="SetRotationAngle" type="Single" default="0" hoisted="true" file="FMX.Colors.pas" line="93"/>
<property name="RotationCenter" visibility="published" read="GetRotationCenter" write="SetRotationCenter" type="TPosition" hoisted="true" file="FMX.Colors.pas" line="94"/>
<property name="Scale" visibility="published" read="GetScale" write="SetScale" type="TPosition" hoisted="true" file="FMX.Colors.pas" line="95"/>
<property name="Size" visibility="published" read="FSize" write="SetSize" stored="IsSizeStored" type="TControlSize" hoisted="true" file="FMX.Colors.pas" line="96"/>
<property name="TabOrder" visibility="published" read="GetTabOrder" write="SetTabOrder" type="TTabOrder" default="-1" hoisted="true" file="FMX.Colors.pas" line="97"/>
<property name="TabStop" visibility="published" read="GetTabStop" write="SetTabStop" type="Boolean" default="1" hoisted="true" file="FMX.Colors.pas" line="98"/>
<property name="TouchTargetExpansion" visibility="published" read="FTouchTargetExpansion" write="SetTouchTargetExpansion" type="TBounds" hoisted="true" file="FMX.Colors.pas" line="99"/>
<property name="Visible" visibility="published" read="FVisible" write="SetVisible" stored="VisibleStored" type="Boolean" default="1" hoisted="true" file="FMX.Colors.pas" line="100"/>
<property name="Width" visibility="published" read="GetWidth" write="SetWidth" stored="False" type="Single" hoisted="true" file="FMX.Colors.pas" line="101"/>
<property name="ParentShowHint" visibility="published" read="FParentShowHint" write="SetParentShowHint" type="Boolean" default="1" hoisted="true" file="FMX.Colors.pas" line="102"/>
<property name="ShowHint" visibility="published" read="FShowHint" write="SetShowHint" stored="IsShowHintStored" type="Boolean" hoisted="true" file="FMX.Colors.pas" line="103"/>
<event name="OnDragEnter" visibility="published" read="FOnDragEnter" write="FOnDragEnter" type="TDragEnterEvent" hoisted="true" file="FMX.Colors.pas" line="105"/>
<event name="OnDragLeave" visibility="published" read="FOnDragLeave" write="FOnDragLeave" type="TNotifyEvent" hoisted="true" file="FMX.Colors.pas" line="106"/>
<event name="OnDragOver" visibility="published" read="FOnDragOver" write="FOnDragOver" type="TDragOverEvent" hoisted="true" file="FMX.Colors.pas" line="107"/>
<event name="OnDragDrop" visibility="published" read="FOnDragDrop" write="FOnDragDrop" type="TDragDropEvent" hoisted="true" file="FMX.Colors.pas" line="108"/>
<event name="OnDragEnd" visibility="published" read="FOnDragEnd" write="FOnDragEnd" type="TNotifyEvent" hoisted="true" file="FMX.Colors.pas" line="109"/>
<event name="OnKeyDown" visibility="published" read="FOnKeyDown" write="FOnKeyDown" type="TKeyEvent" hoisted="true" file="FMX.Colors.pas" line="111"/>
<event name="OnKeyUp" visibility="published" read="FOnKeyUp" write="FOnKeyUp" type="TKeyEvent" hoisted="true" file="FMX.Colors.pas" line="112"/>
<event name="OnCanFocus" visibility="published" read="FOnCanFocus" write="FOnCanFocus" type="TCanFocusEvent" hoisted="true" file="FMX.Colors.pas" line="114"/>
<event name="OnClick" visibility="published" read="FOnClick" write="SetOnClick" stored="OnClickStored" type="TNotifyEvent" hoisted="true" file="FMX.Colors.pas" line="115"/>
<event name="OnDblClick" visibility="published" read="FOnDblClick" write="FOnDblClick" type="TNotifyEvent" hoisted="true" file="FMX.Colors.pas" line="116"/>
<event name="OnEnter" visibility="published" read="FOnEnter" write="FOnEnter" type="TNotifyEvent" hoisted="true" file="FMX.Colors.pas" line="118"/>
<event name="OnExit" visibility="published" read="FOnExit" write="FOnExit" type="TNotifyEvent" hoisted="true" file="FMX.Colors.pas" line="119"/>
<event name="OnMouseDown" visibility="published" read="FOnMouseDown" write="FOnMouseDown" type="TMouseEvent" hoisted="true" file="FMX.Colors.pas" line="120"/>
<event name="OnMouseMove" visibility="published" read="FOnMouseMove" write="FOnMouseMove" type="TMouseMoveEvent" hoisted="true" file="FMX.Colors.pas" line="121"/>
<event name="OnMouseUp" visibility="published" read="FOnMouseUp" write="FOnMouseUp" type="TMouseEvent" hoisted="true" file="FMX.Colors.pas" line="122"/>
<event name="OnMouseWheel" visibility="published" read="FOnMouseWheel" write="FOnMouseWheel" type="TMouseWheelEvent" hoisted="true" file="FMX.Colors.pas" line="123"/>
<event name="OnMouseEnter" visibility="published" read="FOnMouseEnter" write="FOnMouseEnter" type="TNotifyEvent" hoisted="true" file="FMX.Colors.pas" line="124"/>
<event name="OnMouseLeave" visibility="published" read="FOnMouseLeave" write="FOnMouseLeave" type="TNotifyEvent" hoisted="true" file="FMX.Colors.pas" line="125"/>
<event name="OnPainting" visibility="published" read="FOnPainting" write="FOnPainting" type="TOnPaintEvent" hoisted="true" file="FMX.Colors.pas" line="127"/>
<event name="OnPaint" visibility="published" read="FOnPaint" write="FOnPaint" type="TOnPaintEvent" hoisted="true" file="FMX.Colors.pas" line="128"/>
<event name="OnResize" visibility="published" read="FOnResize" write="FOnResize" type="TNotifyEvent" hoisted="true" file="FMX.Colors.pas" line="129"/>
<event name="OnResized" visibility="published" read="FOnResized" write="FOnResized" type="TNotifyEvent" hoisted="true" file="FMX.Colors.pas" line="130"/>
</members>
<devnotes><summary>
Represents a rectangular-shaped color indicator.
A TColorBox is a visual component represented as a rectangular-shaped optical indicator whose color can be changed programmatically by means of the Color property, or by attaching it to one of the following color selector components:
TColorPanel
TColorQuad
</summary></devnotes></class>
<class name="TColorQuad" file="FMX.Colors.pas" line="135">
<members>
<field name="FColorBox" type="TColorBox" visibility="private" size="4" offset="904" file="FMX.Colors.pas" line="137"/>
<field name="FColorBitmap" type="TBitmap" visibility="private" size="4" offset="908" file="FMX.Colors.pas" line="138"/>
<field name="FHue" type="Single" visibility="private" size="4" offset="912" file="FMX.Colors.pas" line="139"/>
<field name="FSat" type="Single" visibility="private" size="4" offset="916" file="FMX.Colors.pas" line="140"/>
<field name="FLum" type="Single" visibility="private" size="4" offset="920" file="FMX.Colors.pas" line="141"/>
<field name="FOnChange" type="TNotifyEvent" visibility="private" size="8" offset="928" file="FMX.Colors.pas" line="142"/>
<field name="FAlpha" type="Single" visibility="private" size="4" offset="936" file="FMX.Colors.pas" line="143"/>
<field name="FPendingChanges" type="Boolean" visibility="private" size="1" offset="940" file="FMX.Colors.pas" line="144"/>
<procedure name="SetHue" visibility="private" file="FMX.Colors.pas" line="145">
<parameters>
<parameter name="Value" type="Single" paramflags="const"/>
</parameters>
</procedure>
<procedure name="SetLum" visibility="private" file="FMX.Colors.pas" line="146">
<parameters>
<parameter name="Value" type="Single" paramflags="const"/>
</parameters>
</procedure>
<procedure name="SetSat" visibility="private" file="FMX.Colors.pas" line="147">
<parameters>
<parameter name="Value" type="Single" paramflags="const"/>
</parameters>
</procedure>
<procedure name="SetAlpha" visibility="private" file="FMX.Colors.pas" line="148">
<parameters>
<parameter name="Value" type="Single" paramflags="const"/>
</parameters>
</procedure>
<procedure name="SetColorBox" visibility="private" file="FMX.Colors.pas" line="149">
<parameters>
<parameter name="Value" type="TColorBox" paramflags="const"/>
</parameters>
</procedure>
<procedure name="PreviewColor" visibility="private" file="FMX.Colors.pas" line="150">
<parameters>
<parameter name="ValHue" type="Single" paramflags="const"/>
<parameter name="ValLum" type="Single" paramflags="const"/>
<parameter name="ValSat" type="Single" paramflags="const"/>
<parameter name="ValAlpha" type="Single" paramflags="const"/>
</parameters>
</procedure>
<procedure name="SetColor" visibility="private" file="FMX.Colors.pas" line="151">
<parameters>
<parameter name="ValHue" type="Single" paramflags="const"/>
<parameter name="ValLum" type="Single" paramflags="const"/>
<parameter name="ValSat" type="Single" paramflags="const"/>
<parameter name="ValAlpha" type="Single" paramflags="const"/>
</parameters>
</procedure>
<function name="GetIsTracking" visibility="private" file="FMX.Colors.pas" line="152">
<parameters>
<retval type="Boolean"/>
</parameters>
</function>
<procedure name="MouseMove" visibility="protected" procflags="override" file="FMX.Colors.pas" line="154">
<parameters>
<parameter name="Shift" type="TShiftState"/>
<parameter name="X" type="Single"/>
<parameter name="Y" type="Single"/>
</parameters>
<devnotes><summary>
OnMouseMove event dispatcher.
FMX.Colors.TColorQuad.MouseMove inherits from FMX.Controls.TControl.MouseMove. All content below this line refers to FMX.Controls.TControl.MouseMove.
OnMouseMove event dispatcher.
As the mouse cursor moves across a control, this method is called repeatedly. Each time it is called with the new coordinates that reflect the continuous path of the mouse cursor across the screen real estate covered by the control's visual representation:
Shift indicates which shift keys--SHIFT, CTRL, ALT, and CMD (only for Mac)--were down when the mouse cursor is over the control.
X and Y are the pixel coordinates of the mouse pointer within the client area of the control.
Override the protected MouseMove method to provide other responses when the mouse cursor moves over the control.
</summary></devnotes></procedure>
<procedure name="MouseUp" visibility="protected" procflags="override" file="FMX.Colors.pas" line="155">
<parameters>
<parameter name="Button" type="TMouseButton"/>
<parameter name="Shift" type="TShiftState"/>
<parameter name="X" type="Single"/>
<parameter name="Y" type="Single"/>
</parameters>
<devnotes><summary>
OnMouseUp event dispatcher.
FMX.Colors.TColorQuad.MouseUp inherits from FMX.Controls.TControl.MouseUp. All content below this line refers to FMX.Controls.TControl.MouseUp.
OnMouseUp event dispatcher.
A control calls MouseUp in response to any of mouse-up messages, decoding the message parameters into the shift-key state and position, which it passes in the Shift, X and Y parameters, respectively:
Button determines which mouse button was previously pressed: left, right, or middle.
Shift indicates which shift keys--SHIFT, CTRL, ALT, and CMD (only for Mac)--were down when the pressed mouse button is released.
X and Y are the pixel coordinates of the mouse pointer within the client area of the control.
Override the protected MouseUp method to provide other responses when the mouse button previously pressed is released while the cursor is over the control.
</summary></devnotes></procedure>
<function name="DoGetUpdateRect" visibility="protected" procflags="override" file="FMX.Colors.pas" line="156">
<parameters>
<retval type="TRectF"/>
</parameters>
<devnotes><summary>
Embarcadero Technologies does not currently have any additional information.
</summary></devnotes></function>
<procedure name="Notification" visibility="protected" procflags="override" file="FMX.Colors.pas" line="157">
<parameters>
<parameter name="AComponent" type="TComponent"/>
<parameter name="Operation" type="TOperation"/>
</parameters>
<devnotes><summary>
Forwards notification messages to all owned components.
FMX.Colors.TColorQuad.Notification inherits from System.Classes.TComponent.Notification. All content below this line refers to System.Classes.TComponent.Notification.
Forwards notification messages to all owned components.
Do not call the Notification method in an application. Notification is called automatically when the component specified by AComponent is about to be inserted or removed, as specified by Operation. By default, components pass along the notification to their owned components, if any.
A component can, if needed, act on the notification that a component is being inserted or removed. For example, if a component has object fields or properties that contain references to other components, it can check the notifications of component removals and invalidate those references as needed.
Note: Notification is not called for components that are freed implicitly (because their Owner is freed).</summary></devnotes></procedure>
<procedure name="Paint" visibility="protected" procflags="override" file="FMX.Colors.pas" line="158">
<devnotes><summary>
Renders the control's surface.
FMX.Colors.TColorQuad.Paint inherits from FMX.Controls.TControl.Paint. All content below this line refers to FMX.Controls.TControl.Paint.
Renders the control's surface.
The Paint method is called by DoPaint when a control is being painted by the PaintTo method. Before DoPaint, Painting is called. AfterPaint is called immediately after.
FireMonkey internally calls Paint to paint the control when the window is being painted. You must not call Paint explicitly.
The base class TControl implements an empty Paint. The descendants of TControl override Paint to provide specific rendering of the respective controls.
For example, Paint methods in classes of the FMX.Objects unit draw and fill shapes using the properties defined in these classes. See the descriptions of these classes to find the properties of the respective shapes.
</summary></devnotes></procedure>
<function name="PointInObjectLocal" visibility="public" procflags="override" file="FMX.Colors.pas" line="160">
<parameters>
<parameter name="X" type="Single"/>
<parameter name="Y" type="Single"/>
<retval type="Boolean"/>
</parameters>
<devnotes><summary>
Checks whether the point specified by local coordinates belongs to the control area.
FMX.Colors.TColorQuad.PointInObjectLocal inherits from FMX.Controls.TControl.PointInObjectLocal. All content below this line refers to FMX.Controls.TControl.PointInObjectLocal.
Checks whether the point specified by local coordinates belongs to the control area.
PointInObjectLocal returns True if the specified point belongs to the control area, and False otherwise.
The X and Y are the local coordinates of the point to be checked (compare with PointInObject):
X is the X coordinate.
Y is the Y coordinate.
The local coordinates of the upper-left corner of the control rectangle are (0,0), and the local coordinates of the lower-right corner are (Width, Height).
The points of the control boundary specified by BoundsRect belong to the control and PointInObjectLocal returns True for them.
If a control supports the Touch property, the control area can be optionally inflated on the values specified by the TouchTargetExpansion property. TouchTargetExpansion keeps four optional parameters representing the expansion for the four sides of the control in pixels (Bottom, Left, Right, and Top).
The dclasses can change the 'control area' definition. For example:
The FMX.Objects.TSelection class extends the 'control area' definition relative to BoundsRect. FMX.Objects.TSelection.PointInObjectLocal also returns True if the point belongs to any of small rectangles of the four grip controls used to manage the selection shape. The rectangles of the grip controls are rectangles surrounding the four corners of the TSelection rectangle. The Width and Height of these rectangles are equal to 2 * GripSize. For example, the grip control's rectangle of the upper-right corner UR_Corner of TSelection is defined by the following corners:
(UR_Corner.Top - GripSize, UR_Corner.Right - GripSize)--upper-left corner of the grip.
(UR_Corner.Top + GripSize, UR_Corner.Right + GripSize)--lower-right corner of the grip.
FMX.Objects.TSelectionPoint.PointInObjectLocal returns True if the specified point belongs to the rectangle of the grip control corresponding to the TSelectionPoint object, and False otherwise.</summary></devnotes></function>
<constructor name="Create" visibility="public" file="FMX.Colors.pas" line="161">
<parameters>
<parameter name="AOwner" type="TComponent"/>
</parameters>
<devnotes><summary>
Allocates memory and constructs a safely initialized instance of a component.
Allocates memory and constructs a safely initialized instance of a component.
Allocates memory and constructs a safely initialized instance of a component.
FMX.Colors.TColorQuad.Create inherits from System.Classes.TComponent.Create. All content below this line refers to System.Classes.TComponent.Create.
Allocates memory and constructs a safely initialized instance of a component.
All objects have a Create method that constructs the object. TComponent redefines Create so that, for components, Create also:
Establishes the relationship of a component and its Owner, as indicated by the AOwner parameter.
Sets the ComponentStyle property to csInheritable, meaning that the component can be inherited by a descendent form type.
It is not necessary to explicitly create components added in the Form Designer. These components are created automatically when the application is run, and they are destroyed when the application is closed.
For components created programmatically, that is, not created in the Form Designer, call Create and pass in an owner component as the AOwner parameter. The owner disposes of the component when it is destroyed. If the component is not owned, then use Free when it needs to be destroyed.
Tip: When passing in Self as the Owner parameter, consider what Self references. If a component creates another component in one of its methods, then Self refers to the first component and not the component being created, which is then owned by the first component.
Note: The TComponent constructor is virtual in part to allow polymorphic instantiation of class references. This is critical to the streaming system and to the Form Designer. Do not forget to use the override directive when declaring a new component's Create constructor.</summary></devnotes></constructor>
<destructor name="Destroy" visibility="public" file="FMX.Colors.pas" line="162">
<parameters>
</parameters>
<devnotes><summary>
Disposes of the component and its owned components.
Disposes of the component and its owned components.
Disposes of the component and its owned components.
FMX.Colors.TColorQuad.Destroy inherits from System.Classes.TComponent.Destroy. All content below this line refers to System.Classes.TComponent.Destroy.
Disposes of the component and its owned components.
Do not call Destroy directly. Call Free instead. Free verifies that the component is not nil, and only then calls Destroy.
Never explicitly free a component in one of its own event handlers, nor free a component from the event handler of a component that it owns or contains.
To destroy a form, call its Release method. Release waits for all the form's event handlers and the event handlers of the form's components to finish executing before destroying the form.
Note: A form owns all the controls and nonvisual components that are placed on it in design mode. When it is freed, all of these components are automatically freed as well. By default, all forms are owned by the global Application object. When an application terminates, it frees the global Application object, which frees all forms. For objects that are not components, and for components created with a nil owner, be sure to call Free after finishing with the object; otherwise the memory allocated for the object will be lost until the application terminates.</summary></devnotes></destructor>
<property name="Alpha" visibility="published" read="FAlpha" write="SetAlpha" type="Single" default="0" file="FMX.Colors.pas" line="164"><devnotes><summary>
Specifies the alpha channel (transparency) to apply to the selected color.
Change the Alpha property to a value in the range from 0 through 1 to set the alpha channel (transparency) for the selected color.
</summary></devnotes></property>
<property name="Align" visibility="published" read="FAlign" write="SetAlign" type="TAlignLayout" default="0" hoisted="true" file="FMX.Colors.pas" line="165"/>
<property name="Anchors" visibility="published" read="FAnchors" write="SetAnchors" stored="IsAnchorsStored" type="TAnchors" hoisted="true" file="FMX.Colors.pas" line="166"/>
<property name="ClipChildren" visibility="published" read="FClipChildren" write="SetClipChildren" type="Boolean" default="0" hoisted="true" file="FMX.Colors.pas" line="167"/>
<property name="ClipParent" visibility="published" read="FClipParent" write="FClipParent" type="Boolean" default="0" hoisted="true" file="FMX.Colors.pas" line="168"/>
<property name="ColorBox" visibility="published" read="FColorBox" write="SetColorBox" type="TColorBox" file="FMX.Colors.pas" line="169"><devnotes><summary>
Specifies the color box attached to this color quad component.
A color box is a visual component represented as a rectangular-shaped optical indicator that changes color according to the color selected in this color quad component.
</summary></devnotes></property>
<property name="Cursor" visibility="published" read="GetCursor" write="SetCursor" type="TCursor" default="0" hoisted="true" file="FMX.Colors.pas" line="170"/>
<property name="DragMode" visibility="published" read="GetDragMode" write="SetDragMode" type="TDragMode" default="0" hoisted="true" file="FMX.Colors.pas" line="171"/>
<property name="EnableDragHighlight" visibility="published" read="FEnableDragHighlight" write="FEnableDragHighlight" type="Boolean" default="1" hoisted="true" file="FMX.Colors.pas" line="172"/>
<property name="Enabled" visibility="published" read="FEnabled" write="SetEnabled" stored="EnabledStored" type="Boolean" default="1" hoisted="true" file="FMX.Colors.pas" line="173"/>
<property name="Locked" visibility="published" read="FLocked" write="SetLocked" type="Boolean" default="0" hoisted="true" file="FMX.Colors.pas" line="174"/>
<property name="Height" visibility="published" read="GetHeight" write="SetHeight" stored="False" type="Single" hoisted="true" file="FMX.Colors.pas" line="175"/>
<property name="Hint" visibility="published" read="FHint" write="SetHint" stored="HintStored" type="string" default="0" hoisted="true" file="FMX.Colors.pas" line="176"/>
<property name="HitTest" visibility="published" read="FHitTest" write="SetHitTest" type="Boolean" default="1" hoisted="true" file="FMX.Colors.pas" line="177"/>
<property name="Hue" visibility="published" read="FHue" write="SetHue" type="Single" default="0" file="FMX.Colors.pas" line="178"><devnotes><summary>
Specifies the hue of the selected color, in HSL color coordinates.
Set or read Hue in conjunction with Sat and Lum in order to change or obtain the color selected in this color quad component.
</summary></devnotes></property>
<property name="Lum" visibility="published" read="FLum" write="SetLum" type="Single" default="0" file="FMX.Colors.pas" line="179"><devnotes><summary>
Specifies the luminance of the selected color, in HSL color coordinates.
Set or read Lum in conjunction with Hue and Sat in order to change or obtain the color selected in this color quad component.
</summary></devnotes></property>
<property name="Padding" visibility="published" read="GetPadding" write="SetPadding" type="TBounds" hoisted="true" file="FMX.Colors.pas" line="180"/>
<property name="Opacity" visibility="published" read="FOpacity" write="SetOpacity" stored="IsOpacityStored" type="Single" hoisted="true" file="FMX.Colors.pas" line="181"/>
<property name="Margins" visibility="published" read="GetMargins" write="SetMargins" type="TBounds" hoisted="true" file="FMX.Colors.pas" line="182"/>
<property name="PopupMenu" visibility="published" read="FPopupMenu" write="SetPopupMenu" stored="IsPopupMenuStored" type="TCustomPopupMenu" hoisted="true" file="FMX.Colors.pas" line="183"/>
<property name="Position" visibility="published" read="FPosition" write="SetPosition" stored="IsPositionStored" type="TPosition" hoisted="true" file="FMX.Colors.pas" line="184"/>
<property name="RotationAngle" visibility="published" read="GetRotationAngle" write="SetRotationAngle" type="Single" default="0" hoisted="true" file="FMX.Colors.pas" line="185"/>
<property name="RotationCenter" visibility="published" read="GetRotationCenter" write="SetRotationCenter" type="TPosition" hoisted="true" file="FMX.Colors.pas" line="186"/>
<property name="Sat" visibility="published" read="FSat" write="SetSat" type="Single" default="0" file="FMX.Colors.pas" line="187"><devnotes><summary>
Specifies the saturation of the selected color, in HSL color coordinates.
Set or read Sat in conjunction with Hue and Lum in order to change or obtain the color selected in this color quad component.
</summary></devnotes></property>
<property name="Scale" visibility="published" read="GetScale" write="SetScale" type="TPosition" hoisted="true" file="FMX.Colors.pas" line="188"/>
<property name="Size" visibility="published" read="FSize" write="SetSize" stored="IsSizeStored" type="TControlSize" hoisted="true" file="FMX.Colors.pas" line="189"/>
<property name="TabOrder" visibility="published" read="GetTabOrder" write="SetTabOrder" type="TTabOrder" default="-1" hoisted="true" file="FMX.Colors.pas" line="190"/>
<property name="TabStop" visibility="published" read="GetTabStop" write="SetTabStop" type="Boolean" default="1" hoisted="true" file="FMX.Colors.pas" line="191"/>
<property name="TouchTargetExpansion" visibility="published" read="FTouchTargetExpansion" write="SetTouchTargetExpansion" type="TBounds" hoisted="true" file="FMX.Colors.pas" line="192"/>
<property name="Visible" visibility="published" read="FVisible" write="SetVisible" stored="VisibleStored" type="Boolean" default="1" hoisted="true" file="FMX.Colors.pas" line="193"/>
<property name="Width" visibility="published" read="GetWidth" write="SetWidth" stored="False" type="Single" hoisted="true" file="FMX.Colors.pas" line="194"/>
<property name="ParentShowHint" visibility="published" read="FParentShowHint" write="SetParentShowHint" type="Boolean" default="1" hoisted="true" file="FMX.Colors.pas" line="195"/>
<property name="ShowHint" visibility="published" read="FShowHint" write="SetShowHint" stored="IsShowHintStored" type="Boolean" hoisted="true" file="FMX.Colors.pas" line="196"/>
<event name="OnChange" visibility="published" read="FOnChange" write="FOnChange" type="TNotifyEvent" file="FMX.Colors.pas" line="197"><devnotes><summary>
Occurs immediately after changing the color on this color quad component.
Write an OnChange event handler to provide additional functionality when changing the color of this color quad component.
</summary></devnotes></event>
<event name="OnDragEnter" visibility="published" read="FOnDragEnter" write="FOnDragEnter" type="TDragEnterEvent" hoisted="true" file="FMX.Colors.pas" line="199"/>
<event name="OnDragLeave" visibility="published" read="FOnDragLeave" write="FOnDragLeave" type="TNotifyEvent" hoisted="true" file="FMX.Colors.pas" line="200"/>
<event name="OnDragOver" visibility="published" read="FOnDragOver" write="FOnDragOver" type="TDragOverEvent" hoisted="true" file="FMX.Colors.pas" line="201"/>
<event name="OnDragDrop" visibility="published" read="FOnDragDrop" write="FOnDragDrop" type="TDragDropEvent" hoisted="true" file="FMX.Colors.pas" line="202"/>
<event name="OnDragEnd" visibility="published" read="FOnDragEnd" write="FOnDragEnd" type="TNotifyEvent" hoisted="true" file="FMX.Colors.pas" line="203"/>
<event name="OnKeyDown" visibility="published" read="FOnKeyDown" write="FOnKeyDown" type="TKeyEvent" hoisted="true" file="FMX.Colors.pas" line="205"/>
<event name="OnKeyUp" visibility="published" read="FOnKeyUp" write="FOnKeyUp" type="TKeyEvent" hoisted="true" file="FMX.Colors.pas" line="206"/>
<event name="OnCanFocus" visibility="published" read="FOnCanFocus" write="FOnCanFocus" type="TCanFocusEvent" hoisted="true" file="FMX.Colors.pas" line="208"/>
<event name="OnClick" visibility="published" read="FOnClick" write="SetOnClick" stored="OnClickStored" type="TNotifyEvent" hoisted="true" file="FMX.Colors.pas" line="209"/>
<event name="OnDblClick" visibility="published" read="FOnDblClick" write="FOnDblClick" type="TNotifyEvent" hoisted="true" file="FMX.Colors.pas" line="210"/>
<event name="OnEnter" visibility="published" read="FOnEnter" write="FOnEnter" type="TNotifyEvent" hoisted="true" file="FMX.Colors.pas" line="212"/>
<event name="OnExit" visibility="published" read="FOnExit" write="FOnExit" type="TNotifyEvent" hoisted="true" file="FMX.Colors.pas" line="213"/>
<event name="OnMouseDown" visibility="published" read="FOnMouseDown" write="FOnMouseDown" type="TMouseEvent" hoisted="true" file="FMX.Colors.pas" line="214"/>
<event name="OnMouseMove" visibility="published" read="FOnMouseMove" write="FOnMouseMove" type="TMouseMoveEvent" hoisted="true" file="FMX.Colors.pas" line="215"/>
<event name="OnMouseUp" visibility="published" read="FOnMouseUp" write="FOnMouseUp" type="TMouseEvent" hoisted="true" file="FMX.Colors.pas" line="216"/>
<event name="OnMouseWheel" visibility="published" read="FOnMouseWheel" write="FOnMouseWheel" type="TMouseWheelEvent" hoisted="true" file="FMX.Colors.pas" line="217"/>
<event name="OnMouseEnter" visibility="published" read="FOnMouseEnter" write="FOnMouseEnter" type="TNotifyEvent" hoisted="true" file="FMX.Colors.pas" line="218"/>
<event name="OnMouseLeave" visibility="published" read="FOnMouseLeave" write="FOnMouseLeave" type="TNotifyEvent" hoisted="true" file="FMX.Colors.pas" line="219"/>
<event name="OnPainting" visibility="published" read="FOnPainting" write="FOnPainting" type="TOnPaintEvent" hoisted="true" file="FMX.Colors.pas" line="221"/>
<event name="OnPaint" visibility="published" read="FOnPaint" write="FOnPaint" type="TOnPaintEvent" hoisted="true" file="FMX.Colors.pas" line="222"/>
<event name="OnResize" visibility="published" read="FOnResize" write="FOnResize" type="TNotifyEvent" hoisted="true" file="FMX.Colors.pas" line="223"/>
<event name="OnResized" visibility="published" read="FOnResized" write="FOnResized" type="TNotifyEvent" hoisted="true" file="FMX.Colors.pas" line="224"/>
</members>
<devnotes><summary>
Represents a three-color gradient color selector.
A TColorQuad component is a color selector that displays a color spectrum drawn as a three-color gradient (black, white, and a specified color) that lets you fine-tune your color selection. TColorQuad can be attached to a TColorPicker component.
</summary></devnotes></class>
<class name="TColorPicker" file="FMX.Colors.pas" line="229">
<members>
<field name="FHueBitmap" type="TBitmap" visibility="private" size="4" offset="904" file="FMX.Colors.pas" line="231"/>
<field name="FHue" type="Single" visibility="private" size="4" offset="908" file="FMX.Colors.pas" line="232"/>
<field name="FColorQuad" type="TColorQuad" visibility="private" size="4" offset="912" file="FMX.Colors.pas" line="233"/>
<procedure name="SetHue" visibility="private" file="FMX.Colors.pas" line="234">
<parameters>
<parameter name="Value" type="Single" paramflags="const"/>
</parameters>
</procedure>
<function name="GetColor" visibility="private" file="FMX.Colors.pas" line="235">
<parameters>
<retval type="TAlphaColor"/>
</parameters>
</function>
<procedure name="SetColor" visibility="private" file="FMX.Colors.pas" line="236">
<parameters>
<parameter name="Value" type="TAlphaColor" paramflags="const"/>
</parameters>
</procedure>
<procedure name="MouseMove" visibility="protected" procflags="override" file="FMX.Colors.pas" line="238">
<parameters>
<parameter name="Shift" type="TShiftState"/>
<parameter name="X" type="Single"/>
<parameter name="Y" type="Single"/>
</parameters>
<devnotes><summary>
OnMouseMove event dispatcher.
FMX.Colors.TColorPicker.MouseMove inherits from FMX.Controls.TControl.MouseMove. All content below this line refers to FMX.Controls.TControl.MouseMove.
OnMouseMove event dispatcher.
As the mouse cursor moves across a control, this method is called repeatedly. Each time it is called with the new coordinates that reflect the continuous path of the mouse cursor across the screen real estate covered by the control's visual representation:
Shift indicates which shift keys--SHIFT, CTRL, ALT, and CMD (only for Mac)--were down when the mouse cursor is over the control.
X and Y are the pixel coordinates of the mouse pointer within the client area of the control.
Override the protected MouseMove method to provide other responses when the mouse cursor moves over the control.
</summary></devnotes></procedure>
<procedure name="MouseUp" visibility="protected" procflags="override" file="FMX.Colors.pas" line="239">
<parameters>
<parameter name="Button" type="TMouseButton"/>
<parameter name="Shift" type="TShiftState"/>
<parameter name="X" type="Single"/>
<parameter name="Y" type="Single"/>
</parameters>
<devnotes><summary>
OnMouseUp event dispatcher.
FMX.Colors.TColorPicker.MouseUp inherits from FMX.Controls.TControl.MouseUp. All content below this line refers to FMX.Controls.TControl.MouseUp.
OnMouseUp event dispatcher.
A control calls MouseUp in response to any of mouse-up messages, decoding the message parameters into the shift-key state and position, which it passes in the Shift, X and Y parameters, respectively:
Button determines which mouse button was previously pressed: left, right, or middle.
Shift indicates which shift keys--SHIFT, CTRL, ALT, and CMD (only for Mac)--were down when the pressed mouse button is released.
X and Y are the pixel coordinates of the mouse pointer within the client area of the control.
Override the protected MouseUp method to provide other responses when the mouse button previously pressed is released while the cursor is over the control.
</summary></devnotes></procedure>
<function name="GetAbsoluteRect" visibility="protected" procflags="override" file="FMX.Colors.pas" line="240">
<parameters>
<retval type="TRectF"/>
</parameters>
<devnotes><summary>
Getter function for the AbsoluteRect property.
FMX.Colors.TColorPicker.GetAbsoluteRect inherits from FMX.Controls.TControl.GetAbsoluteRect. All content below this line refers to FMX.Controls.TControl.GetAbsoluteRect.
Getter function for the AbsoluteRect property.
</summary></devnotes></function>
<procedure name="Notification" visibility="protected" procflags="override" file="FMX.Colors.pas" line="241">
<parameters>
<parameter name="AComponent" type="TComponent"/>
<parameter name="Operation" type="TOperation"/>
</parameters>
<devnotes><summary>
Forwards notification messages to all owned components.
FMX.Colors.TColorPicker.Notification inherits from System.Classes.TComponent.Notification. All content below this line refers to System.Classes.TComponent.Notification.
Forwards notification messages to all owned components.
Do not call the Notification method in an application. Notification is called automatically when the component specified by AComponent is about to be inserted or removed, as specified by Operation. By default, components pass along the notification to their owned components, if any.
A component can, if needed, act on the notification that a component is being inserted or removed. For example, if a component has object fields or properties that contain references to other components, it can check the notifications of component removals and invalidate those references as needed.
Note: Notification is not called for components that are freed implicitly (because their Owner is freed).</summary></devnotes></procedure>
<procedure name="Paint" visibility="protected" procflags="override" file="FMX.Colors.pas" line="242">
<devnotes><summary>
Renders the control's surface.
FMX.Colors.TColorPicker.Paint inherits from FMX.Controls.TControl.Paint. All content below this line refers to FMX.Controls.TControl.Paint.
Renders the control's surface.
The Paint method is called by DoPaint when a control is being painted by the PaintTo method. Before DoPaint, Painting is called. AfterPaint is called immediately after.
FireMonkey internally calls Paint to paint the control when the window is being painted. You must not call Paint explicitly.
The base class TControl implements an empty Paint. The descendants of TControl override Paint to provide specific rendering of the respective controls.
For example, Paint methods in classes of the FMX.Objects unit draw and fill shapes using the properties defined in these classes. See the descriptions of these classes to find the properties of the respective shapes.
</summary></devnotes></procedure>
<function name="PointInObjectLocal" visibility="public" procflags="override" file="FMX.Colors.pas" line="244">
<parameters>
<parameter name="X" type="Single"/>
<parameter name="Y" type="Single"/>
<retval type="Boolean"/>
</parameters>
<devnotes><summary>
Checks whether the point specified by local coordinates belongs to the control area.
FMX.Colors.TColorPicker.PointInObjectLocal inherits from FMX.Controls.TControl.PointInObjectLocal. All content below this line refers to FMX.Controls.TControl.PointInObjectLocal.
Checks whether the point specified by local coordinates belongs to the control area.
PointInObjectLocal returns True if the specified point belongs to the control area, and False otherwise.
The X and Y are the local coordinates of the point to be checked (compare with PointInObject):
X is the X coordinate.
Y is the Y coordinate.
The local coordinates of the upper-left corner of the control rectangle are (0,0), and the local coordinates of the lower-right corner are (Width, Height).
The points of the control boundary specified by BoundsRect belong to the control and PointInObjectLocal returns True for them.
If a control supports the Touch property, the control area can be optionally inflated on the values specified by the TouchTargetExpansion property. TouchTargetExpansion keeps four optional parameters representing the expansion for the four sides of the control in pixels (Bottom, Left, Right, and Top).
The dclasses can change the 'control area' definition. For example:
The FMX.Objects.TSelection class extends the 'control area' definition relative to BoundsRect. FMX.Objects.TSelection.PointInObjectLocal also returns True if the point belongs to any of small rectangles of the four grip controls used to manage the selection shape. The rectangles of the grip controls are rectangles surrounding the four corners of the TSelection rectangle. The Width and Height of these rectangles are equal to 2 * GripSize. For example, the grip control's rectangle of the upper-right corner UR_Corner of TSelection is defined by the following corners:
(UR_Corner.Top - GripSize, UR_Corner.Right - GripSize)--upper-left corner of the grip.
(UR_Corner.Top + GripSize, UR_Corner.Right + GripSize)--lower-right corner of the grip.
FMX.Objects.TSelectionPoint.PointInObjectLocal returns True if the specified point belongs to the rectangle of the grip control corresponding to the TSelectionPoint object, and False otherwise.</summary></devnotes></function>
<constructor name="Create" visibility="public" file="FMX.Colors.pas" line="245">
<parameters>
<parameter name="AOwner" type="TComponent"/>
</parameters>
<devnotes><summary>
Allocates memory and constructs a safely initialized instance of a component.
Allocates memory and constructs a safely initialized instance of a component.
Allocates memory and constructs a safely initialized instance of a component.
FMX.Colors.TColorPicker.Create inherits from System.Classes.TComponent.Create. All content below this line refers to System.Classes.TComponent.Create.
Allocates memory and constructs a safely initialized instance of a component.
All objects have a Create method that constructs the object. TComponent redefines Create so that, for components, Create also:
Establishes the relationship of a component and its Owner, as indicated by the AOwner parameter.
Sets the ComponentStyle property to csInheritable, meaning that the component can be inherited by a descendent form type.
It is not necessary to explicitly create components added in the Form Designer. These components are created automatically when the application is run, and they are destroyed when the application is closed.
For components created programmatically, that is, not created in the Form Designer, call Create and pass in an owner component as the AOwner parameter. The owner disposes of the component when it is destroyed. If the component is not owned, then use Free when it needs to be destroyed.
Tip: When passing in Self as the Owner parameter, consider what Self references. If a component creates another component in one of its methods, then Self refers to the first component and not the component being created, which is then owned by the first component.
Note: The TComponent constructor is virtual in part to allow polymorphic instantiation of class references. This is critical to the streaming system and to the Form Designer. Do not forget to use the override directive when declaring a new component's Create constructor.</summary></devnotes></constructor>
<destructor name="Destroy" visibility="public" file="FMX.Colors.pas" line="246">
<parameters>
</parameters>
<devnotes><summary>
Disposes of the component and its owned components.
Disposes of the component and its owned components.
Disposes of the component and its owned components.
FMX.Colors.TColorPicker.Destroy inherits from System.Classes.TComponent.Destroy. All content below this line refers to System.Classes.TComponent.Destroy.
Disposes of the component and its owned components.
Do not call Destroy directly. Call Free instead. Free verifies that the component is not nil, and only then calls Destroy.
Never explicitly free a component in one of its own event handlers, nor free a component from the event handler of a component that it owns or contains.
To destroy a form, call its Release method. Release waits for all the form's event handlers and the event handlers of the form's components to finish executing before destroying the form.
Note: A form owns all the controls and nonvisual components that are placed on it in design mode. When it is freed, all of these components are automatically freed as well. By default, all forms are owned by the global Application object. When an application terminates, it frees the global Application object, which frees all forms. For objects that are not components, and for components created with a nil owner, be sure to call Free after finishing with the object; otherwise the memory allocated for the object will be lost until the application terminates.</summary></devnotes></destructor>
<property name="Color" visibility="public" read="GetColor" write="SetColor" type="TAlphaColor" file="FMX.Colors.pas" line="247"><devnotes><summary>
Specifies the alpha color selected in this color picker.
Color changes in respect to the variation of the Hue property. Programmatically set Hue to a specific value, or visually move the hue selector of this color picker, at run time, to obtain the color in the Color property.
</summary></devnotes></property>
<property name="Align" visibility="published" read="FAlign" write="SetAlign" type="TAlignLayout" default="0" hoisted="true" file="FMX.Colors.pas" line="249"/>
<property name="Anchors" visibility="published" read="FAnchors" write="SetAnchors" stored="IsAnchorsStored" type="TAnchors" hoisted="true" file="FMX.Colors.pas" line="250"/>
<property name="ClipChildren" visibility="published" read="FClipChildren" write="SetClipChildren" type="Boolean" default="0" hoisted="true" file="FMX.Colors.pas" line="251"/>
<property name="ClipParent" visibility="published" read="FClipParent" write="FClipParent" type="Boolean" default="0" hoisted="true" file="FMX.Colors.pas" line="252"/>
<property name="ColorQuad" visibility="published" read="FColorQuad" write="FColorQuad" type="TColorQuad" file="FMX.Colors.pas" line="253"><devnotes><summary>
Specifies the TColorQuad component that is attached to this color picker.
Specify a TColorQuad component that is attached to this TColorPicker. In this way, every time you change the Color in this color picker, the color quad component automatically updates to the color selected in the color picker, further allowing you to tweak the saturation and luminance.
In the picture above, a 0.5 alpha channel TColorBox component was also attached to the TColorQuad for a complete color selection application.
</summary></devnotes></property>
<property name="Cursor" visibility="published" read="GetCursor" write="SetCursor" type="TCursor" default="0" hoisted="true" file="FMX.Colors.pas" line="254"/>
<property name="DragMode" visibility="published" read="GetDragMode" write="SetDragMode" type="TDragMode" default="0" hoisted="true" file="FMX.Colors.pas" line="255"/>
<property name="EnableDragHighlight" visibility="published" read="FEnableDragHighlight" write="FEnableDragHighlight" type="Boolean" default="1" hoisted="true" file="FMX.Colors.pas" line="256"/>
<property name="Enabled" visibility="published" read="FEnabled" write="SetEnabled" stored="EnabledStored" type="Boolean" default="1" hoisted="true" file="FMX.Colors.pas" line="257"/>
<property name="Locked" visibility="published" read="FLocked" write="SetLocked" type="Boolean" default="0" hoisted="true" file="FMX.Colors.pas" line="258"/>
<property name="Height" visibility="published" read="GetHeight" write="SetHeight" stored="False" type="Single" hoisted="true" file="FMX.Colors.pas" line="259"/>
<property name="Hint" visibility="published" read="FHint" write="SetHint" stored="HintStored" type="string" default="0" hoisted="true" file="FMX.Colors.pas" line="260"/>
<property name="HitTest" visibility="published" read="FHitTest" write="SetHitTest" type="Boolean" default="1" hoisted="true" file="FMX.Colors.pas" line="261"/>
<property name="Hue" visibility="published" read="FHue" write="SetHue" type="Single" default="0" file="FMX.Colors.pas" line="262"><devnotes><summary>
Specifies the color, by hue, from this color picker.
Hue variates from 0 to 1 and spans the entire color spectrum drawn on this color picker. Programmatically set Hue to a specific value, or visually move the hue selector of this color picker, at run time, to obtain the color in the Color property.
</summary></devnotes></property>
<property name="Padding" visibility="published" read="GetPadding" write="SetPadding" type="TBounds" hoisted="true" file="FMX.Colors.pas" line="263"/>
<property name="Opacity" visibility="published" read="FOpacity" write="SetOpacity" stored="IsOpacityStored" type="Single" hoisted="true" file="FMX.Colors.pas" line="264"/>
<property name="Margins" visibility="published" read="GetMargins" write="SetMargins" type="TBounds" hoisted="true" file="FMX.Colors.pas" line="265"/>
<property name="PopupMenu" visibility="published" read="FPopupMenu" write="SetPopupMenu" stored="IsPopupMenuStored" type="TCustomPopupMenu" hoisted="true" file="FMX.Colors.pas" line="266"/>
<property name="Position" visibility="published" read="FPosition" write="SetPosition" stored="IsPositionStored" type="TPosition" hoisted="true" file="FMX.Colors.pas" line="267"/>
<property name="RotationAngle" visibility="published" read="GetRotationAngle" write="SetRotationAngle" type="Single" default="0" hoisted="true" file="FMX.Colors.pas" line="268"/>
<property name="RotationCenter" visibility="published" read="GetRotationCenter" write="SetRotationCenter" type="TPosition" hoisted="true" file="FMX.Colors.pas" line="269"/>
<property name="Scale" visibility="published" read="GetScale" write="SetScale" type="TPosition" hoisted="true" file="FMX.Colors.pas" line="270"/>
<property name="Size" visibility="published" read="FSize" write="SetSize" stored="IsSizeStored" type="TControlSize" hoisted="true" file="FMX.Colors.pas" line="271"/>
<property name="TabOrder" visibility="published" read="GetTabOrder" write="SetTabOrder" type="TTabOrder" default="-1" hoisted="true" file="FMX.Colors.pas" line="272"/>
<property name="TabStop" visibility="published" read="GetTabStop" write="SetTabStop" type="Boolean" default="1" hoisted="true" file="FMX.Colors.pas" line="273"/>
<property name="TouchTargetExpansion" visibility="published" read="FTouchTargetExpansion" write="SetTouchTargetExpansion" type="TBounds" hoisted="true" file="FMX.Colors.pas" line="274"/>
<property name="Visible" visibility="published" read="FVisible" write="SetVisible" stored="VisibleStored" type="Boolean" default="1" hoisted="true" file="FMX.Colors.pas" line="275"/>
<property name="Width" visibility="published" read="GetWidth" write="SetWidth" stored="False" type="Single" hoisted="true" file="FMX.Colors.pas" line="276"/>
<property name="ParentShowHint" visibility="published" read="FParentShowHint" write="SetParentShowHint" type="Boolean" default="1" hoisted="true" file="FMX.Colors.pas" line="277"/>
<property name="ShowHint" visibility="published" read="FShowHint" write="SetShowHint" stored="IsShowHintStored" type="Boolean" hoisted="true" file="FMX.Colors.pas" line="278"/>
<event name="OnDragEnter" visibility="published" read="FOnDragEnter" write="FOnDragEnter" type="TDragEnterEvent" hoisted="true" file="FMX.Colors.pas" line="280"/>
<event name="OnDragLeave" visibility="published" read="FOnDragLeave" write="FOnDragLeave" type="TNotifyEvent" hoisted="true" file="FMX.Colors.pas" line="281"/>
<event name="OnDragOver" visibility="published" read="FOnDragOver" write="FOnDragOver" type="TDragOverEvent" hoisted="true" file="FMX.Colors.pas" line="282"/>
<event name="OnDragDrop" visibility="published" read="FOnDragDrop" write="FOnDragDrop" type="TDragDropEvent" hoisted="true" file="FMX.Colors.pas" line="283"/>
<event name="OnDragEnd" visibility="published" read="FOnDragEnd" write="FOnDragEnd" type="TNotifyEvent" hoisted="true" file="FMX.Colors.pas" line="284"/>
<event name="OnKeyDown" visibility="published" read="FOnKeyDown" write="FOnKeyDown" type="TKeyEvent" hoisted="true" file="FMX.Colors.pas" line="286"/>
<event name="OnKeyUp" visibility="published" read="FOnKeyUp" write="FOnKeyUp" type="TKeyEvent" hoisted="true" file="FMX.Colors.pas" line="287"/>
<event name="OnCanFocus" visibility="published" read="FOnCanFocus" write="FOnCanFocus" type="TCanFocusEvent" hoisted="true" file="FMX.Colors.pas" line="289"/>
<event name="OnClick" visibility="published" read="FOnClick" write="SetOnClick" stored="OnClickStored" type="TNotifyEvent" hoisted="true" file="FMX.Colors.pas" line="290"/>
<event name="OnDblClick" visibility="published" read="FOnDblClick" write="FOnDblClick" type="TNotifyEvent" hoisted="true" file="FMX.Colors.pas" line="291"/>
<event name="OnEnter" visibility="published" read="FOnEnter" write="FOnEnter" type="TNotifyEvent" hoisted="true" file="FMX.Colors.pas" line="293"/>
<event name="OnExit" visibility="published" read="FOnExit" write="FOnExit" type="TNotifyEvent" hoisted="true" file="FMX.Colors.pas" line="294"/>
<event name="OnMouseDown" visibility="published" read="FOnMouseDown" write="FOnMouseDown" type="TMouseEvent" hoisted="true" file="FMX.Colors.pas" line="295"/>
<event name="OnMouseMove" visibility="published" read="FOnMouseMove" write="FOnMouseMove" type="TMouseMoveEvent" hoisted="true" file="FMX.Colors.pas" line="296"/>
<event name="OnMouseUp" visibility="published" read="FOnMouseUp" write="FOnMouseUp" type="TMouseEvent" hoisted="true" file="FMX.Colors.pas" line="297"/>
<event name="OnMouseWheel" visibility="published" read="FOnMouseWheel" write="FOnMouseWheel" type="TMouseWheelEvent" hoisted="true" file="FMX.Colors.pas" line="298"/>
<event name="OnMouseEnter" visibility="published" read="FOnMouseEnter" write="FOnMouseEnter" type="TNotifyEvent" hoisted="true" file="FMX.Colors.pas" line="299"/>
<event name="OnMouseLeave" visibility="published" read="FOnMouseLeave" write="FOnMouseLeave" type="TNotifyEvent" hoisted="true" file="FMX.Colors.pas" line="300"/>
<event name="OnPainting" visibility="published" read="FOnPainting" write="FOnPainting" type="TOnPaintEvent" hoisted="true" file="FMX.Colors.pas" line="302"/>
<event name="OnPaint" visibility="published" read="FOnPaint" write="FOnPaint" type="TOnPaintEvent" hoisted="true" file="FMX.Colors.pas" line="303"/>
<event name="OnResize" visibility="published" read="FOnResize" write="FOnResize" type="TNotifyEvent" hoisted="true" file="FMX.Colors.pas" line="304"/>
<event name="OnResized" visibility="published" read="FOnResized" write="FOnResized" type="TNotifyEvent" hoisted="true" file="FMX.Colors.pas" line="305"/>
</members>
<devnotes><summary>
Represents a color selector that displays the entire color spectrum.
A TColorPicker component is a color selector that displays a color spectrum and lets you pick any color by moving a dot-style selector. TColorPicker can be attached to a TColorQuad component.
Note: The TColorPicker (Delphi) example describes how to implement a color picker as shown in the image.
See Also
FMX.Colors.THueTrackBar
FMX.Colors.TColorQuad
TColorPicker (Delphi)
</summary></devnotes></class>
<class name="TGradientEdit" file="FMX.Colors.pas" line="310">
<members>
<field name="FBitmap" type="TBitmap" visibility="private" size="4" offset="904" file="FMX.Colors.pas" line="312"/>
<field name="FGradient" type="TGradient" visibility="private" size="4" offset="908" file="FMX.Colors.pas" line="313"/>
<field name="FCurrentPoint" type="Integer" visibility="private" size="4" offset="912" file="FMX.Colors.pas" line="314"/>
<field name="FCurrentPointInvisible" type="Boolean" visibility="private" size="1" offset="916" file="FMX.Colors.pas" line="315"/>
<field name="FMoving" type="Boolean" visibility="private" size="1" offset="917" file="FMX.Colors.pas" line="316"/>
<field name="FOnChange" type="TNotifyEvent" visibility="private" size="8" offset="920" file="FMX.Colors.pas" line="317"/>
<field name="FOnSelectPoint" type="TNotifyEvent" visibility="private" size="8" offset="928" file="FMX.Colors.pas" line="318"/>
<field name="FColorPicker" type="TColorPicker" visibility="private" size="4" offset="936" file="FMX.Colors.pas" line="319"/>
<procedure name="SetGradient" visibility="private" file="FMX.Colors.pas" line="320">
<parameters>
<parameter name="Value" type="TGradient" paramflags="const"/>
</parameters>
</procedure>
<function name="GetPointRect" visibility="private" file="FMX.Colors.pas" line="321">
<parameters>
<parameter name="Point" type="Integer" paramflags="const"/>
<retval type="TRectF"/>
</parameters>
</function>
<procedure name="DoChanged" visibility="private" file="FMX.Colors.pas" line="322">
<parameters>
<parameter name="Sender" type="TObject"/>
</parameters>
</procedure>
<procedure name="SetCurrentPoint" visibility="private" file="FMX.Colors.pas" line="323">
<parameters>
<parameter name="Value" type="Integer" paramflags="const"/>
</parameters>
</procedure>
<procedure name="SetColorPicker" visibility="private" file="FMX.Colors.pas" line="324">
<parameters>
<parameter name="Value" type="TColorPicker" paramflags="const"/>
</parameters>
</procedure>
<procedure name="MouseDown" visibility="protected" procflags="override" file="FMX.Colors.pas" line="326">
<parameters>
<parameter name="Button" type="TMouseButton"/>
<parameter name="Shift" type="TShiftState"/>
<parameter name="X" type="Single"/>
<parameter name="Y" type="Single"/>
</parameters>
<devnotes><summary>
OnMouseDown event dispatcher.
FMX.Colors.TGradientEdit.MouseDown inherits from FMX.Controls.TControl.MouseDown. All content below this line refers to FMX.Controls.TControl.MouseDown.
OnMouseDown event dispatcher.
A control calls MouseDown in response to any of mouse-down messages, decoding the message parameters into the shift-key state and position, which it passes in the Shift, X, and Y parameters, respectively:
Button determines which mouse button is pressed: left, right, or middle.
Shift indicates which shift keys--SHIFT, CTRL, ALT, and CMD (only for Mac)--were down when the user pressed the mouse button.
X and Y are the pixel coordinates of the mouse pointer within the client area of the control. If Button is mbLeft, MouseDown sets PressedPosition as a TPointF(X,Y).
Override the protected MouseDown method to provide other responses when a mouse button is down while the cursor is over the control.
</summary></devnotes></procedure>
<procedure name="MouseMove" visibility="protected" procflags="override" file="FMX.Colors.pas" line="327">
<parameters>
<parameter name="Shift" type="TShiftState"/>
<parameter name="X" type="Single"/>
<parameter name="Y" type="Single"/>
</parameters>
<devnotes><summary>
OnMouseMove event dispatcher.
FMX.Colors.TGradientEdit.MouseMove inherits from FMX.Controls.TControl.MouseMove. All content below this line refers to FMX.Controls.TControl.MouseMove.
OnMouseMove event dispatcher.
As the mouse cursor moves across a control, this method is called repeatedly. Each time it is called with the new coordinates that reflect the continuous path of the mouse cursor across the screen real estate covered by the control's visual representation:
Shift indicates which shift keys--SHIFT, CTRL, ALT, and CMD (only for Mac)--were down when the mouse cursor is over the control.
X and Y are the pixel coordinates of the mouse pointer within the client area of the control.
Override the protected MouseMove method to provide other responses when the mouse cursor moves over the control.
</summary></devnotes></procedure>
<procedure name="MouseUp" visibility="protected" procflags="override" file="FMX.Colors.pas" line="328">
<parameters>
<parameter name="Button" type="TMouseButton"/>
<parameter name="Shift" type="TShiftState"/>
<parameter name="X" type="Single"/>
<parameter name="Y" type="Single"/>
</parameters>
<devnotes><summary>
OnMouseUp event dispatcher.
FMX.Colors.TGradientEdit.MouseUp inherits from FMX.Controls.TControl.MouseUp. All content below this line refers to FMX.Controls.TControl.MouseUp.
OnMouseUp event dispatcher.
A control calls MouseUp in response to any of mouse-up messages, decoding the message parameters into the shift-key state and position, which it passes in the Shift, X and Y parameters, respectively:
Button determines which mouse button was previously pressed: left, right, or middle.
Shift indicates which shift keys--SHIFT, CTRL, ALT, and CMD (only for Mac)--were down when the pressed mouse button is released.
X and Y are the pixel coordinates of the mouse pointer within the client area of the control.
Override the protected MouseUp method to provide other responses when the mouse button previously pressed is released while the cursor is over the control.
</summary></devnotes></procedure>
<procedure name="Notification" visibility="protected" procflags="override" file="FMX.Colors.pas" line="329">
<parameters>
<parameter name="AComponent" type="TComponent"/>
<parameter name="Operation" type="TOperation"/>
</parameters>
<devnotes><summary>
Forwards notification messages to all owned components.
FMX.Colors.TGradientEdit.Notification inherits from System.Classes.TComponent.Notification. All content below this line refers to System.Classes.TComponent.Notification.
Forwards notification messages to all owned components.
Do not call the Notification method in an application. Notification is called automatically when the component specified by AComponent is about to be inserted or removed, as specified by Operation. By default, components pass along the notification to their owned components, if any.
A component can, if needed, act on the notification that a component is being inserted or removed. For example, if a component has object fields or properties that contain references to other components, it can check the notifications of component removals and invalidate those references as needed.
Note: Notification is not called for components that are freed implicitly (because their Owner is freed).</summary></devnotes></procedure>
<procedure name="Paint" visibility="protected" procflags="override" file="FMX.Colors.pas" line="330">
<devnotes><summary>
Renders the control's surface.
FMX.Colors.TGradientEdit.Paint inherits from FMX.Controls.TControl.Paint. All content below this line refers to FMX.Controls.TControl.Paint.
Renders the control's surface.
The Paint method is called by DoPaint when a control is being painted by the PaintTo method. Before DoPaint, Painting is called. AfterPaint is called immediately after.
FireMonkey internally calls Paint to paint the control when the window is being painted. You must not call Paint explicitly.
The base class TControl implements an empty Paint. The descendants of TControl override Paint to provide specific rendering of the respective controls.
For example, Paint methods in classes of the FMX.Objects unit draw and fill shapes using the properties defined in these classes. See the descriptions of these classes to find the properties of the respective shapes.
</summary></devnotes></procedure>
<constructor name="Create" visibility="public" file="FMX.Colors.pas" line="332">
<parameters>
<parameter name="AOwner" type="TComponent"/>
</parameters>
<devnotes><summary>
Allocates memory and constructs a safely initialized instance of a component.
Allocates memory and constructs a safely initialized instance of a component.
Allocates memory and constructs a safely initialized instance of a component.
FMX.Colors.TGradientEdit.Create inherits from System.Classes.TComponent.Create. All content below this line refers to System.Classes.TComponent.Create.
Allocates memory and constructs a safely initialized instance of a component.
All objects have a Create method that constructs the object. TComponent redefines Create so that, for components, Create also:
Establishes the relationship of a component and its Owner, as indicated by the AOwner parameter.
Sets the ComponentStyle property to csInheritable, meaning that the component can be inherited by a descendent form type.
It is not necessary to explicitly create components added in the Form Designer. These components are created automatically when the application is run, and they are destroyed when the application is closed.
For components created programmatically, that is, not created in the Form Designer, call Create and pass in an owner component as the AOwner parameter. The owner disposes of the component when it is destroyed. If the component is not owned, then use Free when it needs to be destroyed.
Tip: When passing in Self as the Owner parameter, consider what Self references. If a component creates another component in one of its methods, then Self refers to the first component and not the component being created, which is then owned by the first component.
Note: The TComponent constructor is virtual in part to allow polymorphic instantiation of class references. This is critical to the streaming system and to the Form Designer. Do not forget to use the override directive when declaring a new component's Create constructor.</summary></devnotes></constructor>
<destructor name="Destroy" visibility="public" file="FMX.Colors.pas" line="333">
<parameters>
</parameters>
<devnotes><summary>
Disposes of the component and its owned components.
Disposes of the component and its owned components.
Disposes of the component and its owned components.
FMX.Colors.TGradientEdit.Destroy inherits from System.Classes.TComponent.Destroy. All content below this line refers to System.Classes.TComponent.Destroy.
Disposes of the component and its owned components.
Do not call Destroy directly. Call Free instead. Free verifies that the component is not nil, and only then calls Destroy.
Never explicitly free a component in one of its own event handlers, nor free a component from the event handler of a component that it owns or contains.
To destroy a form, call its Release method. Release waits for all the form's event handlers and the event handlers of the form's components to finish executing before destroying the form.
Note: A form owns all the controls and nonvisual components that are placed on it in design mode. When it is freed, all of these components are automatically freed as well. By default, all forms are owned by the global Application object. When an application terminates, it frees the global Application object, which frees all forms. For objects that are not components, and for components created with a nil owner, be sure to call Free after finishing with the object; otherwise the memory allocated for the object will be lost until the application terminates.</summary></devnotes></destructor>
<procedure name="UpdateGradient" visibility="public" file="FMX.Colors.pas" line="334">
<devnotes><summary>
Executes each time the selected color changes in order to update the gradient.
</summary></devnotes></procedure>
<property name="Gradient" visibility="public" read="FGradient" write="SetGradient" type="TGradient" file="FMX.Colors.pas" line="335"><devnotes><summary>
Specifies the color gradient this gradient edit component will use.
Set or get the Gradient property to a TGradient type in order to specify a new gradient pattern.
</summary></devnotes></property>
<property name="CurrentPoint" visibility="public" read="FCurrentPoint" write="SetCurrentPoint" type="Integer" file="FMX.Colors.pas" line="336"><devnotes><summary>
Specifies the location of the selector point over the spanning of the component, which is a gradient color selector.
When the CurrentPoint property changes, an OnSelectPoint event also occurs.
</summary></devnotes></property>
<property name="Align" visibility="published" read="FAlign" write="SetAlign" type="TAlignLayout" default="0" hoisted="true" file="FMX.Colors.pas" line="338"/>
<property name="Anchors" visibility="published" read="FAnchors" write="SetAnchors" stored="IsAnchorsStored" type="TAnchors" hoisted="true" file="FMX.Colors.pas" line="339"/>
<property name="ClipChildren" visibility="published" read="FClipChildren" write="SetClipChildren" type="Boolean" default="0" hoisted="true" file="FMX.Colors.pas" line="340"/>
<property name="ClipParent" visibility="published" read="FClipParent" write="FClipParent" type="Boolean" default="0" hoisted="true" file="FMX.Colors.pas" line="341"/>
<property name="ColorPicker" visibility="published" read="FColorPicker" write="SetColorPicker" type="TColorPicker" file="FMX.Colors.pas" line="342"><devnotes><summary>
Specifies the color picker attached to this gradient editor component.
A color picker is a visual component represented as a rectangular-shaped optical indicator that permits you to select a color from the color spectrum.
</summary></devnotes></property>
<property name="Cursor" visibility="published" read="GetCursor" write="SetCursor" type="TCursor" default="0" hoisted="true" file="FMX.Colors.pas" line="343"/>
<property name="DragMode" visibility="published" read="GetDragMode" write="SetDragMode" type="TDragMode" default="0" hoisted="true" file="FMX.Colors.pas" line="344"/>
<property name="EnableDragHighlight" visibility="published" read="FEnableDragHighlight" write="FEnableDragHighlight" type="Boolean" default="1" hoisted="true" file="FMX.Colors.pas" line="345"/>
<property name="Enabled" visibility="published" read="FEnabled" write="SetEnabled" stored="EnabledStored" type="Boolean" default="1" hoisted="true" file="FMX.Colors.pas" line="346"/>
<property name="Locked" visibility="published" read="FLocked" write="SetLocked" type="Boolean" default="0" hoisted="true" file="FMX.Colors.pas" line="347"/>
<property name="Height" visibility="published" read="GetHeight" write="SetHeight" stored="False" type="Single" hoisted="true" file="FMX.Colors.pas" line="348"/>
<property name="Hint" visibility="published" read="FHint" write="SetHint" stored="HintStored" type="string" default="0" hoisted="true" file="FMX.Colors.pas" line="349"/>
<property name="HitTest" visibility="published" read="FHitTest" write="SetHitTest" type="Boolean" default="1" hoisted="true" file="FMX.Colors.pas" line="350"/>
<property name="Padding" visibility="published" read="GetPadding" write="SetPadding" type="TBounds" hoisted="true" file="FMX.Colors.pas" line="351"/>
<property name="Opacity" visibility="published" read="FOpacity" write="SetOpacity" stored="IsOpacityStored" type="Single" hoisted="true" file="FMX.Colors.pas" line="352"/>
<property name="Margins" visibility="published" read="GetMargins" write="SetMargins" type="TBounds" hoisted="true" file="FMX.Colors.pas" line="353"/>
<property name="PopupMenu" visibility="published" read="FPopupMenu" write="SetPopupMenu" stored="IsPopupMenuStored" type="TCustomPopupMenu" hoisted="true" file="FMX.Colors.pas" line="354"/>
<property name="Position" visibility="published" read="FPosition" write="SetPosition" stored="IsPositionStored" type="TPosition" hoisted="true" file="FMX.Colors.pas" line="355"/>
<property name="RotationAngle" visibility="published" read="GetRotationAngle" write="SetRotationAngle" type="Single" default="0" hoisted="true" file="FMX.Colors.pas" line="356"/>
<property name="RotationCenter" visibility="published" read="GetRotationCenter" write="SetRotationCenter" type="TPosition" hoisted="true" file="FMX.Colors.pas" line="357"/>
<property name="Scale" visibility="published" read="GetScale" write="SetScale" type="TPosition" hoisted="true" file="FMX.Colors.pas" line="358"/>
<property name="Size" visibility="published" read="FSize" write="SetSize" stored="IsSizeStored" type="TControlSize" hoisted="true" file="FMX.Colors.pas" line="359"/>
<property name="TabOrder" visibility="published" read="GetTabOrder" write="SetTabOrder" type="TTabOrder" default="-1" hoisted="true" file="FMX.Colors.pas" line="360"/>
<property name="TabStop" visibility="published" read="GetTabStop" write="SetTabStop" type="Boolean" default="1" hoisted="true" file="FMX.Colors.pas" line="361"/>
<property name="TouchTargetExpansion" visibility="published" read="FTouchTargetExpansion" write="SetTouchTargetExpansion" type="TBounds" hoisted="true" file="FMX.Colors.pas" line="362"/>
<property name="Visible" visibility="published" read="FVisible" write="SetVisible" stored="VisibleStored" type="Boolean" default="1" hoisted="true" file="FMX.Colors.pas" line="363"/>
<property name="Width" visibility="published" read="GetWidth" write="SetWidth" stored="False" type="Single" hoisted="true" file="FMX.Colors.pas" line="364"/>
<property name="ParentShowHint" visibility="published" read="FParentShowHint" write="SetParentShowHint" type="Boolean" default="1" hoisted="true" file="FMX.Colors.pas" line="365"/>
<property name="ShowHint" visibility="published" read="FShowHint" write="SetShowHint" stored="IsShowHintStored" type="Boolean" hoisted="true" file="FMX.Colors.pas" line="366"/>
<event name="OnChange" visibility="published" read="FOnChange" write="FOnChange" type="TNotifyEvent" file="FMX.Colors.pas" line="368"><devnotes><summary>
Occurs immediately after changing the color on this component, which is a gradient color selector.
Write an OnChange event handler to provide additional functionality when changing the color of this component, which is a gradient color selector.
</summary></devnotes></event>
<event name="OnDragEnter" visibility="published" read="FOnDragEnter" write="FOnDragEnter" type="TDragEnterEvent" hoisted="true" file="FMX.Colors.pas" line="370"/>
<event name="OnDragLeave" visibility="published" read="FOnDragLeave" write="FOnDragLeave" type="TNotifyEvent" hoisted="true" file="FMX.Colors.pas" line="371"/>
<event name="OnDragOver" visibility="published" read="FOnDragOver" write="FOnDragOver" type="TDragOverEvent" hoisted="true" file="FMX.Colors.pas" line="372"/>
<event name="OnDragDrop" visibility="published" read="FOnDragDrop" write="FOnDragDrop" type="TDragDropEvent" hoisted="true" file="FMX.Colors.pas" line="373"/>
<event name="OnDragEnd" visibility="published" read="FOnDragEnd" write="FOnDragEnd" type="TNotifyEvent" hoisted="true" file="FMX.Colors.pas" line="374"/>
<event name="OnKeyDown" visibility="published" read="FOnKeyDown" write="FOnKeyDown" type="TKeyEvent" hoisted="true" file="FMX.Colors.pas" line="376"/>
<event name="OnKeyUp" visibility="published" read="FOnKeyUp" write="FOnKeyUp" type="TKeyEvent" hoisted="true" file="FMX.Colors.pas" line="377"/>
<event name="OnCanFocus" visibility="published" read="FOnCanFocus" write="FOnCanFocus" type="TCanFocusEvent" hoisted="true" file="FMX.Colors.pas" line="379"/>
<event name="OnClick" visibility="published" read="FOnClick" write="SetOnClick" stored="OnClickStored" type="TNotifyEvent" hoisted="true" file="FMX.Colors.pas" line="380"/>
<event name="OnDblClick" visibility="published" read="FOnDblClick" write="FOnDblClick" type="TNotifyEvent" hoisted="true" file="FMX.Colors.pas" line="381"/>
<event name="OnEnter" visibility="published" read="FOnEnter" write="FOnEnter" type="TNotifyEvent" hoisted="true" file="FMX.Colors.pas" line="383"/>
<event name="OnExit" visibility="published" read="FOnExit" write="FOnExit" type="TNotifyEvent" hoisted="true" file="FMX.Colors.pas" line="384"/>
<event name="OnMouseDown" visibility="published" read="FOnMouseDown" write="FOnMouseDown" type="TMouseEvent" hoisted="true" file="FMX.Colors.pas" line="385"/>
<event name="OnMouseMove" visibility="published" read="FOnMouseMove" write="FOnMouseMove" type="TMouseMoveEvent" hoisted="true" file="FMX.Colors.pas" line="386"/>
<event name="OnMouseUp" visibility="published" read="FOnMouseUp" write="FOnMouseUp" type="TMouseEvent" hoisted="true" file="FMX.Colors.pas" line="387"/>
<event name="OnMouseWheel" visibility="published" read="FOnMouseWheel" write="FOnMouseWheel" type="TMouseWheelEvent" hoisted="true" file="FMX.Colors.pas" line="388"/>
<event name="OnMouseEnter" visibility="published" read="FOnMouseEnter" write="FOnMouseEnter" type="TNotifyEvent" hoisted="true" file="FMX.Colors.pas" line="389"/>
<event name="OnMouseLeave" visibility="published" read="FOnMouseLeave" write="FOnMouseLeave" type="TNotifyEvent" hoisted="true" file="FMX.Colors.pas" line="390"/>
<event name="OnPainting" visibility="published" read="FOnPainting" write="FOnPainting" type="TOnPaintEvent" hoisted="true" file="FMX.Colors.pas" line="392"/>
<event name="OnPaint" visibility="published" read="FOnPaint" write="FOnPaint" type="TOnPaintEvent" hoisted="true" file="FMX.Colors.pas" line="393"/>
<event name="OnResize" visibility="published" read="FOnResize" write="FOnResize" type="TNotifyEvent" hoisted="true" file="FMX.Colors.pas" line="394"/>
<event name="OnResized" visibility="published" read="FOnResized" write="FOnResized" type="TNotifyEvent" hoisted="true" file="FMX.Colors.pas" line="395"/>
<event name="OnSelectPoint" visibility="published" read="FOnSelectPoint" write="FOnSelectPoint" type="TNotifyEvent" file="FMX.Colors.pas" line="396"><devnotes><summary>
Occurs immediately after clicking over the surface of this gradient color selector.
Write an OnSelectPoint event handler to provide additional functionality when clicking over the surface of this gradient color selector component. OnSelectPoint also occurs when setting the value of the CurrentPoint property.
</summary></devnotes></event>
</members>
<devnotes><summary>
Represents a gradient editor component.
A TGradientEdit component is a gradient editor that can be used to create new gradient patterns.
</summary></devnotes></class>
<class name="TColorPanel" file="FMX.Colors.pas" line="401">
<members>
<field name="FOnChange" type="TNotifyEvent" visibility="private" size="8" offset="904" file="FMX.Colors.pas" line="403"/>
<field name="FColorQuad" type="TColorQuad" visibility="private" size="4" offset="912" file="FMX.Colors.pas" line="404"/>
<field name="FAlphaTrack" type="TAlphaTrackBar" visibility="private" size="4" offset="916" file="FMX.Colors.pas" line="405"/>
<field name="FHueTrack" type="THueTrackBar" visibility="private" size="4" offset="920" file="FMX.Colors.pas" line="406"/>
<field name="FColorBox" type="TColorBox" visibility="private" size="4" offset="924" file="FMX.Colors.pas" line="407"/>
<field name="FUseAlpha" type="Boolean" visibility="private" size="1" offset="928" file="FMX.Colors.pas" line="408"/>
<field name="FOwnerObserves" type="Boolean" visibility="private" size="1" offset="929" file="FMX.Colors.pas" line="409"/>
<function name="GetColor" visibility="private" file="FMX.Colors.pas" line="410">
<parameters>
<retval type="TAlphaColor"/>
</parameters>
</function>
<procedure name="SetColor" visibility="private" file="FMX.Colors.pas" line="411">
<parameters>
<parameter name="Value" type="TAlphaColor" paramflags="const"/>
</parameters>
</procedure>
<procedure name="SetColorBox" visibility="private" file="FMX.Colors.pas" line="412">
<parameters>
<parameter name="Value" type="TColorBox" paramflags="const"/>
</parameters>
</procedure>
<procedure name="SetUseAlpha" visibility="private" file="FMX.Colors.pas" line="413">
<parameters>
<parameter name="Value" type="Boolean" paramflags="const"/>
</parameters>
</procedure>
<function name="GetObservers" visibility="protected" procflags="override" file="FMX.Colors.pas" line="415">
<parameters>
<retval type="TObservers"/>
</parameters>
<devnotes><summary>
Getter of Observers.
FMX.Colors.TColorPanel.GetObservers inherits from System.Classes.TComponent.GetObservers. All content below this line refers to System.Classes.TComponent.GetObservers.
Getter of Observers.
</summary></devnotes></function>
<function name="CanObserve" visibility="protected" procflags="override" file="FMX.Colors.pas" line="416">
<parameters>
<parameter name="ID" type="Integer" paramflags="const"/>
<retval type="Boolean"/>
</parameters>
<devnotes><summary>
Embarcadero Technologies does not currently have any additional information.
</summary></devnotes></function>
<function name="GetData" visibility="protected" procflags="override" file="FMX.Colors.pas" line="417">
<parameters>
<retval type="TValue">
<attributes>
<attribute name="HPPGENAttribute"/>
</attributes>
</retval>
</parameters>
<devnotes><summary>
Protected getter implementation for the Data property.
FMX.Colors.TColorPanel.GetData inherits from FMX.Types.TFmxObject.GetData. All content below this line refers to FMX.Types.TFmxObject.GetData.
Protected getter implementation for the Data property.
</summary></devnotes></function>
<procedure name="DoAlphaChange" visibility="protected" file="FMX.Colors.pas" line="418">
<parameters>
<parameter name="Sender" type="TObject"/>
</parameters>
<devnotes><summary>
Executes every time the alpha channel track bar changes its value.
</summary></devnotes></procedure>
<procedure name="DoHueChange" visibility="protected" file="FMX.Colors.pas" line="419">
<parameters>
<parameter name="Sender" type="TObject"/>
</parameters>
<devnotes><summary>
Executes every time the hue track bar changes its value.
</summary></devnotes></procedure>
<procedure name="DoQuadChange" visibility="protected" file="FMX.Colors.pas" line="420">
<parameters>
<parameter name="Sender" type="TObject"/>
</parameters>
<devnotes><summary>
Executes every time the color selected by this color panel changes.
</summary></devnotes></procedure>
<procedure name="Notification" visibility="protected" procflags="override" file="FMX.Colors.pas" line="421">
<parameters>
<parameter name="AComponent" type="TComponent"/>
<parameter name="Operation" type="TOperation"/>
</parameters>
<devnotes><summary>
Forwards notification messages to all owned components.
FMX.Colors.TColorPanel.Notification inherits from System.Classes.TComponent.Notification. All content below this line refers to System.Classes.TComponent.Notification.
Forwards notification messages to all owned components.
Do not call the Notification method in an application. Notification is called automatically when the component specified by AComponent is about to be inserted or removed, as specified by Operation. By default, components pass along the notification to their owned components, if any.
A component can, if needed, act on the notification that a component is being inserted or removed. For example, if a component has object fields or properties that contain references to other components, it can check the notifications of component removals and invalidate those references as needed.
Note: Notification is not called for components that are freed implicitly (because their Owner is freed).</summary></devnotes></procedure>
<constructor name="Create" visibility="public" file="FMX.Colors.pas" line="423">
<parameters>
<parameter name="AOwner" type="TComponent"/>
</parameters>
<devnotes><summary>
Allocates memory and constructs a safely initialized instance of a component.
Allocates memory and constructs a safely initialized instance of a component.
Allocates memory and constructs a safely initialized instance of a component.
FMX.Colors.TColorPanel.Create inherits from System.Classes.TComponent.Create. All content below this line refers to System.Classes.TComponent.Create.
Allocates memory and constructs a safely initialized instance of a component.
All objects have a Create method that constructs the object. TComponent redefines Create so that, for components, Create also:
Establishes the relationship of a component and its Owner, as indicated by the AOwner parameter.