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.

108 lines
5.2KB

  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. #pragma once
  20. //==============================================================================
  21. /**
  22. Contains a set of predefined named colours (mostly standard HTML colours)
  23. @see Colour, Colours::greyLevel
  24. */
  25. class Colours
  26. {
  27. public:
  28. static JUCE_API const Colour
  29. //==============================================================================
  30. transparentBlack, /**< ARGB = 0x00000000 */
  31. transparentWhite, /**< ARGB = 0x00ffffff */
  32. //==============================================================================
  33. black, /**< ARGB = 0xff000000 */
  34. white, /**< ARGB = 0xffffffff */
  35. blue, /**< ARGB = 0xff0000ff */
  36. grey, /**< ARGB = 0xff808080 */
  37. green, /**< ARGB = 0xff008000 */
  38. red, /**< ARGB = 0xffff0000 */
  39. yellow, /**< ARGB = 0xffffff00 */
  40. //==============================================================================
  41. aliceblue, antiquewhite, aqua, aquamarine,
  42. azure, beige, bisque, blanchedalmond,
  43. blueviolet, brown, burlywood, cadetblue,
  44. chartreuse, chocolate, coral, cornflowerblue,
  45. cornsilk, crimson, cyan, darkblue,
  46. darkcyan, darkgoldenrod, darkgrey, darkgreen,
  47. darkkhaki, darkmagenta, darkolivegreen, darkorange,
  48. darkorchid, darkred, darksalmon, darkseagreen,
  49. darkslateblue, darkslategrey, darkturquoise, darkviolet,
  50. deeppink, deepskyblue, dimgrey, dodgerblue,
  51. firebrick, floralwhite, forestgreen, fuchsia,
  52. gainsboro, ghostwhite, gold, goldenrod,
  53. greenyellow, honeydew, hotpink, indianred,
  54. indigo, ivory, khaki, lavender,
  55. lavenderblush, lawngreen, lemonchiffon, lightblue,
  56. lightcoral, lightcyan, lightgoldenrodyellow, lightgreen,
  57. lightgrey, lightpink, lightsalmon, lightseagreen,
  58. lightskyblue, lightslategrey, lightsteelblue, lightyellow,
  59. lime, limegreen, linen, magenta,
  60. maroon, mediumaquamarine, mediumblue, mediumorchid,
  61. mediumpurple, mediumseagreen, mediumslateblue, mediumspringgreen,
  62. mediumturquoise, mediumvioletred, midnightblue, mintcream,
  63. mistyrose, moccasin, navajowhite, navy,
  64. oldlace, olive, olivedrab, orange,
  65. orangered, orchid, palegoldenrod, palegreen,
  66. paleturquoise, palevioletred, papayawhip, peachpuff,
  67. peru, pink, plum, powderblue,
  68. purple, rebeccapurple, 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. 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. };