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.

185 lines
5.6KB

  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. #ifdef JUCE_GRAPHICS_H_INCLUDED
  20. /* When you add this cpp file to your project, you mustn't include it in a file where you've
  21. already included any other headers - just put it inside a file on its own, possibly with your config
  22. flags preceding it, but don't include anything else. That also includes avoiding any automatic prefix
  23. header files that the compiler may be using.
  24. */
  25. #error "Incorrect use of JUCE cpp file"
  26. #endif
  27. #define JUCE_CORE_INCLUDE_OBJC_HELPERS 1
  28. #define JUCE_CORE_INCLUDE_COM_SMART_PTR 1
  29. #define JUCE_CORE_INCLUDE_JNI_HELPERS 1
  30. #define JUCE_CORE_INCLUDE_NATIVE_HEADERS 1
  31. #define JUCE_GRAPHICS_INCLUDE_COREGRAPHICS_HELPERS 1
  32. #include "juce_graphics.h"
  33. //==============================================================================
  34. #if JUCE_MAC
  35. #import <QuartzCore/QuartzCore.h>
  36. #elif JUCE_WINDOWS
  37. // get rid of some warnings in Window's own headers
  38. #ifdef JUCE_MSVC
  39. #pragma warning (push)
  40. #pragma warning (disable : 4458)
  41. #endif
  42. #if JUCE_MINGW && JUCE_USE_DIRECTWRITE
  43. #warning "DirectWrite not currently implemented with mingw..."
  44. #undef JUCE_USE_DIRECTWRITE
  45. #endif
  46. #if JUCE_USE_DIRECTWRITE
  47. /* If you hit a compile error trying to include these files, you may need to update
  48. your version of the Windows SDK to the latest one. The DirectWrite and Direct2D
  49. headers are in the version 7 SDKs.
  50. */
  51. #include <d2d1.h>
  52. #include <dwrite.h>
  53. #endif
  54. #if JUCE_MINGW
  55. #include <malloc.h>
  56. #endif
  57. #ifdef JUCE_MSVC
  58. #pragma warning (pop)
  59. #endif
  60. #elif JUCE_IOS
  61. #import <QuartzCore/QuartzCore.h>
  62. #import <CoreText/CoreText.h>
  63. #if __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_3_2
  64. #error "JUCE no longer supports targets earlier than iOS 3.2"
  65. #endif
  66. #elif JUCE_LINUX
  67. #ifndef JUCE_USE_FREETYPE
  68. #define JUCE_USE_FREETYPE 1
  69. #endif
  70. #endif
  71. #if JUCE_USE_FREETYPE
  72. #if JUCE_USE_FREETYPE_AMALGAMATED
  73. #include "native/freetype/FreeTypeAmalgam.h"
  74. #else
  75. #include <ft2build.h>
  76. #include FT_FREETYPE_H
  77. #endif
  78. #endif
  79. #undef SIZEOF
  80. #if (JUCE_MAC || JUCE_IOS) && USE_COREGRAPHICS_RENDERING && JUCE_USE_COREIMAGE_LOADER
  81. #define JUCE_USING_COREIMAGE_LOADER 1
  82. #else
  83. #define JUCE_USING_COREIMAGE_LOADER 0
  84. #endif
  85. //==============================================================================
  86. namespace juce
  87. {
  88. #include "colour/juce_Colour.cpp"
  89. #include "colour/juce_ColourGradient.cpp"
  90. #include "colour/juce_Colours.cpp"
  91. #include "colour/juce_FillType.cpp"
  92. #include "geometry/juce_AffineTransform.cpp"
  93. #include "geometry/juce_EdgeTable.cpp"
  94. #include "geometry/juce_Path.cpp"
  95. #include "geometry/juce_PathIterator.cpp"
  96. #include "geometry/juce_PathStrokeType.cpp"
  97. #include "placement/juce_RectanglePlacement.cpp"
  98. #include "contexts/juce_GraphicsContext.cpp"
  99. #include "contexts/juce_LowLevelGraphicsPostScriptRenderer.cpp"
  100. #include "contexts/juce_LowLevelGraphicsSoftwareRenderer.cpp"
  101. #include "images/juce_Image.cpp"
  102. #include "images/juce_ImageCache.cpp"
  103. #include "images/juce_ImageConvolutionKernel.cpp"
  104. #include "images/juce_ImageFileFormat.cpp"
  105. #include "image_formats/juce_GIFLoader.cpp"
  106. #include "image_formats/juce_JPEGLoader.cpp"
  107. #include "image_formats/juce_PNGLoader.cpp"
  108. #include "fonts/juce_AttributedString.cpp"
  109. #include "fonts/juce_Typeface.cpp"
  110. #include "fonts/juce_CustomTypeface.cpp"
  111. #include "fonts/juce_Font.cpp"
  112. #include "fonts/juce_GlyphArrangement.cpp"
  113. #include "fonts/juce_TextLayout.cpp"
  114. #include "effects/juce_DropShadowEffect.cpp"
  115. #include "effects/juce_GlowEffect.cpp"
  116. #if JUCE_USE_FREETYPE
  117. #include "native/juce_freetype_Fonts.cpp"
  118. #endif
  119. //==============================================================================
  120. #if JUCE_MAC || JUCE_IOS
  121. #include "native/juce_mac_Fonts.mm"
  122. #include "native/juce_mac_CoreGraphicsContext.mm"
  123. #include "native/juce_mac_IconHelpers.cpp"
  124. #elif JUCE_WINDOWS
  125. #include "native/juce_win32_DirectWriteTypeface.cpp"
  126. #include "native/juce_win32_DirectWriteTypeLayout.cpp"
  127. #include "native/juce_win32_Fonts.cpp"
  128. #include "native/juce_win32_IconHelpers.cpp"
  129. #if JUCE_DIRECT2D
  130. #include "native/juce_win32_Direct2DGraphicsContext.cpp"
  131. #endif
  132. #elif JUCE_LINUX
  133. #include "native/juce_linux_Fonts.cpp"
  134. #include "native/juce_linux_IconHelpers.cpp"
  135. #elif JUCE_ANDROID
  136. #include "native/juce_android_GraphicsContext.cpp"
  137. #include "native/juce_android_Fonts.cpp"
  138. #include "native/juce_android_IconHelpers.cpp"
  139. #endif
  140. }
  141. //==============================================================================
  142. #if JUCE_USE_FREETYPE && JUCE_USE_FREETYPE_AMALGAMATED
  143. #undef PIXEL_MASK
  144. #undef ZLIB_VERSION
  145. #undef Z_ASCII
  146. #undef ZEXTERN
  147. #undef ZEXPORT
  148. extern "C"
  149. {
  150. #include "native/freetype/FreeTypeAmalgam.c"
  151. }
  152. #endif