The JUCE cross-platform C++ framework, with DISTRHO/KXStudio specific changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

111 lines
5.6KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library - "Jules' Utility Class Extensions"
  4. Copyright 2004-11 by Raw Material Software Ltd.
  5. ------------------------------------------------------------------------------
  6. JUCE can be redistributed and/or modified under the terms of the GNU General
  7. Public License (Version 2), as published by the Free Software Foundation.
  8. A copy of the license is included in the JUCE distribution, or can be found
  9. online at www.gnu.org/licenses.
  10. JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
  11. WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  12. A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  13. ------------------------------------------------------------------------------
  14. To release a closed-source product which uses JUCE, commercial licenses are
  15. available: visit www.rawmaterialsoftware.com/juce for more information.
  16. ==============================================================================
  17. */
  18. #ifndef __JUCE_COLOURS_JUCEHEADER__
  19. #define __JUCE_COLOURS_JUCEHEADER__
  20. #include "juce_Colour.h"
  21. //==============================================================================
  22. /**
  23. Contains a set of predefined named colours (mostly standard HTML colours)
  24. @see Colour, Colours::greyLevel
  25. */
  26. class Colours
  27. {
  28. public:
  29. static JUCE_API const Colour
  30. //==============================================================================
  31. transparentBlack, /**< ARGB = 0x00000000 */
  32. transparentWhite, /**< ARGB = 0x00ffffff */
  33. //==============================================================================
  34. black, /**< ARGB = 0xff000000 */
  35. white, /**< ARGB = 0xffffffff */
  36. blue, /**< ARGB = 0xff0000ff */
  37. grey, /**< ARGB = 0xff808080 */
  38. green, /**< ARGB = 0xff008000 */
  39. red, /**< ARGB = 0xffff0000 */
  40. yellow, /**< ARGB = 0xffffff00 */
  41. //==============================================================================
  42. aliceblue, antiquewhite, aqua, aquamarine,
  43. azure, beige, bisque, blanchedalmond,
  44. blueviolet, brown, burlywood, cadetblue,
  45. chartreuse, chocolate, coral, cornflowerblue,
  46. cornsilk, crimson, cyan, darkblue,
  47. darkcyan, darkgoldenrod, darkgrey, darkgreen,
  48. darkkhaki, darkmagenta, darkolivegreen, darkorange,
  49. darkorchid, darkred, darksalmon, darkseagreen,
  50. darkslateblue, darkslategrey, darkturquoise, darkviolet,
  51. deeppink, deepskyblue, dimgrey, dodgerblue,
  52. firebrick, floralwhite, forestgreen, fuchsia,
  53. gainsboro, gold, goldenrod, greenyellow,
  54. honeydew, hotpink, indianred, indigo,
  55. ivory, khaki, lavender, lavenderblush,
  56. lemonchiffon, lightblue, lightcoral, lightcyan,
  57. lightgoldenrodyellow, lightgreen, lightgrey, lightpink,
  58. lightsalmon, lightseagreen, lightskyblue, lightslategrey,
  59. lightsteelblue, lightyellow, lime, limegreen,
  60. linen, magenta, maroon, mediumaquamarine,
  61. mediumblue, mediumorchid, mediumpurple, mediumseagreen,
  62. mediumslateblue, mediumspringgreen, mediumturquoise, mediumvioletred,
  63. midnightblue, mintcream, mistyrose, navajowhite,
  64. navy, oldlace, olive, olivedrab,
  65. orange, orangered, orchid, palegoldenrod,
  66. palegreen, paleturquoise, palevioletred, papayawhip,
  67. peachpuff, peru, pink, plum,
  68. powderblue, purple, rosybrown, royalblue,
  69. saddlebrown, salmon, sandybrown, seagreen,
  70. seashell, sienna, silver, skyblue,
  71. slateblue, slategrey, snow, springgreen,
  72. steelblue, tan, teal, thistle,
  73. tomato, turquoise, violet, wheat,
  74. whitesmoke, yellowgreen;
  75. /** Attempts to look up a string in the list of known colour names, and return
  76. the appropriate colour.
  77. A non-case-sensitive search is made of the list of predefined colours, and
  78. if a match is found, that colour is returned. If no match is found, the
  79. colour passed in as the defaultColour parameter is returned.
  80. */
  81. static JUCE_API Colour findColourForName (const String& colourName,
  82. const Colour& defaultColour);
  83. private:
  84. //==============================================================================
  85. // this isn't a class you should ever instantiate - it's just here for the
  86. // static values in it.
  87. Colours();
  88. JUCE_DECLARE_NON_COPYABLE (Colours);
  89. };
  90. #endif // __JUCE_COLOURS_JUCEHEADER__