2 * Copyright(c) 2021 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 using Tizen.NUI.Binding;
20 using System.ComponentModel;
27 [Tizen.NUI.Binding.TypeConverter(typeof(ColorTypeConverter))]
28 public class Color : Disposable, ICloneable
31 /// Gets the alice_blue colored Color class.
33 [EditorBrowsable(EditorBrowsableState.Never)]
34 public static readonly Color AliceBlue = NDalic.ALICE_BLUE;
37 /// Gets the antique_white colored Color class.
39 [EditorBrowsable(EditorBrowsableState.Never)]
40 public static readonly Color AntiqueWhite = NDalic.ANTIQUE_WHITE;
43 /// Gets the aqua colored Color class.
45 [EditorBrowsable(EditorBrowsableState.Never)]
46 public static readonly Color Aqua = NDalic.AQUA;
49 /// Gets the aqua_marine colored Color class.
51 [EditorBrowsable(EditorBrowsableState.Never)]
52 public static readonly Color AquaMarine = NDalic.AQUA_MARINE;
55 /// Gets the azure colored Color class.
57 [EditorBrowsable(EditorBrowsableState.Never)]
58 public static readonly Color Azure = NDalic.AZURE;
61 /// Gets the beige colored Color class.
63 [EditorBrowsable(EditorBrowsableState.Never)]
64 public static readonly Color Beige = NDalic.BEIGE;
67 /// Gets the bisque colored Color class.
69 [EditorBrowsable(EditorBrowsableState.Never)]
70 public static readonly Color Bisque = NDalic.BISQUE;
73 /// Gets the black colored Color class.
75 /// <since_tizen> 3 </since_tizen>
76 public static readonly Color Black = NDalic.BLACK;
79 /// Gets the blanche_dalmond colored Color class.
81 [EditorBrowsable(EditorBrowsableState.Never)]
82 public static readonly Color BlancheDalmond = NDalic.BLANCHE_DALMOND;
85 /// Gets the blue colored Color class.
87 /// <since_tizen> 3 </since_tizen>
88 public static readonly Color Blue = NDalic.BLUE;
91 /// Gets the blue_violet colored Color class.
93 [EditorBrowsable(EditorBrowsableState.Never)]
94 public static readonly Color BlueViolet = NDalic.BLUE_VIOLET;
97 /// Gets the brown colored Color class.
99 [EditorBrowsable(EditorBrowsableState.Never)]
100 public static readonly Color Brown = NDalic.BROWN;
103 /// Gets the burly_wood colored Color class.
105 [EditorBrowsable(EditorBrowsableState.Never)]
106 public static readonly Color BurlyWood = NDalic.BURLY_WOOD;
109 /// Gets the cadet_blue colored Color class.
111 [EditorBrowsable(EditorBrowsableState.Never)]
112 public static readonly Color CadetBlue = NDalic.CADET_BLUE;
115 /// Gets the chartreuse colored Color class.
117 [EditorBrowsable(EditorBrowsableState.Never)]
118 public static readonly Color Chartreuse = NDalic.CHARTREUSE;
121 /// Gets the chocolate colored Color class.
123 [EditorBrowsable(EditorBrowsableState.Never)]
124 public static readonly Color Chocolate = NDalic.CHOCOLATE;
127 /// Gets the coral colored Color class.
129 [EditorBrowsable(EditorBrowsableState.Never)]
130 public static readonly Color Coral = NDalic.CORAL;
133 /// Gets the cornflower_blue colored Color class.
135 [EditorBrowsable(EditorBrowsableState.Never)]
136 public static readonly Color CornflowerBlue = NDalic.CORNFLOWER_BLUE;
139 /// Gets the cornsilk colored Color class.
141 [EditorBrowsable(EditorBrowsableState.Never)]
142 public static readonly Color Cornsilk = NDalic.CORNSILK;
145 /// Gets the crimson colored Color class.
147 [EditorBrowsable(EditorBrowsableState.Never)]
148 public static readonly Color Crimson = NDalic.CRIMSON;
151 /// Gets the cyan colored Color class.
153 /// <since_tizen> 3 </since_tizen>
154 public static readonly Color Cyan = NDalic.CYAN;
157 /// Gets the dark_blue colored Color class.
159 [EditorBrowsable(EditorBrowsableState.Never)]
160 public static readonly Color DarkBlue = NDalic.DARK_BLUE;
163 /// Gets the dark_cyan colored Color class.
165 [EditorBrowsable(EditorBrowsableState.Never)]
166 public static readonly Color DarkCyan = NDalic.DARK_CYAN;
169 /// Gets the dark_goldenrod colored Color class.
171 [EditorBrowsable(EditorBrowsableState.Never)]
172 public static readonly Color DarkGoldenrod = NDalic.DARK_GOLDENROD;
175 /// Gets the dark_gray colored Color class.
177 [EditorBrowsable(EditorBrowsableState.Never)]
178 public static readonly Color DarkGray = NDalic.DARK_GRAY;
181 /// Gets the dark_green colored Color class.
183 [EditorBrowsable(EditorBrowsableState.Never)]
184 public static readonly Color DarkGreen = NDalic.DARK_GREEN;
187 /// Gets the dark_grey colored Color class.
189 [EditorBrowsable(EditorBrowsableState.Never)]
190 public static readonly Color DarkGrey = NDalic.DARK_GREY;
193 /// Gets the dark_khaki colored Color class.
195 [EditorBrowsable(EditorBrowsableState.Never)]
196 public static readonly Color DarkKhaki = NDalic.DARK_KHAKI;
199 /// Gets the dark_magenta colored Color class.
201 [EditorBrowsable(EditorBrowsableState.Never)]
202 public static readonly Color DarkMagenta = NDalic.DARK_MAGENTA;
205 /// Gets the dark_olive_green colored Color class.
207 [EditorBrowsable(EditorBrowsableState.Never)]
208 public static readonly Color DarkOliveGreen = NDalic.DARK_OLIVE_GREEN;
211 /// Gets the dark_orange colored Color class.
213 [EditorBrowsable(EditorBrowsableState.Never)]
214 public static readonly Color DarkOrange = NDalic.DARK_ORANGE;
217 /// Gets the dark_orchid colored Color class.
219 [EditorBrowsable(EditorBrowsableState.Never)]
220 public static readonly Color DarkOrchid = NDalic.DARK_ORCHID;
223 /// Gets the dark_red colored Color class.
225 [EditorBrowsable(EditorBrowsableState.Never)]
226 public static readonly Color DarkRed = NDalic.DARK_RED;
229 /// Gets the dark_salmon colored Color class.
231 [EditorBrowsable(EditorBrowsableState.Never)]
232 public static readonly Color DarkSalmon = NDalic.DARK_SALMON;
235 /// Gets the dark_sea_green colored Color class.
237 [EditorBrowsable(EditorBrowsableState.Never)]
238 public static readonly Color DarkSeaGreen = NDalic.DARK_SEA_GREEN;
241 /// Gets the dark_slate_blue colored Color class.
243 [EditorBrowsable(EditorBrowsableState.Never)]
244 public static readonly Color DarkSlateBlue = NDalic.DARK_SLATE_BLUE;
247 /// Gets the dark_slate_gray colored Color class.
249 [EditorBrowsable(EditorBrowsableState.Never)]
250 public static readonly Color DarkSlateGray = NDalic.DARK_SLATE_GRAY;
253 /// Gets the dark_slate_grey colored Color class.
255 [EditorBrowsable(EditorBrowsableState.Never)]
256 public static readonly Color DarkSlateGrey = NDalic.DARK_SLATE_GREY;
259 /// Gets the dark_turquoise colored Color class.
261 [EditorBrowsable(EditorBrowsableState.Never)]
262 public static readonly Color DarkTurquoise = NDalic.DARK_TURQUOISE;
265 /// Gets the dark_violet colored Color class.
267 [EditorBrowsable(EditorBrowsableState.Never)]
268 public static readonly Color DarkViolet = NDalic.DARK_VIOLET;
271 /// Gets the deep_pink colored Color class.
273 [EditorBrowsable(EditorBrowsableState.Never)]
274 public static readonly Color DeepPink = NDalic.DEEP_PINK;
277 /// Gets the deep_sky_blue colored Color class.
279 [EditorBrowsable(EditorBrowsableState.Never)]
280 public static readonly Color DeepSkyBlue = NDalic.DEEP_SKY_BLUE;
283 /// Gets the dim_gray colored Color class.
285 [EditorBrowsable(EditorBrowsableState.Never)]
286 public static readonly Color DimGray = NDalic.DIM_GRAY;
289 /// Gets the dim_grey colored Color class.
291 [EditorBrowsable(EditorBrowsableState.Never)]
292 public static readonly Color DimGrey = NDalic.DIM_GREY;
295 /// Gets the dodger_blue colored Color class.
297 [EditorBrowsable(EditorBrowsableState.Never)]
298 public static readonly Color DodgerBlue = NDalic.DODGER_BLUE;
301 /// Gets the fire_brick colored Color class.
303 [EditorBrowsable(EditorBrowsableState.Never)]
304 public static readonly Color FireBrick = NDalic.FIRE_BRICK;
307 /// Gets the floral_white colored Color class.
309 [EditorBrowsable(EditorBrowsableState.Never)]
310 public static readonly Color FloralWhite = NDalic.FLORAL_WHITE;
313 /// Gets the forest_green colored Color class.
315 [EditorBrowsable(EditorBrowsableState.Never)]
316 public static readonly Color ForestGreen = NDalic.FOREST_GREEN;
319 /// Gets the fuchsia colored Color class.
321 [EditorBrowsable(EditorBrowsableState.Never)]
322 public static readonly Color Fuchsia = NDalic.FUCHSIA;
325 /// Gets the gainsboro colored Color class.
327 [EditorBrowsable(EditorBrowsableState.Never)]
328 public static readonly Color Gainsboro = NDalic.GAINSBORO;
331 /// Gets the ghost_white colored Color class.
333 [EditorBrowsable(EditorBrowsableState.Never)]
334 public static readonly Color GhostWhite = NDalic.GHOST_WHITE;
337 /// Gets the gold colored Color class.
339 [EditorBrowsable(EditorBrowsableState.Never)]
340 public static readonly Color Gold = NDalic.GOLD;
343 /// Gets the golden_rod colored Color class.
345 [EditorBrowsable(EditorBrowsableState.Never)]
346 public static readonly Color GoldenRod = NDalic.GOLDEN_ROD;
349 /// Gets the gray colored Color class.
351 [EditorBrowsable(EditorBrowsableState.Never)]
352 public static readonly Color Gray = NDalic.GRAY;
355 /// Gets the green colored Color class.
357 /// <since_tizen> 3 </since_tizen>
358 public static readonly Color Green = NDalic.GREEN;
361 /// Gets the green_yellow colored Color class.
363 [EditorBrowsable(EditorBrowsableState.Never)]
364 public static readonly Color GreenYellow = NDalic.GREEN_YELLOW;
367 /// Gets the grey colored Color class.
369 [EditorBrowsable(EditorBrowsableState.Never)]
370 public static readonly Color Grey = NDalic.GREY;
373 /// Gets the honeydew colored Color class.
375 [EditorBrowsable(EditorBrowsableState.Never)]
376 public static readonly Color Honeydew = NDalic.HONEYDEW;
379 /// Gets the hot_pink colored Color class.
381 [EditorBrowsable(EditorBrowsableState.Never)]
382 public static readonly Color HotPink = NDalic.HOT_PINK;
385 /// Gets the indianred colored Color class.
387 [EditorBrowsable(EditorBrowsableState.Never)]
388 public static readonly Color Indianred = NDalic.INDIANRED;
391 /// Gets the indigo colored Color class.
393 [EditorBrowsable(EditorBrowsableState.Never)]
394 public static readonly Color Indigo = NDalic.INDIGO;
397 /// Gets the ivory colored Color class.
399 [EditorBrowsable(EditorBrowsableState.Never)]
400 public static readonly Color Ivory = NDalic.IVORY;
403 /// Gets the khaki colored Color class.
405 [EditorBrowsable(EditorBrowsableState.Never)]
406 public static readonly Color Khaki = NDalic.KHAKI;
409 /// Gets the lavender colored Color class.
411 [EditorBrowsable(EditorBrowsableState.Never)]
412 public static readonly Color Lavender = NDalic.LAVENDER;
415 /// Gets the lavender_blush colored Color class.
417 [EditorBrowsable(EditorBrowsableState.Never)]
418 public static readonly Color LavenderBlush = NDalic.LAVENDER_BLUSH;
421 /// Gets the lawn_green colored Color class.
423 [EditorBrowsable(EditorBrowsableState.Never)]
424 public static readonly Color LawnGreen = NDalic.LAWN_GREEN;
427 /// Gets the lemon_chiffon colored Color class.
429 [EditorBrowsable(EditorBrowsableState.Never)]
430 public static readonly Color LemonChiffon = NDalic.LEMON_CHIFFON;
433 /// Gets the light_blue colored Color class.
435 [EditorBrowsable(EditorBrowsableState.Never)]
436 public static readonly Color LightBlue = NDalic.LIGHT_BLUE;
439 /// Gets the light_coral colored Color class.
441 [EditorBrowsable(EditorBrowsableState.Never)]
442 public static readonly Color LightCoral = NDalic.LIGHT_CORAL;
445 /// Gets the light_cyan colored Color class.
447 [EditorBrowsable(EditorBrowsableState.Never)]
448 public static readonly Color LightCyan = NDalic.LIGHT_CYAN;
451 /// Gets the light_golden_rod_yellow colored Color class.
453 [EditorBrowsable(EditorBrowsableState.Never)]
454 public static readonly Color LightGoldenRodYellow = NDalic.LIGHT_GOLDEN_ROD_YELLOW;
457 /// Gets the light_gray colored Color class.
459 [EditorBrowsable(EditorBrowsableState.Never)]
460 public static readonly Color LightGray = NDalic.LIGHT_GRAY;
463 /// Gets the light_green colored Color class.
465 [EditorBrowsable(EditorBrowsableState.Never)]
466 public static readonly Color LightGreen = NDalic.LIGHT_GREEN;
469 /// Gets the light_grey colored Color class.
471 [EditorBrowsable(EditorBrowsableState.Never)]
472 public static readonly Color LightGrey = NDalic.LIGHT_GREY;
475 /// Gets the light_pink colored Color class.
477 [EditorBrowsable(EditorBrowsableState.Never)]
478 public static readonly Color LightPink = NDalic.LIGHT_PINK;
481 /// Gets the light_salmon colored Color class.
483 [EditorBrowsable(EditorBrowsableState.Never)]
484 public static readonly Color LightSalmon = NDalic.LIGHT_SALMON;
487 /// Gets the light_sea_green colored Color class.
489 [EditorBrowsable(EditorBrowsableState.Never)]
490 public static readonly Color LightSeaGreen = NDalic.LIGHT_SEA_GREEN;
493 /// Gets the light_sky_blue colored Color class.
495 [EditorBrowsable(EditorBrowsableState.Never)]
496 public static readonly Color LightSkyBlue = NDalic.LIGHT_SKY_BLUE;
499 /// Gets the light_slate_gray colored Color class.
501 [EditorBrowsable(EditorBrowsableState.Never)]
502 public static readonly Color LightSlateGray = NDalic.LIGHT_SLATE_GRAY;
505 /// Gets the light_slate_grey colored Color class.
507 [EditorBrowsable(EditorBrowsableState.Never)]
508 public static readonly Color LightSlateGrey = NDalic.LIGHT_SLATE_GREY;
511 /// Gets the light_steel_blue colored Color class.
513 [EditorBrowsable(EditorBrowsableState.Never)]
514 public static readonly Color LightSteelBlue = NDalic.LIGHT_STEEL_BLUE;
517 /// Gets the light_yellow colored Color class.
519 [EditorBrowsable(EditorBrowsableState.Never)]
520 public static readonly Color LightYellow = NDalic.LIGHT_YELLOW;
523 /// Gets the lime colored Color class.
525 [EditorBrowsable(EditorBrowsableState.Never)]
526 public static readonly Color Lime = NDalic.LIME;
529 /// Gets the lime_green colored Color class.
531 [EditorBrowsable(EditorBrowsableState.Never)]
532 public static readonly Color LimeGreen = NDalic.LIME_GREEN;
535 /// Gets the linen colored Color class.
537 [EditorBrowsable(EditorBrowsableState.Never)]
538 public static readonly Color Linen = NDalic.LINEN;
541 /// Gets the magenta colored Color class.
543 /// <since_tizen> 3 </since_tizen>
544 public static readonly Color Magenta = NDalic.MAGENTA;
547 /// Gets the maroon colored Color class.
549 [EditorBrowsable(EditorBrowsableState.Never)]
550 public static readonly Color Maroon = NDalic.MAROON;
553 /// Gets the medium_aqua_marine colored Color class.
555 [EditorBrowsable(EditorBrowsableState.Never)]
556 public static readonly Color MediumAquaMarine = NDalic.MEDIUM_AQUA_MARINE;
559 /// Gets the medium_blue colored Color class.
561 [EditorBrowsable(EditorBrowsableState.Never)]
562 public static readonly Color MediumBlue = NDalic.MEDIUM_BLUE;
565 /// Gets the medium_orchid colored Color class.
567 [EditorBrowsable(EditorBrowsableState.Never)]
568 public static readonly Color MediumOrchid = NDalic.MEDIUM_ORCHID;
571 /// Gets the medium_purple colored Color class.
573 [EditorBrowsable(EditorBrowsableState.Never)]
574 public static readonly Color MediumPurple = NDalic.MEDIUM_PURPLE;
577 /// Gets the medium_sea_green colored Color class.
579 [EditorBrowsable(EditorBrowsableState.Never)]
580 public static readonly Color MediumSeaGreen = NDalic.MEDIUM_SEA_GREEN;
583 /// Gets the medium_slate_blue colored Color class.
585 [EditorBrowsable(EditorBrowsableState.Never)]
586 public static readonly Color MediumSlateBlue = NDalic.MEDIUM_SLATE_BLUE;
589 /// Gets the medium_spring_green colored Color class.
591 [EditorBrowsable(EditorBrowsableState.Never)]
592 public static readonly Color MediumSpringGreen = NDalic.MEDIUM_SPRING_GREEN;
595 /// Gets the medium_turquoise colored Color class.
597 [EditorBrowsable(EditorBrowsableState.Never)]
598 public static readonly Color MediumTurquoise = NDalic.MEDIUM_TURQUOISE;
601 /// Gets the medium_violetred colored Color class.
603 [EditorBrowsable(EditorBrowsableState.Never)]
604 public static readonly Color MediumVioletred = NDalic.MEDIUM_VIOLETRED;
607 /// Gets the midnight_blue colored Color class.
609 [EditorBrowsable(EditorBrowsableState.Never)]
610 public static readonly Color MidnightBlue = NDalic.MIDNIGHT_BLUE;
613 /// Gets the mint_cream colored Color class.
615 [EditorBrowsable(EditorBrowsableState.Never)]
616 public static readonly Color MintCream = NDalic.MINT_CREAM;
619 /// Gets the misty_rose colored Color class.
621 [EditorBrowsable(EditorBrowsableState.Never)]
622 public static readonly Color MistyRose = NDalic.MISTY_ROSE;
625 /// Gets the moccasin colored Color class.
627 [EditorBrowsable(EditorBrowsableState.Never)]
628 public static readonly Color Moccasin = NDalic.MOCCASIN;
631 /// Gets the navajo_white colored Color class.
633 [EditorBrowsable(EditorBrowsableState.Never)]
634 public static readonly Color NavajoWhite = NDalic.NAVAJO_WHITE;
637 /// Gets the navy colored Color class.
639 [EditorBrowsable(EditorBrowsableState.Never)]
640 public static readonly Color Navy = NDalic.NAVY;
643 /// Gets the old_lace colored Color class.
645 [EditorBrowsable(EditorBrowsableState.Never)]
646 public static readonly Color OldLace = NDalic.OLD_LACE;
649 /// Gets the olive colored Color class.
651 [EditorBrowsable(EditorBrowsableState.Never)]
652 public static readonly Color Olive = NDalic.OLIVE;
655 /// Gets the olive_drab colored Color class.
657 [EditorBrowsable(EditorBrowsableState.Never)]
658 public static readonly Color OliveDrab = NDalic.OLIVE_DRAB;
661 /// Gets the orange colored Color class.
663 [EditorBrowsable(EditorBrowsableState.Never)]
664 public static readonly Color Orange = NDalic.ORANGE;
667 /// Gets the orange_red colored Color class.
669 [EditorBrowsable(EditorBrowsableState.Never)]
670 public static readonly Color OrangeRed = NDalic.ORANGE_RED;
673 /// Gets the orchid colored Color class.
675 [EditorBrowsable(EditorBrowsableState.Never)]
676 public static readonly Color Orchid = NDalic.ORCHID;
679 /// Gets the pale_golden_rod colored Color class.
681 [EditorBrowsable(EditorBrowsableState.Never)]
682 public static readonly Color PaleGoldenRod = NDalic.PALE_GOLDEN_ROD;
685 /// Gets the pale_green colored Color class.
687 [EditorBrowsable(EditorBrowsableState.Never)]
688 public static readonly Color PaleGreen = NDalic.PALE_GREEN;
691 /// Gets the Pale_Turquoise colored Color class.
693 [EditorBrowsable(EditorBrowsableState.Never)]
694 public static readonly Color PaleTurquoise = NDalic.PALE_TURQUOISE;
697 /// Gets the Pale_Violet_Red colored Color class.
699 [EditorBrowsable(EditorBrowsableState.Never)]
700 public static readonly Color PaleVioletRed = NDalic.PALE_VIOLET_RED;
703 /// Gets the Papaya_whip colored Color class.
705 [EditorBrowsable(EditorBrowsableState.Never)]
706 public static readonly Color PapayaWhip = NDalic.PAPAYA_WHIP ;
709 /// Gets the Peach_puff colored Color class.
711 [EditorBrowsable(EditorBrowsableState.Never)]
712 public static readonly Color PeachPuff = NDalic.PEACH_PUFF;
715 /// Gets the peru colored Color class.
717 [EditorBrowsable(EditorBrowsableState.Never)]
718 public static readonly Color Peru = NDalic.PERU;
721 /// Gets the pink colored Color class.
723 [EditorBrowsable(EditorBrowsableState.Never)]
724 public static readonly Color Pink = NDalic.PINK;
727 /// Gets the plum colored Color class.
729 [EditorBrowsable(EditorBrowsableState.Never)]
730 public static readonly Color Plum = NDalic.PLUM;
733 /// Gets the powder_blue colored Color class.
735 [EditorBrowsable(EditorBrowsableState.Never)]
736 public static readonly Color PowderBlue = NDalic.POWDER_BLUE;
739 /// Gets the purple colored Color class.
741 [EditorBrowsable(EditorBrowsableState.Never)]
742 public static readonly Color Purple = NDalic.PURPLE;
745 /// Gets the red colored Color class.
747 /// <since_tizen> 3 </since_tizen>
748 public static readonly Color Red = NDalic.RED;
751 /// Gets the rosy_brown colored Color class.
753 [EditorBrowsable(EditorBrowsableState.Never)]
754 public static readonly Color RosyBrown = NDalic.ROSY_BROWN;
757 /// Gets the royal_blue colored Color class.
759 [EditorBrowsable(EditorBrowsableState.Never)]
760 public static readonly Color RoyalBlue = NDalic.ROYAL_BLUE;
763 /// Gets the saddle_brown colored Color class.
765 [EditorBrowsable(EditorBrowsableState.Never)]
766 public static readonly Color SaddleBrown = NDalic.SADDLE_BROWN;
769 /// Gets the salmon colored Color class.
771 [EditorBrowsable(EditorBrowsableState.Never)]
772 public static readonly Color Salmon = NDalic.SALMON;
775 /// Gets the sandy_brown colored Color class.
777 [EditorBrowsable(EditorBrowsableState.Never)]
778 public static readonly Color SandyBrown = NDalic.SANDY_BROWN;
781 /// Gets the sea_green colored Color class.
783 [EditorBrowsable(EditorBrowsableState.Never)]
784 public static readonly Color SeaGreen = NDalic.SEA_GREEN;
787 /// Gets the sea_shell colored Color class.
789 [EditorBrowsable(EditorBrowsableState.Never)]
790 public static readonly Color SeaShell = NDalic.SEA_SHELL;
793 /// Gets the sienna colored Color class.
795 [EditorBrowsable(EditorBrowsableState.Never)]
796 public static readonly Color Sienna = NDalic.SIENNA;
799 /// Gets the silver colored Color class.
801 [EditorBrowsable(EditorBrowsableState.Never)]
802 public static readonly Color Silver = NDalic.SILVER;
805 /// Gets the sky_blue colored Color class.
807 [EditorBrowsable(EditorBrowsableState.Never)]
808 public static readonly Color SkyBlue = NDalic.SKY_BLUE;
811 /// Gets the slate_blue colored Color class.
813 [EditorBrowsable(EditorBrowsableState.Never)]
814 public static readonly Color SlateBlue = NDalic.SLATE_BLUE;
817 /// Gets the slate_gray colored Color class.
819 [EditorBrowsable(EditorBrowsableState.Never)]
820 public static readonly Color SlateGray = NDalic.SLATE_GRAY;
823 /// Gets the slate_grey colored Color class.
825 [EditorBrowsable(EditorBrowsableState.Never)]
826 public static readonly Color SlateGrey = NDalic.SLATE_GREY;
829 /// Gets the snow colored Color class.
831 [EditorBrowsable(EditorBrowsableState.Never)]
832 public static readonly Color Snow = NDalic.SNOW;
835 /// Gets the spring_green colored Color class.
837 [EditorBrowsable(EditorBrowsableState.Never)]
838 public static readonly Color SpringGreen = NDalic.SPRING_GREEN;
841 /// Gets the steel_blue colored Color class.
843 [EditorBrowsable(EditorBrowsableState.Never)]
844 public static readonly Color SteelBlue = NDalic.STEEL_BLUE;
847 /// Gets the tan colored Color class.
849 [EditorBrowsable(EditorBrowsableState.Never)]
850 public static readonly Color Tan = NDalic.TAN;
853 /// Gets the teal colored Color class.
855 [EditorBrowsable(EditorBrowsableState.Never)]
856 public static readonly Color Teal = NDalic.TEAL;
859 /// Gets the thistle colored Color class.
861 [EditorBrowsable(EditorBrowsableState.Never)]
862 public static readonly Color Thistle = NDalic.THISTLE;
865 /// Gets the tomato colored Color class.
867 [EditorBrowsable(EditorBrowsableState.Never)]
868 public static readonly Color Tomato = NDalic.TOMATO;
871 /// Gets the transparent colored Color class.
873 /// <since_tizen> 3 </since_tizen>
874 public static readonly Color Transparent = NDalic.TRANSPARENT;
877 /// Gets the turquoise colored Color class.
879 [EditorBrowsable(EditorBrowsableState.Never)]
880 public static readonly Color Turquoise = NDalic.TURQUOISE;
883 /// Gets the violet colored Color class.
885 [EditorBrowsable(EditorBrowsableState.Never)]
886 public static readonly Color Violet = NDalic.VIOLET;
889 /// Gets the wheat colored Color class.
891 [EditorBrowsable(EditorBrowsableState.Never)]
892 public static readonly Color Wheat = NDalic.WHEAT;
895 /// Gets the white colored Color class.
897 /// <since_tizen> 3 </since_tizen>
898 public static readonly Color White = NDalic.WHITE;
901 /// Gets the white_smoke colored Color class.
903 [EditorBrowsable(EditorBrowsableState.Never)]
904 public static readonly Color WhiteSmoke = NDalic.WHITE_SMOKE;
907 /// Gets the yellow colored Color class.
909 /// <since_tizen> 3 </since_tizen>
910 public static readonly Color Yellow = NDalic.YELLOW;
913 /// Gets the yellow_green colored Color class.
915 [EditorBrowsable(EditorBrowsableState.Never)]
916 public static readonly Color YellowGreen = NDalic.YELLOW_GREEN;
919 private readonly bool hashDummy;
922 /// Default constructor
924 /// <since_tizen> 3 </since_tizen>
925 public Color() : this(Interop.Vector4.NewVector4(), true)
927 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
934 /// <param name="r">The red component.</param>
935 /// <param name="g">The green component.</param>
936 /// <param name="b">The blue component.</param>
937 /// <param name="a">The alpha component.</param>
938 /// <since_tizen> 3 </since_tizen>
939 public Color(float r, float g, float b, float a) : this(Interop.Vector4.NewVector4(ValueCheck(r), ValueCheck(g), ValueCheck(b), ValueCheck(a)), true)
941 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
945 /// The conversion constructor from an array of four floats.
947 /// <param name="array">array Array of R,G,B,A.</param>
948 /// <since_tizen> 3 </since_tizen>
949 public Color(float[] array) : this(Interop.Vector4.NewVector4(ValueCheck(array)), true)
951 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
955 /// The conversion constructor from text color representation.
956 /// hexcode representation : #RGB #RGBA #RRGGBB #RRGGBBAA
957 /// rgb representation : rgb(0-255,0-255,0-255) rgba(0-255,0-255,0-255,0.0-1.0)
959 /// <param name="textColor">color text representation as Hexcode, rgb() or rgba()</param>
960 /// <exception cref="ArgumentNullException">This exception is thrown when hexColor is null.</exception>
961 /// <since_tizen> 6 </since_tizen>
962 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
963 [EditorBrowsable(EditorBrowsableState.Never)]
964 public Color(string textColor) : this(Interop.Vector4.NewVector4(), true)
968 if (null == textColor)
970 throw new ArgumentNullException(nameof(textColor));
973 textColor = textColor.ToUpperInvariant();
974 textColor = textColor.Replace(" ", "");
976 if ( textColor.Length > 0 && textColor[0] == '#')
978 textColor = textColor.Replace("#", "");
979 int textColorLength = textColor.Length;
981 if (textColorLength == 6 || textColorLength == 8) /* #RRGGBB or #RRGGBBAA */
983 R = ((float)Convert.ToInt32(textColor.Substring(0, 2), 16)) / 255.0f;
984 G = ((float)Convert.ToInt32(textColor.Substring(2, 2), 16)) / 255.0f;
985 B = ((float)Convert.ToInt32(textColor.Substring(4, 2), 16)) / 255.0f;
986 A = textColor.Length > 6 ? ((float)Convert.ToInt32(textColor.Substring(6, 2), 16)) / 255.0f : 1.0f;
988 else if (textColorLength == 3 || textColorLength == 4) /* #RGB */
990 R = ((float)Convert.ToInt32(textColor.Substring(0, 1), 16)) / 15.0f;
991 G = ((float)Convert.ToInt32(textColor.Substring(1, 1), 16)) / 15.0f;
992 B = ((float)Convert.ToInt32(textColor.Substring(2, 1), 16)) / 15.0f;
993 A = textColor.Length > 3 ? ((float)Convert.ToInt32(textColor.Substring(3, 1), 16)) / 15.0f : 1.0f;
997 throw new global::System.ArgumentException("Please check your color text code");
1000 else // example rgb(255,255,255) or rgb(255,255,255,1.0)
1002 bool isRGBA = textColor.StartsWith("RGBA(");
1003 bool isRGB = textColor.StartsWith("RGB(");
1005 if(!isRGBA && !isRGB)
1007 throw new global::System.ArgumentException("Please check your color text code");
1011 textColor = textColor.Substring(4);
1013 textColor = textColor.Substring(3);
1015 textColor = textColor.Replace(")","");
1016 textColor = textColor.Replace("(","");
1018 string[] components = textColor.Split(',');
1020 if(components.Length == 3 && isRGB)
1022 R = Math.Min(1.0f, ((float)Convert.ToInt32(components[0], 10)) / 255.0f);
1023 G = Math.Min(1.0f, ((float)Convert.ToInt32(components[1], 10)) / 255.0f);
1024 B = Math.Min(1.0f, ((float)Convert.ToInt32(components[2], 10)) / 255.0f);
1027 else if(components.Length == 4 && isRGBA)
1029 R = Math.Min(1.0f, ((float)Convert.ToInt32(components[0], 10)) / 255.0f);
1030 G = Math.Min(1.0f, ((float)Convert.ToInt32(components[1], 10)) / 255.0f);
1031 B = Math.Min(1.0f, ((float)Convert.ToInt32(components[2], 10)) / 255.0f);
1032 A = Math.Min(1.0f, float.Parse(components[3]));
1038 throw new global::System.ArgumentException("Please check your color text code");
1043 /// The conversion constructor from an System.Drawing.Color instance.
1045 /// <param name="color">System.Drawing.Color instance</param>
1046 [EditorBrowsable(EditorBrowsableState.Never)]
1047 public Color(global::System.Drawing.Color color) : this(Interop.Vector4.NewVector4(), true)
1049 R = color.R / 255.0f;
1050 G = color.G / 255.0f;
1051 B = color.B / 255.0f;
1052 A = color.A / 255.0f;
1056 /// The copy constructor.
1058 /// <param name="other">The copy target.</param>
1059 [EditorBrowsable(EditorBrowsableState.Never)]
1060 public Color(Color other) : this((float)other?.R, (float)other.G, (float)other.B, (float)other.A)
1064 internal Color(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
1069 internal Color(ColorChangedCallback cb, float r, float g, float b, float a) : this(Interop.Vector4.NewVector4(ValueCheck(r), ValueCheck(g), ValueCheck(b), ValueCheck(a)), true)
1072 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1075 internal Color(ColorChangedCallback cb, Color other) : this(cb, other.R, other.G, other.B, other.A)
1079 internal delegate void ColorChangedCallback(float r, float g, float b, float a);
1080 private ColorChangedCallback callback = null;
1083 /// The red component.
1086 /// The setter is deprecated in API8 and will be removed in API10. Please use new Color(...) constructor.
1089 /// // DO NOT use like the followings!
1090 /// Color color = new Color();
1092 /// // Please USE like this
1093 /// float r = 0.1f, g = 0.5f, b = 0.9f, a = 1.0f;
1094 /// Color color = new Color(r, g, b, a);
1096 /// <since_tizen> 3 </since_tizen>
1101 Tizen.Log.Fatal("NUI", "Please do not use this setter, Deprecated in API8, will be removed in API10. please use new Color(...) constructor");
1102 Interop.Vector4.RSet(SwigCPtr, ValueCheck(value));
1103 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1105 callback?.Invoke(R, G, B, A);
1109 float ret = Interop.Vector4.RGet(SwigCPtr);
1110 if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
1116 /// The green component.
1119 /// The setter is deprecated in API8 and will be removed in API10. Please use new Color(...) constructor.
1122 /// // DO NOT use like the followings!
1123 /// Color color = new Color();
1125 /// // Please USE like this
1126 /// float r = 0.1f, g = 0.5f, b = 0.9f, a = 1.0f;
1127 /// Color color = new Color(r, g, b, a);
1129 /// <since_tizen> 3 </since_tizen>
1134 Tizen.Log.Fatal("NUI", "Please do not use this setter, Deprecated in API8, will be removed in API10. please use new Color(...) constructor");
1135 Interop.Vector4.GSet(SwigCPtr, ValueCheck(value));
1136 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1138 callback?.Invoke(R, G, B, A);
1142 float ret = Interop.Vector4.GGet(SwigCPtr);
1143 if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
1149 /// The blue component.
1152 /// The setter is deprecated in API8 and will be removed in API10. Please use new Color(...) constructor.
1155 /// // DO NOT use like the followings!
1156 /// Color color = new Color();
1158 /// // Please USE like this
1159 /// float r = 0.1f, g = 0.5f, b = 0.9f, a = 1.0f;
1160 /// Color color = new Color(r, g, b, a);
1162 /// <since_tizen> 3 </since_tizen>
1167 Tizen.Log.Fatal("NUI", "Please do not use this setter, Deprecated in API8, will be removed in API10. please use new Color(...) constructor");
1168 Interop.Vector4.BSet(SwigCPtr, ValueCheck(value));
1169 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1171 callback?.Invoke(R, G, B, A);
1175 float ret = Interop.Vector4.BGet(SwigCPtr);
1176 if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
1182 /// The alpha component.
1185 /// The setter is deprecated in API8 and will be removed in API10. Please use new Color(...) constructor.
1188 /// // DO NOT use like the followings!
1189 /// Color color = new Color();
1191 /// // Please USE like this
1192 /// float r = 0.1f, g = 0.5f, b = 0.9f, a = 1.0f;
1193 /// Color color = new Color(r, g, b, a);
1195 /// <since_tizen> 3 </since_tizen>
1200 Tizen.Log.Fatal("NUI", "Please do not use this setter, Deprecated in API8, will be removed in API10. please use new Color(...) constructor");
1201 Interop.Vector4.ASet(SwigCPtr, ValueCheck(value));
1202 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1204 callback?.Invoke(R, G, B, A);
1208 float ret = Interop.Vector4.AGet(SwigCPtr);
1209 if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
1215 /// The array subscript operator overload.
1217 /// <param name="index">The subscript index.</param>
1218 /// <returns>The float at the given index.</returns>
1219 /// <since_tizen> 3 </since_tizen>
1220 public float this[uint index]
1224 return ValueOfIndex(index);
1229 /// Converts the Color class to Vector4 class implicitly.
1231 /// <param name="color">A color to be converted to Vector4</param>
1232 /// <since_tizen> 3 </since_tizen>
1233 public static implicit operator Vector4(Color color)
1235 return new Vector4((float)color?.R, (float)color.G, (float)color.B, (float)color.A);
1239 /// Converts Vector4 class to Color class implicitly.
1241 /// <param name="vec">A Vector4 to be converted to color.</param>
1242 /// <since_tizen> 3 </since_tizen>
1243 public static implicit operator Color(Vector4 vec)
1245 return new Color((float)vec?.R, (float)vec.G, (float)vec.B, (float)vec.A);
1249 /// The addition operator.
1251 /// <param name="arg1">The first value.</param>
1252 /// <param name="arg2">The second value.</param>
1253 /// <returns>The color containing the result of the addition.</returns>
1254 /// <exception cref="ArgumentNullException"> Thrown when arg1 is null. </exception>
1255 /// <since_tizen> 3 </since_tizen>
1256 public static Color operator +(Color arg1, Color arg2)
1260 throw new ArgumentNullException(nameof(arg1));
1262 Color result = arg1.Add(arg2);
1263 return ValueCheck(result);
1267 /// The subtraction operator.
1269 /// <param name="arg1">The first value.</param>
1270 /// <param name="arg2">The second value.</param>
1271 /// <returns>The color containing the result of the subtraction.</returns>
1272 /// <exception cref="ArgumentNullException"> Thrown when arg1 is null. </exception>
1273 /// <since_tizen> 3 </since_tizen>
1274 public static Color operator -(Color arg1, Color arg2)
1278 throw new ArgumentNullException(nameof(arg1));
1280 Color result = arg1.Subtract(arg2);
1281 return ValueCheck(result);
1285 /// The unary negation operator.
1287 /// <param name="arg1">The target value.</param>
1288 /// <returns>The color containg the negation.</returns>
1289 /// <exception cref="ArgumentNullException"> Thrown when arg1 is null. </exception>
1290 /// <since_tizen> 3 </since_tizen>
1291 public static Color operator -(Color arg1)
1295 throw new ArgumentNullException(nameof(arg1));
1297 Color result = arg1.Subtract();
1298 return ValueCheck(result);
1302 /// The multiplication operator.
1304 /// <param name="arg1">The first value.</param>
1305 /// <param name="arg2">The second value.</param>
1306 /// <returns>The color containing the result of the multiplication.</returns>
1307 /// <exception cref="ArgumentNullException"> Thrown when arg1 is null. </exception>
1308 /// <since_tizen> 3 </since_tizen>
1309 public static Color operator *(Color arg1, Color arg2)
1313 throw new ArgumentNullException(nameof(arg1));
1315 Color result = arg1.Multiply(arg2);
1316 return ValueCheck(result);
1320 /// The multiplication operator.
1322 /// <param name="arg1">The first value.</param>
1323 /// <param name="arg2">The second value.</param>
1324 /// <returns>The color containing the result of the multiplication.</returns>
1325 /// <exception cref="ArgumentNullException"> Thrown when arg1 is null. </exception>
1326 /// <since_tizen> 3 </since_tizen>
1327 public static Color operator *(Color arg1, float arg2)
1331 throw new ArgumentNullException(nameof(arg1));
1333 Color result = arg1.Multiply(arg2);
1334 return ValueCheck(result);
1338 /// The division operator.
1340 /// <param name="arg1">The first value.</param>
1341 /// <param name="arg2">The second value.</param>
1342 /// <returns>The color containing the result of the division.</returns>
1343 /// <exception cref="ArgumentNullException"> Thrown when arg1 is null. </exception>
1344 /// <since_tizen> 3 </since_tizen>
1345 public static Color operator /(Color arg1, Color arg2)
1349 throw new ArgumentNullException(nameof(arg1));
1351 Color result = arg1.Divide(arg2);
1352 return ValueCheck(result);
1356 /// The division operator.
1358 /// <param name="arg1">The first value.</param>
1359 /// <param name="arg2">The second value.</param>
1360 /// <returns>The color containing the result of the division.</returns>
1361 /// <exception cref="ArgumentNullException"> Thrown when arg1 is null. </exception>
1362 /// <since_tizen> 3 </since_tizen>
1363 public static Color operator /(Color arg1, float arg2)
1367 throw new ArgumentNullException(nameof(arg1));
1369 Color result = arg1.Divide(arg2);
1370 return ValueCheck(result);
1374 /// Checks if two color classes are same.
1376 /// <param name="rhs">A color to be compared.</param>
1377 /// <returns>If two colors are are same, then true.</returns>
1378 /// <since_tizen> 3 </since_tizen>
1379 public bool EqualTo(Color rhs)
1381 bool ret = Interop.Vector4.EqualTo(SwigCPtr, Color.getCPtr(rhs));
1383 if (rhs == null) return false;
1385 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1390 /// Checks if two color classes are different.
1392 /// <param name="rhs">A color to be compared.</param>
1393 /// <returns>If two colors are are different, then true.</returns>
1394 /// <since_tizen> 3 </since_tizen>
1395 public bool NotEqualTo(Color rhs)
1397 bool ret = Interop.Vector4.NotEqualTo(SwigCPtr, Color.getCPtr(rhs));
1398 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1403 [EditorBrowsable(EditorBrowsableState.Never)]
1404 public object Clone() => new Color(this);
1406 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Color obj)
1408 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.SwigCPtr;
1411 internal static Color GetColorFromPtr(global::System.IntPtr cPtr)
1413 Color ret = new Color(cPtr, false);
1414 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1418 internal static Color ValueCheck(Color color)
1425 if (IsInvalidValue(ref r) | IsInvalidValue(ref g) | IsInvalidValue(ref b) | IsInvalidValue(ref a))
1427 NUILog.Error($"The value of Result is invalid! Should be between [0, 1]. Color is {color.R}, {color.G}, {color.B}, {color.A}");
1429 color = new Color(r, g, b, a);
1433 internal static float ValueCheck(float value)
1435 float refValue = value;
1436 if (IsInvalidValue(ref refValue))
1438 NUILog.Error($"The value of Result is invalid! Should be between [0, 1]. float value is {value}");
1443 internal static float[] ValueCheck(float[] arr)
1447 throw new ArgumentNullException(nameof(arr));
1450 for (int i = 0; i < arr.Length; i++)
1452 float refValue = arr[i];
1453 if (IsInvalidValue(ref refValue))
1455 NUILog.Error($"The value of Result is invalid! Should be between [0, 1]. arr[] is {arr[i]}");
1462 private static bool IsInvalidValue(ref float value)
1469 else if (value > 1.0f)
1477 /// This will not be public opened.
1478 [EditorBrowsable(EditorBrowsableState.Never)]
1479 protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
1481 Interop.Vector4.DeleteVector4(swigCPtr);
1484 private Color Add(Color rhs)
1486 Color ret = new Color(Interop.Vector4.Add(SwigCPtr, Color.getCPtr(rhs)), true);
1487 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1491 private Color AddAssign(Vector4 rhs)
1493 Color ret = new Color(Interop.Vector4.AddAssign(SwigCPtr, Color.getCPtr(rhs)), false);
1494 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1498 private Color Subtract(Color rhs)
1500 Color ret = new Color(Interop.Vector4.Subtract(SwigCPtr, Color.getCPtr(rhs)), true);
1501 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1505 private Color SubtractAssign(Color rhs)
1507 Color ret = new Color(Interop.Vector4.SubtractAssign(SwigCPtr, Color.getCPtr(rhs)), false);
1508 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1512 private Color Multiply(Color rhs)
1514 Color ret = new Color(Interop.Vector4.Multiply(SwigCPtr, Color.getCPtr(rhs)), true);
1515 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1519 private Color Multiply(float rhs)
1521 Color ret = new Color(Interop.Vector4.Multiply(SwigCPtr, rhs), true);
1522 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1526 private Color MultiplyAssign(Color rhs)
1528 Color ret = new Color(Interop.Vector4.MultiplyAssign(SwigCPtr, Color.getCPtr(rhs)), false);
1529 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1533 private Color MultiplyAssign(float rhs)
1535 Color ret = new Color(Interop.Vector4.MultiplyAssign(SwigCPtr, rhs), false);
1536 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1540 private Color Divide(Vector4 rhs)
1542 Color ret = new Color(Interop.Vector4.Divide(SwigCPtr, Color.getCPtr(rhs)), true);
1543 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1547 private Color Divide(float rhs)
1549 Color ret = new Color(Interop.Vector4.Divide(SwigCPtr, rhs), true);
1550 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1554 private Color DivideAssign(Color rhs)
1556 Color ret = new Color(Interop.Vector4.DivideAssign(SwigCPtr, Color.getCPtr(rhs)), false);
1557 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1561 private Color DivideAssign(float rhs)
1563 Color ret = new Color(Interop.Vector4.DivideAssign(SwigCPtr, rhs), false);
1564 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1568 private Color Subtract()
1570 Color ret = new Color(Interop.Vector4.Subtract(SwigCPtr), true);
1571 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1575 private static bool EqualsColorValue(float f1, float f2)
1577 float EPS = (float)Math.Abs(f1 * .00001);
1578 if (Math.Abs(f1 - f2) <= EPS)
1588 private static bool EqualsColor(Color c1, Color c2)
1590 return EqualsColorValue(c1.R, c2.R) && EqualsColorValue(c1.G, c2.G)
1591 && EqualsColorValue(c1.B, c2.B) && EqualsColorValue(c1.A, c2.A);
1595 /// Determines whether the specified object is equal to the current object.
1597 /// <param name="obj">The object to compare with the current object.</param>
1598 /// <returns>true if the specified object is equal to the current object; otherwise, false.</returns>
1599 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1600 [EditorBrowsable(EditorBrowsableState.Never)]
1601 public override bool Equals(System.Object obj)
1603 Color color = obj as Color;
1610 if (EqualsColor(this, color))
1617 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1618 [EditorBrowsable(EditorBrowsableState.Never)]
1619 public override int GetHashCode()
1621 return hashDummy.GetHashCode();
1624 private float ValueOfIndex(uint index)
1626 float ret = Interop.Vector4.ValueOfIndex(SwigCPtr, index);
1627 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();