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.

107 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, gold, goldenrod, greenyellow,
  53. honeydew, hotpink, indianred, indigo,
  54. ivory, khaki, lavender, lavenderblush,
  55. lemonchiffon, lightblue, lightcoral, lightcyan,
  56. lightgoldenrodyellow, lightgreen, lightgrey, lightpink,
  57. lightsalmon, lightseagreen, lightskyblue, lightslategrey,
  58. lightsteelblue, lightyellow, lime, limegreen,
  59. linen, magenta, maroon, mediumaquamarine,
  60. mediumblue, mediumorchid, mediumpurple, mediumseagreen,
  61. mediumslateblue, mediumspringgreen, mediumturquoise, mediumvioletred,
  62. midnightblue, mintcream, mistyrose, navajowhite,
  63. navy, oldlace, olive, olivedrab,
  64. orange, orangered, orchid, palegoldenrod,
  65. palegreen, paleturquoise, palevioletred, papayawhip,
  66. peachpuff, peru, pink, plum,
  67. powderblue, purple, rosybrown, royalblue,
  68. saddlebrown, salmon, sandybrown, seagreen,
  69. seashell, sienna, silver, skyblue,
  70. slateblue, slategrey, snow, springgreen,
  71. steelblue, tan, teal, thistle,
  72. tomato, turquoise, violet, wheat,
  73. whitesmoke, yellowgreen;
  74. /** Attempts to look up a string in the list of known colour names, and return
  75. the appropriate colour.
  76. A non-case-sensitive search is made of the list of predefined colours, and
  77. if a match is found, that colour is returned. If no match is found, the
  78. colour passed in as the defaultColour parameter is returned.
  79. */
  80. static JUCE_API Colour findColourForName (const String& colourName,
  81. Colour defaultColour);
  82. private:
  83. //==============================================================================
  84. // this isn't a class you should ever instantiate - it's just here for the
  85. // static values in it.
  86. Colours();
  87. JUCE_DECLARE_NON_COPYABLE (Colours)
  88. };