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 /// <exception cref="ArgumentNullException"> Thrown when other is null. </exception>
1060 [EditorBrowsable(EditorBrowsableState.Never)]
1061 public Color(Color other) : this(other == null ? throw new ArgumentNullException(nameof(other)) : other.R, other.G, other.B, other.A)
1065 internal Color(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
1070 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)
1073 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1076 internal Color(ColorChangedCallback cb, Color other) : this(cb, other.R, other.G, other.B, other.A)
1080 internal delegate void ColorChangedCallback(float r, float g, float b, float a);
1081 private ColorChangedCallback callback = null;
1084 /// The red component.
1087 /// The setter is deprecated in API8 and will be removed in API10. Please use new Color(...) constructor.
1090 /// // DO NOT use like the followings!
1091 /// Color color = new Color();
1093 /// // Please USE like this
1094 /// float r = 0.1f, g = 0.5f, b = 0.9f, a = 1.0f;
1095 /// Color color = new Color(r, g, b, a);
1097 /// <since_tizen> 3 </since_tizen>
1102 Tizen.Log.Fatal("NUI", "Please do not use this setter, Deprecated in API8, will be removed in API10. please use new Color(...) constructor");
1103 Interop.Vector4.RSet(SwigCPtr, ValueCheck(value));
1104 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1106 callback?.Invoke(R, G, B, A);
1110 float ret = Interop.Vector4.RGet(SwigCPtr);
1111 if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
1117 /// The green component.
1120 /// The setter is deprecated in API8 and will be removed in API10. Please use new Color(...) constructor.
1123 /// // DO NOT use like the followings!
1124 /// Color color = new Color();
1126 /// // Please USE like this
1127 /// float r = 0.1f, g = 0.5f, b = 0.9f, a = 1.0f;
1128 /// Color color = new Color(r, g, b, a);
1130 /// <since_tizen> 3 </since_tizen>
1135 Tizen.Log.Fatal("NUI", "Please do not use this setter, Deprecated in API8, will be removed in API10. please use new Color(...) constructor");
1136 Interop.Vector4.GSet(SwigCPtr, ValueCheck(value));
1137 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1139 callback?.Invoke(R, G, B, A);
1143 float ret = Interop.Vector4.GGet(SwigCPtr);
1144 if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
1150 /// The blue component.
1153 /// The setter is deprecated in API8 and will be removed in API10. Please use new Color(...) constructor.
1156 /// // DO NOT use like the followings!
1157 /// Color color = new Color();
1159 /// // Please USE like this
1160 /// float r = 0.1f, g = 0.5f, b = 0.9f, a = 1.0f;
1161 /// Color color = new Color(r, g, b, a);
1163 /// <since_tizen> 3 </since_tizen>
1168 Tizen.Log.Fatal("NUI", "Please do not use this setter, Deprecated in API8, will be removed in API10. please use new Color(...) constructor");
1169 Interop.Vector4.BSet(SwigCPtr, ValueCheck(value));
1170 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1172 callback?.Invoke(R, G, B, A);
1176 float ret = Interop.Vector4.BGet(SwigCPtr);
1177 if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
1183 /// The alpha component.
1186 /// The setter is deprecated in API8 and will be removed in API10. Please use new Color(...) constructor.
1189 /// // DO NOT use like the followings!
1190 /// Color color = new Color();
1192 /// // Please USE like this
1193 /// float r = 0.1f, g = 0.5f, b = 0.9f, a = 1.0f;
1194 /// Color color = new Color(r, g, b, a);
1196 /// <since_tizen> 3 </since_tizen>
1201 Tizen.Log.Fatal("NUI", "Please do not use this setter, Deprecated in API8, will be removed in API10. please use new Color(...) constructor");
1202 Interop.Vector4.ASet(SwigCPtr, ValueCheck(value));
1203 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1205 callback?.Invoke(R, G, B, A);
1209 float ret = Interop.Vector4.AGet(SwigCPtr);
1210 if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
1216 /// The array subscript operator overload.
1218 /// <param name="index">The subscript index.</param>
1219 /// <returns>The float at the given index.</returns>
1220 /// <since_tizen> 3 </since_tizen>
1221 public float this[uint index]
1225 return ValueOfIndex(index);
1230 /// Converts the Color class to Vector4 class implicitly.
1232 /// <param name="color">A color to be converted to Vector4</param>
1233 /// <since_tizen> 3 </since_tizen>
1234 public static implicit operator Vector4(Color color)
1240 return new Vector4(color.R, color.G, color.B, color.A);
1244 /// Converts Vector4 class to Color class implicitly.
1246 /// <param name="vec">A Vector4 to be converted to color.</param>
1247 /// <since_tizen> 3 </since_tizen>
1248 public static implicit operator Color(Vector4 vec)
1254 return new Color(vec.R, vec.G, vec.B, vec.A);
1258 /// The addition operator.
1260 /// <param name="arg1">The first value.</param>
1261 /// <param name="arg2">The second value.</param>
1262 /// <returns>The color containing the result of the addition.</returns>
1263 /// <exception cref="ArgumentNullException"> Thrown when arg1 is null. </exception>
1264 /// <since_tizen> 3 </since_tizen>
1265 public static Color operator +(Color arg1, Color arg2)
1269 throw new ArgumentNullException(nameof(arg1));
1271 Color result = arg1.Add(arg2);
1272 return ValueCheck(result);
1276 /// The subtraction operator.
1278 /// <param name="arg1">The first value.</param>
1279 /// <param name="arg2">The second value.</param>
1280 /// <returns>The color containing the result of the subtraction.</returns>
1281 /// <exception cref="ArgumentNullException"> Thrown when arg1 is null. </exception>
1282 /// <since_tizen> 3 </since_tizen>
1283 public static Color operator -(Color arg1, Color arg2)
1287 throw new ArgumentNullException(nameof(arg1));
1289 Color result = arg1.Subtract(arg2);
1290 return ValueCheck(result);
1294 /// The unary negation operator.
1296 /// <param name="arg1">The target value.</param>
1297 /// <returns>The color containg the negation.</returns>
1298 /// <exception cref="ArgumentNullException"> Thrown when arg1 is null. </exception>
1299 /// <since_tizen> 3 </since_tizen>
1300 public static Color operator -(Color arg1)
1304 throw new ArgumentNullException(nameof(arg1));
1306 Color result = arg1.Subtract();
1307 return ValueCheck(result);
1311 /// The multiplication operator.
1313 /// <param name="arg1">The first value.</param>
1314 /// <param name="arg2">The second value.</param>
1315 /// <returns>The color containing the result of the multiplication.</returns>
1316 /// <exception cref="ArgumentNullException"> Thrown when arg1 is null. </exception>
1317 /// <since_tizen> 3 </since_tizen>
1318 public static Color operator *(Color arg1, Color arg2)
1322 throw new ArgumentNullException(nameof(arg1));
1324 Color result = arg1.Multiply(arg2);
1325 return ValueCheck(result);
1329 /// The multiplication operator.
1331 /// <param name="arg1">The first value.</param>
1332 /// <param name="arg2">The second value.</param>
1333 /// <returns>The color containing the result of the multiplication.</returns>
1334 /// <exception cref="ArgumentNullException"> Thrown when arg1 is null. </exception>
1335 /// <since_tizen> 3 </since_tizen>
1336 public static Color operator *(Color arg1, float arg2)
1340 throw new ArgumentNullException(nameof(arg1));
1342 Color result = arg1.Multiply(arg2);
1343 return ValueCheck(result);
1347 /// The division operator.
1349 /// <param name="arg1">The first value.</param>
1350 /// <param name="arg2">The second value.</param>
1351 /// <returns>The color containing the result of the division.</returns>
1352 /// <exception cref="ArgumentNullException"> Thrown when arg1 is null. </exception>
1353 /// <since_tizen> 3 </since_tizen>
1354 public static Color operator /(Color arg1, Color arg2)
1358 throw new ArgumentNullException(nameof(arg1));
1360 Color result = arg1.Divide(arg2);
1361 return ValueCheck(result);
1365 /// The division operator.
1367 /// <param name="arg1">The first value.</param>
1368 /// <param name="arg2">The second value.</param>
1369 /// <returns>The color containing the result of the division.</returns>
1370 /// <exception cref="ArgumentNullException"> Thrown when arg1 is null. </exception>
1371 /// <since_tizen> 3 </since_tizen>
1372 public static Color operator /(Color arg1, float arg2)
1376 throw new ArgumentNullException(nameof(arg1));
1378 Color result = arg1.Divide(arg2);
1379 return ValueCheck(result);
1383 /// Checks if two color classes are same.
1385 /// <param name="rhs">A color to be compared.</param>
1386 /// <returns>If two colors are are same, then true.</returns>
1387 /// <since_tizen> 3 </since_tizen>
1388 public bool EqualTo(Color rhs)
1390 bool ret = Interop.Vector4.EqualTo(SwigCPtr, Color.getCPtr(rhs));
1392 if (rhs == null) return false;
1394 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1399 /// Checks if two color classes are different.
1401 /// <param name="rhs">A color to be compared.</param>
1402 /// <returns>If two colors are are different, then true.</returns>
1403 /// <since_tizen> 3 </since_tizen>
1404 public bool NotEqualTo(Color rhs)
1406 bool ret = Interop.Vector4.NotEqualTo(SwigCPtr, Color.getCPtr(rhs));
1407 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1412 [EditorBrowsable(EditorBrowsableState.Never)]
1413 public object Clone() => new Color(this);
1415 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Color obj)
1417 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.SwigCPtr;
1420 internal static Color GetColorFromPtr(global::System.IntPtr cPtr)
1422 Color ret = new Color(cPtr, false);
1423 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1427 internal static Color ValueCheck(Color color)
1434 if (IsInvalidValue(ref r) | IsInvalidValue(ref g) | IsInvalidValue(ref b) | IsInvalidValue(ref a))
1436 NUILog.Error($"The value of Result is invalid! Should be between [0, 1]. Color is {color.R}, {color.G}, {color.B}, {color.A}");
1438 color = new Color(r, g, b, a);
1442 internal static float ValueCheck(float value)
1444 float refValue = value;
1445 if (IsInvalidValue(ref refValue))
1447 NUILog.Error($"The value of Result is invalid! Should be between [0, 1]. float value is {value}");
1452 internal static float[] ValueCheck(float[] arr)
1456 throw new ArgumentNullException(nameof(arr));
1459 for (int i = 0; i < arr.Length; i++)
1461 float refValue = arr[i];
1462 if (IsInvalidValue(ref refValue))
1464 NUILog.Error($"The value of Result is invalid! Should be between [0, 1]. arr[] is {arr[i]}");
1471 private static bool IsInvalidValue(ref float value)
1478 else if (value > 1.0f)
1486 /// This will not be public opened.
1487 [EditorBrowsable(EditorBrowsableState.Never)]
1488 protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
1490 Interop.Vector4.DeleteVector4(swigCPtr);
1493 private Color Add(Color rhs)
1495 Color ret = new Color(Interop.Vector4.Add(SwigCPtr, Color.getCPtr(rhs)), true);
1496 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1500 private Color AddAssign(Vector4 rhs)
1502 Color ret = new Color(Interop.Vector4.AddAssign(SwigCPtr, Color.getCPtr(rhs)), false);
1503 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1507 private Color Subtract(Color rhs)
1509 Color ret = new Color(Interop.Vector4.Subtract(SwigCPtr, Color.getCPtr(rhs)), true);
1510 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1514 private Color SubtractAssign(Color rhs)
1516 Color ret = new Color(Interop.Vector4.SubtractAssign(SwigCPtr, Color.getCPtr(rhs)), false);
1517 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1521 private Color Multiply(Color rhs)
1523 Color ret = new Color(Interop.Vector4.Multiply(SwigCPtr, Color.getCPtr(rhs)), true);
1524 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1528 private Color Multiply(float rhs)
1530 Color ret = new Color(Interop.Vector4.Multiply(SwigCPtr, rhs), true);
1531 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1535 private Color MultiplyAssign(Color rhs)
1537 Color ret = new Color(Interop.Vector4.MultiplyAssign(SwigCPtr, Color.getCPtr(rhs)), false);
1538 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1542 private Color MultiplyAssign(float rhs)
1544 Color ret = new Color(Interop.Vector4.MultiplyAssign(SwigCPtr, rhs), false);
1545 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1549 private Color Divide(Vector4 rhs)
1551 Color ret = new Color(Interop.Vector4.Divide(SwigCPtr, Color.getCPtr(rhs)), true);
1552 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1556 private Color Divide(float rhs)
1558 Color ret = new Color(Interop.Vector4.Divide(SwigCPtr, rhs), true);
1559 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1563 private Color DivideAssign(Color rhs)
1565 Color ret = new Color(Interop.Vector4.DivideAssign(SwigCPtr, Color.getCPtr(rhs)), false);
1566 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1570 private Color DivideAssign(float rhs)
1572 Color ret = new Color(Interop.Vector4.DivideAssign(SwigCPtr, rhs), false);
1573 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1577 private Color Subtract()
1579 Color ret = new Color(Interop.Vector4.Subtract(SwigCPtr), true);
1580 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1584 private static bool EqualsColorValue(float f1, float f2)
1586 float EPS = (float)Math.Abs(f1 * .00001);
1587 if (Math.Abs(f1 - f2) <= EPS)
1597 private static bool EqualsColor(Color c1, Color c2)
1599 return EqualsColorValue(c1.R, c2.R) && EqualsColorValue(c1.G, c2.G)
1600 && EqualsColorValue(c1.B, c2.B) && EqualsColorValue(c1.A, c2.A);
1604 /// Determines whether the specified object is equal to the current object.
1606 /// <param name="obj">The object to compare with the current object.</param>
1607 /// <returns>true if the specified object is equal to the current object; otherwise, false.</returns>
1608 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1609 [EditorBrowsable(EditorBrowsableState.Never)]
1610 public override bool Equals(System.Object obj)
1612 Color color = obj as Color;
1619 if (EqualsColor(this, color))
1626 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1627 [EditorBrowsable(EditorBrowsableState.Never)]
1628 public override int GetHashCode()
1630 return hashDummy.GetHashCode();
1633 private float ValueOfIndex(uint index)
1635 float ret = Interop.Vector4.ValueOfIndex(SwigCPtr, index);
1636 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();