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.

112 lines
5.3KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2017 - ROLI Ltd.
  5. JUCE is an open source library subject to commercial or open-source
  6. licensing.
  7. By using JUCE, you agree to the terms of both the JUCE 5 End-User License
  8. Agreement and JUCE 5 Privacy Policy (both updated and effective as of the
  9. 27th April 2017).
  10. End User License Agreement: www.juce.com/juce-5-licence
  11. Privacy Policy: www.juce.com/juce-5-privacy-policy
  12. Or: You may also use this code under the terms of the GPL v3 (see
  13. www.gnu.org/licenses).
  14. JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
  15. EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
  16. DISCLAIMED.
  17. ==============================================================================
  18. */
  19. namespace juce
  20. {
  21. //==============================================================================
  22. /**
  23. Contains a set of predefined named colours (mostly standard HTML colours)
  24. @see Colour
  25. @tags{Graphics}
  26. */
  27. class Colours
  28. {
  29. public:
  30. static JUCE_API const Colour
  31. //==============================================================================
  32. transparentBlack, /**< ARGB = 0x00000000 */
  33. transparentWhite, /**< ARGB = 0x00ffffff */
  34. //==============================================================================
  35. black, /**< ARGB = 0xff000000 */
  36. white, /**< ARGB = 0xffffffff */
  37. blue, /**< ARGB = 0xff0000ff */
  38. grey, /**< ARGB = 0xff808080 */
  39. green, /**< ARGB = 0xff008000 */
  40. red, /**< ARGB = 0xffff0000 */
  41. yellow, /**< ARGB = 0xffffff00 */
  42. //==============================================================================
  43. aliceblue, antiquewhite, aqua, aquamarine,
  44. azure, beige, bisque, blanchedalmond,
  45. blueviolet, brown, burlywood, cadetblue,
  46. chartreuse, chocolate, coral, cornflowerblue,
  47. cornsilk, crimson, cyan, darkblue,
  48. darkcyan, darkgoldenrod, darkgrey, darkgreen,
  49. darkkhaki, darkmagenta, darkolivegreen, darkorange,
  50. darkorchid, darkred, darksalmon, darkseagreen,
  51. darkslateblue, darkslategrey, darkturquoise, darkviolet,
  52. deeppink, deepskyblue, dimgrey, dodgerblue,
  53. firebrick, floralwhite, forestgreen, fuchsia,
  54. gainsboro, ghostwhite, gold, goldenrod,
  55. greenyellow, honeydew, hotpink, indianred,
  56. indigo, ivory, khaki, lavender,
  57. lavenderblush, lawngreen, lemonchiffon, lightblue,
  58. lightcoral, lightcyan, lightgoldenrodyellow, lightgreen,
  59. lightgrey, lightpink, lightsalmon, lightseagreen,
  60. lightskyblue, lightslategrey, lightsteelblue, lightyellow,
  61. lime, limegreen, linen, magenta,
  62. maroon, mediumaquamarine, mediumblue, mediumorchid,
  63. mediumpurple, mediumseagreen, mediumslateblue, mediumspringgreen,
  64. mediumturquoise, mediumvioletred, midnightblue, mintcream,
  65. mistyrose, moccasin, navajowhite, navy,
  66. oldlace, olive, olivedrab, orange,
  67. orangered, orchid, palegoldenrod, palegreen,
  68. paleturquoise, palevioletred, papayawhip, peachpuff,
  69. peru, pink, plum, powderblue,
  70. purple, rebeccapurple, rosybrown, royalblue,
  71. saddlebrown, salmon, sandybrown, seagreen,
  72. seashell, sienna, silver, skyblue,
  73. slateblue, slategrey, snow, springgreen,
  74. steelblue, tan, teal, thistle,
  75. tomato, turquoise, violet, wheat,
  76. whitesmoke, yellowgreen;
  77. /** Attempts to look up a string in the list of known colour names, and return
  78. the appropriate colour.
  79. A non-case-sensitive search is made of the list of predefined colours, and
  80. if a match is found, that colour is returned. If no match is found, the
  81. colour passed in as the defaultColour parameter is returned.
  82. */
  83. static JUCE_API Colour findColourForName (const String& colourName,
  84. Colour defaultColour);
  85. private:
  86. //==============================================================================
  87. // this isn't a class you should ever instantiate - it's just here for the
  88. // static values in it.
  89. Colours();
  90. JUCE_DECLARE_NON_COPYABLE (Colours)
  91. };
  92. } // namespace juce