expo-juce 0.3.0 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1611) hide show
  1. package/README.md +34 -0
  2. package/build/index.d.ts +21 -24
  3. package/build/index.d.ts.map +1 -1
  4. package/build/index.js +44 -48
  5. package/build/index.js.map +1 -1
  6. package/ios/BeeperAudioEngine.h +45 -0
  7. package/ios/BeeperAudioEngine.mm +352 -0
  8. package/ios/ExpoJuce.podspec +31 -8
  9. package/ios/ExpoJuceBridge.h +12 -12
  10. package/ios/ExpoJuceBridge.m +35 -100
  11. package/ios/ExpoJuceModule.swift +63 -85
  12. package/ios/JuceConfig.h +49 -14
  13. package/ios/JuceModule_audio_basics.mm +2 -0
  14. package/ios/JuceModule_audio_devices.mm +2 -0
  15. package/ios/JuceModule_audio_formats.mm +2 -0
  16. package/ios/JuceModule_audio_processors.mm +2 -0
  17. package/ios/JuceModule_core.mm +5 -0
  18. package/ios/JuceModule_data_structures.mm +2 -0
  19. package/ios/JuceModule_dsp.mm +2 -0
  20. package/ios/JuceModule_events.mm +2 -0
  21. package/ios/JuceModule_graphics.mm +2 -0
  22. package/ios/JuceModule_gui_basics.mm +2 -0
  23. package/ios/JuceModule_gui_extra.mm +2 -0
  24. package/ios/JuceModule_harfbuzz.mm +4 -0
  25. package/ios/PolySynthProcessor.h +83 -0
  26. package/ios/PolySynthProcessor.mm +164 -0
  27. package/ios/TransportEngine.h +35 -0
  28. package/ios/TransportEngine.mm +50 -0
  29. package/ios/Voice.h +59 -0
  30. package/ios/Voice.mm +157 -0
  31. package/ios/VoiceAllocator.h +22 -0
  32. package/ios/VoiceAllocator.mm +88 -0
  33. package/ios/juce_modules/juce_audio_devices/audio_io/juce_AudioDeviceManager.cpp +1957 -0
  34. package/ios/juce_modules/juce_audio_devices/audio_io/juce_AudioDeviceManager.h +586 -0
  35. package/ios/juce_modules/juce_audio_devices/audio_io/juce_AudioIODevice.cpp +65 -0
  36. package/ios/juce_modules/juce_audio_devices/audio_io/juce_AudioIODevice.h +368 -0
  37. package/ios/juce_modules/juce_audio_devices/audio_io/juce_AudioIODeviceType.cpp +152 -0
  38. package/ios/juce_modules/juce_audio_devices/audio_io/juce_AudioIODeviceType.h +200 -0
  39. package/ios/juce_modules/juce_audio_devices/audio_io/juce_SampleRateHelpers.cpp +57 -0
  40. package/ios/juce_modules/juce_audio_devices/audio_io/juce_SystemAudioVolume.h +71 -0
  41. package/ios/juce_modules/juce_audio_devices/juce_audio_devices.cpp +277 -0
  42. package/ios/juce_modules/juce_audio_devices/juce_audio_devices.h +201 -0
  43. package/ios/juce_modules/juce_audio_devices/juce_audio_devices.mm +35 -0
  44. package/ios/juce_modules/juce_audio_devices/midi_io/juce_MidiDevices.cpp +246 -0
  45. package/ios/juce_modules/juce_audio_devices/midi_io/juce_MidiDevices.h +482 -0
  46. package/ios/juce_modules/juce_audio_devices/midi_io/juce_MidiMessageCollector.cpp +170 -0
  47. package/ios/juce_modules/juce_audio_devices/midi_io/juce_MidiMessageCollector.h +125 -0
  48. package/ios/juce_modules/juce_audio_devices/midi_io/ump/juce_UMPBytestreamInputHandler.h +153 -0
  49. package/ios/juce_modules/juce_audio_devices/midi_io/ump/juce_UMPU32InputHandler.h +165 -0
  50. package/ios/juce_modules/juce_audio_devices/native/java/app/com/rmsl/juce/JuceMidiSupport.java +1121 -0
  51. package/ios/juce_modules/juce_audio_devices/native/juce_ALSA_linux.cpp +1313 -0
  52. package/ios/juce_modules/juce_audio_devices/native/juce_ASIO_windows.cpp +1654 -0
  53. package/ios/juce_modules/juce_audio_devices/native/juce_Audio_android.cpp +482 -0
  54. package/ios/juce_modules/juce_audio_devices/native/juce_Audio_ios.cpp +1508 -0
  55. package/ios/juce_modules/juce_audio_devices/native/juce_Audio_ios.h +106 -0
  56. package/ios/juce_modules/juce_audio_devices/native/juce_Bela_linux.cpp +612 -0
  57. package/ios/juce_modules/juce_audio_devices/native/juce_CoreAudio_mac.cpp +2315 -0
  58. package/ios/juce_modules/juce_audio_devices/native/juce_CoreMidi_mac.mm +1280 -0
  59. package/ios/juce_modules/juce_audio_devices/native/juce_DirectSound_windows.cpp +1304 -0
  60. package/ios/juce_modules/juce_audio_devices/native/juce_HighPerformanceAudioHelpers_android.h +137 -0
  61. package/ios/juce_modules/juce_audio_devices/native/juce_JackAudio_linux.cpp +681 -0
  62. package/ios/juce_modules/juce_audio_devices/native/juce_Midi_android.cpp +1183 -0
  63. package/ios/juce_modules/juce_audio_devices/native/juce_Midi_linux.cpp +788 -0
  64. package/ios/juce_modules/juce_audio_devices/native/juce_Midi_windows.cpp +2038 -0
  65. package/ios/juce_modules/juce_audio_devices/native/juce_Oboe_android.cpp +1440 -0
  66. package/ios/juce_modules/juce_audio_devices/native/juce_OpenSL_android.cpp +1306 -0
  67. package/ios/juce_modules/juce_audio_devices/native/juce_WASAPI_windows.cpp +2032 -0
  68. package/ios/juce_modules/juce_audio_devices/native/oboe/.clang-tidy +3 -0
  69. package/ios/juce_modules/juce_audio_devices/native/oboe/include/oboe/AudioStream.h +706 -0
  70. package/ios/juce_modules/juce_audio_devices/native/oboe/include/oboe/AudioStreamBase.h +343 -0
  71. package/ios/juce_modules/juce_audio_devices/native/oboe/include/oboe/AudioStreamBuilder.h +670 -0
  72. package/ios/juce_modules/juce_audio_devices/native/oboe/include/oboe/AudioStreamCallback.h +193 -0
  73. package/ios/juce_modules/juce_audio_devices/native/oboe/include/oboe/Definitions.h +897 -0
  74. package/ios/juce_modules/juce_audio_devices/native/oboe/include/oboe/FifoBuffer.h +164 -0
  75. package/ios/juce_modules/juce_audio_devices/native/oboe/include/oboe/FifoControllerBase.h +112 -0
  76. package/ios/juce_modules/juce_audio_devices/native/oboe/include/oboe/FullDuplexStream.h +324 -0
  77. package/ios/juce_modules/juce_audio_devices/native/oboe/include/oboe/LatencyTuner.h +150 -0
  78. package/ios/juce_modules/juce_audio_devices/native/oboe/include/oboe/Oboe.h +40 -0
  79. package/ios/juce_modules/juce_audio_devices/native/oboe/include/oboe/OboeExtensions.h +64 -0
  80. package/ios/juce_modules/juce_audio_devices/native/oboe/include/oboe/ResultWithValue.h +155 -0
  81. package/ios/juce_modules/juce_audio_devices/native/oboe/include/oboe/StabilizedCallback.h +75 -0
  82. package/ios/juce_modules/juce_audio_devices/native/oboe/include/oboe/Utilities.h +99 -0
  83. package/ios/juce_modules/juce_audio_devices/native/oboe/include/oboe/Version.h +92 -0
  84. package/ios/juce_modules/juce_audio_devices/native/oboe/src/aaudio/AAudioExtensions.h +180 -0
  85. package/ios/juce_modules/juce_audio_devices/native/oboe/src/aaudio/AAudioLoader.cpp +506 -0
  86. package/ios/juce_modules/juce_audio_devices/native/oboe/src/aaudio/AAudioLoader.h +299 -0
  87. package/ios/juce_modules/juce_audio_devices/native/oboe/src/aaudio/AudioStreamAAudio.cpp +868 -0
  88. package/ios/juce_modules/juce_audio_devices/native/oboe/src/aaudio/AudioStreamAAudio.h +152 -0
  89. package/ios/juce_modules/juce_audio_devices/native/oboe/src/common/AdpfWrapper.cpp +124 -0
  90. package/ios/juce_modules/juce_audio_devices/native/oboe/src/common/AdpfWrapper.h +85 -0
  91. package/ios/juce_modules/juce_audio_devices/native/oboe/src/common/AudioClock.h +75 -0
  92. package/ios/juce_modules/juce_audio_devices/native/oboe/src/common/AudioSourceCaller.cpp +38 -0
  93. package/ios/juce_modules/juce_audio_devices/native/oboe/src/common/AudioSourceCaller.h +83 -0
  94. package/ios/juce_modules/juce_audio_devices/native/oboe/src/common/AudioStream.cpp +222 -0
  95. package/ios/juce_modules/juce_audio_devices/native/oboe/src/common/AudioStreamBuilder.cpp +224 -0
  96. package/ios/juce_modules/juce_audio_devices/native/oboe/src/common/DataConversionFlowGraph.cpp +266 -0
  97. package/ios/juce_modules/juce_audio_devices/native/oboe/src/common/DataConversionFlowGraph.h +86 -0
  98. package/ios/juce_modules/juce_audio_devices/native/oboe/src/common/FilterAudioStream.cpp +106 -0
  99. package/ios/juce_modules/juce_audio_devices/native/oboe/src/common/FilterAudioStream.h +227 -0
  100. package/ios/juce_modules/juce_audio_devices/native/oboe/src/common/FixedBlockAdapter.cpp +38 -0
  101. package/ios/juce_modules/juce_audio_devices/native/oboe/src/common/FixedBlockAdapter.h +67 -0
  102. package/ios/juce_modules/juce_audio_devices/native/oboe/src/common/FixedBlockReader.cpp +73 -0
  103. package/ios/juce_modules/juce_audio_devices/native/oboe/src/common/FixedBlockReader.h +60 -0
  104. package/ios/juce_modules/juce_audio_devices/native/oboe/src/common/FixedBlockWriter.cpp +73 -0
  105. package/ios/juce_modules/juce_audio_devices/native/oboe/src/common/FixedBlockWriter.h +54 -0
  106. package/ios/juce_modules/juce_audio_devices/native/oboe/src/common/LatencyTuner.cpp +108 -0
  107. package/ios/juce_modules/juce_audio_devices/native/oboe/src/common/MonotonicCounter.h +112 -0
  108. package/ios/juce_modules/juce_audio_devices/native/oboe/src/common/OboeDebug.h +41 -0
  109. package/ios/juce_modules/juce_audio_devices/native/oboe/src/common/OboeExtensions.cpp +36 -0
  110. package/ios/juce_modules/juce_audio_devices/native/oboe/src/common/QuirksManager.cpp +311 -0
  111. package/ios/juce_modules/juce_audio_devices/native/oboe/src/common/QuirksManager.h +134 -0
  112. package/ios/juce_modules/juce_audio_devices/native/oboe/src/common/SourceFloatCaller.cpp +30 -0
  113. package/ios/juce_modules/juce_audio_devices/native/oboe/src/common/SourceFloatCaller.h +44 -0
  114. package/ios/juce_modules/juce_audio_devices/native/oboe/src/common/SourceI16Caller.cpp +47 -0
  115. package/ios/juce_modules/juce_audio_devices/native/oboe/src/common/SourceI16Caller.h +49 -0
  116. package/ios/juce_modules/juce_audio_devices/native/oboe/src/common/SourceI24Caller.cpp +56 -0
  117. package/ios/juce_modules/juce_audio_devices/native/oboe/src/common/SourceI24Caller.h +53 -0
  118. package/ios/juce_modules/juce_audio_devices/native/oboe/src/common/SourceI32Caller.cpp +47 -0
  119. package/ios/juce_modules/juce_audio_devices/native/oboe/src/common/SourceI32Caller.h +53 -0
  120. package/ios/juce_modules/juce_audio_devices/native/oboe/src/common/StabilizedCallback.cpp +112 -0
  121. package/ios/juce_modules/juce_audio_devices/native/oboe/src/common/Trace.cpp +75 -0
  122. package/ios/juce_modules/juce_audio_devices/native/oboe/src/common/Trace.h +31 -0
  123. package/ios/juce_modules/juce_audio_devices/native/oboe/src/common/Utilities.cpp +333 -0
  124. package/ios/juce_modules/juce_audio_devices/native/oboe/src/common/Version.cpp +28 -0
  125. package/ios/juce_modules/juce_audio_devices/native/oboe/src/fifo/FifoBuffer.cpp +178 -0
  126. package/ios/juce_modules/juce_audio_devices/native/oboe/src/fifo/FifoController.cpp +30 -0
  127. package/ios/juce_modules/juce_audio_devices/native/oboe/src/fifo/FifoController.h +62 -0
  128. package/ios/juce_modules/juce_audio_devices/native/oboe/src/fifo/FifoControllerBase.cpp +68 -0
  129. package/ios/juce_modules/juce_audio_devices/native/oboe/src/fifo/FifoControllerIndirect.cpp +32 -0
  130. package/ios/juce_modules/juce_audio_devices/native/oboe/src/fifo/FifoControllerIndirect.h +66 -0
  131. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/ChannelCountConverter.cpp +52 -0
  132. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/ChannelCountConverter.h +52 -0
  133. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/ClipToRange.cpp +38 -0
  134. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/ClipToRange.h +68 -0
  135. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/FlowGraphNode.cpp +114 -0
  136. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/FlowGraphNode.h +450 -0
  137. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/FlowgraphUtilities.h +55 -0
  138. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/Limiter.cpp +67 -0
  139. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/Limiter.h +64 -0
  140. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/ManyToMultiConverter.cpp +47 -0
  141. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/ManyToMultiConverter.h +53 -0
  142. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/MonoBlend.cpp +46 -0
  143. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/MonoBlend.h +48 -0
  144. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/MonoToMultiConverter.cpp +41 -0
  145. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/MonoToMultiConverter.h +49 -0
  146. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/MultiToManyConverter.cpp +47 -0
  147. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/MultiToManyConverter.h +49 -0
  148. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/MultiToMonoConverter.cpp +41 -0
  149. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/MultiToMonoConverter.h +49 -0
  150. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/RampLinear.cpp +81 -0
  151. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/RampLinear.h +96 -0
  152. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/SampleRateConverter.cpp +71 -0
  153. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/SampleRateConverter.h +63 -0
  154. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/SinkFloat.cpp +46 -0
  155. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/SinkFloat.h +45 -0
  156. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/SinkI16.cpp +57 -0
  157. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/SinkI16.h +43 -0
  158. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/SinkI24.cpp +66 -0
  159. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/SinkI24.h +44 -0
  160. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/SinkI32.cpp +55 -0
  161. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/SinkI32.h +40 -0
  162. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/SourceFloat.cpp +42 -0
  163. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/SourceFloat.h +44 -0
  164. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/SourceI16.cpp +54 -0
  165. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/SourceI16.h +42 -0
  166. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/SourceI24.cpp +65 -0
  167. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/SourceI24.h +43 -0
  168. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/SourceI32.cpp +54 -0
  169. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/SourceI32.h +42 -0
  170. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/resampler/HyperbolicCosineWindow.h +71 -0
  171. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/resampler/IntegerRatio.cpp +50 -0
  172. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/resampler/IntegerRatio.h +54 -0
  173. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/resampler/KaiserWindow.h +90 -0
  174. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/resampler/LinearResampler.cpp +42 -0
  175. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/resampler/LinearResampler.h +47 -0
  176. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/resampler/MultiChannelResampler.cpp +171 -0
  177. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/resampler/MultiChannelResampler.h +281 -0
  178. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/resampler/PolyphaseResampler.cpp +61 -0
  179. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/resampler/PolyphaseResampler.h +53 -0
  180. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/resampler/PolyphaseResamplerMono.cpp +63 -0
  181. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/resampler/PolyphaseResamplerMono.h +41 -0
  182. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/resampler/PolyphaseResamplerStereo.cpp +79 -0
  183. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/resampler/PolyphaseResamplerStereo.h +41 -0
  184. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/resampler/ResamplerDefinitions.h +27 -0
  185. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/resampler/SincResampler.cpp +72 -0
  186. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/resampler/SincResampler.h +50 -0
  187. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/resampler/SincResamplerStereo.cpp +81 -0
  188. package/ios/juce_modules/juce_audio_devices/native/oboe/src/flowgraph/resampler/SincResamplerStereo.h +42 -0
  189. package/ios/juce_modules/juce_audio_devices/native/oboe/src/opensles/AudioInputStreamOpenSLES.cpp +360 -0
  190. package/ios/juce_modules/juce_audio_devices/native/oboe/src/opensles/AudioInputStreamOpenSLES.h +66 -0
  191. package/ios/juce_modules/juce_audio_devices/native/oboe/src/opensles/AudioOutputStreamOpenSLES.cpp +462 -0
  192. package/ios/juce_modules/juce_audio_devices/native/oboe/src/opensles/AudioOutputStreamOpenSLES.h +80 -0
  193. package/ios/juce_modules/juce_audio_devices/native/oboe/src/opensles/AudioStreamBuffered.cpp +285 -0
  194. package/ios/juce_modules/juce_audio_devices/native/oboe/src/opensles/AudioStreamBuffered.h +96 -0
  195. package/ios/juce_modules/juce_audio_devices/native/oboe/src/opensles/AudioStreamOpenSLES.cpp +499 -0
  196. package/ios/juce_modules/juce_audio_devices/native/oboe/src/opensles/AudioStreamOpenSLES.h +148 -0
  197. package/ios/juce_modules/juce_audio_devices/native/oboe/src/opensles/EngineOpenSLES.cpp +141 -0
  198. package/ios/juce_modules/juce_audio_devices/native/oboe/src/opensles/EngineOpenSLES.h +65 -0
  199. package/ios/juce_modules/juce_audio_devices/native/oboe/src/opensles/OpenSLESUtilities.cpp +96 -0
  200. package/ios/juce_modules/juce_audio_devices/native/oboe/src/opensles/OpenSLESUtilities.h +44 -0
  201. package/ios/juce_modules/juce_audio_devices/native/oboe/src/opensles/OutputMixerOpenSLES.cpp +74 -0
  202. package/ios/juce_modules/juce_audio_devices/native/oboe/src/opensles/OutputMixerOpenSLES.h +58 -0
  203. package/ios/juce_modules/juce_audio_devices/sources/juce_AudioSourcePlayer.cpp +193 -0
  204. package/ios/juce_modules/juce_audio_devices/sources/juce_AudioSourcePlayer.h +127 -0
  205. package/ios/juce_modules/juce_audio_devices/sources/juce_AudioTransportSource.cpp +295 -0
  206. package/ios/juce_modules/juce_audio_devices/sources/juce_AudioTransportSource.h +192 -0
  207. package/ios/juce_modules/juce_audio_processors/format/juce_AudioPluginFormat.cpp +107 -0
  208. package/ios/juce_modules/juce_audio_processors/format/juce_AudioPluginFormat.h +183 -0
  209. package/ios/juce_modules/juce_audio_processors/format/juce_AudioPluginFormatManager.cpp +212 -0
  210. package/ios/juce_modules/juce_audio_processors/format/juce_AudioPluginFormatManager.h +151 -0
  211. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/generate_lv2_bundle_sources.py +175 -0
  212. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/juce_lv2_config.h +87 -0
  213. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lilv/COPYING +13 -0
  214. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lilv/lilv/lilv.h +2117 -0
  215. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lilv/lilv/lilvmm.hpp +440 -0
  216. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lilv/src/collections.c +240 -0
  217. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lilv/src/filesystem.c +564 -0
  218. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lilv/src/filesystem.h +182 -0
  219. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lilv/src/instance.c +115 -0
  220. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lilv/src/lib.c +127 -0
  221. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lilv/src/lilv_internal.h +477 -0
  222. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lilv/src/node.c +413 -0
  223. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lilv/src/plugin.c +1140 -0
  224. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lilv/src/pluginclass.c +91 -0
  225. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lilv/src/port.c +272 -0
  226. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lilv/src/query.c +144 -0
  227. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lilv/src/scalepoint.c +53 -0
  228. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lilv/src/state.c +1541 -0
  229. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lilv/src/ui.c +115 -0
  230. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lilv/src/util.c +291 -0
  231. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lilv/src/world.c +1249 -0
  232. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lilv/src/zix/common.h +138 -0
  233. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lilv/src/zix/tree.c +727 -0
  234. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lilv/src/zix/tree.h +164 -0
  235. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lilv_config.h +42 -0
  236. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/COPYING +16 -0
  237. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/atom/atom-test-utils.c +73 -0
  238. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/atom/atom-test.c +367 -0
  239. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/atom/atom.h +260 -0
  240. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/atom/atom.meta.ttl +542 -0
  241. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/atom/atom.ttl +247 -0
  242. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/atom/forge-overflow-test.c +235 -0
  243. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/atom/forge.h +683 -0
  244. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/atom/manifest.ttl +9 -0
  245. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/atom/util.h +523 -0
  246. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/buf-size/buf-size.h +51 -0
  247. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/buf-size/buf-size.meta.ttl +157 -0
  248. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/buf-size/buf-size.ttl +67 -0
  249. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/buf-size/manifest.ttl +9 -0
  250. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/core/attributes.h +59 -0
  251. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/core/lv2.h +484 -0
  252. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/core/lv2_util.h +103 -0
  253. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/core/lv2core.meta.ttl +905 -0
  254. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/core/lv2core.ttl +674 -0
  255. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/core/manifest.ttl +15 -0
  256. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/core/meta.ttl +199 -0
  257. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/core/people.ttl +51 -0
  258. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/data-access/data-access.h +73 -0
  259. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/data-access/data-access.meta.ttl +77 -0
  260. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/data-access/data-access.ttl +11 -0
  261. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/data-access/manifest.ttl +9 -0
  262. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/dynmanifest/dynmanifest.h +160 -0
  263. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/dynmanifest/dynmanifest.meta.ttl +131 -0
  264. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/dynmanifest/dynmanifest.ttl +25 -0
  265. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/dynmanifest/manifest.ttl +9 -0
  266. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/event/event-helpers.h +255 -0
  267. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/event/event.h +306 -0
  268. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/event/event.meta.ttl +246 -0
  269. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/event/event.ttl +86 -0
  270. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/event/manifest.ttl +9 -0
  271. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/instance-access/instance-access.h +41 -0
  272. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/instance-access/instance-access.meta.ttl +75 -0
  273. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/instance-access/instance-access.ttl +11 -0
  274. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/instance-access/manifest.ttl +9 -0
  275. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/log/log.h +113 -0
  276. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/log/log.meta.ttl +126 -0
  277. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/log/log.ttl +48 -0
  278. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/log/logger.h +157 -0
  279. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/log/manifest.ttl +9 -0
  280. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/midi/manifest.ttl +9 -0
  281. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/midi/midi.h +248 -0
  282. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/midi/midi.meta.ttl +153 -0
  283. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/midi/midi.ttl +366 -0
  284. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/morph/manifest.ttl +9 -0
  285. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/morph/morph.h +48 -0
  286. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/morph/morph.meta.ttl +90 -0
  287. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/morph/morph.ttl +46 -0
  288. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/options/manifest.ttl +9 -0
  289. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/options/options.h +149 -0
  290. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/options/options.meta.ttl +129 -0
  291. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/options/options.ttl +44 -0
  292. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/parameters/manifest.ttl +9 -0
  293. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/parameters/parameters.h +68 -0
  294. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/parameters/parameters.meta.ttl +75 -0
  295. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/parameters/parameters.ttl +202 -0
  296. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/patch/manifest.ttl +9 -0
  297. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/patch/patch.h +73 -0
  298. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/patch/patch.meta.ttl +374 -0
  299. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/patch/patch.ttl +251 -0
  300. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/port-groups/manifest.ttl +9 -0
  301. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/port-groups/port-groups.h +77 -0
  302. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/port-groups/port-groups.meta.ttl +144 -0
  303. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/port-groups/port-groups.ttl +807 -0
  304. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/port-props/manifest.ttl +9 -0
  305. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/port-props/port-props.h +53 -0
  306. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/port-props/port-props.meta.ttl +202 -0
  307. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/port-props/port-props.ttl +79 -0
  308. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/presets/manifest.ttl +9 -0
  309. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/presets/presets.h +48 -0
  310. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/presets/presets.meta.ttl +132 -0
  311. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/presets/presets.ttl +60 -0
  312. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/resize-port/manifest.ttl +9 -0
  313. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/resize-port/resize-port.h +89 -0
  314. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/resize-port/resize-port.meta.ttl +74 -0
  315. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/resize-port/resize-port.ttl +36 -0
  316. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/state/manifest.ttl +9 -0
  317. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/state/state.h +392 -0
  318. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/state/state.meta.ttl +467 -0
  319. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/state/state.ttl +60 -0
  320. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/time/manifest.ttl +9 -0
  321. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/time/time.h +59 -0
  322. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/time/time.meta.ttl +112 -0
  323. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/time/time.ttl +122 -0
  324. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/ui/manifest.ttl +9 -0
  325. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/ui/ui.h +543 -0
  326. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/ui/ui.meta.ttl +627 -0
  327. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/ui/ui.ttl +248 -0
  328. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/units/manifest.ttl +9 -0
  329. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/units/units.h +75 -0
  330. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/units/units.meta.ttl +154 -0
  331. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/units/units.ttl +379 -0
  332. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/uri-map/manifest.ttl +9 -0
  333. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/uri-map/uri-map.h +121 -0
  334. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/uri-map/uri-map.meta.ttl +72 -0
  335. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/uri-map/uri-map.ttl +14 -0
  336. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/urid/manifest.ttl +9 -0
  337. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/urid/urid.h +140 -0
  338. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/urid/urid.meta.ttl +84 -0
  339. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/urid/urid.ttl +22 -0
  340. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/worker/manifest.ttl +9 -0
  341. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/worker/worker.h +183 -0
  342. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/worker/worker.meta.ttl +82 -0
  343. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/lv2/lv2/worker/worker.ttl +25 -0
  344. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/serd/COPYING +13 -0
  345. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/serd/serd/serd.h +1059 -0
  346. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/serd/src/.clang-tidy +18 -0
  347. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/serd/src/attributes.h +26 -0
  348. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/serd/src/base64.c +132 -0
  349. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/serd/src/base64.h +48 -0
  350. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/serd/src/byte_sink.h +98 -0
  351. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/serd/src/byte_source.c +112 -0
  352. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/serd/src/byte_source.h +120 -0
  353. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/serd/src/env.c +256 -0
  354. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/serd/src/n3.c +1720 -0
  355. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/serd/src/node.c +393 -0
  356. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/serd/src/node.h +48 -0
  357. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/serd/src/reader.c +425 -0
  358. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/serd/src/reader.h +196 -0
  359. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/serd/src/serd_config.h +98 -0
  360. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/serd/src/serd_internal.h +46 -0
  361. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/serd/src/serdi.c +377 -0
  362. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/serd/src/stack.h +119 -0
  363. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/serd/src/string.c +179 -0
  364. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/serd/src/string_utils.h +173 -0
  365. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/serd/src/system.c +82 -0
  366. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/serd/src/system.h +40 -0
  367. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/serd/src/uri.c +506 -0
  368. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/serd/src/uri_utils.h +110 -0
  369. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/serd/src/writer.c +1114 -0
  370. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/serd_config.h +42 -0
  371. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/sord/COPYING +13 -0
  372. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/sord/sord/sord.h +642 -0
  373. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/sord/sord/sordmm.hpp +720 -0
  374. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/sord/src/sord.c +1368 -0
  375. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/sord/src/sord_config.h +61 -0
  376. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/sord/src/sord_internal.h +53 -0
  377. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/sord/src/sord_test.c +767 -0
  378. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/sord/src/sord_validate.c +804 -0
  379. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/sord/src/sordi.c +216 -0
  380. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/sord/src/sordmm_test.cpp +25 -0
  381. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/sord/src/syntax.c +203 -0
  382. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/sord/src/zix/btree.c +936 -0
  383. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/sord/src/zix/btree.h +187 -0
  384. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/sord/src/zix/common.h +138 -0
  385. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/sord/src/zix/digest.c +141 -0
  386. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/sord/src/zix/digest.h +67 -0
  387. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/sord/src/zix/hash.c +230 -0
  388. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/sord/src/zix/hash.h +138 -0
  389. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/sord_config.h +42 -0
  390. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/sratom/COPYING +13 -0
  391. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/sratom/sratom/sratom.h +220 -0
  392. package/ios/juce_modules/juce_audio_processors/format_types/LV2_SDK/sratom/src/sratom.c +919 -0
  393. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/VST3_License_Agreement.pdf +0 -0
  394. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/VST3_Usage_Guidelines.pdf +0 -0
  395. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/base/source/baseiids.cpp +52 -0
  396. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/base/source/classfactoryhelpers.h +87 -0
  397. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/base/source/fbuffer.cpp +641 -0
  398. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/base/source/fbuffer.h +306 -0
  399. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/base/source/fcommandline.h +392 -0
  400. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/base/source/fdebug.cpp +340 -0
  401. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/base/source/fdebug.h +246 -0
  402. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/base/source/fobject.cpp +271 -0
  403. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/base/source/fobject.h +577 -0
  404. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/base/source/fstreamer.cpp +756 -0
  405. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/base/source/fstreamer.h +242 -0
  406. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/base/source/fstring.cpp +3962 -0
  407. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/base/source/fstring.h +767 -0
  408. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/base/source/updatehandler.cpp +737 -0
  409. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/base/source/updatehandler.h +150 -0
  410. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/base/thread/include/flock.h +184 -0
  411. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/base/thread/source/flock.cpp +146 -0
  412. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/helper.manifest +10 -0
  413. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/base/conststringtable.cpp +106 -0
  414. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/base/conststringtable.h +44 -0
  415. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/base/coreiids.cpp +40 -0
  416. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/base/falignpop.h +25 -0
  417. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/base/falignpush.h +40 -0
  418. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/base/fplatform.h +333 -0
  419. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/base/fstrdefs.h +291 -0
  420. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/base/ftypes.h +176 -0
  421. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/base/funknown.cpp +502 -0
  422. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/base/funknown.h +564 -0
  423. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/base/futils.h +107 -0
  424. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/base/fvariant.h +297 -0
  425. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/base/ibstream.h +87 -0
  426. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/base/icloneable.h +41 -0
  427. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/base/ipersistent.h +160 -0
  428. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/base/ipluginbase.h +520 -0
  429. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/base/iplugincompatibility.h +122 -0
  430. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/base/istringresult.h +80 -0
  431. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/base/iupdatehandler.h +98 -0
  432. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/base/smartpointer.h +386 -0
  433. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/base/typesizecheck.h +55 -0
  434. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/base/ustring.cpp +275 -0
  435. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/base/ustring.h +116 -0
  436. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/gui/iplugview.h +287 -0
  437. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/gui/iplugviewcontentscalesupport.h +75 -0
  438. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/vst/ivstattributes.h +150 -0
  439. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/vst/ivstaudioprocessor.h +434 -0
  440. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/vst/ivstautomationstate.h +67 -0
  441. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/vst/ivstchannelcontextinfo.h +238 -0
  442. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/vst/ivstcomponent.h +205 -0
  443. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/vst/ivstcontextmenu.h +219 -0
  444. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/vst/ivstdataexchange.h +221 -0
  445. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/vst/ivsteditcontroller.h +657 -0
  446. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/vst/ivstevents.h +221 -0
  447. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/vst/ivsthostapplication.h +163 -0
  448. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/vst/ivstinterappaudio.h +142 -0
  449. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/vst/ivstmessage.h +97 -0
  450. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/vst/ivstmidicontrollers.h +118 -0
  451. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/vst/ivstmidilearn.h +106 -0
  452. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/vst/ivstnoteexpression.h +255 -0
  453. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/vst/ivstparameterchanges.h +145 -0
  454. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/vst/ivstparameterfunctionname.h +151 -0
  455. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/vst/ivstphysicalui.h +169 -0
  456. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/vst/ivstpluginterfacesupport.h +67 -0
  457. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/vst/ivstplugview.h +62 -0
  458. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/vst/ivstprefetchablesupport.h +99 -0
  459. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/vst/ivstprocesscontext.h +153 -0
  460. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/vst/ivstremapparamid.h +75 -0
  461. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/vst/ivstrepresentation.h +364 -0
  462. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/vst/ivsttestplugprovider.h +109 -0
  463. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/vst/ivstunits.h +271 -0
  464. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/vst/vstpshpack4.h +30 -0
  465. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/vst/vstspeaker.h +1318 -0
  466. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/vst/vsttypes.h +157 -0
  467. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/public.sdk/samples/vst-utilities/moduleinfotool/source/main.cpp +441 -0
  468. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/public.sdk/source/common/memorystream.cpp +319 -0
  469. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/public.sdk/source/common/memorystream.h +79 -0
  470. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/public.sdk/source/common/pluginview.cpp +100 -0
  471. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/public.sdk/source/common/pluginview.h +116 -0
  472. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/public.sdk/source/common/readfile.cpp +81 -0
  473. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/public.sdk/source/common/readfile.h +54 -0
  474. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/public.sdk/source/vst/hosting/hostclasses.cpp +342 -0
  475. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/public.sdk/source/vst/hosting/hostclasses.h +120 -0
  476. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/public.sdk/source/vst/hosting/module.cpp +340 -0
  477. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/public.sdk/source/vst/hosting/module.h +214 -0
  478. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/public.sdk/source/vst/hosting/module_linux.cpp +369 -0
  479. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/public.sdk/source/vst/hosting/module_mac.mm +395 -0
  480. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/public.sdk/source/vst/hosting/module_win32.cpp +647 -0
  481. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/public.sdk/source/vst/hosting/pluginterfacesupport.cpp +134 -0
  482. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/public.sdk/source/vst/hosting/pluginterfacesupport.h +70 -0
  483. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/public.sdk/source/vst/moduleinfo/json.h +3403 -0
  484. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/public.sdk/source/vst/moduleinfo/jsoncxx.h +427 -0
  485. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/public.sdk/source/vst/moduleinfo/moduleinfo.h +100 -0
  486. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/public.sdk/source/vst/moduleinfo/moduleinfocreator.cpp +309 -0
  487. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/public.sdk/source/vst/moduleinfo/moduleinfocreator.h +67 -0
  488. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/public.sdk/source/vst/moduleinfo/moduleinfoparser.cpp +537 -0
  489. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/public.sdk/source/vst/moduleinfo/moduleinfoparser.h +68 -0
  490. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/public.sdk/source/vst/utility/optional.h +135 -0
  491. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/public.sdk/source/vst/utility/stringconvert.cpp +148 -0
  492. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/public.sdk/source/vst/utility/stringconvert.h +147 -0
  493. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/public.sdk/source/vst/utility/uid.h +286 -0
  494. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/public.sdk/source/vst/vstbus.cpp +99 -0
  495. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/public.sdk/source/vst/vstbus.h +172 -0
  496. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/public.sdk/source/vst/vstcomponent.cpp +216 -0
  497. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/public.sdk/source/vst/vstcomponent.h +118 -0
  498. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/public.sdk/source/vst/vstcomponentbase.cpp +180 -0
  499. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/public.sdk/source/vst/vstcomponentbase.h +110 -0
  500. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/public.sdk/source/vst/vsteditcontroller.cpp +701 -0
  501. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/public.sdk/source/vst/vsteditcontroller.h +374 -0
  502. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/public.sdk/source/vst/vstinitiids.cpp +154 -0
  503. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/public.sdk/source/vst/vstparameters.cpp +454 -0
  504. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/public.sdk/source/vst/vstparameters.h +240 -0
  505. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/public.sdk/source/vst/vstpresetfile.cpp +927 -0
  506. package/ios/juce_modules/juce_audio_processors/format_types/VST3_SDK/public.sdk/source/vst/vstpresetfile.h +306 -0
  507. package/ios/juce_modules/juce_audio_processors/format_types/juce_ARACommon.cpp +99 -0
  508. package/ios/juce_modules/juce_audio_processors/format_types/juce_ARACommon.h +98 -0
  509. package/ios/juce_modules/juce_audio_processors/format_types/juce_ARAHosting.cpp +490 -0
  510. package/ios/juce_modules/juce_audio_processors/format_types/juce_ARAHosting.h +786 -0
  511. package/ios/juce_modules/juce_audio_processors/format_types/juce_AU_Shared.h +588 -0
  512. package/ios/juce_modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.h +79 -0
  513. package/ios/juce_modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.mm +2947 -0
  514. package/ios/juce_modules/juce_audio_processors/format_types/juce_LADSPAPluginFormat.cpp +728 -0
  515. package/ios/juce_modules/juce_audio_processors/format_types/juce_LADSPAPluginFormat.h +79 -0
  516. package/ios/juce_modules/juce_audio_processors/format_types/juce_LV2Common.h +676 -0
  517. package/ios/juce_modules/juce_audio_processors/format_types/juce_LV2PluginFormat.cpp +5654 -0
  518. package/ios/juce_modules/juce_audio_processors/format_types/juce_LV2PluginFormat.h +87 -0
  519. package/ios/juce_modules/juce_audio_processors/format_types/juce_LV2PluginFormat_test.cpp +281 -0
  520. package/ios/juce_modules/juce_audio_processors/format_types/juce_LV2Resources.h +10241 -0
  521. package/ios/juce_modules/juce_audio_processors/format_types/juce_LV2SupportLibs.cpp +117 -0
  522. package/ios/juce_modules/juce_audio_processors/format_types/juce_LegacyAudioParameter.cpp +225 -0
  523. package/ios/juce_modules/juce_audio_processors/format_types/juce_VST3Common.h +1851 -0
  524. package/ios/juce_modules/juce_audio_processors/format_types/juce_VST3Headers.h +280 -0
  525. package/ios/juce_modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp +4086 -0
  526. package/ios/juce_modules/juce_audio_processors/format_types/juce_VST3PluginFormat.h +95 -0
  527. package/ios/juce_modules/juce_audio_processors/format_types/juce_VST3PluginFormat_test.cpp +740 -0
  528. package/ios/juce_modules/juce_audio_processors/format_types/juce_VSTCommon.h +315 -0
  529. package/ios/juce_modules/juce_audio_processors/format_types/juce_VSTMidiEventList.h +229 -0
  530. package/ios/juce_modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp +3764 -0
  531. package/ios/juce_modules/juce_audio_processors/format_types/juce_VSTPluginFormat.h +141 -0
  532. package/ios/juce_modules/juce_audio_processors/format_types/pslextensions/ipslcontextinfo.h +190 -0
  533. package/ios/juce_modules/juce_audio_processors/format_types/pslextensions/ipsleditcontroller.h +108 -0
  534. package/ios/juce_modules/juce_audio_processors/format_types/pslextensions/ipslgainreduction.h +53 -0
  535. package/ios/juce_modules/juce_audio_processors/format_types/pslextensions/ipslhostcommands.h +121 -0
  536. package/ios/juce_modules/juce_audio_processors/format_types/pslextensions/ipslviewembedding.h +53 -0
  537. package/ios/juce_modules/juce_audio_processors/format_types/pslextensions/ipslviewscaling.h +67 -0
  538. package/ios/juce_modules/juce_audio_processors/format_types/pslextensions/pslauextensions.h +57 -0
  539. package/ios/juce_modules/juce_audio_processors/format_types/pslextensions/pslvst2extensions.h +111 -0
  540. package/ios/juce_modules/juce_audio_processors/juce_audio_processors.cpp +246 -0
  541. package/ios/juce_modules/juce_audio_processors/juce_audio_processors.h +195 -0
  542. package/ios/juce_modules/juce_audio_processors/juce_audio_processors.mm +35 -0
  543. package/ios/juce_modules/juce_audio_processors/juce_audio_processors_ara.cpp +51 -0
  544. package/ios/juce_modules/juce_audio_processors/juce_audio_processors_lv2_libs.cpp +44 -0
  545. package/ios/juce_modules/juce_audio_processors/processors/juce_AudioPluginInstance.cpp +294 -0
  546. package/ios/juce_modules/juce_audio_processors/processors/juce_AudioPluginInstance.h +191 -0
  547. package/ios/juce_modules/juce_audio_processors/processors/juce_AudioProcessor.cpp +1655 -0
  548. package/ios/juce_modules/juce_audio_processors/processors/juce_AudioProcessor.h +1587 -0
  549. package/ios/juce_modules/juce_audio_processors/processors/juce_AudioProcessorEditor.cpp +230 -0
  550. package/ios/juce_modules/juce_audio_processors/processors/juce_AudioProcessorEditor.h +272 -0
  551. package/ios/juce_modules/juce_audio_processors/processors/juce_AudioProcessorEditorHostContext.h +98 -0
  552. package/ios/juce_modules/juce_audio_processors/processors/juce_AudioProcessorGraph.cpp +2375 -0
  553. package/ios/juce_modules/juce_audio_processors/processors/juce_AudioProcessorGraph.h +453 -0
  554. package/ios/juce_modules/juce_audio_processors/processors/juce_AudioProcessorListener.h +198 -0
  555. package/ios/juce_modules/juce_audio_processors/processors/juce_AudioProcessorParameter.h +370 -0
  556. package/ios/juce_modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.cpp +330 -0
  557. package/ios/juce_modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.h +263 -0
  558. package/ios/juce_modules/juce_audio_processors/processors/juce_GenericAudioProcessorEditor.cpp +633 -0
  559. package/ios/juce_modules/juce_audio_processors/processors/juce_GenericAudioProcessorEditor.h +74 -0
  560. package/ios/juce_modules/juce_audio_processors/processors/juce_HostedAudioProcessorParameter.h +61 -0
  561. package/ios/juce_modules/juce_audio_processors/processors/juce_PluginDescription.cpp +126 -0
  562. package/ios/juce_modules/juce_audio_processors/processors/juce_PluginDescription.h +189 -0
  563. package/ios/juce_modules/juce_audio_processors/scanning/juce_KnownPluginList.cpp +651 -0
  564. package/ios/juce_modules/juce_audio_processors/scanning/juce_KnownPluginList.h +249 -0
  565. package/ios/juce_modules/juce_audio_processors/scanning/juce_PluginDirectoryScanner.cpp +148 -0
  566. package/ios/juce_modules/juce_audio_processors/scanning/juce_PluginDirectoryScanner.h +147 -0
  567. package/ios/juce_modules/juce_audio_processors/scanning/juce_PluginListComponent.cpp +690 -0
  568. package/ios/juce_modules/juce_audio_processors/scanning/juce_PluginListComponent.h +156 -0
  569. package/ios/juce_modules/juce_audio_processors/utilities/ARA/juce_ARADebug.h +76 -0
  570. package/ios/juce_modules/juce_audio_processors/utilities/ARA/juce_ARADocumentController.cpp +985 -0
  571. package/ios/juce_modules/juce_audio_processors/utilities/ARA/juce_ARADocumentController.h +538 -0
  572. package/ios/juce_modules/juce_audio_processors/utilities/ARA/juce_ARADocumentControllerCommon.cpp +80 -0
  573. package/ios/juce_modules/juce_audio_processors/utilities/ARA/juce_ARAModelObjects.cpp +302 -0
  574. package/ios/juce_modules/juce_audio_processors/utilities/ARA/juce_ARAModelObjects.h +983 -0
  575. package/ios/juce_modules/juce_audio_processors/utilities/ARA/juce_ARAPlugInInstanceRoles.cpp +123 -0
  576. package/ios/juce_modules/juce_audio_processors/utilities/ARA/juce_ARAPlugInInstanceRoles.h +263 -0
  577. package/ios/juce_modules/juce_audio_processors/utilities/ARA/juce_ARA_utils.cpp +65 -0
  578. package/ios/juce_modules/juce_audio_processors/utilities/ARA/juce_ARA_utils.h +95 -0
  579. package/ios/juce_modules/juce_audio_processors/utilities/ARA/juce_AudioProcessor_ARAExtensions.cpp +163 -0
  580. package/ios/juce_modules/juce_audio_processors/utilities/ARA/juce_AudioProcessor_ARAExtensions.h +213 -0
  581. package/ios/juce_modules/juce_audio_processors/utilities/juce_AAXClientExtensions.cpp +308 -0
  582. package/ios/juce_modules/juce_audio_processors/utilities/juce_AAXClientExtensions.h +92 -0
  583. package/ios/juce_modules/juce_audio_processors/utilities/juce_AudioParameterBool.cpp +104 -0
  584. package/ios/juce_modules/juce_audio_processors/utilities/juce_AudioParameterBool.h +149 -0
  585. package/ios/juce_modules/juce_audio_processors/utilities/juce_AudioParameterChoice.cpp +145 -0
  586. package/ios/juce_modules/juce_audio_processors/utilities/juce_AudioParameterChoice.h +162 -0
  587. package/ios/juce_modules/juce_audio_processors/utilities/juce_AudioParameterFloat.cpp +113 -0
  588. package/ios/juce_modules/juce_audio_processors/utilities/juce_AudioParameterFloat.h +169 -0
  589. package/ios/juce_modules/juce_audio_processors/utilities/juce_AudioParameterInt.cpp +146 -0
  590. package/ios/juce_modules/juce_audio_processors/utilities/juce_AudioParameterInt.h +163 -0
  591. package/ios/juce_modules/juce_audio_processors/utilities/juce_AudioProcessorParameterWithID.cpp +56 -0
  592. package/ios/juce_modules/juce_audio_processors/utilities/juce_AudioProcessorParameterWithID.h +200 -0
  593. package/ios/juce_modules/juce_audio_processors/utilities/juce_AudioProcessorValueTreeState.cpp +997 -0
  594. package/ios/juce_modules/juce_audio_processors/utilities/juce_AudioProcessorValueTreeState.h +669 -0
  595. package/ios/juce_modules/juce_audio_processors/utilities/juce_ExtensionsVisitor.h +155 -0
  596. package/ios/juce_modules/juce_audio_processors/utilities/juce_FlagCache.h +191 -0
  597. package/ios/juce_modules/juce_audio_processors/utilities/juce_ParameterAttachments.cpp +442 -0
  598. package/ios/juce_modules/juce_audio_processors/utilities/juce_ParameterAttachments.h +400 -0
  599. package/ios/juce_modules/juce_audio_processors/utilities/juce_PluginHostType.cpp +328 -0
  600. package/ios/juce_modules/juce_audio_processors/utilities/juce_PluginHostType.h +265 -0
  601. package/ios/juce_modules/juce_audio_processors/utilities/juce_RangedAudioParameter.cpp +60 -0
  602. package/ios/juce_modules/juce_audio_processors/utilities/juce_RangedAudioParameter.h +129 -0
  603. package/ios/juce_modules/juce_audio_processors/utilities/juce_VST2ClientExtensions.cpp +48 -0
  604. package/ios/juce_modules/juce_audio_processors/utilities/juce_VST2ClientExtensions.h +83 -0
  605. package/ios/juce_modules/juce_audio_processors/utilities/juce_VST3ClientExtensions.h +119 -0
  606. package/ios/juce_modules/juce_core/native/juce_BasicNativeHeaders.h +6 -1
  607. package/ios/juce_modules/juce_graphics/colour/juce_Colour.cpp +726 -0
  608. package/ios/juce_modules/juce_graphics/colour/juce_Colour.h +429 -0
  609. package/ios/juce_modules/juce_graphics/colour/juce_ColourGradient.cpp +294 -0
  610. package/ios/juce_modules/juce_graphics/colour/juce_ColourGradient.h +255 -0
  611. package/ios/juce_modules/juce_graphics/colour/juce_Colours.cpp +205 -0
  612. package/ios/juce_modules/juce_graphics/colour/juce_Colours.h +200 -0
  613. package/ios/juce_modules/juce_graphics/colour/juce_FillType.cpp +166 -0
  614. package/ios/juce_modules/juce_graphics/colour/juce_FillType.h +165 -0
  615. package/ios/juce_modules/juce_graphics/colour/juce_PixelFormats.h +749 -0
  616. package/ios/juce_modules/juce_graphics/contexts/juce_GraphicsContext.cpp +857 -0
  617. package/ios/juce_modules/juce_graphics/contexts/juce_GraphicsContext.h +758 -0
  618. package/ios/juce_modules/juce_graphics/contexts/juce_LowLevelGraphicsContext.h +186 -0
  619. package/ios/juce_modules/juce_graphics/contexts/juce_LowLevelGraphicsSoftwareRenderer.cpp +59 -0
  620. package/ios/juce_modules/juce_graphics/contexts/juce_LowLevelGraphicsSoftwareRenderer.h +66 -0
  621. package/ios/juce_modules/juce_graphics/detail/juce_Ranges.cpp +793 -0
  622. package/ios/juce_modules/juce_graphics/detail/juce_Ranges.h +1014 -0
  623. package/ios/juce_modules/juce_graphics/effects/juce_DropShadowEffect.cpp +152 -0
  624. package/ios/juce_modules/juce_graphics/effects/juce_DropShadowEffect.h +122 -0
  625. package/ios/juce_modules/juce_graphics/effects/juce_GlowEffect.cpp +59 -0
  626. package/ios/juce_modules/juce_graphics/effects/juce_GlowEffect.h +86 -0
  627. package/ios/juce_modules/juce_graphics/effects/juce_ImageEffectFilter.h +80 -0
  628. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Color/CBDT/CBDT.hh +1031 -0
  629. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Color/COLR/COLR.hh +2745 -0
  630. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Color/COLR/colrv1-closure.hh +137 -0
  631. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Color/CPAL/CPAL.hh +358 -0
  632. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Color/sbix/sbix.hh +448 -0
  633. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Color/svg/svg.hh +152 -0
  634. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/Common/Coverage.hh +352 -0
  635. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/Common/CoverageFormat1.hh +133 -0
  636. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/Common/CoverageFormat2.hh +239 -0
  637. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/Common/RangeRecord.hh +97 -0
  638. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GDEF/GDEF.hh +1044 -0
  639. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GPOS/Anchor.hh +84 -0
  640. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GPOS/AnchorFormat1.hh +46 -0
  641. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GPOS/AnchorFormat2.hh +58 -0
  642. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GPOS/AnchorFormat3.hh +120 -0
  643. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GPOS/AnchorMatrix.hh +87 -0
  644. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GPOS/ChainContextPos.hh +14 -0
  645. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GPOS/Common.hh +33 -0
  646. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GPOS/ContextPos.hh +14 -0
  647. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GPOS/CursivePos.hh +35 -0
  648. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GPOS/CursivePosFormat1.hh +311 -0
  649. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GPOS/ExtensionPos.hh +17 -0
  650. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GPOS/GPOS.hh +171 -0
  651. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GPOS/LigatureArray.hh +57 -0
  652. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GPOS/MarkArray.hh +128 -0
  653. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GPOS/MarkBasePos.hh +41 -0
  654. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GPOS/MarkBasePosFormat1.hh +243 -0
  655. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GPOS/MarkLigPos.hh +41 -0
  656. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GPOS/MarkLigPosFormat1.hh +224 -0
  657. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GPOS/MarkMarkPos.hh +42 -0
  658. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GPOS/MarkMarkPosFormat1.hh +231 -0
  659. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GPOS/MarkRecord.hh +51 -0
  660. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GPOS/PairPos.hh +46 -0
  661. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GPOS/PairPosFormat1.hh +233 -0
  662. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GPOS/PairPosFormat2.hh +365 -0
  663. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GPOS/PairSet.hh +210 -0
  664. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GPOS/PairValueRecord.hh +99 -0
  665. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GPOS/PosLookup.hh +79 -0
  666. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GPOS/PosLookupSubTable.hh +79 -0
  667. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GPOS/SinglePos.hh +98 -0
  668. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GPOS/SinglePosFormat1.hh +190 -0
  669. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GPOS/SinglePosFormat2.hh +213 -0
  670. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GPOS/ValueFormat.hh +441 -0
  671. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GSUB/AlternateSet.hh +126 -0
  672. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GSUB/AlternateSubst.hh +62 -0
  673. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GSUB/AlternateSubstFormat1.hh +128 -0
  674. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GSUB/ChainContextSubst.hh +18 -0
  675. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GSUB/Common.hh +19 -0
  676. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GSUB/ContextSubst.hh +18 -0
  677. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GSUB/ExtensionSubst.hh +22 -0
  678. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GSUB/GSUB.hh +61 -0
  679. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GSUB/Ligature.hh +203 -0
  680. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GSUB/LigatureSet.hh +188 -0
  681. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GSUB/LigatureSubst.hh +71 -0
  682. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GSUB/LigatureSubstFormat1.hh +166 -0
  683. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GSUB/MultipleSubst.hh +62 -0
  684. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GSUB/MultipleSubstFormat1.hh +130 -0
  685. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GSUB/ReverseChainSingleSubst.hh +36 -0
  686. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GSUB/ReverseChainSingleSubstFormat1.hh +245 -0
  687. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GSUB/Sequence.hh +165 -0
  688. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GSUB/SingleSubst.hh +103 -0
  689. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GSUB/SingleSubstFormat1.hh +204 -0
  690. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GSUB/SingleSubstFormat2.hh +176 -0
  691. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GSUB/SubstLookup.hh +220 -0
  692. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/GSUB/SubstLookupSubTable.hh +77 -0
  693. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Layout/types.hh +66 -0
  694. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Var/VARC/VARC.cc +346 -0
  695. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Var/VARC/VARC.hh +193 -0
  696. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/Var/VARC/coord-setter.hh +37 -0
  697. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/glyf/CompositeGlyph.hh +435 -0
  698. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/glyf/Glyph.hh +556 -0
  699. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/glyf/GlyphHeader.hh +52 -0
  700. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/glyf/SimpleGlyph.hh +348 -0
  701. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/glyf/SubsetGlyph.hh +141 -0
  702. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/glyf/composite-iter.hh +68 -0
  703. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/glyf/glyf-helpers.hh +127 -0
  704. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/glyf/glyf.hh +513 -0
  705. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/glyf/loca.hh +43 -0
  706. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/glyf/path-builder.hh +190 -0
  707. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/OT/name/name.hh +589 -0
  708. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/failing-alloc.c +65 -0
  709. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/harfbuzz-subset.cc +64 -0
  710. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/harfbuzz.cc +63 -0
  711. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-aat-layout-ankr-table.hh +99 -0
  712. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-aat-layout-bsln-table.hh +159 -0
  713. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-aat-layout-common.hh +1076 -0
  714. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-aat-layout-feat-table.hh +224 -0
  715. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-aat-layout-just-table.hh +420 -0
  716. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-aat-layout-kerx-table.hh +1191 -0
  717. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-aat-layout-morx-table.hh +1443 -0
  718. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-aat-layout-opbd-table.hh +174 -0
  719. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-aat-layout-trak-table.hh +232 -0
  720. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-aat-layout.cc +449 -0
  721. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-aat-layout.h +795 -0
  722. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-aat-layout.hh +77 -0
  723. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-aat-ltag-table.hh +95 -0
  724. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-aat-map.cc +172 -0
  725. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-aat-map.hh +123 -0
  726. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-aat.h +38 -0
  727. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-algs.hh +1558 -0
  728. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-array.hh +504 -0
  729. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-atomic.hh +228 -0
  730. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-bimap.hh +205 -0
  731. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-bit-page.hh +352 -0
  732. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-bit-set-invertible.hh +379 -0
  733. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-bit-set.hh +982 -0
  734. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-blob.cc +794 -0
  735. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-blob.h +160 -0
  736. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-blob.hh +98 -0
  737. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-buffer-deserialize-json.hh +795 -0
  738. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-buffer-deserialize-text-glyphs.hh +692 -0
  739. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-buffer-deserialize-text-unicode.hh +332 -0
  740. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-buffer-serialize.cc +872 -0
  741. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-buffer-verify.cc +423 -0
  742. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-buffer.cc +2266 -0
  743. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-buffer.h +805 -0
  744. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-buffer.hh +682 -0
  745. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-cache.hh +99 -0
  746. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-cff-interp-common.hh +642 -0
  747. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-cff-interp-cs-common.hh +905 -0
  748. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-cff-interp-dict-common.hh +201 -0
  749. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-cff1-interp-cs.hh +160 -0
  750. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-cff2-interp-cs.hh +278 -0
  751. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-common.cc +1220 -0
  752. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-common.h +935 -0
  753. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-config.hh +212 -0
  754. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-coretext.cc +1197 -0
  755. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-coretext.h +96 -0
  756. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-cplusplus.hh +220 -0
  757. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-debug.hh +491 -0
  758. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-deprecated.h +318 -0
  759. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-directwrite.cc +884 -0
  760. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-directwrite.h +40 -0
  761. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-dispatch.hh +60 -0
  762. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-draw.cc +458 -0
  763. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-draw.h +340 -0
  764. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-draw.hh +243 -0
  765. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-face-builder.cc +246 -0
  766. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-face.cc +664 -0
  767. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-face.h +187 -0
  768. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-face.hh +111 -0
  769. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-fallback-shape.cc +115 -0
  770. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-font.cc +3069 -0
  771. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-font.h +1153 -0
  772. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-font.hh +720 -0
  773. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ft-colr.hh +601 -0
  774. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ft.cc +1500 -0
  775. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ft.h +145 -0
  776. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-gdi.cc +85 -0
  777. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-gdi.h +39 -0
  778. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-geometry.hh +284 -0
  779. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-glib.cc +232 -0
  780. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-glib.h +56 -0
  781. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-gobject-structs.cc +116 -0
  782. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-gobject-structs.h +136 -0
  783. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-gobject.h +40 -0
  784. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-graphite2.cc +455 -0
  785. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-graphite2.h +61 -0
  786. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-icu.cc +291 -0
  787. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-icu.h +52 -0
  788. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-iter.hh +1037 -0
  789. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-kern.hh +145 -0
  790. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-limits.hh +112 -0
  791. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-machinery.hh +332 -0
  792. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-map.cc +419 -0
  793. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-map.h +143 -0
  794. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-map.hh +568 -0
  795. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-meta.hh +238 -0
  796. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ms-feature-ranges.hh +232 -0
  797. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-multimap.hh +96 -0
  798. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-mutex.hh +122 -0
  799. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-null.hh +226 -0
  800. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-number-parser.hh +237 -0
  801. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-number.cc +79 -0
  802. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-number.hh +41 -0
  803. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-object.hh +357 -0
  804. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-open-file.hh +543 -0
  805. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-open-type.hh +1886 -0
  806. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-cff-common.hh +374 -0
  807. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-cff1-std-str.hh +425 -0
  808. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-cff1-table.cc +620 -0
  809. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-cff1-table.hh +1539 -0
  810. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-cff2-table.cc +227 -0
  811. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-cff2-table.hh +564 -0
  812. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-cmap-table.hh +2154 -0
  813. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-color.cc +363 -0
  814. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-color.h +155 -0
  815. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-deprecated.h +147 -0
  816. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-face-table-list.hh +155 -0
  817. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-face.cc +60 -0
  818. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-face.hh +77 -0
  819. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-font.cc +662 -0
  820. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-font.h +45 -0
  821. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-gasp-table.hh +84 -0
  822. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-glyf-table.hh +35 -0
  823. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-hdmx-table.hh +177 -0
  824. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-head-table.hh +204 -0
  825. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-hhea-table.hh +106 -0
  826. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-hmtx-table.hh +502 -0
  827. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-kern-table.hh +425 -0
  828. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-layout-base-table.hh +849 -0
  829. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-layout-common.hh +4953 -0
  830. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-layout-gdef-table.hh +34 -0
  831. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-layout-gpos-table.hh +81 -0
  832. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-layout-gsub-table.hh +94 -0
  833. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-layout-gsubgpos.hh +4887 -0
  834. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-layout-jstf-table.hh +236 -0
  835. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-layout.cc +2705 -0
  836. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-layout.h +549 -0
  837. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-layout.hh +611 -0
  838. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-map.cc +394 -0
  839. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-map.hh +298 -0
  840. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-math-table.hh +1132 -0
  841. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-math.cc +338 -0
  842. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-math.h +333 -0
  843. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-maxp-table.hh +156 -0
  844. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-meta-table.hh +131 -0
  845. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-meta.cc +79 -0
  846. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-meta.h +72 -0
  847. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-metrics.cc +436 -0
  848. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-metrics.h +129 -0
  849. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-metrics.hh +35 -0
  850. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-name-language-static.hh +456 -0
  851. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-name-language.hh +40 -0
  852. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-name-table.hh +32 -0
  853. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-name.cc +184 -0
  854. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-name.h +164 -0
  855. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-os2-table.hh +405 -0
  856. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-os2-unicode-ranges.hh +231 -0
  857. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-post-macroman.hh +294 -0
  858. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-post-table-v2subset.hh +142 -0
  859. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-post-table.hh +352 -0
  860. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-shape-fallback.cc +615 -0
  861. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-shape-fallback.hh +54 -0
  862. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-shape-normalize.cc +470 -0
  863. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-shape-normalize.hh +104 -0
  864. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-shape.cc +1319 -0
  865. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-shape.h +53 -0
  866. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-shape.hh +171 -0
  867. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-shaper-arabic-fallback.hh +383 -0
  868. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-shaper-arabic-joining-list.hh +47 -0
  869. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-shaper-arabic-pua.hh +118 -0
  870. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-shaper-arabic-table.hh +556 -0
  871. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-shaper-arabic-win1256.hh +349 -0
  872. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-shaper-arabic.cc +774 -0
  873. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-shaper-arabic.hh +50 -0
  874. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-shaper-default.cc +75 -0
  875. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-shaper-hangul.cc +436 -0
  876. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-shaper-hebrew.cc +211 -0
  877. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-shaper-indic-machine.hh +627 -0
  878. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-shaper-indic-table.cc +561 -0
  879. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-shaper-indic.cc +1578 -0
  880. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-shaper-indic.hh +66 -0
  881. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-shaper-khmer-machine.hh +428 -0
  882. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-shaper-khmer.cc +387 -0
  883. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-shaper-myanmar-machine.hh +553 -0
  884. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-shaper-myanmar.cc +390 -0
  885. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-shaper-syllabic.cc +112 -0
  886. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-shaper-syllabic.hh +47 -0
  887. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-shaper-thai.cc +393 -0
  888. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-shaper-use-machine.hh +1079 -0
  889. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-shaper-use-table.hh +690 -0
  890. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-shaper-use.cc +514 -0
  891. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-shaper-vowel-constraints.cc +477 -0
  892. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-shaper-vowel-constraints.hh +39 -0
  893. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-shaper.hh +404 -0
  894. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-stat-table.hh +619 -0
  895. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-tag-table.hh +3009 -0
  896. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-tag.cc +658 -0
  897. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-var-avar-table.hh +411 -0
  898. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-var-common.hh +1985 -0
  899. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-var-cvar-table.hh +220 -0
  900. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-var-fvar-table.hh +505 -0
  901. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-var-gvar-table.hh +890 -0
  902. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-var-hvar-table.hh +478 -0
  903. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-var-mvar-table.hh +184 -0
  904. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-var-varc-table.hh +32 -0
  905. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-var.cc +328 -0
  906. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-var.h +191 -0
  907. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot-vorg-table.hh +137 -0
  908. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ot.h +49 -0
  909. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-outline.cc +321 -0
  910. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-outline.hh +83 -0
  911. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-paint-extents.cc +330 -0
  912. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-paint-extents.hh +132 -0
  913. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-paint.cc +728 -0
  914. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-paint.h +1029 -0
  915. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-paint.hh +236 -0
  916. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-pool.hh +107 -0
  917. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-priority-queue.hh +174 -0
  918. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-repacker.hh +476 -0
  919. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-sanitize.hh +530 -0
  920. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-serialize.hh +832 -0
  921. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-set-digest.hh +227 -0
  922. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-set.cc +673 -0
  923. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-set.h +203 -0
  924. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-set.hh +186 -0
  925. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-shape-plan.cc +581 -0
  926. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-shape-plan.h +122 -0
  927. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-shape-plan.hh +77 -0
  928. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-shape.cc +445 -0
  929. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-shape.h +74 -0
  930. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-shaper-impl.hh +38 -0
  931. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-shaper-list.hh +65 -0
  932. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-shaper.cc +102 -0
  933. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-shaper.hh +134 -0
  934. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-static.cc +138 -0
  935. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-string-array.hh +85 -0
  936. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-style.cc +134 -0
  937. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-style.h +81 -0
  938. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-subset-accelerator.hh +141 -0
  939. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-subset-cff-common.cc +231 -0
  940. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-subset-cff-common.hh +1228 -0
  941. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-subset-cff1.cc +1001 -0
  942. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-subset-cff2.cc +679 -0
  943. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-subset-input.cc +748 -0
  944. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-subset-input.hh +155 -0
  945. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-subset-instancer-iup.cc +532 -0
  946. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-subset-instancer-iup.hh +37 -0
  947. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-subset-instancer-solver.cc +434 -0
  948. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-subset-instancer-solver.hh +114 -0
  949. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-subset-plan-member-list.hh +164 -0
  950. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-subset-plan.cc +1570 -0
  951. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-subset-plan.hh +302 -0
  952. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-subset-repacker.cc +58 -0
  953. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-subset-repacker.h +81 -0
  954. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-subset.cc +704 -0
  955. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-subset.h +260 -0
  956. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-subset.hh +74 -0
  957. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ucd-table.hh +5637 -0
  958. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-ucd.cc +258 -0
  959. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-unicode-emoji-table.hh +79 -0
  960. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-unicode.cc +625 -0
  961. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-unicode.h +643 -0
  962. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-unicode.hh +403 -0
  963. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-uniscribe.cc +889 -0
  964. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-uniscribe.h +46 -0
  965. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-utf.hh +481 -0
  966. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-vector.hh +539 -0
  967. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-version.h +95 -0
  968. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-wasm-api-blob.hh +50 -0
  969. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-wasm-api-buffer.hh +217 -0
  970. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-wasm-api-common.hh +44 -0
  971. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-wasm-api-face.hh +109 -0
  972. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-wasm-api-font.hh +263 -0
  973. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-wasm-api-list.hh +109 -0
  974. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-wasm-api-shape.hh +70 -0
  975. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-wasm-api.cc +46 -0
  976. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-wasm-api.h +322 -0
  977. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-wasm-api.hh +117 -0
  978. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb-wasm-shape.cc +470 -0
  979. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb.h +51 -0
  980. package/ios/juce_modules/juce_graphics/fonts/harfbuzz/hb.hh +555 -0
  981. package/ios/juce_modules/juce_graphics/fonts/juce_AttributedString.cpp +288 -0
  982. package/ios/juce_modules/juce_graphics/fonts/juce_AttributedString.h +219 -0
  983. package/ios/juce_modules/juce_graphics/fonts/juce_Font.cpp +1036 -0
  984. package/ios/juce_modules/juce_graphics/fonts/juce_Font.h +571 -0
  985. package/ios/juce_modules/juce_graphics/fonts/juce_FontOptions.cpp +111 -0
  986. package/ios/juce_modules/juce_graphics/fonts/juce_FontOptions.h +218 -0
  987. package/ios/juce_modules/juce_graphics/fonts/juce_FunctionPointerDestructor.h +53 -0
  988. package/ios/juce_modules/juce_graphics/fonts/juce_GlyphArrangement.cpp +657 -0
  989. package/ios/juce_modules/juce_graphics/fonts/juce_GlyphArrangement.h +324 -0
  990. package/ios/juce_modules/juce_graphics/fonts/juce_JustifiedText.cpp +580 -0
  991. package/ios/juce_modules/juce_graphics/fonts/juce_LruCache.h +88 -0
  992. package/ios/juce_modules/juce_graphics/fonts/juce_ShapedText.cpp +210 -0
  993. package/ios/juce_modules/juce_graphics/fonts/juce_SimpleShapedText.cpp +1279 -0
  994. package/ios/juce_modules/juce_graphics/fonts/juce_TextLayout.cpp +512 -0
  995. package/ios/juce_modules/juce_graphics/fonts/juce_TextLayout.h +278 -0
  996. package/ios/juce_modules/juce_graphics/fonts/juce_Typeface.cpp +983 -0
  997. package/ios/juce_modules/juce_graphics/fonts/juce_Typeface.h +396 -0
  998. package/ios/juce_modules/juce_graphics/fonts/juce_TypefaceFileCache.h +74 -0
  999. package/ios/juce_modules/juce_graphics/fonts/juce_TypefaceTestData.cpp +6051 -0
  1000. package/ios/juce_modules/juce_graphics/geometry/juce_AffineTransform.cpp +307 -0
  1001. package/ios/juce_modules/juce_graphics/geometry/juce_AffineTransform.h +314 -0
  1002. package/ios/juce_modules/juce_graphics/geometry/juce_BorderSize.h +176 -0
  1003. package/ios/juce_modules/juce_graphics/geometry/juce_EdgeTable.cpp +848 -0
  1004. package/ios/juce_modules/juce_graphics/geometry/juce_EdgeTable.h +225 -0
  1005. package/ios/juce_modules/juce_graphics/geometry/juce_Line.h +454 -0
  1006. package/ios/juce_modules/juce_graphics/geometry/juce_Parallelogram.h +194 -0
  1007. package/ios/juce_modules/juce_graphics/geometry/juce_Parallelogram_test.cpp +75 -0
  1008. package/ios/juce_modules/juce_graphics/geometry/juce_Path.cpp +1531 -0
  1009. package/ios/juce_modules/juce_graphics/geometry/juce_Path.h +846 -0
  1010. package/ios/juce_modules/juce_graphics/geometry/juce_PathIterator.cpp +304 -0
  1011. package/ios/juce_modules/juce_graphics/geometry/juce_PathIterator.h +120 -0
  1012. package/ios/juce_modules/juce_graphics/geometry/juce_PathStrokeType.cpp +756 -0
  1013. package/ios/juce_modules/juce_graphics/geometry/juce_PathStrokeType.h +215 -0
  1014. package/ios/juce_modules/juce_graphics/geometry/juce_Point.h +269 -0
  1015. package/ios/juce_modules/juce_graphics/geometry/juce_Rectangle.h +1032 -0
  1016. package/ios/juce_modules/juce_graphics/geometry/juce_RectangleList.h +694 -0
  1017. package/ios/juce_modules/juce_graphics/geometry/juce_Rectangle_test.cpp +60 -0
  1018. package/ios/juce_modules/juce_graphics/image_formats/jpglib/README +385 -0
  1019. package/ios/juce_modules/juce_graphics/image_formats/jpglib/cderror.h +132 -0
  1020. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jcapimin.c +280 -0
  1021. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jcapistd.c +161 -0
  1022. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jccoefct.c +449 -0
  1023. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jccolor.c +459 -0
  1024. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jcdctmgr.c +387 -0
  1025. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jchuff.c +909 -0
  1026. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jchuff.h +52 -0
  1027. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jcinit.c +72 -0
  1028. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jcmainct.c +293 -0
  1029. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jcmarker.c +597 -0
  1030. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jcmaster.c +590 -0
  1031. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jcomapi.c +106 -0
  1032. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jconfig.h +59 -0
  1033. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jcparam.c +610 -0
  1034. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jcphuff.c +833 -0
  1035. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jcprepct.c +354 -0
  1036. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jcsample.c +519 -0
  1037. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jctrans.c +388 -0
  1038. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jdapimin.c +395 -0
  1039. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jdapistd.c +275 -0
  1040. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jdatasrc.c +212 -0
  1041. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jdcoefct.c +736 -0
  1042. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jdcolor.c +396 -0
  1043. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jdct.h +182 -0
  1044. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jddctmgr.c +269 -0
  1045. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jdhuff.c +625 -0
  1046. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jdhuff.h +206 -0
  1047. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jdinput.c +381 -0
  1048. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jdmainct.c +512 -0
  1049. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jdmarker.c +1292 -0
  1050. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jdmaster.c +557 -0
  1051. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jdmerge.c +400 -0
  1052. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jdphuff.c +642 -0
  1053. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jdpostct.c +290 -0
  1054. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jdsample.c +478 -0
  1055. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jdtrans.c +143 -0
  1056. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jerror.c +252 -0
  1057. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jerror.h +291 -0
  1058. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jfdctflt.c +168 -0
  1059. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jfdctfst.c +224 -0
  1060. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jfdctint.c +283 -0
  1061. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jidctflt.c +242 -0
  1062. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jidctfst.c +368 -0
  1063. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jidctint.c +389 -0
  1064. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jidctred.c +398 -0
  1065. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jinclude.h +197 -0
  1066. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jmemmgr.c +1118 -0
  1067. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jmemnobs.c +109 -0
  1068. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jmemsys.h +203 -0
  1069. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jmorecfg.h +363 -0
  1070. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jpegint.h +392 -0
  1071. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jpeglib.h +1096 -0
  1072. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jquant1.c +856 -0
  1073. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jquant2.c +1310 -0
  1074. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jutils.c +179 -0
  1075. package/ios/juce_modules/juce_graphics/image_formats/jpglib/jversion.h +14 -0
  1076. package/ios/juce_modules/juce_graphics/image_formats/jpglib/transupp.c +928 -0
  1077. package/ios/juce_modules/juce_graphics/image_formats/jpglib/transupp.h +135 -0
  1078. package/ios/juce_modules/juce_graphics/image_formats/juce_GIFLoader.cpp +464 -0
  1079. package/ios/juce_modules/juce_graphics/image_formats/juce_JPEGLoader.cpp +456 -0
  1080. package/ios/juce_modules/juce_graphics/image_formats/juce_PNGLoader.cpp +635 -0
  1081. package/ios/juce_modules/juce_graphics/image_formats/pnglib/png.c +4607 -0
  1082. package/ios/juce_modules/juce_graphics/image_formats/pnglib/png.h +3251 -0
  1083. package/ios/juce_modules/juce_graphics/image_formats/pnglib/pngconf.h +623 -0
  1084. package/ios/juce_modules/juce_graphics/image_formats/pnglib/pngdebug.h +153 -0
  1085. package/ios/juce_modules/juce_graphics/image_formats/pnglib/pngerror.c +963 -0
  1086. package/ios/juce_modules/juce_graphics/image_formats/pnglib/pngget.c +1249 -0
  1087. package/ios/juce_modules/juce_graphics/image_formats/pnglib/pnginfo.h +267 -0
  1088. package/ios/juce_modules/juce_graphics/image_formats/pnglib/pngmem.c +284 -0
  1089. package/ios/juce_modules/juce_graphics/image_formats/pnglib/pngpread.c +1096 -0
  1090. package/ios/juce_modules/juce_graphics/image_formats/pnglib/pngpriv.h +2156 -0
  1091. package/ios/juce_modules/juce_graphics/image_formats/pnglib/pngread.c +4225 -0
  1092. package/ios/juce_modules/juce_graphics/image_formats/pnglib/pngrio.c +120 -0
  1093. package/ios/juce_modules/juce_graphics/image_formats/pnglib/pngrtran.c +5102 -0
  1094. package/ios/juce_modules/juce_graphics/image_formats/pnglib/pngrutil.c +4681 -0
  1095. package/ios/juce_modules/juce_graphics/image_formats/pnglib/pngset.c +1802 -0
  1096. package/ios/juce_modules/juce_graphics/image_formats/pnglib/pngstruct.h +491 -0
  1097. package/ios/juce_modules/juce_graphics/image_formats/pnglib/pngtrans.c +864 -0
  1098. package/ios/juce_modules/juce_graphics/image_formats/pnglib/pngwio.c +168 -0
  1099. package/ios/juce_modules/juce_graphics/image_formats/pnglib/pngwrite.c +2395 -0
  1100. package/ios/juce_modules/juce_graphics/image_formats/pnglib/pngwtran.c +587 -0
  1101. package/ios/juce_modules/juce_graphics/image_formats/pnglib/pngwutil.c +2781 -0
  1102. package/ios/juce_modules/juce_graphics/images/juce_Image.cpp +851 -0
  1103. package/ios/juce_modules/juce_graphics/images/juce_Image.h +630 -0
  1104. package/ios/juce_modules/juce_graphics/images/juce_ImageCache.cpp +183 -0
  1105. package/ios/juce_modules/juce_graphics/images/juce_ImageCache.h +136 -0
  1106. package/ios/juce_modules/juce_graphics/images/juce_ImageConvolutionKernel.cpp +209 -0
  1107. package/ios/juce_modules/juce_graphics/images/juce_ImageConvolutionKernel.h +121 -0
  1108. package/ios/juce_modules/juce_graphics/images/juce_ImageFileFormat.cpp +120 -0
  1109. package/ios/juce_modules/juce_graphics/images/juce_ImageFileFormat.h +232 -0
  1110. package/ios/juce_modules/juce_graphics/images/juce_ScaledImage.h +93 -0
  1111. package/ios/juce_modules/juce_graphics/juce_graphics.cpp +230 -0
  1112. package/ios/juce_modules/juce_graphics/juce_graphics.h +162 -0
  1113. package/ios/juce_modules/juce_graphics/juce_graphics.mm +35 -0
  1114. package/ios/juce_modules/juce_graphics/juce_graphics_Harfbuzz.cpp +100 -0
  1115. package/ios/juce_modules/juce_graphics/native/juce_CoreGraphicsContext_mac.h +153 -0
  1116. package/ios/juce_modules/juce_graphics/native/juce_CoreGraphicsContext_mac.mm +969 -0
  1117. package/ios/juce_modules/juce_graphics/native/juce_CoreGraphicsHelpers_mac.h +117 -0
  1118. package/ios/juce_modules/juce_graphics/native/juce_Direct2DGraphicsContext_windows.cpp +1807 -0
  1119. package/ios/juce_modules/juce_graphics/native/juce_Direct2DGraphicsContext_windows.h +174 -0
  1120. package/ios/juce_modules/juce_graphics/native/juce_Direct2DHelpers_windows.cpp +456 -0
  1121. package/ios/juce_modules/juce_graphics/native/juce_Direct2DHwndContext_windows.cpp +784 -0
  1122. package/ios/juce_modules/juce_graphics/native/juce_Direct2DHwndContext_windows.h +73 -0
  1123. package/ios/juce_modules/juce_graphics/native/juce_Direct2DImageContext_windows.cpp +124 -0
  1124. package/ios/juce_modules/juce_graphics/native/juce_Direct2DImageContext_windows.h +55 -0
  1125. package/ios/juce_modules/juce_graphics/native/juce_Direct2DImage_windows.cpp +732 -0
  1126. package/ios/juce_modules/juce_graphics/native/juce_Direct2DImage_windows.h +94 -0
  1127. package/ios/juce_modules/juce_graphics/native/juce_Direct2DMetrics_windows.cpp +132 -0
  1128. package/ios/juce_modules/juce_graphics/native/juce_Direct2DMetrics_windows.h +320 -0
  1129. package/ios/juce_modules/juce_graphics/native/juce_Direct2DResources_windows.cpp +661 -0
  1130. package/ios/juce_modules/juce_graphics/native/juce_DirectWriteTypeface_windows.cpp +920 -0
  1131. package/ios/juce_modules/juce_graphics/native/juce_DirectX_windows.h +330 -0
  1132. package/ios/juce_modules/juce_graphics/native/juce_EventTracing.h +310 -0
  1133. package/ios/juce_modules/juce_graphics/native/juce_Fonts_android.cpp +636 -0
  1134. package/ios/juce_modules/juce_graphics/native/juce_Fonts_freetype.cpp +589 -0
  1135. package/ios/juce_modules/juce_graphics/native/juce_Fonts_linux.cpp +208 -0
  1136. package/ios/juce_modules/juce_graphics/native/juce_Fonts_mac.mm +416 -0
  1137. package/ios/juce_modules/juce_graphics/native/juce_GraphicsContext_android.cpp +43 -0
  1138. package/ios/juce_modules/juce_graphics/native/juce_IconHelpers_android.cpp +39 -0
  1139. package/ios/juce_modules/juce_graphics/native/juce_IconHelpers_linux.cpp +39 -0
  1140. package/ios/juce_modules/juce_graphics/native/juce_IconHelpers_mac.cpp +150 -0
  1141. package/ios/juce_modules/juce_graphics/native/juce_IconHelpers_windows.cpp +39 -0
  1142. package/ios/juce_modules/juce_graphics/native/juce_RenderingHelpers.h +2696 -0
  1143. package/ios/juce_modules/juce_graphics/placement/juce_Justification.h +196 -0
  1144. package/ios/juce_modules/juce_graphics/placement/juce_RectanglePlacement.cpp +131 -0
  1145. package/ios/juce_modules/juce_graphics/placement/juce_RectanglePlacement.h +183 -0
  1146. package/ios/juce_modules/juce_graphics/unicode/juce_Unicode.cpp +331 -0
  1147. package/ios/juce_modules/juce_graphics/unicode/juce_UnicodeBidi.cpp +1139 -0
  1148. package/ios/juce_modules/juce_graphics/unicode/juce_UnicodeBrackets.cpp +142 -0
  1149. package/ios/juce_modules/juce_graphics/unicode/juce_UnicodeGenerated.cpp +1380 -0
  1150. package/ios/juce_modules/juce_graphics/unicode/juce_UnicodeLine.cpp +273 -0
  1151. package/ios/juce_modules/juce_graphics/unicode/juce_UnicodeScript.cpp +235 -0
  1152. package/ios/juce_modules/juce_graphics/unicode/juce_UnicodeUtils.cpp +104 -0
  1153. package/ios/juce_modules/juce_gui_basics/accessibility/enums/juce_AccessibilityActions.h +128 -0
  1154. package/ios/juce_modules/juce_gui_basics/accessibility/enums/juce_AccessibilityEvent.h +90 -0
  1155. package/ios/juce_modules/juce_gui_basics/accessibility/enums/juce_AccessibilityRole.h +80 -0
  1156. package/ios/juce_modules/juce_gui_basics/accessibility/interfaces/juce_AccessibilityCellInterface.h +61 -0
  1157. package/ios/juce_modules/juce_gui_basics/accessibility/interfaces/juce_AccessibilityTableInterface.h +106 -0
  1158. package/ios/juce_modules/juce_gui_basics/accessibility/interfaces/juce_AccessibilityTextInterface.h +93 -0
  1159. package/ios/juce_modules/juce_gui_basics/accessibility/interfaces/juce_AccessibilityValueInterface.h +231 -0
  1160. package/ios/juce_modules/juce_gui_basics/accessibility/juce_AccessibilityHandler.cpp +412 -0
  1161. package/ios/juce_modules/juce_gui_basics/accessibility/juce_AccessibilityHandler.h +354 -0
  1162. package/ios/juce_modules/juce_gui_basics/accessibility/juce_AccessibilityState.h +236 -0
  1163. package/ios/juce_modules/juce_gui_basics/application/juce_Application.cpp +109 -0
  1164. package/ios/juce_modules/juce_gui_basics/application/juce_Application.h +202 -0
  1165. package/ios/juce_modules/juce_gui_basics/buttons/juce_ArrowButton.cpp +60 -0
  1166. package/ios/juce_modules/juce_gui_basics/buttons/juce_ArrowButton.h +74 -0
  1167. package/ios/juce_modules/juce_gui_basics/buttons/juce_Button.cpp +730 -0
  1168. package/ios/juce_modules/juce_gui_basics/buttons/juce_Button.h +559 -0
  1169. package/ios/juce_modules/juce_gui_basics/buttons/juce_DrawableButton.cpp +250 -0
  1170. package/ios/juce_modules/juce_gui_basics/buttons/juce_DrawableButton.h +206 -0
  1171. package/ios/juce_modules/juce_gui_basics/buttons/juce_HyperlinkButton.cpp +138 -0
  1172. package/ios/juce_modules/juce_gui_basics/buttons/juce_HyperlinkButton.h +139 -0
  1173. package/ios/juce_modules/juce_gui_basics/buttons/juce_ImageButton.cpp +207 -0
  1174. package/ios/juce_modules/juce_gui_basics/buttons/juce_ImageButton.h +170 -0
  1175. package/ios/juce_modules/juce_gui_basics/buttons/juce_ShapeButton.cpp +146 -0
  1176. package/ios/juce_modules/juce_gui_basics/buttons/juce_ShapeButton.h +135 -0
  1177. package/ios/juce_modules/juce_gui_basics/buttons/juce_TextButton.cpp +86 -0
  1178. package/ios/juce_modules/juce_gui_basics/buttons/juce_TextButton.h +118 -0
  1179. package/ios/juce_modules/juce_gui_basics/buttons/juce_ToggleButton.cpp +74 -0
  1180. package/ios/juce_modules/juce_gui_basics/buttons/juce_ToggleButton.h +102 -0
  1181. package/ios/juce_modules/juce_gui_basics/buttons/juce_ToolbarButton.cpp +122 -0
  1182. package/ios/juce_modules/juce_gui_basics/buttons/juce_ToolbarButton.h +107 -0
  1183. package/ios/juce_modules/juce_gui_basics/commands/juce_ApplicationCommandID.h +99 -0
  1184. package/ios/juce_modules/juce_gui_basics/commands/juce_ApplicationCommandInfo.cpp +75 -0
  1185. package/ios/juce_modules/juce_gui_basics/commands/juce_ApplicationCommandInfo.h +199 -0
  1186. package/ios/juce_modules/juce_gui_basics/commands/juce_ApplicationCommandManager.cpp +331 -0
  1187. package/ios/juce_modules/juce_gui_basics/commands/juce_ApplicationCommandManager.h +358 -0
  1188. package/ios/juce_modules/juce_gui_basics/commands/juce_ApplicationCommandTarget.cpp +195 -0
  1189. package/ios/juce_modules/juce_gui_basics/commands/juce_ApplicationCommandTarget.h +253 -0
  1190. package/ios/juce_modules/juce_gui_basics/commands/juce_KeyPressMappingSet.cpp +427 -0
  1191. package/ios/juce_modules/juce_gui_basics/commands/juce_KeyPressMappingSet.h +253 -0
  1192. package/ios/juce_modules/juce_gui_basics/components/juce_CachedComponentImage.h +81 -0
  1193. package/ios/juce_modules/juce_gui_basics/components/juce_Component.cpp +3013 -0
  1194. package/ios/juce_modules/juce_gui_basics/components/juce_Component.h +2716 -0
  1195. package/ios/juce_modules/juce_gui_basics/components/juce_ComponentListener.cpp +47 -0
  1196. package/ios/juce_modules/juce_gui_basics/components/juce_ComponentListener.h +131 -0
  1197. package/ios/juce_modules/juce_gui_basics/components/juce_ComponentTraverser.h +81 -0
  1198. package/ios/juce_modules/juce_gui_basics/components/juce_FocusTraverser.cpp +283 -0
  1199. package/ios/juce_modules/juce_gui_basics/components/juce_FocusTraverser.h +102 -0
  1200. package/ios/juce_modules/juce_gui_basics/components/juce_ModalComponentManager.cpp +295 -0
  1201. package/ios/juce_modules/juce_gui_basics/components/juce_ModalComponentManager.h +340 -0
  1202. package/ios/juce_modules/juce_gui_basics/desktop/juce_Desktop.cpp +386 -0
  1203. package/ios/juce_modules/juce_gui_basics/desktop/juce_Desktop.h +502 -0
  1204. package/ios/juce_modules/juce_gui_basics/desktop/juce_Displays.cpp +447 -0
  1205. package/ios/juce_modules/juce_gui_basics/desktop/juce_Displays.h +218 -0
  1206. package/ios/juce_modules/juce_gui_basics/detail/juce_AccessibilityHelpers.cpp +42 -0
  1207. package/ios/juce_modules/juce_gui_basics/detail/juce_AccessibilityHelpers.h +79 -0
  1208. package/ios/juce_modules/juce_gui_basics/detail/juce_AlertWindowHelpers.h +124 -0
  1209. package/ios/juce_modules/juce_gui_basics/detail/juce_ButtonAccessibilityHandler.h +134 -0
  1210. package/ios/juce_modules/juce_gui_basics/detail/juce_ComponentHelpers.h +291 -0
  1211. package/ios/juce_modules/juce_gui_basics/detail/juce_CustomMouseCursorInfo.h +44 -0
  1212. package/ios/juce_modules/juce_gui_basics/detail/juce_FocusHelpers.h +126 -0
  1213. package/ios/juce_modules/juce_gui_basics/detail/juce_FocusRestorer.h +55 -0
  1214. package/ios/juce_modules/juce_gui_basics/detail/juce_LookAndFeelHelpers.h +71 -0
  1215. package/ios/juce_modules/juce_gui_basics/detail/juce_MouseInputSourceImpl.h +597 -0
  1216. package/ios/juce_modules/juce_gui_basics/detail/juce_MouseInputSourceList.h +163 -0
  1217. package/ios/juce_modules/juce_gui_basics/detail/juce_PointerState.h +113 -0
  1218. package/ios/juce_modules/juce_gui_basics/detail/juce_ScalingHelpers.h +132 -0
  1219. package/ios/juce_modules/juce_gui_basics/detail/juce_ScopedContentSharerImpl.h +107 -0
  1220. package/ios/juce_modules/juce_gui_basics/detail/juce_ScopedContentSharerInterface.h +224 -0
  1221. package/ios/juce_modules/juce_gui_basics/detail/juce_ScopedMessageBoxImpl.h +141 -0
  1222. package/ios/juce_modules/juce_gui_basics/detail/juce_ScopedMessageBoxInterface.h +69 -0
  1223. package/ios/juce_modules/juce_gui_basics/detail/juce_StandardCachedComponentImage.h +102 -0
  1224. package/ios/juce_modules/juce_gui_basics/detail/juce_ToolbarItemDragAndDropOverlayComponent.h +127 -0
  1225. package/ios/juce_modules/juce_gui_basics/detail/juce_TopLevelWindowManager.h +145 -0
  1226. package/ios/juce_modules/juce_gui_basics/detail/juce_ViewportHelpers.h +58 -0
  1227. package/ios/juce_modules/juce_gui_basics/detail/juce_WindowingHelpers.h +70 -0
  1228. package/ios/juce_modules/juce_gui_basics/drawables/juce_Drawable.cpp +228 -0
  1229. package/ios/juce_modules/juce_gui_basics/drawables/juce_Drawable.h +271 -0
  1230. package/ios/juce_modules/juce_gui_basics/drawables/juce_DrawableComposite.cpp +173 -0
  1231. package/ios/juce_modules/juce_gui_basics/drawables/juce_DrawableComposite.h +126 -0
  1232. package/ios/juce_modules/juce_gui_basics/drawables/juce_DrawableImage.cpp +165 -0
  1233. package/ios/juce_modules/juce_gui_basics/drawables/juce_DrawableImage.h +126 -0
  1234. package/ios/juce_modules/juce_gui_basics/drawables/juce_DrawablePath.cpp +66 -0
  1235. package/ios/juce_modules/juce_gui_basics/drawables/juce_DrawablePath.h +86 -0
  1236. package/ios/juce_modules/juce_gui_basics/drawables/juce_DrawableRectangle.cpp +96 -0
  1237. package/ios/juce_modules/juce_gui_basics/drawables/juce_DrawableRectangle.h +85 -0
  1238. package/ios/juce_modules/juce_gui_basics/drawables/juce_DrawableShape.cpp +190 -0
  1239. package/ios/juce_modules/juce_gui_basics/drawables/juce_DrawableShape.h +135 -0
  1240. package/ios/juce_modules/juce_gui_basics/drawables/juce_DrawableText.cpp +241 -0
  1241. package/ios/juce_modules/juce_gui_basics/drawables/juce_DrawableText.h +130 -0
  1242. package/ios/juce_modules/juce_gui_basics/drawables/juce_SVGParser.cpp +1903 -0
  1243. package/ios/juce_modules/juce_gui_basics/filebrowser/juce_ContentSharer.cpp +83 -0
  1244. package/ios/juce_modules/juce_gui_basics/filebrowser/juce_ContentSharer.h +154 -0
  1245. package/ios/juce_modules/juce_gui_basics/filebrowser/juce_DirectoryContentsDisplayComponent.cpp +79 -0
  1246. package/ios/juce_modules/juce_gui_basics/filebrowser/juce_DirectoryContentsDisplayComponent.h +125 -0
  1247. package/ios/juce_modules/juce_gui_basics/filebrowser/juce_DirectoryContentsList.cpp +279 -0
  1248. package/ios/juce_modules/juce_gui_basics/filebrowser/juce_DirectoryContentsList.h +235 -0
  1249. package/ios/juce_modules/juce_gui_basics/filebrowser/juce_FileBrowserComponent.cpp +633 -0
  1250. package/ios/juce_modules/juce_gui_basics/filebrowser/juce_FileBrowserComponent.h +306 -0
  1251. package/ios/juce_modules/juce_gui_basics/filebrowser/juce_FileBrowserListener.h +67 -0
  1252. package/ios/juce_modules/juce_gui_basics/filebrowser/juce_FileChooser.cpp +292 -0
  1253. package/ios/juce_modules/juce_gui_basics/filebrowser/juce_FileChooser.h +358 -0
  1254. package/ios/juce_modules/juce_gui_basics/filebrowser/juce_FileChooserDialogBox.cpp +272 -0
  1255. package/ios/juce_modules/juce_gui_basics/filebrowser/juce_FileChooserDialogBox.h +177 -0
  1256. package/ios/juce_modules/juce_gui_basics/filebrowser/juce_FileListComponent.cpp +295 -0
  1257. package/ios/juce_modules/juce_gui_basics/filebrowser/juce_FileListComponent.h +104 -0
  1258. package/ios/juce_modules/juce_gui_basics/filebrowser/juce_FilePreviewComponent.h +75 -0
  1259. package/ios/juce_modules/juce_gui_basics/filebrowser/juce_FileSearchPathListComponent.cpp +280 -0
  1260. package/ios/juce_modules/juce_gui_basics/filebrowser/juce_FileSearchPathListComponent.h +126 -0
  1261. package/ios/juce_modules/juce_gui_basics/filebrowser/juce_FileTreeComponent.cpp +690 -0
  1262. package/ios/juce_modules/juce_gui_basics/filebrowser/juce_FileTreeComponent.h +117 -0
  1263. package/ios/juce_modules/juce_gui_basics/filebrowser/juce_FilenameComponent.cpp +277 -0
  1264. package/ios/juce_modules/juce_gui_basics/filebrowser/juce_FilenameComponent.h +245 -0
  1265. package/ios/juce_modules/juce_gui_basics/filebrowser/juce_ImagePreviewComponent.cpp +135 -0
  1266. package/ios/juce_modules/juce_gui_basics/filebrowser/juce_ImagePreviewComponent.h +77 -0
  1267. package/ios/juce_modules/juce_gui_basics/juce_gui_basics.cpp +370 -0
  1268. package/ios/juce_modules/juce_gui_basics/juce_gui_basics.h +403 -0
  1269. package/ios/juce_modules/juce_gui_basics/juce_gui_basics.mm +35 -0
  1270. package/ios/juce_modules/juce_gui_basics/keyboard/juce_CaretComponent.cpp +73 -0
  1271. package/ios/juce_modules/juce_gui_basics/keyboard/juce_CaretComponent.h +90 -0
  1272. package/ios/juce_modules/juce_gui_basics/keyboard/juce_KeyListener.cpp +43 -0
  1273. package/ios/juce_modules/juce_gui_basics/keyboard/juce_KeyListener.h +86 -0
  1274. package/ios/juce_modules/juce_gui_basics/keyboard/juce_KeyPress.cpp +298 -0
  1275. package/ios/juce_modules/juce_gui_basics/keyboard/juce_KeyPress.h +286 -0
  1276. package/ios/juce_modules/juce_gui_basics/keyboard/juce_KeyboardFocusTraverser.cpp +283 -0
  1277. package/ios/juce_modules/juce_gui_basics/keyboard/juce_KeyboardFocusTraverser.h +96 -0
  1278. package/ios/juce_modules/juce_gui_basics/keyboard/juce_ModifierKeys.cpp +58 -0
  1279. package/ios/juce_modules/juce_gui_basics/keyboard/juce_ModifierKeys.h +220 -0
  1280. package/ios/juce_modules/juce_gui_basics/keyboard/juce_SystemClipboard.h +58 -0
  1281. package/ios/juce_modules/juce_gui_basics/keyboard/juce_TextEditorKeyMapper.h +132 -0
  1282. package/ios/juce_modules/juce_gui_basics/keyboard/juce_TextInputTarget.h +129 -0
  1283. package/ios/juce_modules/juce_gui_basics/layout/juce_AnimatedPosition.h +216 -0
  1284. package/ios/juce_modules/juce_gui_basics/layout/juce_AnimatedPositionBehaviours.h +162 -0
  1285. package/ios/juce_modules/juce_gui_basics/layout/juce_BorderedComponentBoundsConstrainer.cpp +86 -0
  1286. package/ios/juce_modules/juce_gui_basics/layout/juce_BorderedComponentBoundsConstrainer.h +78 -0
  1287. package/ios/juce_modules/juce_gui_basics/layout/juce_ComponentAnimator.cpp +363 -0
  1288. package/ios/juce_modules/juce_gui_basics/layout/juce_ComponentAnimator.h +174 -0
  1289. package/ios/juce_modules/juce_gui_basics/layout/juce_ComponentBoundsConstrainer.cpp +314 -0
  1290. package/ios/juce_modules/juce_gui_basics/layout/juce_ComponentBoundsConstrainer.h +206 -0
  1291. package/ios/juce_modules/juce_gui_basics/layout/juce_ComponentBuilder.cpp +295 -0
  1292. package/ios/juce_modules/juce_gui_basics/layout/juce_ComponentBuilder.h +256 -0
  1293. package/ios/juce_modules/juce_gui_basics/layout/juce_ComponentMovementWatcher.cpp +151 -0
  1294. package/ios/juce_modules/juce_gui_basics/layout/juce_ComponentMovementWatcher.h +105 -0
  1295. package/ios/juce_modules/juce_gui_basics/layout/juce_ConcertinaPanel.cpp +512 -0
  1296. package/ios/juce_modules/juce_gui_basics/layout/juce_ConcertinaPanel.h +153 -0
  1297. package/ios/juce_modules/juce_gui_basics/layout/juce_FlexBox.cpp +1158 -0
  1298. package/ios/juce_modules/juce_gui_basics/layout/juce_FlexBox.h +152 -0
  1299. package/ios/juce_modules/juce_gui_basics/layout/juce_FlexItem.h +186 -0
  1300. package/ios/juce_modules/juce_gui_basics/layout/juce_Grid.cpp +1651 -0
  1301. package/ios/juce_modules/juce_gui_basics/layout/juce_Grid.h +232 -0
  1302. package/ios/juce_modules/juce_gui_basics/layout/juce_GridItem.cpp +188 -0
  1303. package/ios/juce_modules/juce_gui_basics/layout/juce_GridItem.h +249 -0
  1304. package/ios/juce_modules/juce_gui_basics/layout/juce_GroupComponent.cpp +87 -0
  1305. package/ios/juce_modules/juce_gui_basics/layout/juce_GroupComponent.h +120 -0
  1306. package/ios/juce_modules/juce_gui_basics/layout/juce_MultiDocumentPanel.cpp +641 -0
  1307. package/ios/juce_modules/juce_gui_basics/layout/juce_MultiDocumentPanel.h +390 -0
  1308. package/ios/juce_modules/juce_gui_basics/layout/juce_ResizableBorderComponent.cpp +208 -0
  1309. package/ios/juce_modules/juce_gui_basics/layout/juce_ResizableBorderComponent.h +205 -0
  1310. package/ios/juce_modules/juce_gui_basics/layout/juce_ResizableCornerComponent.cpp +112 -0
  1311. package/ios/juce_modules/juce_gui_basics/layout/juce_ResizableCornerComponent.h +101 -0
  1312. package/ios/juce_modules/juce_gui_basics/layout/juce_ResizableEdgeComponent.cpp +139 -0
  1313. package/ios/juce_modules/juce_gui_basics/layout/juce_ResizableEdgeComponent.h +109 -0
  1314. package/ios/juce_modules/juce_gui_basics/layout/juce_ScrollBar.cpp +486 -0
  1315. package/ios/juce_modules/juce_gui_basics/layout/juce_ScrollBar.h +450 -0
  1316. package/ios/juce_modules/juce_gui_basics/layout/juce_SidePanel.cpp +309 -0
  1317. package/ios/juce_modules/juce_gui_basics/layout/juce_SidePanel.h +248 -0
  1318. package/ios/juce_modules/juce_gui_basics/layout/juce_StretchableLayoutManager.cpp +351 -0
  1319. package/ios/juce_modules/juce_gui_basics/layout/juce_StretchableLayoutManager.h +270 -0
  1320. package/ios/juce_modules/juce_gui_basics/layout/juce_StretchableLayoutResizerBar.cpp +88 -0
  1321. package/ios/juce_modules/juce_gui_basics/layout/juce_StretchableLayoutResizerBar.h +114 -0
  1322. package/ios/juce_modules/juce_gui_basics/layout/juce_StretchableObjectResizer.cpp +131 -0
  1323. package/ios/juce_modules/juce_gui_basics/layout/juce_StretchableObjectResizer.h +111 -0
  1324. package/ios/juce_modules/juce_gui_basics/layout/juce_TabbedButtonBar.cpp +592 -0
  1325. package/ios/juce_modules/juce_gui_basics/layout/juce_TabbedButtonBar.h +382 -0
  1326. package/ios/juce_modules/juce_gui_basics/layout/juce_TabbedComponent.cpp +328 -0
  1327. package/ios/juce_modules/juce_gui_basics/layout/juce_TabbedComponent.h +236 -0
  1328. package/ios/juce_modules/juce_gui_basics/layout/juce_Viewport.cpp +649 -0
  1329. package/ios/juce_modules/juce_gui_basics/layout/juce_Viewport.h +383 -0
  1330. package/ios/juce_modules/juce_gui_basics/lookandfeel/juce_LookAndFeel.cpp +201 -0
  1331. package/ios/juce_modules/juce_gui_basics/lookandfeel/juce_LookAndFeel.h +301 -0
  1332. package/ios/juce_modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V1.cpp +599 -0
  1333. package/ios/juce_modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V1.h +114 -0
  1334. package/ios/juce_modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V2.cpp +3200 -0
  1335. package/ios/juce_modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V2.h +443 -0
  1336. package/ios/juce_modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V3.cpp +655 -0
  1337. package/ios/juce_modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V3.h +107 -0
  1338. package/ios/juce_modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V4.cpp +1516 -0
  1339. package/ios/juce_modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V4.h +269 -0
  1340. package/ios/juce_modules/juce_gui_basics/menus/juce_BurgerMenuComponent.cpp +311 -0
  1341. package/ios/juce_modules/juce_gui_basics/menus/juce_BurgerMenuComponent.h +120 -0
  1342. package/ios/juce_modules/juce_gui_basics/menus/juce_MenuBarComponent.cpp +472 -0
  1343. package/ios/juce_modules/juce_gui_basics/menus/juce_MenuBarComponent.h +138 -0
  1344. package/ios/juce_modules/juce_gui_basics/menus/juce_MenuBarModel.cpp +108 -0
  1345. package/ios/juce_modules/juce_gui_basics/menus/juce_MenuBarModel.h +201 -0
  1346. package/ios/juce_modules/juce_gui_basics/menus/juce_PopupMenu.cpp +2401 -0
  1347. package/ios/juce_modules/juce_gui_basics/menus/juce_PopupMenu.h +1070 -0
  1348. package/ios/juce_modules/juce_gui_basics/misc/juce_BubbleComponent.cpp +162 -0
  1349. package/ios/juce_modules/juce_gui_basics/misc/juce_BubbleComponent.h +213 -0
  1350. package/ios/juce_modules/juce_gui_basics/misc/juce_DropShadower.cpp +408 -0
  1351. package/ios/juce_modules/juce_gui_basics/misc/juce_DropShadower.h +96 -0
  1352. package/ios/juce_modules/juce_gui_basics/misc/juce_FocusOutline.cpp +194 -0
  1353. package/ios/juce_modules/juce_gui_basics/misc/juce_FocusOutline.h +109 -0
  1354. package/ios/juce_modules/juce_gui_basics/mouse/juce_ComponentDragger.cpp +76 -0
  1355. package/ios/juce_modules/juce_gui_basics/mouse/juce_ComponentDragger.h +110 -0
  1356. package/ios/juce_modules/juce_gui_basics/mouse/juce_DragAndDropContainer.cpp +646 -0
  1357. package/ios/juce_modules/juce_gui_basics/mouse/juce_DragAndDropContainer.h +275 -0
  1358. package/ios/juce_modules/juce_gui_basics/mouse/juce_DragAndDropTarget.h +149 -0
  1359. package/ios/juce_modules/juce_gui_basics/mouse/juce_FileDragAndDropTarget.h +115 -0
  1360. package/ios/juce_modules/juce_gui_basics/mouse/juce_LassoComponent.h +233 -0
  1361. package/ios/juce_modules/juce_gui_basics/mouse/juce_MouseCursor.cpp +162 -0
  1362. package/ios/juce_modules/juce_gui_basics/mouse/juce_MouseCursor.h +199 -0
  1363. package/ios/juce_modules/juce_gui_basics/mouse/juce_MouseEvent.cpp +147 -0
  1364. package/ios/juce_modules/juce_gui_basics/mouse/juce_MouseEvent.h +463 -0
  1365. package/ios/juce_modules/juce_gui_basics/mouse/juce_MouseInactivityDetector.cpp +86 -0
  1366. package/ios/juce_modules/juce_gui_basics/mouse/juce_MouseInactivityDetector.h +121 -0
  1367. package/ios/juce_modules/juce_gui_basics/mouse/juce_MouseInputSource.cpp +114 -0
  1368. package/ios/juce_modules/juce_gui_basics/mouse/juce_MouseInputSource.h +315 -0
  1369. package/ios/juce_modules/juce_gui_basics/mouse/juce_MouseListener.cpp +48 -0
  1370. package/ios/juce_modules/juce_gui_basics/mouse/juce_MouseListener.h +180 -0
  1371. package/ios/juce_modules/juce_gui_basics/mouse/juce_SelectedItemSet.h +336 -0
  1372. package/ios/juce_modules/juce_gui_basics/mouse/juce_TextDragAndDropTarget.h +115 -0
  1373. package/ios/juce_modules/juce_gui_basics/mouse/juce_TooltipClient.h +98 -0
  1374. package/ios/juce_modules/juce_gui_basics/native/accessibility/juce_Accessibility.cpp +46 -0
  1375. package/ios/juce_modules/juce_gui_basics/native/accessibility/juce_AccessibilityElement_windows.cpp +660 -0
  1376. package/ios/juce_modules/juce_gui_basics/native/accessibility/juce_AccessibilityElement_windows.h +89 -0
  1377. package/ios/juce_modules/juce_gui_basics/native/accessibility/juce_AccessibilitySharedCode_mac.mm +283 -0
  1378. package/ios/juce_modules/juce_gui_basics/native/accessibility/juce_AccessibilityTextHelpers.h +311 -0
  1379. package/ios/juce_modules/juce_gui_basics/native/accessibility/juce_AccessibilityTextHelpers_test.cpp +164 -0
  1380. package/ios/juce_modules/juce_gui_basics/native/accessibility/juce_Accessibility_android.cpp +1058 -0
  1381. package/ios/juce_modules/juce_gui_basics/native/accessibility/juce_Accessibility_ios.mm +669 -0
  1382. package/ios/juce_modules/juce_gui_basics/native/accessibility/juce_Accessibility_mac.mm +942 -0
  1383. package/ios/juce_modules/juce_gui_basics/native/accessibility/juce_Accessibility_windows.cpp +336 -0
  1384. package/ios/juce_modules/juce_gui_basics/native/accessibility/juce_UIAExpandCollapseProvider_windows.h +92 -0
  1385. package/ios/juce_modules/juce_gui_basics/native/accessibility/juce_UIAGridItemProvider_windows.h +162 -0
  1386. package/ios/juce_modules/juce_gui_basics/native/accessibility/juce_UIAGridProvider_windows.h +160 -0
  1387. package/ios/juce_modules/juce_gui_basics/native/accessibility/juce_UIAHelpers_windows.h +128 -0
  1388. package/ios/juce_modules/juce_gui_basics/native/accessibility/juce_UIAInvokeProvider_windows.h +68 -0
  1389. package/ios/juce_modules/juce_gui_basics/native/accessibility/juce_UIAProviderBase_windows.h +67 -0
  1390. package/ios/juce_modules/juce_gui_basics/native/accessibility/juce_UIAProviders_windows.h +52 -0
  1391. package/ios/juce_modules/juce_gui_basics/native/accessibility/juce_UIARangeValueProvider_windows.h +146 -0
  1392. package/ios/juce_modules/juce_gui_basics/native/accessibility/juce_UIASelectionProvider_windows.h +254 -0
  1393. package/ios/juce_modules/juce_gui_basics/native/accessibility/juce_UIATextProvider_windows.h +626 -0
  1394. package/ios/juce_modules/juce_gui_basics/native/accessibility/juce_UIAToggleProvider_windows.h +87 -0
  1395. package/ios/juce_modules/juce_gui_basics/native/accessibility/juce_UIATransformProvider_windows.h +131 -0
  1396. package/ios/juce_modules/juce_gui_basics/native/accessibility/juce_UIAValueProvider_windows.h +92 -0
  1397. package/ios/juce_modules/juce_gui_basics/native/accessibility/juce_UIAWindowProvider_windows.h +203 -0
  1398. package/ios/juce_modules/juce_gui_basics/native/accessibility/juce_WindowsUIAWrapper_windows.h +169 -0
  1399. package/ios/juce_modules/juce_gui_basics/native/java/app/com/rmsl/juce/ComponentPeerView.java +987 -0
  1400. package/ios/juce_modules/juce_gui_basics/native/java/app/com/rmsl/juce/JuceContentProviderCursor.java +62 -0
  1401. package/ios/juce_modules/juce_gui_basics/native/java/app/com/rmsl/juce/JuceContentProviderFileObserver.java +57 -0
  1402. package/ios/juce_modules/juce_gui_basics/native/javaopt/app/com/rmsl/juce/JuceActivity.java +63 -0
  1403. package/ios/juce_modules/juce_gui_basics/native/javaopt/app/com/rmsl/juce/JuceSharingContentProvider.java +128 -0
  1404. package/ios/juce_modules/juce_gui_basics/native/javaopt/app/com/rmsl/juce/Receiver.java +51 -0
  1405. package/ios/juce_modules/juce_gui_basics/native/juce_CGMetalLayerRenderer_mac.h +384 -0
  1406. package/ios/juce_modules/juce_gui_basics/native/juce_ContentSharer_android.cpp +963 -0
  1407. package/ios/juce_modules/juce_gui_basics/native/juce_ContentSharer_ios.cpp +134 -0
  1408. package/ios/juce_modules/juce_gui_basics/native/juce_DragAndDrop_linux.cpp +618 -0
  1409. package/ios/juce_modules/juce_gui_basics/native/juce_DragAndDrop_windows.cpp +377 -0
  1410. package/ios/juce_modules/juce_gui_basics/native/juce_FileChooser_android.cpp +276 -0
  1411. package/ios/juce_modules/juce_gui_basics/native/juce_FileChooser_ios.mm +379 -0
  1412. package/ios/juce_modules/juce_gui_basics/native/juce_FileChooser_linux.cpp +296 -0
  1413. package/ios/juce_modules/juce_gui_basics/native/juce_FileChooser_mac.mm +414 -0
  1414. package/ios/juce_modules/juce_gui_basics/native/juce_FileChooser_windows.cpp +908 -0
  1415. package/ios/juce_modules/juce_gui_basics/native/juce_MainMenu_mac.mm +848 -0
  1416. package/ios/juce_modules/juce_gui_basics/native/juce_MouseCursor_mac.mm +205 -0
  1417. package/ios/juce_modules/juce_gui_basics/native/juce_MultiTouchMapper.h +116 -0
  1418. package/ios/juce_modules/juce_gui_basics/native/juce_NSViewComponentPeer_mac.mm +3053 -0
  1419. package/ios/juce_modules/juce_gui_basics/native/juce_NativeMessageBox_android.cpp +124 -0
  1420. package/ios/juce_modules/juce_gui_basics/native/juce_NativeMessageBox_ios.mm +119 -0
  1421. package/ios/juce_modules/juce_gui_basics/native/juce_NativeMessageBox_linux.cpp +78 -0
  1422. package/ios/juce_modules/juce_gui_basics/native/juce_NativeMessageBox_mac.mm +140 -0
  1423. package/ios/juce_modules/juce_gui_basics/native/juce_NativeMessageBox_windows.cpp +354 -0
  1424. package/ios/juce_modules/juce_gui_basics/native/juce_NativeModalWrapperComponent_ios.h +141 -0
  1425. package/ios/juce_modules/juce_gui_basics/native/juce_PerScreenDisplayLinks_mac.h +313 -0
  1426. package/ios/juce_modules/juce_gui_basics/native/juce_ScopedDPIAwarenessDisabler.cpp +43 -0
  1427. package/ios/juce_modules/juce_gui_basics/native/juce_ScopedDPIAwarenessDisabler.h +63 -0
  1428. package/ios/juce_modules/juce_gui_basics/native/juce_ScopedThreadDPIAwarenessSetter_windows.h +52 -0
  1429. package/ios/juce_modules/juce_gui_basics/native/juce_ScopedWindowAssociation_linux.h +127 -0
  1430. package/ios/juce_modules/juce_gui_basics/native/juce_UIViewComponentPeer_ios.mm +2376 -0
  1431. package/ios/juce_modules/juce_gui_basics/native/juce_VBlank_windows.cpp +302 -0
  1432. package/ios/juce_modules/juce_gui_basics/native/juce_WindowUtils_android.cpp +43 -0
  1433. package/ios/juce_modules/juce_gui_basics/native/juce_WindowUtils_ios.mm +43 -0
  1434. package/ios/juce_modules/juce_gui_basics/native/juce_WindowUtils_linux.cpp +48 -0
  1435. package/ios/juce_modules/juce_gui_basics/native/juce_WindowUtils_mac.mm +47 -0
  1436. package/ios/juce_modules/juce_gui_basics/native/juce_WindowUtils_windows.cpp +68 -0
  1437. package/ios/juce_modules/juce_gui_basics/native/juce_Windowing_android.cpp +2903 -0
  1438. package/ios/juce_modules/juce_gui_basics/native/juce_Windowing_ios.mm +629 -0
  1439. package/ios/juce_modules/juce_gui_basics/native/juce_Windowing_linux.cpp +863 -0
  1440. package/ios/juce_modules/juce_gui_basics/native/juce_Windowing_mac.mm +588 -0
  1441. package/ios/juce_modules/juce_gui_basics/native/juce_Windowing_windows.cpp +5549 -0
  1442. package/ios/juce_modules/juce_gui_basics/native/juce_WindowsHooks_windows.cpp +118 -0
  1443. package/ios/juce_modules/juce_gui_basics/native/juce_WindowsHooks_windows.h +55 -0
  1444. package/ios/juce_modules/juce_gui_basics/native/juce_XSymbols_linux.cpp +249 -0
  1445. package/ios/juce_modules/juce_gui_basics/native/juce_XSymbols_linux.h +629 -0
  1446. package/ios/juce_modules/juce_gui_basics/native/juce_XWindowSystem_linux.cpp +4036 -0
  1447. package/ios/juce_modules/juce_gui_basics/native/juce_XWindowSystem_linux.h +364 -0
  1448. package/ios/juce_modules/juce_gui_basics/positioning/juce_MarkerList.cpp +293 -0
  1449. package/ios/juce_modules/juce_gui_basics/positioning/juce_MarkerList.h +204 -0
  1450. package/ios/juce_modules/juce_gui_basics/positioning/juce_RelativeCoordinate.cpp +162 -0
  1451. package/ios/juce_modules/juce_gui_basics/positioning/juce_RelativeCoordinate.h +190 -0
  1452. package/ios/juce_modules/juce_gui_basics/positioning/juce_RelativeCoordinatePositioner.cpp +344 -0
  1453. package/ios/juce_modules/juce_gui_basics/positioning/juce_RelativeCoordinatePositioner.h +99 -0
  1454. package/ios/juce_modules/juce_gui_basics/positioning/juce_RelativeParallelogram.cpp +149 -0
  1455. package/ios/juce_modules/juce_gui_basics/positioning/juce_RelativeParallelogram.h +75 -0
  1456. package/ios/juce_modules/juce_gui_basics/positioning/juce_RelativePoint.cpp +110 -0
  1457. package/ios/juce_modules/juce_gui_basics/positioning/juce_RelativePoint.h +100 -0
  1458. package/ios/juce_modules/juce_gui_basics/positioning/juce_RelativePointPath.cpp +271 -0
  1459. package/ios/juce_modules/juce_gui_basics/positioning/juce_RelativePointPath.h +202 -0
  1460. package/ios/juce_modules/juce_gui_basics/positioning/juce_RelativeRectangle.cpp +286 -0
  1461. package/ios/juce_modules/juce_gui_basics/positioning/juce_RelativeRectangle.h +117 -0
  1462. package/ios/juce_modules/juce_gui_basics/properties/juce_BooleanPropertyComponent.cpp +95 -0
  1463. package/ios/juce_modules/juce_gui_basics/properties/juce_BooleanPropertyComponent.h +118 -0
  1464. package/ios/juce_modules/juce_gui_basics/properties/juce_ButtonPropertyComponent.cpp +55 -0
  1465. package/ios/juce_modules/juce_gui_basics/properties/juce_ButtonPropertyComponent.h +85 -0
  1466. package/ios/juce_modules/juce_gui_basics/properties/juce_ChoicePropertyComponent.cpp +284 -0
  1467. package/ios/juce_modules/juce_gui_basics/properties/juce_ChoicePropertyComponent.h +162 -0
  1468. package/ios/juce_modules/juce_gui_basics/properties/juce_MultiChoicePropertyComponent.cpp +367 -0
  1469. package/ios/juce_modules/juce_gui_basics/properties/juce_MultiChoicePropertyComponent.h +150 -0
  1470. package/ios/juce_modules/juce_gui_basics/properties/juce_PropertyComponent.cpp +65 -0
  1471. package/ios/juce_modules/juce_gui_basics/properties/juce_PropertyComponent.h +154 -0
  1472. package/ios/juce_modules/juce_gui_basics/properties/juce_PropertyPanel.cpp +405 -0
  1473. package/ios/juce_modules/juce_gui_basics/properties/juce_PropertyPanel.h +186 -0
  1474. package/ios/juce_modules/juce_gui_basics/properties/juce_SliderPropertyComponent.cpp +95 -0
  1475. package/ios/juce_modules/juce_gui_basics/properties/juce_SliderPropertyComponent.h +116 -0
  1476. package/ios/juce_modules/juce_gui_basics/properties/juce_TextPropertyComponent.cpp +271 -0
  1477. package/ios/juce_modules/juce_gui_basics/properties/juce_TextPropertyComponent.h +196 -0
  1478. package/ios/juce_modules/juce_gui_basics/widgets/juce_ComboBox.cpp +721 -0
  1479. package/ios/juce_modules/juce_gui_basics/widgets/juce_ComboBox.h +473 -0
  1480. package/ios/juce_modules/juce_gui_basics/widgets/juce_ImageComponent.cpp +116 -0
  1481. package/ios/juce_modules/juce_gui_basics/widgets/juce_ImageComponent.h +90 -0
  1482. package/ios/juce_modules/juce_gui_basics/widgets/juce_Label.cpp +592 -0
  1483. package/ios/juce_modules/juce_gui_basics/widgets/juce_Label.h +377 -0
  1484. package/ios/juce_modules/juce_gui_basics/widgets/juce_ListBox.cpp +1263 -0
  1485. package/ios/juce_modules/juce_gui_basics/widgets/juce_ListBox.h +656 -0
  1486. package/ios/juce_modules/juce_gui_basics/widgets/juce_ProgressBar.cpp +189 -0
  1487. package/ios/juce_modules/juce_gui_basics/widgets/juce_ProgressBar.h +215 -0
  1488. package/ios/juce_modules/juce_gui_basics/widgets/juce_Slider.cpp +1839 -0
  1489. package/ios/juce_modules/juce_gui_basics/widgets/juce_Slider.h +1048 -0
  1490. package/ios/juce_modules/juce_gui_basics/widgets/juce_TableHeaderComponent.cpp +935 -0
  1491. package/ios/juce_modules/juce_gui_basics/widgets/juce_TableHeaderComponent.h +472 -0
  1492. package/ios/juce_modules/juce_gui_basics/widgets/juce_TableListBox.cpp +688 -0
  1493. package/ios/juce_modules/juce_gui_basics/widgets/juce_TableListBox.h +365 -0
  1494. package/ios/juce_modules/juce_gui_basics/widgets/juce_TextEditor.cpp +2786 -0
  1495. package/ios/juce_modules/juce_gui_basics/widgets/juce_TextEditor.h +888 -0
  1496. package/ios/juce_modules/juce_gui_basics/widgets/juce_Toolbar.cpp +838 -0
  1497. package/ios/juce_modules/juce_gui_basics/widgets/juce_Toolbar.h +347 -0
  1498. package/ios/juce_modules/juce_gui_basics/widgets/juce_ToolbarItemComponent.cpp +173 -0
  1499. package/ios/juce_modules/juce_gui_basics/widgets/juce_ToolbarItemComponent.h +217 -0
  1500. package/ios/juce_modules/juce_gui_basics/widgets/juce_ToolbarItemFactory.h +118 -0
  1501. package/ios/juce_modules/juce_gui_basics/widgets/juce_ToolbarItemPalette.cpp +125 -0
  1502. package/ios/juce_modules/juce_gui_basics/widgets/juce_ToolbarItemPalette.h +88 -0
  1503. package/ios/juce_modules/juce_gui_basics/widgets/juce_TreeView.cpp +2286 -0
  1504. package/ios/juce_modules/juce_gui_basics/widgets/juce_TreeView.h +969 -0
  1505. package/ios/juce_modules/juce_gui_basics/windows/juce_AlertWindow.cpp +712 -0
  1506. package/ios/juce_modules/juce_gui_basics/windows/juce_AlertWindow.h +600 -0
  1507. package/ios/juce_modules/juce_gui_basics/windows/juce_CallOutBox.cpp +279 -0
  1508. package/ios/juce_modules/juce_gui_basics/windows/juce_CallOutBox.h +197 -0
  1509. package/ios/juce_modules/juce_gui_basics/windows/juce_ComponentPeer.cpp +625 -0
  1510. package/ios/juce_modules/juce_gui_basics/windows/juce_ComponentPeer.h +623 -0
  1511. package/ios/juce_modules/juce_gui_basics/windows/juce_DialogWindow.cpp +190 -0
  1512. package/ios/juce_modules/juce_gui_basics/windows/juce_DialogWindow.h +286 -0
  1513. package/ios/juce_modules/juce_gui_basics/windows/juce_DocumentWindow.cpp +423 -0
  1514. package/ios/juce_modules/juce_gui_basics/windows/juce_DocumentWindow.h +316 -0
  1515. package/ios/juce_modules/juce_gui_basics/windows/juce_MessageBoxOptions.cpp +102 -0
  1516. package/ios/juce_modules/juce_gui_basics/windows/juce_MessageBoxOptions.h +202 -0
  1517. package/ios/juce_modules/juce_gui_basics/windows/juce_NativeMessageBox.cpp +167 -0
  1518. package/ios/juce_modules/juce_gui_basics/windows/juce_NativeMessageBox.h +311 -0
  1519. package/ios/juce_modules/juce_gui_basics/windows/juce_NativeScaleFactorNotifier.cpp +75 -0
  1520. package/ios/juce_modules/juce_gui_basics/windows/juce_NativeScaleFactorNotifier.h +78 -0
  1521. package/ios/juce_modules/juce_gui_basics/windows/juce_ResizableWindow.cpp +679 -0
  1522. package/ios/juce_modules/juce_gui_basics/windows/juce_ResizableWindow.h +427 -0
  1523. package/ios/juce_modules/juce_gui_basics/windows/juce_ScopedMessageBox.cpp +67 -0
  1524. package/ios/juce_modules/juce_gui_basics/windows/juce_ScopedMessageBox.h +78 -0
  1525. package/ios/juce_modules/juce_gui_basics/windows/juce_ThreadWithProgressWindow.cpp +128 -0
  1526. package/ios/juce_modules/juce_gui_basics/windows/juce_ThreadWithProgressWindow.h +184 -0
  1527. package/ios/juce_modules/juce_gui_basics/windows/juce_TooltipWindow.cpp +264 -0
  1528. package/ios/juce_modules/juce_gui_basics/windows/juce_TooltipWindow.h +169 -0
  1529. package/ios/juce_modules/juce_gui_basics/windows/juce_TopLevelWindow.cpp +264 -0
  1530. package/ios/juce_modules/juce_gui_basics/windows/juce_TopLevelWindow.h +176 -0
  1531. package/ios/juce_modules/juce_gui_basics/windows/juce_VBlankAttachment.cpp +122 -0
  1532. package/ios/juce_modules/juce_gui_basics/windows/juce_VBlankAttachment.h +85 -0
  1533. package/ios/juce_modules/juce_gui_basics/windows/juce_WindowUtils.h +51 -0
  1534. package/ios/juce_modules/juce_gui_extra/code_editor/juce_CPlusPlusCodeTokeniser.cpp +83 -0
  1535. package/ios/juce_modules/juce_gui_extra/code_editor/juce_CPlusPlusCodeTokeniser.h +81 -0
  1536. package/ios/juce_modules/juce_gui_extra/code_editor/juce_CPlusPlusCodeTokeniserFunctions.h +683 -0
  1537. package/ios/juce_modules/juce_gui_extra/code_editor/juce_CodeDocument.cpp +1306 -0
  1538. package/ios/juce_modules/juce_gui_extra/code_editor/juce_CodeDocument.h +459 -0
  1539. package/ios/juce_modules/juce_gui_extra/code_editor/juce_CodeEditorComponent.cpp +1857 -0
  1540. package/ios/juce_modules/juce_gui_extra/code_editor/juce_CodeEditorComponent.h +486 -0
  1541. package/ios/juce_modules/juce_gui_extra/code_editor/juce_CodeTokeniser.h +68 -0
  1542. package/ios/juce_modules/juce_gui_extra/code_editor/juce_LuaCodeTokeniser.cpp +248 -0
  1543. package/ios/juce_modules/juce_gui_extra/code_editor/juce_LuaCodeTokeniser.h +74 -0
  1544. package/ios/juce_modules/juce_gui_extra/code_editor/juce_XMLCodeTokeniser.cpp +181 -0
  1545. package/ios/juce_modules/juce_gui_extra/code_editor/juce_XMLCodeTokeniser.h +72 -0
  1546. package/ios/juce_modules/juce_gui_extra/detail/juce_WebControlRelayEvents.h +255 -0
  1547. package/ios/juce_modules/juce_gui_extra/documents/juce_FileBasedDocument.cpp +1124 -0
  1548. package/ios/juce_modules/juce_gui_extra/documents/juce_FileBasedDocument.h +440 -0
  1549. package/ios/juce_modules/juce_gui_extra/embedding/juce_ActiveXControlComponent.h +142 -0
  1550. package/ios/juce_modules/juce_gui_extra/embedding/juce_AndroidViewComponent.h +91 -0
  1551. package/ios/juce_modules/juce_gui_extra/embedding/juce_HWNDComponent.h +98 -0
  1552. package/ios/juce_modules/juce_gui_extra/embedding/juce_NSViewComponent.h +107 -0
  1553. package/ios/juce_modules/juce_gui_extra/embedding/juce_UIViewComponent.h +99 -0
  1554. package/ios/juce_modules/juce_gui_extra/embedding/juce_XEmbedComponent.h +129 -0
  1555. package/ios/juce_modules/juce_gui_extra/juce_gui_extra.cpp +210 -0
  1556. package/ios/juce_modules/juce_gui_extra/juce_gui_extra.h +161 -0
  1557. package/ios/juce_modules/juce_gui_extra/juce_gui_extra.mm +35 -0
  1558. package/ios/juce_modules/juce_gui_extra/misc/juce_AnimatedAppComponent.cpp +89 -0
  1559. package/ios/juce_modules/juce_gui_extra/misc/juce_AnimatedAppComponent.h +96 -0
  1560. package/ios/juce_modules/juce_gui_extra/misc/juce_AppleRemote.h +126 -0
  1561. package/ios/juce_modules/juce_gui_extra/misc/juce_BubbleMessageComponent.cpp +133 -0
  1562. package/ios/juce_modules/juce_gui_extra/misc/juce_BubbleMessageComponent.h +134 -0
  1563. package/ios/juce_modules/juce_gui_extra/misc/juce_ColourSelector.cpp +656 -0
  1564. package/ios/juce_modules/juce_gui_extra/misc/juce_ColourSelector.h +173 -0
  1565. package/ios/juce_modules/juce_gui_extra/misc/juce_KeyMappingEditorComponent.cpp +486 -0
  1566. package/ios/juce_modules/juce_gui_extra/misc/juce_KeyMappingEditorComponent.h +142 -0
  1567. package/ios/juce_modules/juce_gui_extra/misc/juce_LiveConstantEditor.cpp +501 -0
  1568. package/ios/juce_modules/juce_gui_extra/misc/juce_LiveConstantEditor.h +310 -0
  1569. package/ios/juce_modules/juce_gui_extra/misc/juce_PreferencesPanel.cpp +165 -0
  1570. package/ios/juce_modules/juce_gui_extra/misc/juce_PreferencesPanel.h +156 -0
  1571. package/ios/juce_modules/juce_gui_extra/misc/juce_PushNotifications.cpp +239 -0
  1572. package/ios/juce_modules/juce_gui_extra/misc/juce_PushNotifications.h +714 -0
  1573. package/ios/juce_modules/juce_gui_extra/misc/juce_RecentlyOpenedFilesList.cpp +189 -0
  1574. package/ios/juce_modules/juce_gui_extra/misc/juce_RecentlyOpenedFilesList.h +186 -0
  1575. package/ios/juce_modules/juce_gui_extra/misc/juce_SplashScreen.cpp +110 -0
  1576. package/ios/juce_modules/juce_gui_extra/misc/juce_SplashScreen.h +165 -0
  1577. package/ios/juce_modules/juce_gui_extra/misc/juce_SystemTrayIconComponent.cpp +51 -0
  1578. package/ios/juce_modules/juce_gui_extra/misc/juce_SystemTrayIconComponent.h +125 -0
  1579. package/ios/juce_modules/juce_gui_extra/misc/juce_WebBrowserComponent.cpp +722 -0
  1580. package/ios/juce_modules/juce_gui_extra/misc/juce_WebBrowserComponent.h +626 -0
  1581. package/ios/juce_modules/juce_gui_extra/misc/juce_WebControlParameterIndexReceiver.h +76 -0
  1582. package/ios/juce_modules/juce_gui_extra/misc/juce_WebControlRelays.cpp +256 -0
  1583. package/ios/juce_modules/juce_gui_extra/misc/juce_WebControlRelays.h +254 -0
  1584. package/ios/juce_modules/juce_gui_extra/native/java/app/com/rmsl/juce/JuceWebViewClasses.java +356 -0
  1585. package/ios/juce_modules/juce_gui_extra/native/javaopt/app/com/rmsl/juce/JuceFirebaseInstanceIdService.java +50 -0
  1586. package/ios/juce_modules/juce_gui_extra/native/javaopt/app/com/rmsl/juce/JuceFirebaseMessagingService.java +69 -0
  1587. package/ios/juce_modules/juce_gui_extra/native/javascript/check_native_interop.js +146 -0
  1588. package/ios/juce_modules/juce_gui_extra/native/javascript/index.js +577 -0
  1589. package/ios/juce_modules/juce_gui_extra/native/javascript/package.json +4 -0
  1590. package/ios/juce_modules/juce_gui_extra/native/juce_ActiveXComponent_windows.cpp +553 -0
  1591. package/ios/juce_modules/juce_gui_extra/native/juce_AndroidViewComponent.cpp +199 -0
  1592. package/ios/juce_modules/juce_gui_extra/native/juce_AppleRemote_mac.mm +285 -0
  1593. package/ios/juce_modules/juce_gui_extra/native/juce_HWNDComponent_windows.cpp +203 -0
  1594. package/ios/juce_modules/juce_gui_extra/native/juce_NSViewComponent_mac.mm +203 -0
  1595. package/ios/juce_modules/juce_gui_extra/native/juce_NSViewFrameWatcher_mac.h +120 -0
  1596. package/ios/juce_modules/juce_gui_extra/native/juce_PushNotifications_android.cpp +1607 -0
  1597. package/ios/juce_modules/juce_gui_extra/native/juce_PushNotifications_ios.cpp +620 -0
  1598. package/ios/juce_modules/juce_gui_extra/native/juce_PushNotifications_mac.cpp +535 -0
  1599. package/ios/juce_modules/juce_gui_extra/native/juce_SystemTrayIcon_linux.cpp +160 -0
  1600. package/ios/juce_modules/juce_gui_extra/native/juce_SystemTrayIcon_mac.cpp +451 -0
  1601. package/ios/juce_modules/juce_gui_extra/native/juce_SystemTrayIcon_windows.cpp +251 -0
  1602. package/ios/juce_modules/juce_gui_extra/native/juce_UIViewComponent_ios.mm +151 -0
  1603. package/ios/juce_modules/juce_gui_extra/native/juce_WebBrowserComponent_android.cpp +953 -0
  1604. package/ios/juce_modules/juce_gui_extra/native/juce_WebBrowserComponent_linux.cpp +1659 -0
  1605. package/ios/juce_modules/juce_gui_extra/native/juce_WebBrowserComponent_mac.mm +1113 -0
  1606. package/ios/juce_modules/juce_gui_extra/native/juce_WebBrowserComponent_windows.cpp +1298 -0
  1607. package/ios/juce_modules/juce_gui_extra/native/juce_XEmbedComponent_linux.cpp +739 -0
  1608. package/package.json +1 -1
  1609. package/ios/JuceModules.mm +0 -14
  1610. package/ios/JuceToneGenerator.h +0 -39
  1611. package/ios/JuceToneGenerator.mm +0 -613
@@ -0,0 +1,3200 @@
1
+ /*
2
+ ==============================================================================
3
+
4
+ This file is part of the JUCE framework.
5
+ Copyright (c) Raw Material Software Limited
6
+
7
+ JUCE is an open source framework subject to commercial or open source
8
+ licensing.
9
+
10
+ By downloading, installing, or using the JUCE framework, or combining the
11
+ JUCE framework with any other source code, object code, content or any other
12
+ copyrightable work, you agree to the terms of the JUCE End User Licence
13
+ Agreement, and all incorporated terms including the JUCE Privacy Policy and
14
+ the JUCE Website Terms of Service, as applicable, which will bind you. If you
15
+ do not agree to the terms of these agreements, we will not license the JUCE
16
+ framework to you, and you must discontinue the installation or download
17
+ process and cease use of the JUCE framework.
18
+
19
+ JUCE End User Licence Agreement: https://juce.com/legal/juce-8-licence/
20
+ JUCE Privacy Policy: https://juce.com/juce-privacy-policy
21
+ JUCE Website Terms of Service: https://juce.com/juce-website-terms-of-service/
22
+
23
+ Or:
24
+
25
+ You may also use this code under the terms of the AGPLv3:
26
+ https://www.gnu.org/licenses/agpl-3.0.en.html
27
+
28
+ THE JUCE FRAMEWORK IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL
29
+ WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING WARRANTY OF
30
+ MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, ARE DISCLAIMED.
31
+
32
+ ==============================================================================
33
+ */
34
+
35
+ namespace juce
36
+ {
37
+
38
+ //==============================================================================
39
+ LookAndFeel_V2::LookAndFeel_V2()
40
+ {
41
+ // initialise the standard set of colours..
42
+ const uint32 textButtonColour = 0xffbbbbff;
43
+ const uint32 textHighlightColour = 0x401111ee;
44
+ const uint32 standardOutlineColour = 0xb2808080;
45
+
46
+ static const uint32 standardColours[] =
47
+ {
48
+ TextButton::buttonColourId, textButtonColour,
49
+ TextButton::buttonOnColourId, 0xff4444ff,
50
+ TextButton::textColourOnId, 0xff000000,
51
+ TextButton::textColourOffId, 0xff000000,
52
+
53
+ ToggleButton::textColourId, 0xff000000,
54
+ ToggleButton::tickColourId, 0xff000000,
55
+ ToggleButton::tickDisabledColourId, 0xff808080,
56
+
57
+ TextEditor::backgroundColourId, 0xffffffff,
58
+ TextEditor::textColourId, 0xff000000,
59
+ TextEditor::highlightColourId, textHighlightColour,
60
+ TextEditor::highlightedTextColourId, 0xff000000,
61
+ TextEditor::outlineColourId, 0x00000000,
62
+ TextEditor::focusedOutlineColourId, textButtonColour,
63
+ TextEditor::shadowColourId, 0x38000000,
64
+
65
+ CaretComponent::caretColourId, 0xff000000,
66
+
67
+ Label::backgroundColourId, 0x00000000,
68
+ Label::textColourId, 0xff000000,
69
+ Label::outlineColourId, 0x00000000,
70
+
71
+ ScrollBar::backgroundColourId, 0x00000000,
72
+ ScrollBar::thumbColourId, 0xffffffff,
73
+
74
+ TreeView::linesColourId, 0x4c000000,
75
+ TreeView::backgroundColourId, 0x00000000,
76
+ TreeView::dragAndDropIndicatorColourId, 0x80ff0000,
77
+ TreeView::selectedItemBackgroundColourId, 0x00000000,
78
+ TreeView::oddItemsColourId, 0x00000000,
79
+ TreeView::evenItemsColourId, 0x00000000,
80
+
81
+ PopupMenu::backgroundColourId, 0xffffffff,
82
+ PopupMenu::textColourId, 0xff000000,
83
+ PopupMenu::headerTextColourId, 0xff000000,
84
+ PopupMenu::highlightedTextColourId, 0xffffffff,
85
+ PopupMenu::highlightedBackgroundColourId, 0x991111aa,
86
+
87
+ ComboBox::buttonColourId, 0xffbbbbff,
88
+ ComboBox::outlineColourId, standardOutlineColour,
89
+ ComboBox::textColourId, 0xff000000,
90
+ ComboBox::backgroundColourId, 0xffffffff,
91
+ ComboBox::arrowColourId, 0x99000000,
92
+ ComboBox::focusedOutlineColourId, 0xffbbbbff,
93
+
94
+ PropertyComponent::backgroundColourId, 0x66ffffff,
95
+ PropertyComponent::labelTextColourId, 0xff000000,
96
+
97
+ TextPropertyComponent::backgroundColourId, 0xffffffff,
98
+ TextPropertyComponent::textColourId, 0xff000000,
99
+ TextPropertyComponent::outlineColourId, standardOutlineColour,
100
+
101
+ BooleanPropertyComponent::backgroundColourId, 0xffffffff,
102
+ BooleanPropertyComponent::outlineColourId, standardOutlineColour,
103
+
104
+ ListBox::backgroundColourId, 0xffffffff,
105
+ ListBox::outlineColourId, standardOutlineColour,
106
+ ListBox::textColourId, 0xff000000,
107
+
108
+ Slider::backgroundColourId, 0x00000000,
109
+ Slider::thumbColourId, textButtonColour,
110
+ Slider::trackColourId, 0x7fffffff,
111
+ Slider::rotarySliderFillColourId, 0x7f0000ff,
112
+ Slider::rotarySliderOutlineColourId, 0x66000000,
113
+ Slider::textBoxTextColourId, 0xff000000,
114
+ Slider::textBoxBackgroundColourId, 0xffffffff,
115
+ Slider::textBoxHighlightColourId, textHighlightColour,
116
+ Slider::textBoxOutlineColourId, standardOutlineColour,
117
+
118
+ ResizableWindow::backgroundColourId, 0xff777777,
119
+ //DocumentWindow::textColourId, 0xff000000, // (this is deliberately not set)
120
+
121
+ AlertWindow::backgroundColourId, 0xffededed,
122
+ AlertWindow::textColourId, 0xff000000,
123
+ AlertWindow::outlineColourId, 0xff666666,
124
+
125
+ ProgressBar::backgroundColourId, 0xffeeeeee,
126
+ ProgressBar::foregroundColourId, 0xffaaaaee,
127
+
128
+ TooltipWindow::backgroundColourId, 0xffeeeebb,
129
+ TooltipWindow::textColourId, 0xff000000,
130
+ TooltipWindow::outlineColourId, 0x4c000000,
131
+
132
+ TabbedComponent::backgroundColourId, 0x00000000,
133
+ TabbedComponent::outlineColourId, 0xff777777,
134
+ TabbedButtonBar::tabOutlineColourId, 0x80000000,
135
+ TabbedButtonBar::frontOutlineColourId, 0x90000000,
136
+
137
+ Toolbar::backgroundColourId, 0xfff6f8f9,
138
+ Toolbar::separatorColourId, 0x4c000000,
139
+ Toolbar::buttonMouseOverBackgroundColourId, 0x4c0000ff,
140
+ Toolbar::buttonMouseDownBackgroundColourId, 0x800000ff,
141
+ Toolbar::labelTextColourId, 0xff000000,
142
+ Toolbar::editingModeOutlineColourId, 0xffff0000,
143
+ Toolbar::customisationDialogBackgroundColourId, 0xfff6f8f9,
144
+
145
+ DrawableButton::textColourId, 0xff000000,
146
+ DrawableButton::textColourOnId, 0xff000000,
147
+ DrawableButton::backgroundColourId, 0x00000000,
148
+ DrawableButton::backgroundOnColourId, 0xaabbbbff,
149
+
150
+ HyperlinkButton::textColourId, 0xcc1111ee,
151
+
152
+ GroupComponent::outlineColourId, 0x66000000,
153
+ GroupComponent::textColourId, 0xff000000,
154
+
155
+ BubbleComponent::backgroundColourId, 0xeeeeeebb,
156
+ BubbleComponent::outlineColourId, 0x77000000,
157
+
158
+ TableHeaderComponent::textColourId, 0xff000000,
159
+ TableHeaderComponent::backgroundColourId, 0xffe8ebf9,
160
+ TableHeaderComponent::outlineColourId, 0x33000000,
161
+ TableHeaderComponent::highlightColourId, 0x8899aadd,
162
+
163
+ DirectoryContentsDisplayComponent::highlightColourId, textHighlightColour,
164
+ DirectoryContentsDisplayComponent::textColourId, 0xff000000,
165
+ DirectoryContentsDisplayComponent::highlightedTextColourId, 0xff000000,
166
+
167
+ 0x1000440, /*LassoComponent::lassoFillColourId*/ 0x66dddddd,
168
+ 0x1000441, /*LassoComponent::lassoOutlineColourId*/ 0x99111111,
169
+
170
+ 0x1004000, /*KeyboardComponentBase::upDownButtonBackgroundColourId*/ 0xffd3d3d3,
171
+ 0x1004001, /*KeyboardComponentBase::upDownButtonArrowColourId*/ 0xff000000,
172
+
173
+ 0x1005000, /*MidiKeyboardComponent::whiteNoteColourId*/ 0xffffffff,
174
+ 0x1005001, /*MidiKeyboardComponent::blackNoteColourId*/ 0xff000000,
175
+ 0x1005002, /*MidiKeyboardComponent::keySeparatorLineColourId*/ 0x66000000,
176
+ 0x1005003, /*MidiKeyboardComponent::mouseOverKeyOverlayColourId*/ 0x80ffff00,
177
+ 0x1005004, /*MidiKeyboardComponent::keyDownOverlayColourId*/ 0xffb6b600,
178
+ 0x1005005, /*MidiKeyboardComponent::textLabelColourId*/ 0xff000000,
179
+ 0x1005006, /*MidiKeyboardComponent::shadowColourId*/ 0x4c000000,
180
+
181
+ 0x1006000, /*MPEKeyboardComponent::whiteNoteColourId*/ 0xff1a1c27,
182
+ 0x1006001, /*MPEKeyboardComponent::blackNoteColourId*/ 0x99f1f1f1,
183
+ 0x1006002, /*MPEKeyboardComponent::textLabelColourId*/ 0xfff1f1f1,
184
+ 0x1006003, /*MPEKeyboardComponent::noteCircleFillColourId*/ 0x99ba00ff,
185
+ 0x1006004, /*MPEKeyboardComponent::noteCircleOutlineColourId*/ 0xfff1f1f1,
186
+
187
+ 0x1004500, /*CodeEditorComponent::backgroundColourId*/ 0xffffffff,
188
+ 0x1004502, /*CodeEditorComponent::highlightColourId*/ textHighlightColour,
189
+ 0x1004503, /*CodeEditorComponent::defaultTextColourId*/ 0xff000000,
190
+ 0x1004504, /*CodeEditorComponent::lineNumberBackgroundId*/ 0x44999999,
191
+ 0x1004505, /*CodeEditorComponent::lineNumberTextId*/ 0x44000000,
192
+
193
+ 0x1007000, /*ColourSelector::backgroundColourId*/ 0xffe5e5e5,
194
+ 0x1007001, /*ColourSelector::labelTextColourId*/ 0xff000000,
195
+
196
+ 0x100ad00, /*KeyMappingEditorComponent::backgroundColourId*/ 0x00000000,
197
+ 0x100ad01, /*KeyMappingEditorComponent::textColourId*/ 0xff000000,
198
+
199
+ FileSearchPathListComponent::backgroundColourId, 0xffffffff,
200
+
201
+ FileChooserDialogBox::titleTextColourId, 0xff000000,
202
+
203
+ SidePanel::backgroundColour, 0xffffffff,
204
+ SidePanel::titleTextColour, 0xff000000,
205
+ SidePanel::shadowBaseColour, 0xff000000,
206
+ SidePanel::dismissButtonNormalColour, textButtonColour,
207
+ SidePanel::dismissButtonOverColour, textButtonColour,
208
+ SidePanel::dismissButtonDownColour, 0xff4444ff,
209
+
210
+ FileBrowserComponent::currentPathBoxBackgroundColourId, 0xffffffff,
211
+ FileBrowserComponent::currentPathBoxTextColourId, 0xff000000,
212
+ FileBrowserComponent::currentPathBoxArrowColourId, 0x99000000,
213
+ FileBrowserComponent::filenameBoxBackgroundColourId, 0xffffffff,
214
+ FileBrowserComponent::filenameBoxTextColourId, 0xff000000,
215
+ };
216
+
217
+ for (int i = 0; i < numElementsInArray (standardColours); i += 2)
218
+ setColour ((int) standardColours [i], Colour ((uint32) standardColours [i + 1]));
219
+
220
+ bubbleShadow.setShadowProperties (DropShadow (Colours::black.withAlpha (0.35f), 5, {}));
221
+ }
222
+
223
+ LookAndFeel_V2::~LookAndFeel_V2() {}
224
+
225
+ //==============================================================================
226
+ void LookAndFeel_V2::drawButtonBackground (Graphics& g,
227
+ Button& button,
228
+ const Colour& backgroundColour,
229
+ bool shouldDrawButtonAsHighlighted,
230
+ bool shouldDrawButtonAsDown)
231
+ {
232
+ const int width = button.getWidth();
233
+ const int height = button.getHeight();
234
+
235
+ const float outlineThickness = button.isEnabled() ? ((shouldDrawButtonAsDown || shouldDrawButtonAsHighlighted) ? 1.2f : 0.7f) : 0.4f;
236
+ const float halfThickness = outlineThickness * 0.5f;
237
+
238
+ const float indentL = button.isConnectedOnLeft() ? 0.1f : halfThickness;
239
+ const float indentR = button.isConnectedOnRight() ? 0.1f : halfThickness;
240
+ const float indentT = button.isConnectedOnTop() ? 0.1f : halfThickness;
241
+ const float indentB = button.isConnectedOnBottom() ? 0.1f : halfThickness;
242
+
243
+ const Colour baseColour (detail::LookAndFeelHelpers::createBaseColour (backgroundColour,
244
+ button.hasKeyboardFocus (true),
245
+ shouldDrawButtonAsHighlighted,
246
+ shouldDrawButtonAsDown)
247
+ .withMultipliedAlpha (button.isEnabled() ? 1.0f : 0.5f));
248
+
249
+ drawGlassLozenge (g,
250
+ indentL,
251
+ indentT,
252
+ (float) width - indentL - indentR,
253
+ (float) height - indentT - indentB,
254
+ baseColour, outlineThickness, -1.0f,
255
+ button.isConnectedOnLeft(),
256
+ button.isConnectedOnRight(),
257
+ button.isConnectedOnTop(),
258
+ button.isConnectedOnBottom());
259
+ }
260
+
261
+ Font LookAndFeel_V2::getTextButtonFont (TextButton&, int buttonHeight)
262
+ {
263
+ return withDefaultMetrics (FontOptions (jmin (15.0f, (float) buttonHeight * 0.6f)));
264
+ }
265
+
266
+ int LookAndFeel_V2::getTextButtonWidthToFitText (TextButton& b, int buttonHeight)
267
+ {
268
+ return getTextButtonFont (b, buttonHeight).getStringWidth (b.getButtonText()) + buttonHeight;
269
+ }
270
+
271
+ void LookAndFeel_V2::drawButtonText (Graphics& g, TextButton& button,
272
+ bool /*shouldDrawButtonAsHighlighted*/, bool /*shouldDrawButtonAsDown*/)
273
+ {
274
+ Font font (getTextButtonFont (button, button.getHeight()));
275
+ g.setFont (font);
276
+ g.setColour (button.findColour (button.getToggleState() ? TextButton::textColourOnId
277
+ : TextButton::textColourOffId)
278
+ .withMultipliedAlpha (button.isEnabled() ? 1.0f : 0.5f));
279
+
280
+ const int yIndent = jmin (4, button.proportionOfHeight (0.3f));
281
+ const int cornerSize = jmin (button.getHeight(), button.getWidth()) / 2;
282
+
283
+ const int fontHeight = roundToInt (font.getHeight() * 0.6f);
284
+ const int leftIndent = jmin (fontHeight, 2 + cornerSize / (button.isConnectedOnLeft() ? 4 : 2));
285
+ const int rightIndent = jmin (fontHeight, 2 + cornerSize / (button.isConnectedOnRight() ? 4 : 2));
286
+ const int textWidth = button.getWidth() - leftIndent - rightIndent;
287
+
288
+ if (textWidth > 0)
289
+ g.drawFittedText (button.getButtonText(),
290
+ leftIndent, yIndent, textWidth, button.getHeight() - yIndent * 2,
291
+ Justification::centred, 2);
292
+ }
293
+
294
+ void LookAndFeel_V2::drawTickBox (Graphics& g, Component& component,
295
+ float x, float y, float w, float h,
296
+ const bool ticked,
297
+ const bool isEnabled,
298
+ const bool shouldDrawButtonAsHighlighted,
299
+ const bool shouldDrawButtonAsDown)
300
+ {
301
+ const float boxSize = w * 0.7f;
302
+
303
+ drawGlassSphere (g, x, y + (h - boxSize) * 0.5f, boxSize,
304
+ detail::LookAndFeelHelpers::createBaseColour (component.findColour (TextButton::buttonColourId)
305
+ .withMultipliedAlpha (isEnabled ? 1.0f : 0.5f),
306
+ true, shouldDrawButtonAsHighlighted, shouldDrawButtonAsDown),
307
+ isEnabled ? ((shouldDrawButtonAsDown || shouldDrawButtonAsHighlighted) ? 1.1f : 0.5f) : 0.3f);
308
+
309
+ if (ticked)
310
+ {
311
+ Path tick;
312
+ tick.startNewSubPath (1.5f, 3.0f);
313
+ tick.lineTo (3.0f, 6.0f);
314
+ tick.lineTo (6.0f, 0.0f);
315
+
316
+ g.setColour (component.findColour (isEnabled ? ToggleButton::tickColourId
317
+ : ToggleButton::tickDisabledColourId));
318
+
319
+ const AffineTransform trans (AffineTransform::scale (w / 9.0f, h / 9.0f)
320
+ .translated (x, y));
321
+
322
+ g.strokePath (tick, PathStrokeType (2.5f), trans);
323
+ }
324
+ }
325
+
326
+ void LookAndFeel_V2::drawToggleButton (Graphics& g, ToggleButton& button,
327
+ bool shouldDrawButtonAsHighlighted, bool shouldDrawButtonAsDown)
328
+ {
329
+ if (button.hasKeyboardFocus (true))
330
+ {
331
+ g.setColour (button.findColour (TextEditor::focusedOutlineColourId));
332
+ g.drawRect (0, 0, button.getWidth(), button.getHeight());
333
+ }
334
+
335
+ float fontSize = jmin (15.0f, (float) button.getHeight() * 0.75f);
336
+ const float tickWidth = fontSize * 1.1f;
337
+
338
+ drawTickBox (g, button, 4.0f, ((float) button.getHeight() - tickWidth) * 0.5f,
339
+ tickWidth, tickWidth,
340
+ button.getToggleState(),
341
+ button.isEnabled(),
342
+ shouldDrawButtonAsHighlighted,
343
+ shouldDrawButtonAsDown);
344
+
345
+ g.setColour (button.findColour (ToggleButton::textColourId));
346
+ g.setFont (fontSize);
347
+
348
+ if (! button.isEnabled())
349
+ g.setOpacity (0.5f);
350
+
351
+ g.drawFittedText (button.getButtonText(),
352
+ button.getLocalBounds().withTrimmedLeft (roundToInt (tickWidth) + 5)
353
+ .withTrimmedRight (2),
354
+ Justification::centredLeft, 10);
355
+ }
356
+
357
+ void LookAndFeel_V2::changeToggleButtonWidthToFitText (ToggleButton& button)
358
+ {
359
+ auto fontSize = jmin (15.0f, (float) button.getHeight() * 0.75f);
360
+ auto tickWidth = fontSize * 1.1f;
361
+
362
+ Font font (withDefaultMetrics (FontOptions { fontSize }));
363
+
364
+ button.setSize (font.getStringWidth (button.getButtonText()) + roundToInt (tickWidth) + 9,
365
+ button.getHeight());
366
+ }
367
+
368
+ void LookAndFeel_V2::drawDrawableButton (Graphics& g, DrawableButton& button,
369
+ bool /*shouldDrawButtonAsHighlighted*/, bool /*shouldDrawButtonAsDown*/)
370
+ {
371
+ bool toggleState = button.getToggleState();
372
+
373
+ g.fillAll (button.findColour (toggleState ? DrawableButton::backgroundOnColourId
374
+ : DrawableButton::backgroundColourId));
375
+
376
+ const int textH = (button.getStyle() == DrawableButton::ImageAboveTextLabel)
377
+ ? jmin (16, button.proportionOfHeight (0.25f))
378
+ : 0;
379
+
380
+ if (textH > 0)
381
+ {
382
+ g.setFont ((float) textH);
383
+
384
+ g.setColour (button.findColour (toggleState ? DrawableButton::textColourOnId
385
+ : DrawableButton::textColourId)
386
+ .withMultipliedAlpha (button.isEnabled() ? 1.0f : 0.4f));
387
+
388
+ g.drawFittedText (button.getButtonText(),
389
+ 2, button.getHeight() - textH - 1,
390
+ button.getWidth() - 4, textH,
391
+ Justification::centred, 1);
392
+ }
393
+ }
394
+
395
+ //==============================================================================
396
+ AlertWindow* LookAndFeel_V2::createAlertWindow (const String& title, const String& message,
397
+ const String& button1, const String& button2, const String& button3,
398
+ MessageBoxIconType iconType,
399
+ int numButtons, Component* associatedComponent)
400
+ {
401
+ AlertWindow* aw = new AlertWindow (title, message, iconType, associatedComponent);
402
+
403
+ if (numButtons == 1)
404
+ {
405
+ aw->addButton (button1, 0,
406
+ KeyPress (KeyPress::escapeKey),
407
+ KeyPress (KeyPress::returnKey));
408
+ }
409
+ else
410
+ {
411
+ const KeyPress button1ShortCut ((int) CharacterFunctions::toLowerCase (button1[0]), 0, 0);
412
+ KeyPress button2ShortCut ((int) CharacterFunctions::toLowerCase (button2[0]), 0, 0);
413
+ if (button1ShortCut == button2ShortCut)
414
+ button2ShortCut = KeyPress();
415
+
416
+ if (numButtons == 2)
417
+ {
418
+ aw->addButton (button1, 1, KeyPress (KeyPress::returnKey), button1ShortCut);
419
+ aw->addButton (button2, 0, KeyPress (KeyPress::escapeKey), button2ShortCut);
420
+ }
421
+ else if (numButtons == 3)
422
+ {
423
+ aw->addButton (button1, 1, button1ShortCut);
424
+ aw->addButton (button2, 2, button2ShortCut);
425
+ aw->addButton (button3, 0, KeyPress (KeyPress::escapeKey));
426
+ }
427
+ }
428
+
429
+ return aw;
430
+ }
431
+
432
+ void LookAndFeel_V2::drawAlertBox (Graphics& g, AlertWindow& alert,
433
+ const Rectangle<int>& textArea, TextLayout& textLayout)
434
+ {
435
+ g.fillAll (alert.findColour (AlertWindow::backgroundColourId));
436
+
437
+ int iconSpaceUsed = 0;
438
+
439
+ const int iconWidth = 80;
440
+ int iconSize = jmin (iconWidth + 50, alert.getHeight() + 20);
441
+
442
+ if (alert.containsAnyExtraComponents() || alert.getNumButtons() > 2)
443
+ iconSize = jmin (iconSize, textArea.getHeight() + 50);
444
+
445
+ const Rectangle<int> iconRect (iconSize / -10, iconSize / -10,
446
+ iconSize, iconSize);
447
+
448
+ if (alert.getAlertType() != MessageBoxIconType::NoIcon)
449
+ {
450
+ Path icon;
451
+ uint32 colour;
452
+ char character;
453
+
454
+ if (alert.getAlertType() == MessageBoxIconType::WarningIcon)
455
+ {
456
+ colour = 0x55ff5555;
457
+ character = '!';
458
+
459
+ icon.addTriangle ((float) iconRect.getX() + (float) iconRect.getWidth() * 0.5f, (float) iconRect.getY(),
460
+ (float) iconRect.getRight(), (float) iconRect.getBottom(),
461
+ (float) iconRect.getX(), (float) iconRect.getBottom());
462
+
463
+ icon = icon.createPathWithRoundedCorners (5.0f);
464
+ }
465
+ else
466
+ {
467
+ colour = alert.getAlertType() == MessageBoxIconType::InfoIcon ? (uint32) 0x605555ff : (uint32) 0x40b69900;
468
+ character = alert.getAlertType() == MessageBoxIconType::InfoIcon ? 'i' : '?';
469
+
470
+ icon.addEllipse (iconRect.toFloat());
471
+ }
472
+
473
+ GlyphArrangement ga;
474
+ ga.addFittedText (withDefaultMetrics (FontOptions ((float) iconRect.getHeight() * 0.9f, Font::bold)),
475
+ String::charToString ((juce_wchar) (uint8) character),
476
+ (float) iconRect.getX(), (float) iconRect.getY(),
477
+ (float) iconRect.getWidth(), (float) iconRect.getHeight(),
478
+ Justification::centred, false);
479
+ ga.createPath (icon);
480
+
481
+ icon.setUsingNonZeroWinding (false);
482
+ g.setColour (Colour (colour));
483
+ g.fillPath (icon);
484
+
485
+ iconSpaceUsed = iconWidth;
486
+ }
487
+
488
+ g.setColour (alert.findColour (AlertWindow::textColourId));
489
+
490
+ textLayout.draw (g, Rectangle<int> (textArea.getX() + iconSpaceUsed,
491
+ textArea.getY(),
492
+ textArea.getWidth() - iconSpaceUsed,
493
+ textArea.getHeight()).toFloat());
494
+
495
+ g.setColour (alert.findColour (AlertWindow::outlineColourId));
496
+ g.drawRect (0, 0, alert.getWidth(), alert.getHeight());
497
+ }
498
+
499
+ int LookAndFeel_V2::getAlertBoxWindowFlags()
500
+ {
501
+ return ComponentPeer::windowAppearsOnTaskbar
502
+ | ComponentPeer::windowHasDropShadow;
503
+ }
504
+
505
+ Array<int> LookAndFeel_V2::getWidthsForTextButtons (AlertWindow&, const Array<TextButton*>& buttons)
506
+ {
507
+ const int n = buttons.size();
508
+ Array<int> buttonWidths;
509
+
510
+ const int buttonHeight = getAlertWindowButtonHeight();
511
+
512
+ for (int i = 0; i < n; ++i)
513
+ buttonWidths.add (getTextButtonWidthToFitText (*buttons.getReference (i), buttonHeight));
514
+
515
+ return buttonWidths;
516
+ }
517
+
518
+ int LookAndFeel_V2::getAlertWindowButtonHeight()
519
+ {
520
+ return 28;
521
+ }
522
+
523
+ Font LookAndFeel_V2::getAlertWindowTitleFont()
524
+ {
525
+ Font messageFont = getAlertWindowMessageFont();
526
+ return messageFont.withHeight (messageFont.getHeight() * 1.1f).boldened();
527
+ }
528
+
529
+ Font LookAndFeel_V2::getAlertWindowMessageFont()
530
+ {
531
+ return withDefaultMetrics (FontOptions (15.0f));
532
+ }
533
+
534
+ Font LookAndFeel_V2::getAlertWindowFont()
535
+ {
536
+ return withDefaultMetrics (FontOptions (12.0f));
537
+ }
538
+
539
+ //==============================================================================
540
+ void LookAndFeel_V2::drawProgressBar (Graphics& g, ProgressBar& progressBar,
541
+ int width, int height,
542
+ double progress, const String& textToShow)
543
+ {
544
+ const Colour background (progressBar.findColour (ProgressBar::backgroundColourId));
545
+ const Colour foreground (progressBar.findColour (ProgressBar::foregroundColourId));
546
+
547
+ g.fillAll (background);
548
+
549
+ if (progress >= 0.0f && progress < 1.0f)
550
+ {
551
+ drawGlassLozenge (g, 1.0f, 1.0f,
552
+ (float) jlimit (0.0, width - 2.0, progress * (width - 2.0)),
553
+ (float) (height - 2),
554
+ foreground,
555
+ 0.5f, 0.0f,
556
+ true, true, true, true);
557
+ }
558
+ else
559
+ {
560
+ // spinning bar..
561
+ g.setColour (foreground);
562
+
563
+ const int stripeWidth = height * 2;
564
+ const int position = (int) (Time::getMillisecondCounter() / 15) % stripeWidth;
565
+
566
+ Path p;
567
+
568
+ for (float x = (float) (- position); x < (float) (width + stripeWidth); x += (float) stripeWidth)
569
+ p.addQuadrilateral (x, 0.0f,
570
+ x + (float) stripeWidth * 0.5f, 0.0f,
571
+ x, (float) height,
572
+ x - (float) stripeWidth * 0.5f, (float) height);
573
+
574
+ Image im (Image::ARGB, width, height, true);
575
+
576
+ {
577
+ Graphics g2 (im);
578
+ drawGlassLozenge (g2, 1.0f, 1.0f,
579
+ (float) (width - 2),
580
+ (float) (height - 2),
581
+ foreground,
582
+ 0.5f, 0.0f,
583
+ true, true, true, true);
584
+ }
585
+
586
+ g.setTiledImageFill (im, 0, 0, 0.85f);
587
+ g.fillPath (p);
588
+ }
589
+
590
+ if (textToShow.isNotEmpty())
591
+ {
592
+ g.setColour (Colour::contrasting (background, foreground));
593
+ g.setFont ((float) height * 0.6f);
594
+
595
+ g.drawText (textToShow, 0, 0, width, height, Justification::centred, false);
596
+ }
597
+ }
598
+
599
+ void LookAndFeel_V2::drawSpinningWaitAnimation (Graphics& g, const Colour& colour, int x, int y, int w, int h)
600
+ {
601
+ const float radius = (float) jmin (w, h) * 0.4f;
602
+ const float thickness = radius * 0.15f;
603
+ Path p;
604
+ p.addRoundedRectangle (radius * 0.4f, thickness * -0.5f,
605
+ radius * 0.6f, thickness,
606
+ thickness * 0.5f);
607
+
608
+ const float cx = (float) x + (float) w * 0.5f;
609
+ const float cy = (float) y + (float) h * 0.5f;
610
+
611
+ const uint32 animationIndex = (Time::getMillisecondCounter() / (1000 / 10)) % 12;
612
+
613
+ for (uint32 i = 0; i < 12; ++i)
614
+ {
615
+ const uint32 n = (i + 12 - animationIndex) % 12;
616
+
617
+ g.setColour (colour.withMultipliedAlpha ((float) (n + 1) / 12.0f));
618
+ g.fillPath (p, AffineTransform::rotation ((float) i * (MathConstants<float>::pi / 6.0f))
619
+ .translated (cx, cy));
620
+ }
621
+ }
622
+
623
+ bool LookAndFeel_V2::isProgressBarOpaque (ProgressBar& progressBar)
624
+ {
625
+ return progressBar.findColour (ProgressBar::backgroundColourId).isOpaque();
626
+ }
627
+
628
+ ProgressBar::Style LookAndFeel_V2::getDefaultProgressBarStyle (const ProgressBar&)
629
+ {
630
+ return ProgressBar::Style::linear;
631
+ }
632
+
633
+ bool LookAndFeel_V2::areScrollbarButtonsVisible()
634
+ {
635
+ return true;
636
+ }
637
+
638
+ void LookAndFeel_V2::drawScrollbarButton (Graphics& g, ScrollBar& scrollbar,
639
+ int width, int height, int buttonDirection,
640
+ bool /*isScrollbarVertical*/,
641
+ bool /*shouldDrawButtonAsHighlighted*/,
642
+ bool shouldDrawButtonAsDown)
643
+ {
644
+ Path p;
645
+
646
+ const auto w = (float) width;
647
+ const auto h = (float) height;
648
+
649
+ if (buttonDirection == 0)
650
+ p.addTriangle (w * 0.5f, h * 0.2f,
651
+ w * 0.1f, h * 0.7f,
652
+ w * 0.9f, h * 0.7f);
653
+ else if (buttonDirection == 1)
654
+ p.addTriangle (w * 0.8f, h * 0.5f,
655
+ w * 0.3f, h * 0.1f,
656
+ w * 0.3f, h * 0.9f);
657
+ else if (buttonDirection == 2)
658
+ p.addTriangle (w * 0.5f, h * 0.8f,
659
+ w * 0.1f, h * 0.3f,
660
+ w * 0.9f, h * 0.3f);
661
+ else if (buttonDirection == 3)
662
+ p.addTriangle (w * 0.2f, h * 0.5f,
663
+ w * 0.7f, h * 0.1f,
664
+ w * 0.7f, h * 0.9f);
665
+
666
+ if (shouldDrawButtonAsDown)
667
+ g.setColour (scrollbar.findColour (ScrollBar::thumbColourId).contrasting (0.2f));
668
+ else
669
+ g.setColour (scrollbar.findColour (ScrollBar::thumbColourId));
670
+
671
+ g.fillPath (p);
672
+
673
+ g.setColour (Colour (0x80000000));
674
+ g.strokePath (p, PathStrokeType (0.5f));
675
+ }
676
+
677
+ void LookAndFeel_V2::drawScrollbar (Graphics& g,
678
+ ScrollBar& scrollbar,
679
+ int x, int y,
680
+ int width, int height,
681
+ bool isScrollbarVertical,
682
+ int thumbStartPosition,
683
+ int thumbSize,
684
+ bool /*isMouseOver*/,
685
+ bool /*isMouseDown*/)
686
+ {
687
+ g.fillAll (scrollbar.findColour (ScrollBar::backgroundColourId));
688
+
689
+ Path slotPath, thumbPath;
690
+
691
+ const float slotIndent = jmin (width, height) > 15 ? 1.0f : 0.0f;
692
+ const float slotIndentx2 = slotIndent * 2.0f;
693
+ const float thumbIndent = slotIndent + 1.0f;
694
+ const float thumbIndentx2 = thumbIndent * 2.0f;
695
+
696
+ float gx1 = 0.0f, gy1 = 0.0f, gx2 = 0.0f, gy2 = 0.0f;
697
+
698
+ if (isScrollbarVertical)
699
+ {
700
+ slotPath.addRoundedRectangle ((float) x + slotIndent,
701
+ (float) y + slotIndent,
702
+ (float) width - slotIndentx2,
703
+ (float) height - slotIndentx2,
704
+ ((float) width - slotIndentx2) * 0.5f);
705
+
706
+ if (thumbSize > 0)
707
+ thumbPath.addRoundedRectangle ((float) x + thumbIndent,
708
+ (float) thumbStartPosition + thumbIndent,
709
+ (float) width - thumbIndentx2,
710
+ (float) thumbSize - thumbIndentx2,
711
+ ((float) width - thumbIndentx2) * 0.5f);
712
+ gx1 = (float) x;
713
+ gx2 = (float) x + (float) width * 0.7f;
714
+ }
715
+ else
716
+ {
717
+ slotPath.addRoundedRectangle ((float) x + slotIndent,
718
+ (float) y + slotIndent,
719
+ (float) width - slotIndentx2,
720
+ (float) height - slotIndentx2,
721
+ ((float) height - slotIndentx2) * 0.5f);
722
+
723
+ if (thumbSize > 0)
724
+ thumbPath.addRoundedRectangle ((float) thumbStartPosition + thumbIndent,
725
+ (float) y + thumbIndent,
726
+ (float) thumbSize - thumbIndentx2,
727
+ (float) height - thumbIndentx2,
728
+ ((float) height - thumbIndentx2) * 0.5f);
729
+ gy1 = (float) y;
730
+ gy2 = (float) y + (float) height * 0.7f;
731
+ }
732
+
733
+ const Colour thumbColour (scrollbar.findColour (ScrollBar::thumbColourId));
734
+ Colour trackColour1, trackColour2;
735
+
736
+ if (scrollbar.isColourSpecified (ScrollBar::trackColourId)
737
+ || isColourSpecified (ScrollBar::trackColourId))
738
+ {
739
+ trackColour1 = trackColour2 = scrollbar.findColour (ScrollBar::trackColourId);
740
+ }
741
+ else
742
+ {
743
+ trackColour1 = thumbColour.overlaidWith (Colour (0x44000000));
744
+ trackColour2 = thumbColour.overlaidWith (Colour (0x19000000));
745
+ }
746
+
747
+ g.setGradientFill (ColourGradient (trackColour1, gx1, gy1,
748
+ trackColour2, gx2, gy2, false));
749
+ g.fillPath (slotPath);
750
+
751
+ if (isScrollbarVertical)
752
+ {
753
+ gx1 = (float) x + (float) width * 0.6f;
754
+ gx2 = (float) x + (float) width;
755
+ }
756
+ else
757
+ {
758
+ gy1 = (float) y + (float) height * 0.6f;
759
+ gy2 = (float) y + (float) height;
760
+ }
761
+
762
+ g.setGradientFill (ColourGradient (Colours::transparentBlack,gx1, gy1,
763
+ Colour (0x19000000), gx2, gy2, false));
764
+ g.fillPath (slotPath);
765
+
766
+ g.setColour (thumbColour);
767
+ g.fillPath (thumbPath);
768
+
769
+ g.setGradientFill (ColourGradient (Colour (0x10000000), gx1, gy1,
770
+ Colours::transparentBlack, gx2, gy2, false));
771
+
772
+ {
773
+ Graphics::ScopedSaveState ss (g);
774
+
775
+ if (isScrollbarVertical)
776
+ g.reduceClipRegion (x + width / 2, y, width, height);
777
+ else
778
+ g.reduceClipRegion (x, y + height / 2, width, height);
779
+
780
+ g.fillPath (thumbPath);
781
+ }
782
+
783
+ g.setColour (Colour (0x4c000000));
784
+ g.strokePath (thumbPath, PathStrokeType (0.4f));
785
+ }
786
+
787
+ ImageEffectFilter* LookAndFeel_V2::getScrollbarEffect()
788
+ {
789
+ return nullptr;
790
+ }
791
+
792
+ int LookAndFeel_V2::getMinimumScrollbarThumbSize (ScrollBar& scrollbar)
793
+ {
794
+ return jmin (scrollbar.getWidth(), scrollbar.getHeight()) * 2;
795
+ }
796
+
797
+ int LookAndFeel_V2::getDefaultScrollbarWidth()
798
+ {
799
+ return 18;
800
+ }
801
+
802
+ int LookAndFeel_V2::getScrollbarButtonSize (ScrollBar& scrollbar)
803
+ {
804
+ return 2 + (scrollbar.isVertical() ? scrollbar.getWidth()
805
+ : scrollbar.getHeight());
806
+ }
807
+
808
+ //==============================================================================
809
+ void LookAndFeel_V2::drawTreeviewPlusMinusBox (Graphics& g, const Rectangle<float>& area,
810
+ Colour /*backgroundColour*/, bool isOpen, bool /*isMouseOver*/)
811
+ {
812
+ auto boxSize = roundToInt (jmin (16.0f, area.getWidth(), area.getHeight()) * 0.7f) | 1;
813
+
814
+ auto x = ((int) area.getWidth() - boxSize) / 2 + (int) area.getX();
815
+ auto y = ((int) area.getHeight() - boxSize) / 2 + (int) area.getY();
816
+
817
+ Rectangle<float> boxArea ((float) x, (float) y, (float) boxSize, (float) boxSize);
818
+
819
+ g.setColour (Colour (0xe5ffffff));
820
+ g.fillRect (boxArea);
821
+
822
+ g.setColour (Colour (0x80000000));
823
+ g.drawRect (boxArea);
824
+
825
+ auto size = (float) boxSize * 0.5f + 1.0f;
826
+ auto centre = (float) (boxSize / 2);
827
+
828
+ g.fillRect ((float) x + ((float) boxSize - size) * 0.5f, (float) y + centre, size, 1.0f);
829
+
830
+ if (! isOpen)
831
+ g.fillRect ((float) x + centre, (float) y + ((float) boxSize - size) * 0.5f, 1.0f, size);
832
+ }
833
+
834
+ bool LookAndFeel_V2::areLinesDrawnForTreeView (TreeView&)
835
+ {
836
+ return true;
837
+ }
838
+
839
+ int LookAndFeel_V2::getTreeViewIndentSize (TreeView&)
840
+ {
841
+ return 24;
842
+ }
843
+
844
+ //==============================================================================
845
+ void LookAndFeel_V2::drawBubble (Graphics& g, BubbleComponent& comp,
846
+ const Point<float>& tip, const Rectangle<float>& body)
847
+ {
848
+ Path p;
849
+ p.addBubble (body.reduced (0.5f), body.getUnion (Rectangle<float> (tip.x, tip.y, 1.0f, 1.0f)),
850
+ tip, 5.0f, jmin (15.0f, body.getWidth() * 0.2f, body.getHeight() * 0.2f));
851
+
852
+ g.setColour (comp.findColour (BubbleComponent::backgroundColourId));
853
+ g.fillPath (p);
854
+
855
+ g.setColour (comp.findColour (BubbleComponent::outlineColourId));
856
+ g.strokePath (p, PathStrokeType (1.0f));
857
+ }
858
+
859
+ void LookAndFeel_V2::setComponentEffectForBubbleComponent (BubbleComponent& bubbleComponent)
860
+ {
861
+ bubbleComponent.setComponentEffect (&bubbleShadow);
862
+ }
863
+
864
+ //==============================================================================
865
+ Font LookAndFeel_V2::getPopupMenuFont()
866
+ {
867
+ return withDefaultMetrics (FontOptions (17.0f));
868
+ }
869
+
870
+ void LookAndFeel_V2::getIdealPopupMenuItemSize (const String& text, const bool isSeparator,
871
+ int standardMenuItemHeight, int& idealWidth, int& idealHeight)
872
+ {
873
+ if (isSeparator)
874
+ {
875
+ idealWidth = 50;
876
+ idealHeight = standardMenuItemHeight > 0 ? standardMenuItemHeight / 2 : 10;
877
+ }
878
+ else
879
+ {
880
+ Font font (getPopupMenuFont());
881
+
882
+ if (standardMenuItemHeight > 0 && font.getHeight() > (float) standardMenuItemHeight / 1.3f)
883
+ font.setHeight ((float) standardMenuItemHeight / 1.3f);
884
+
885
+ idealHeight = standardMenuItemHeight > 0 ? standardMenuItemHeight : roundToInt (font.getHeight() * 1.3f);
886
+ idealWidth = font.getStringWidth (text) + idealHeight * 2;
887
+ }
888
+ }
889
+
890
+ void LookAndFeel_V2::getIdealPopupMenuItemSizeWithOptions (const String& text,
891
+ bool isSeparator,
892
+ int standardMenuItemHeight,
893
+ int& idealWidth,
894
+ int& idealHeight,
895
+ const PopupMenu::Options&)
896
+ {
897
+ getIdealPopupMenuItemSize (text,
898
+ isSeparator,
899
+ standardMenuItemHeight,
900
+ idealWidth,
901
+ idealHeight);
902
+ }
903
+
904
+ void LookAndFeel_V2::drawPopupMenuBackground (Graphics& g, int width, int height)
905
+ {
906
+ auto background = findColour (PopupMenu::backgroundColourId);
907
+
908
+ g.fillAll (background);
909
+ g.setColour (background.overlaidWith (Colour (0x2badd8e6)));
910
+
911
+ for (int i = 0; i < height; i += 3)
912
+ g.fillRect (0, i, width, 1);
913
+
914
+ #if ! JUCE_MAC
915
+ g.setColour (findColour (PopupMenu::textColourId).withAlpha (0.6f));
916
+ g.drawRect (0, 0, width, height);
917
+ #endif
918
+ }
919
+
920
+ void LookAndFeel_V2::drawPopupMenuBackgroundWithOptions (Graphics& g,
921
+ int width,
922
+ int height,
923
+ const PopupMenu::Options&)
924
+ {
925
+ drawPopupMenuBackground (g, width, height);
926
+ }
927
+
928
+ void LookAndFeel_V2::drawPopupMenuUpDownArrow (Graphics& g, int width, int height, bool isScrollUpArrow)
929
+ {
930
+ auto background = findColour (PopupMenu::backgroundColourId);
931
+
932
+ g.setGradientFill (ColourGradient (background, 0.0f, (float) height * 0.5f,
933
+ background.withAlpha (0.0f),
934
+ 0.0f, isScrollUpArrow ? ((float) height) : 0.0f,
935
+ false));
936
+
937
+ g.fillRect (1, 1, width - 2, height - 2);
938
+
939
+ auto hw = (float) width * 0.5f;
940
+ auto arrowW = (float) height * 0.3f;
941
+ auto y1 = (float) height * (isScrollUpArrow ? 0.6f : 0.3f);
942
+ auto y2 = (float) height * (isScrollUpArrow ? 0.3f : 0.6f);
943
+
944
+ Path p;
945
+ p.addTriangle (hw - arrowW, y1,
946
+ hw + arrowW, y1,
947
+ hw, y2);
948
+
949
+ g.setColour (findColour (PopupMenu::textColourId).withAlpha (0.5f));
950
+ g.fillPath (p);
951
+ }
952
+
953
+ void LookAndFeel_V2::drawPopupMenuUpDownArrowWithOptions (Graphics& g,
954
+ int width, int height,
955
+ bool isScrollUpArrow,
956
+ const PopupMenu::Options&)
957
+ {
958
+ drawPopupMenuUpDownArrow (g, width, height, isScrollUpArrow);
959
+ }
960
+
961
+ void LookAndFeel_V2::drawPopupMenuItem (Graphics& g, const Rectangle<int>& area,
962
+ const bool isSeparator, const bool isActive,
963
+ const bool isHighlighted, const bool isTicked,
964
+ const bool hasSubMenu, const String& text,
965
+ const String& shortcutKeyText,
966
+ const Drawable* icon, const Colour* const textColourToUse)
967
+ {
968
+ if (isSeparator)
969
+ {
970
+ auto r = area.reduced (5, 0);
971
+ r.removeFromTop (r.getHeight() / 2 - 1);
972
+
973
+ g.setColour (Colour (0x33000000));
974
+ g.fillRect (r.removeFromTop (1));
975
+
976
+ g.setColour (Colour (0x66ffffff));
977
+ g.fillRect (r.removeFromTop (1));
978
+ }
979
+ else
980
+ {
981
+ auto textColour = findColour (PopupMenu::textColourId);
982
+
983
+ if (textColourToUse != nullptr)
984
+ textColour = *textColourToUse;
985
+
986
+ auto r = area.reduced (1);
987
+
988
+ if (isHighlighted)
989
+ {
990
+ g.setColour (findColour (PopupMenu::highlightedBackgroundColourId));
991
+ g.fillRect (r);
992
+
993
+ g.setColour (findColour (PopupMenu::highlightedTextColourId));
994
+ }
995
+ else
996
+ {
997
+ g.setColour (textColour);
998
+ }
999
+
1000
+ if (! isActive)
1001
+ g.setOpacity (0.3f);
1002
+
1003
+ Font font (getPopupMenuFont());
1004
+
1005
+ auto maxFontHeight = (float) area.getHeight() / 1.3f;
1006
+
1007
+ if (font.getHeight() > maxFontHeight)
1008
+ font.setHeight (maxFontHeight);
1009
+
1010
+ g.setFont (font);
1011
+
1012
+ auto iconArea = r.removeFromLeft ((r.getHeight() * 5) / 4).reduced (3).toFloat();
1013
+
1014
+ if (icon != nullptr)
1015
+ {
1016
+ icon->drawWithin (g, iconArea, RectanglePlacement::centred | RectanglePlacement::onlyReduceInSize, 1.0f);
1017
+ }
1018
+ else if (isTicked)
1019
+ {
1020
+ auto tick = getTickShape (1.0f);
1021
+ g.fillPath (tick, tick.getTransformToScaleToFit (iconArea, true));
1022
+ }
1023
+
1024
+ if (hasSubMenu)
1025
+ {
1026
+ auto arrowH = 0.6f * getPopupMenuFont().getAscent();
1027
+
1028
+ auto x = (float) r.removeFromRight ((int) arrowH).getX();
1029
+ auto halfH = (float) r.getCentreY();
1030
+
1031
+ Path p;
1032
+ p.addTriangle (x, halfH - arrowH * 0.5f,
1033
+ x, halfH + arrowH * 0.5f,
1034
+ x + arrowH * 0.6f, halfH);
1035
+
1036
+ g.fillPath (p);
1037
+ }
1038
+
1039
+ r.removeFromRight (3);
1040
+ g.drawFittedText (text, r, Justification::centredLeft, 1);
1041
+
1042
+ if (shortcutKeyText.isNotEmpty())
1043
+ {
1044
+ Font f2 (font);
1045
+ f2.setHeight (f2.getHeight() * 0.75f);
1046
+ f2.setHorizontalScale (0.95f);
1047
+ g.setFont (f2);
1048
+
1049
+ g.drawText (shortcutKeyText, r, Justification::centredRight, true);
1050
+ }
1051
+ }
1052
+ }
1053
+
1054
+ void LookAndFeel_V2::drawPopupMenuItemWithOptions (Graphics& g, const Rectangle<int>& area,
1055
+ bool isHighlighted,
1056
+ const PopupMenu::Item& item,
1057
+ const PopupMenu::Options&)
1058
+ {
1059
+ const auto colour = item.colour != Colour() ? &item.colour : nullptr;
1060
+ const auto hasSubMenu = item.subMenu != nullptr
1061
+ && (item.itemID == 0 || item.subMenu->getNumItems() > 0);
1062
+
1063
+ drawPopupMenuItem (g,
1064
+ area,
1065
+ item.isSeparator,
1066
+ item.isEnabled,
1067
+ isHighlighted,
1068
+ item.isTicked,
1069
+ hasSubMenu,
1070
+ item.text,
1071
+ item.shortcutKeyDescription,
1072
+ item.image.get(),
1073
+ colour);
1074
+ }
1075
+
1076
+ void LookAndFeel_V2::drawPopupMenuSectionHeader (Graphics& g,
1077
+ const Rectangle<int>& area,
1078
+ const String& sectionName)
1079
+ {
1080
+ g.setFont (getPopupMenuFont().boldened());
1081
+ g.setColour (findColour (PopupMenu::headerTextColourId));
1082
+
1083
+ g.drawFittedText (sectionName,
1084
+ area.getX() + 12, area.getY(), area.getWidth() - 16, (int) ((float) area.getHeight() * 0.8f),
1085
+ Justification::bottomLeft, 1);
1086
+ }
1087
+
1088
+ void LookAndFeel_V2::drawPopupMenuSectionHeaderWithOptions (Graphics& g, const Rectangle<int>& area,
1089
+ const String& sectionName,
1090
+ const PopupMenu::Options&)
1091
+ {
1092
+ drawPopupMenuSectionHeader (g, area, sectionName);
1093
+ }
1094
+
1095
+ //==============================================================================
1096
+ int LookAndFeel_V2::getMenuWindowFlags()
1097
+ {
1098
+ return ComponentPeer::windowHasDropShadow;
1099
+ }
1100
+
1101
+ void LookAndFeel_V2::drawMenuBarBackground (Graphics& g, int width, int height, bool, MenuBarComponent& menuBar)
1102
+ {
1103
+ auto baseColour = detail::LookAndFeelHelpers::createBaseColour (menuBar.findColour (PopupMenu::backgroundColourId),
1104
+ false, false, false);
1105
+
1106
+ if (menuBar.isEnabled())
1107
+ drawShinyButtonShape (g, -4.0f, 0.0f, (float) width + 8.0f, (float) height,
1108
+ 0.0f, baseColour, 0.4f, true, true, true, true);
1109
+ else
1110
+ g.fillAll (baseColour);
1111
+ }
1112
+
1113
+ Font LookAndFeel_V2::getMenuBarFont (MenuBarComponent& menuBar, int /*itemIndex*/, const String& /*itemText*/)
1114
+ {
1115
+ return withDefaultMetrics (FontOptions ((float) menuBar.getHeight() * 0.7f));
1116
+ }
1117
+
1118
+ int LookAndFeel_V2::getMenuBarItemWidth (MenuBarComponent& menuBar, int itemIndex, const String& itemText)
1119
+ {
1120
+ return getMenuBarFont (menuBar, itemIndex, itemText)
1121
+ .getStringWidth (itemText) + menuBar.getHeight();
1122
+ }
1123
+
1124
+ void LookAndFeel_V2::drawMenuBarItem (Graphics& g, int width, int height,
1125
+ int itemIndex, const String& itemText,
1126
+ bool isMouseOverItem, bool isMenuOpen,
1127
+ bool /*isMouseOverBar*/, MenuBarComponent& menuBar)
1128
+ {
1129
+ if (! menuBar.isEnabled())
1130
+ {
1131
+ g.setColour (menuBar.findColour (PopupMenu::textColourId)
1132
+ .withMultipliedAlpha (0.5f));
1133
+ }
1134
+ else if (isMenuOpen || isMouseOverItem)
1135
+ {
1136
+ g.fillAll (menuBar.findColour (PopupMenu::highlightedBackgroundColourId));
1137
+ g.setColour (menuBar.findColour (PopupMenu::highlightedTextColourId));
1138
+ }
1139
+ else
1140
+ {
1141
+ g.setColour (menuBar.findColour (PopupMenu::textColourId));
1142
+ }
1143
+
1144
+ g.setFont (getMenuBarFont (menuBar, itemIndex, itemText));
1145
+ g.drawFittedText (itemText, 0, 0, width, height, Justification::centred, 1);
1146
+ }
1147
+
1148
+ Component* LookAndFeel_V2::getParentComponentForMenuOptions (const PopupMenu::Options& options)
1149
+ {
1150
+ return options.getParentComponent();
1151
+ }
1152
+
1153
+ void LookAndFeel_V2::preparePopupMenuWindow (Component&) {}
1154
+
1155
+ bool LookAndFeel_V2::shouldPopupMenuScaleWithTargetComponent (const PopupMenu::Options&) { return true; }
1156
+
1157
+ int LookAndFeel_V2::getPopupMenuBorderSize() { return 2; }
1158
+
1159
+ int LookAndFeel_V2::getPopupMenuBorderSizeWithOptions (const PopupMenu::Options&)
1160
+ {
1161
+ return getPopupMenuBorderSize();
1162
+ }
1163
+
1164
+ void LookAndFeel_V2::drawPopupMenuColumnSeparatorWithOptions (Graphics&,
1165
+ const Rectangle<int>&,
1166
+ const PopupMenu::Options&) {}
1167
+
1168
+ int LookAndFeel_V2::getPopupMenuColumnSeparatorWidthWithOptions (const PopupMenu::Options&)
1169
+ {
1170
+ return 0;
1171
+ }
1172
+
1173
+ //==============================================================================
1174
+ void LookAndFeel_V2::fillTextEditorBackground (Graphics& g, int /*width*/, int /*height*/, TextEditor& textEditor)
1175
+ {
1176
+ g.fillAll (textEditor.findColour (TextEditor::backgroundColourId));
1177
+ }
1178
+
1179
+ void LookAndFeel_V2::drawTextEditorOutline (Graphics& g, int width, int height, TextEditor& textEditor)
1180
+ {
1181
+ if (textEditor.isEnabled())
1182
+ {
1183
+ if (textEditor.hasKeyboardFocus (true) && ! textEditor.isReadOnly())
1184
+ {
1185
+ const int border = 2;
1186
+
1187
+ g.setColour (textEditor.findColour (TextEditor::focusedOutlineColourId));
1188
+ g.drawRect (0, 0, width, height, border);
1189
+
1190
+ g.setOpacity (1.0f);
1191
+ auto shadowColour = textEditor.findColour (TextEditor::shadowColourId).withMultipliedAlpha (0.75f);
1192
+ drawBevel (g, 0, 0, width, height + 2, border + 2, shadowColour, shadowColour);
1193
+ }
1194
+ else
1195
+ {
1196
+ g.setColour (textEditor.findColour (TextEditor::outlineColourId));
1197
+ g.drawRect (0, 0, width, height);
1198
+
1199
+ g.setOpacity (1.0f);
1200
+ auto shadowColour = textEditor.findColour (TextEditor::shadowColourId);
1201
+ drawBevel (g, 0, 0, width, height + 2, 3, shadowColour, shadowColour);
1202
+ }
1203
+ }
1204
+ }
1205
+
1206
+ CaretComponent* LookAndFeel_V2::createCaretComponent (Component* keyFocusOwner)
1207
+ {
1208
+ return new CaretComponent (keyFocusOwner);
1209
+ }
1210
+
1211
+ //==============================================================================
1212
+ void LookAndFeel_V2::drawComboBox (Graphics& g, int width, int height, const bool isMouseButtonDown,
1213
+ int buttonX, int buttonY, int buttonW, int buttonH, ComboBox& box)
1214
+ {
1215
+ g.fillAll (box.findColour (ComboBox::backgroundColourId));
1216
+
1217
+ if (box.isEnabled() && box.hasKeyboardFocus (false))
1218
+ {
1219
+ g.setColour (box.findColour (ComboBox::focusedOutlineColourId));
1220
+ g.drawRect (0, 0, width, height, 2);
1221
+ }
1222
+ else
1223
+ {
1224
+ g.setColour (box.findColour (ComboBox::outlineColourId));
1225
+ g.drawRect (0, 0, width, height);
1226
+ }
1227
+
1228
+ auto outlineThickness = box.isEnabled() ? (isMouseButtonDown ? 1.2f : 0.5f) : 0.3f;
1229
+
1230
+ auto baseColour = detail::LookAndFeelHelpers::createBaseColour (box.findColour (ComboBox::buttonColourId),
1231
+ box.hasKeyboardFocus (true),
1232
+ false, isMouseButtonDown)
1233
+ .withMultipliedAlpha (box.isEnabled() ? 1.0f : 0.5f);
1234
+
1235
+ drawGlassLozenge (g,
1236
+ (float) buttonX + outlineThickness, (float) buttonY + outlineThickness,
1237
+ (float) buttonW - outlineThickness * 2.0f, (float) buttonH - outlineThickness * 2.0f,
1238
+ baseColour, outlineThickness, -1.0f,
1239
+ true, true, true, true);
1240
+
1241
+ if (box.isEnabled())
1242
+ {
1243
+ const float arrowX = 0.3f;
1244
+ const float arrowH = 0.2f;
1245
+
1246
+ const auto x = (float) buttonX;
1247
+ const auto y = (float) buttonY;
1248
+ const auto w = (float) buttonW;
1249
+ const auto h = (float) buttonH;
1250
+
1251
+ Path p;
1252
+ p.addTriangle (x + w * 0.5f, y + h * (0.45f - arrowH),
1253
+ x + w * (1.0f - arrowX), y + h * 0.45f,
1254
+ x + w * arrowX, y + h * 0.45f);
1255
+
1256
+ p.addTriangle (x + w * 0.5f, y + h * (0.55f + arrowH),
1257
+ x + w * (1.0f - arrowX), y + h * 0.55f,
1258
+ x + w * arrowX, y + h * 0.55f);
1259
+
1260
+ g.setColour (box.findColour (ComboBox::arrowColourId));
1261
+ g.fillPath (p);
1262
+ }
1263
+ }
1264
+
1265
+ Font LookAndFeel_V2::getComboBoxFont (ComboBox& box)
1266
+ {
1267
+ return withDefaultMetrics (FontOptions (jmin (15.0f, (float) box.getHeight() * 0.85f)));
1268
+ }
1269
+
1270
+ Label* LookAndFeel_V2::createComboBoxTextBox (ComboBox&)
1271
+ {
1272
+ return new Label (String(), String());
1273
+ }
1274
+
1275
+ void LookAndFeel_V2::positionComboBoxText (ComboBox& box, Label& label)
1276
+ {
1277
+ label.setBounds (1, 1,
1278
+ box.getWidth() + 3 - box.getHeight(),
1279
+ box.getHeight() - 2);
1280
+
1281
+ label.setFont (getComboBoxFont (box));
1282
+ }
1283
+
1284
+ PopupMenu::Options LookAndFeel_V2::getOptionsForComboBoxPopupMenu (ComboBox& box, Label& label)
1285
+ {
1286
+ return PopupMenu::Options().withTargetComponent (&box)
1287
+ .withItemThatMustBeVisible (box.getSelectedId())
1288
+ .withInitiallySelectedItem (box.getSelectedId())
1289
+ .withMinimumWidth (box.getWidth())
1290
+ .withMaximumNumColumns (1)
1291
+ .withStandardItemHeight (label.getHeight());
1292
+ }
1293
+
1294
+ void LookAndFeel_V2::drawComboBoxTextWhenNothingSelected (Graphics& g, ComboBox& box, Label& label)
1295
+ {
1296
+ g.setColour (findColour (ComboBox::textColourId).withMultipliedAlpha (0.5f));
1297
+
1298
+ auto font = label.getLookAndFeel().getLabelFont (label);
1299
+
1300
+ g.setFont (font);
1301
+
1302
+ auto textArea = getLabelBorderSize (label).subtractedFrom (label.getLocalBounds());
1303
+
1304
+ g.drawFittedText (box.getTextWhenNothingSelected(), textArea, label.getJustificationType(),
1305
+ jmax (1, (int) ((float) textArea.getHeight() / font.getHeight())),
1306
+ label.getMinimumHorizontalScale());
1307
+ }
1308
+
1309
+ //==============================================================================
1310
+ Font LookAndFeel_V2::getLabelFont (Label& label)
1311
+ {
1312
+ return label.getFont();
1313
+ }
1314
+
1315
+ void LookAndFeel_V2::drawLabel (Graphics& g, Label& label)
1316
+ {
1317
+ g.fillAll (label.findColour (Label::backgroundColourId));
1318
+
1319
+ if (! label.isBeingEdited())
1320
+ {
1321
+ auto alpha = label.isEnabled() ? 1.0f : 0.5f;
1322
+ const Font font (getLabelFont (label));
1323
+
1324
+ g.setColour (label.findColour (Label::textColourId).withMultipliedAlpha (alpha));
1325
+ g.setFont (font);
1326
+
1327
+ auto textArea = getLabelBorderSize (label).subtractedFrom (label.getLocalBounds());
1328
+
1329
+ g.drawFittedText (label.getText(), textArea, label.getJustificationType(),
1330
+ jmax (1, (int) ((float) textArea.getHeight() / font.getHeight())),
1331
+ label.getMinimumHorizontalScale());
1332
+
1333
+ g.setColour (label.findColour (Label::outlineColourId).withMultipliedAlpha (alpha));
1334
+ }
1335
+ else if (label.isEnabled())
1336
+ {
1337
+ g.setColour (label.findColour (Label::outlineColourId));
1338
+ }
1339
+
1340
+ g.drawRect (label.getLocalBounds());
1341
+ }
1342
+
1343
+ BorderSize<int> LookAndFeel_V2::getLabelBorderSize (Label& label)
1344
+ {
1345
+ return label.getBorderSize();
1346
+ }
1347
+
1348
+ //==============================================================================
1349
+ void LookAndFeel_V2::drawLinearSliderBackground (Graphics& g, int x, int y, int width, int height,
1350
+ float /*sliderPos*/,
1351
+ float /*minSliderPos*/,
1352
+ float /*maxSliderPos*/,
1353
+ const Slider::SliderStyle /*style*/, Slider& slider)
1354
+ {
1355
+ auto sliderRadius = (float) (getSliderThumbRadius (slider) - 2);
1356
+ auto trackColour = slider.findColour (Slider::trackColourId);
1357
+ auto gradCol1 = trackColour.overlaidWith (Colours::black.withAlpha (slider.isEnabled() ? 0.25f : 0.13f));
1358
+ auto gradCol2 = trackColour.overlaidWith (Colour (0x14000000));
1359
+
1360
+ Path indent;
1361
+
1362
+ if (slider.isHorizontal())
1363
+ {
1364
+ const float iy = (float) y + (float) height * 0.5f - sliderRadius * 0.5f;
1365
+ const float ih = sliderRadius;
1366
+
1367
+ g.setGradientFill (ColourGradient::vertical (gradCol1, iy, gradCol2, iy + ih));
1368
+
1369
+ indent.addRoundedRectangle ((float) x - sliderRadius * 0.5f, iy,
1370
+ (float) width + sliderRadius, ih,
1371
+ 5.0f);
1372
+ }
1373
+ else
1374
+ {
1375
+ const float ix = (float) x + (float) width * 0.5f - sliderRadius * 0.5f;
1376
+ const float iw = sliderRadius;
1377
+
1378
+ g.setGradientFill (ColourGradient::horizontal (gradCol1, ix, gradCol2, ix + iw));
1379
+
1380
+ indent.addRoundedRectangle (ix, (float) y - sliderRadius * 0.5f,
1381
+ iw, (float) height + sliderRadius,
1382
+ 5.0f);
1383
+ }
1384
+
1385
+ g.fillPath (indent);
1386
+
1387
+ g.setColour (Colour (0x4c000000));
1388
+ g.strokePath (indent, PathStrokeType (0.5f));
1389
+ }
1390
+
1391
+ void LookAndFeel_V2::drawLinearSliderOutline (Graphics& g, int, int, int, int,
1392
+ const Slider::SliderStyle, Slider& slider)
1393
+ {
1394
+ if (slider.getTextBoxPosition() == Slider::NoTextBox)
1395
+ {
1396
+ g.setColour (slider.findColour (Slider::textBoxOutlineColourId));
1397
+ g.drawRect (0, 0, slider.getWidth(), slider.getHeight(), 1);
1398
+ }
1399
+ }
1400
+
1401
+ void LookAndFeel_V2::drawLinearSliderThumb (Graphics& g, int x, int y, int width, int height,
1402
+ float sliderPos, float minSliderPos, float maxSliderPos,
1403
+ const Slider::SliderStyle style, Slider& slider)
1404
+ {
1405
+ auto sliderRadius = (float) (getSliderThumbRadius (slider) - 2);
1406
+
1407
+ auto knobColour = detail::LookAndFeelHelpers::createBaseColour (slider.findColour (Slider::thumbColourId),
1408
+ slider.hasKeyboardFocus (false) && slider.isEnabled(),
1409
+ slider.isMouseOverOrDragging() && slider.isEnabled(),
1410
+ slider.isMouseButtonDown() && slider.isEnabled());
1411
+
1412
+ const float outlineThickness = slider.isEnabled() ? 0.8f : 0.3f;
1413
+
1414
+ if (style == Slider::LinearHorizontal || style == Slider::LinearVertical)
1415
+ {
1416
+ float kx, ky;
1417
+
1418
+ if (style == Slider::LinearVertical)
1419
+ {
1420
+ kx = (float) x + (float) width * 0.5f;
1421
+ ky = sliderPos;
1422
+ }
1423
+ else
1424
+ {
1425
+ kx = sliderPos;
1426
+ ky = (float) y + (float) height * 0.5f;
1427
+ }
1428
+
1429
+ drawGlassSphere (g,
1430
+ kx - sliderRadius,
1431
+ ky - sliderRadius,
1432
+ sliderRadius * 2.0f,
1433
+ knobColour, outlineThickness);
1434
+ }
1435
+ else
1436
+ {
1437
+ if (style == Slider::ThreeValueVertical)
1438
+ {
1439
+ drawGlassSphere (g, (float) x + (float) width * 0.5f - sliderRadius,
1440
+ sliderPos - sliderRadius,
1441
+ sliderRadius * 2.0f,
1442
+ knobColour, outlineThickness);
1443
+ }
1444
+ else if (style == Slider::ThreeValueHorizontal)
1445
+ {
1446
+ drawGlassSphere (g,sliderPos - sliderRadius,
1447
+ (float) y + (float) height * 0.5f - sliderRadius,
1448
+ sliderRadius * 2.0f,
1449
+ knobColour, outlineThickness);
1450
+ }
1451
+
1452
+ if (style == Slider::TwoValueVertical || style == Slider::ThreeValueVertical)
1453
+ {
1454
+ auto sr = jmin (sliderRadius, (float) width * 0.4f);
1455
+
1456
+ drawGlassPointer (g, jmax (0.0f, (float) x + (float) width * 0.5f - sliderRadius * 2.0f),
1457
+ minSliderPos - sliderRadius,
1458
+ sliderRadius * 2.0f, knobColour, outlineThickness, 1);
1459
+
1460
+ drawGlassPointer (g,
1461
+ jmin ((float) x + (float) width - sliderRadius * 2.0f,
1462
+ (float) x + (float) width * 0.5f),
1463
+ maxSliderPos - sr,
1464
+ sliderRadius * 2.0f,
1465
+ knobColour,
1466
+ outlineThickness,
1467
+ 3);
1468
+ }
1469
+ else if (style == Slider::TwoValueHorizontal || style == Slider::ThreeValueHorizontal)
1470
+ {
1471
+ auto sr = jmin (sliderRadius, (float) height * 0.4f);
1472
+
1473
+ drawGlassPointer (g, minSliderPos - sr,
1474
+ jmax (0.0f, (float) y + (float) height * 0.5f - sliderRadius * 2.0f),
1475
+ sliderRadius * 2.0f, knobColour, outlineThickness, 2);
1476
+
1477
+ drawGlassPointer (g,
1478
+ maxSliderPos - sliderRadius,
1479
+ jmin ((float) y + (float) height - sliderRadius * 2.0f,
1480
+ (float) y + (float) height * 0.5f),
1481
+ sliderRadius * 2.0f,
1482
+ knobColour,
1483
+ outlineThickness,
1484
+ 4);
1485
+ }
1486
+ }
1487
+ }
1488
+
1489
+ void LookAndFeel_V2::drawLinearSlider (Graphics& g, int x, int y, int width, int height,
1490
+ float sliderPos, float minSliderPos, float maxSliderPos,
1491
+ const Slider::SliderStyle style, Slider& slider)
1492
+ {
1493
+ g.fillAll (slider.findColour (Slider::backgroundColourId));
1494
+
1495
+ if (style == Slider::LinearBar || style == Slider::LinearBarVertical)
1496
+ {
1497
+ const bool isMouseOver = slider.isMouseOverOrDragging() && slider.isEnabled();
1498
+
1499
+ auto baseColour = detail::LookAndFeelHelpers::createBaseColour (slider.findColour (Slider::thumbColourId)
1500
+ .withMultipliedSaturation (slider.isEnabled() ? 1.0f : 0.5f),
1501
+ false, isMouseOver,
1502
+ isMouseOver || slider.isMouseButtonDown());
1503
+
1504
+ drawShinyButtonShape (g,
1505
+ (float) x,
1506
+ style == Slider::LinearBarVertical ? sliderPos
1507
+ : (float) y,
1508
+ style == Slider::LinearBarVertical ? (float) width
1509
+ : (sliderPos - (float) x),
1510
+ style == Slider::LinearBarVertical ? ((float) height - sliderPos)
1511
+ : (float) height, 0.0f,
1512
+ baseColour,
1513
+ slider.isEnabled() ? 0.9f : 0.3f,
1514
+ true, true, true, true);
1515
+
1516
+ drawLinearSliderOutline (g, x, y, width, height, style, slider);
1517
+ }
1518
+ else
1519
+ {
1520
+ drawLinearSliderBackground (g, x, y, width, height, sliderPos, minSliderPos, maxSliderPos, style, slider);
1521
+ drawLinearSliderThumb (g, x, y, width, height, sliderPos, minSliderPos, maxSliderPos, style, slider);
1522
+ }
1523
+ }
1524
+
1525
+ int LookAndFeel_V2::getSliderThumbRadius (Slider& slider)
1526
+ {
1527
+ return jmin (7,
1528
+ slider.getHeight() / 2,
1529
+ slider.getWidth() / 2) + 2;
1530
+ }
1531
+
1532
+ void LookAndFeel_V2::drawRotarySlider (Graphics& g, int x, int y, int width, int height, float sliderPos,
1533
+ const float rotaryStartAngle, const float rotaryEndAngle, Slider& slider)
1534
+ {
1535
+ const float radius = jmin ((float) width * 0.5f, (float) height * 0.5f) - 2.0f;
1536
+ const float centreX = (float) x + (float) width * 0.5f;
1537
+ const float centreY = (float) y + (float) height * 0.5f;
1538
+ const float rx = centreX - radius;
1539
+ const float ry = centreY - radius;
1540
+ const float rw = radius * 2.0f;
1541
+ const float angle = rotaryStartAngle + sliderPos * (rotaryEndAngle - rotaryStartAngle);
1542
+ const bool isMouseOver = slider.isMouseOverOrDragging() && slider.isEnabled();
1543
+
1544
+ if (radius > 12.0f)
1545
+ {
1546
+ if (slider.isEnabled())
1547
+ g.setColour (slider.findColour (Slider::rotarySliderFillColourId).withAlpha (isMouseOver ? 1.0f : 0.7f));
1548
+ else
1549
+ g.setColour (Colour (0x80808080));
1550
+
1551
+ const float thickness = 0.7f;
1552
+
1553
+ {
1554
+ Path filledArc;
1555
+ filledArc.addPieSegment (rx, ry, rw, rw, rotaryStartAngle, angle, thickness);
1556
+ g.fillPath (filledArc);
1557
+ }
1558
+
1559
+ {
1560
+ const float innerRadius = radius * 0.2f;
1561
+ Path p;
1562
+ p.addTriangle (-innerRadius, 0.0f,
1563
+ 0.0f, -radius * thickness * 1.1f,
1564
+ innerRadius, 0.0f);
1565
+
1566
+ p.addEllipse (-innerRadius, -innerRadius, innerRadius * 2.0f, innerRadius * 2.0f);
1567
+
1568
+ g.fillPath (p, AffineTransform::rotation (angle).translated (centreX, centreY));
1569
+ }
1570
+
1571
+ if (slider.isEnabled())
1572
+ g.setColour (slider.findColour (Slider::rotarySliderOutlineColourId));
1573
+ else
1574
+ g.setColour (Colour (0x80808080));
1575
+
1576
+ Path outlineArc;
1577
+ outlineArc.addPieSegment (rx, ry, rw, rw, rotaryStartAngle, rotaryEndAngle, thickness);
1578
+ outlineArc.closeSubPath();
1579
+
1580
+ g.strokePath (outlineArc, PathStrokeType (slider.isEnabled() ? (isMouseOver ? 2.0f : 1.2f) : 0.3f));
1581
+ }
1582
+ else
1583
+ {
1584
+ if (slider.isEnabled())
1585
+ g.setColour (slider.findColour (Slider::rotarySliderFillColourId).withAlpha (isMouseOver ? 1.0f : 0.7f));
1586
+ else
1587
+ g.setColour (Colour (0x80808080));
1588
+
1589
+ Path p;
1590
+ p.addEllipse (-0.4f * rw, -0.4f * rw, rw * 0.8f, rw * 0.8f);
1591
+ PathStrokeType (rw * 0.1f).createStrokedPath (p, p);
1592
+
1593
+ p.addLineSegment (Line<float> (0.0f, 0.0f, 0.0f, -radius), rw * 0.2f);
1594
+
1595
+ g.fillPath (p, AffineTransform::rotation (angle).translated (centreX, centreY));
1596
+ }
1597
+ }
1598
+
1599
+ Button* LookAndFeel_V2::createSliderButton (Slider&, const bool isIncrement)
1600
+ {
1601
+ return new TextButton (isIncrement ? "+" : "-", String());
1602
+ }
1603
+
1604
+ class LookAndFeel_V2::SliderLabelComp final : public Label
1605
+ {
1606
+ public:
1607
+ SliderLabelComp() : Label ({}, {}) {}
1608
+
1609
+ void mouseWheelMove (const MouseEvent&, const MouseWheelDetails&) override {}
1610
+
1611
+ std::unique_ptr<AccessibilityHandler> createAccessibilityHandler() override
1612
+ {
1613
+ return createIgnoredAccessibilityHandler (*this);
1614
+ }
1615
+ };
1616
+
1617
+ Label* LookAndFeel_V2::createSliderTextBox (Slider& slider)
1618
+ {
1619
+ auto l = new SliderLabelComp();
1620
+
1621
+ l->setJustificationType (Justification::centred);
1622
+ l->setKeyboardType (TextInputTarget::decimalKeyboard);
1623
+
1624
+ l->setColour (Label::textColourId, slider.findColour (Slider::textBoxTextColourId));
1625
+ l->setColour (Label::backgroundColourId,
1626
+ (slider.getSliderStyle() == Slider::LinearBar || slider.getSliderStyle() == Slider::LinearBarVertical)
1627
+ ? Colours::transparentBlack
1628
+ : slider.findColour (Slider::textBoxBackgroundColourId));
1629
+ l->setColour (Label::outlineColourId, slider.findColour (Slider::textBoxOutlineColourId));
1630
+ l->setColour (TextEditor::textColourId, slider.findColour (Slider::textBoxTextColourId));
1631
+ l->setColour (TextEditor::backgroundColourId,
1632
+ slider.findColour (Slider::textBoxBackgroundColourId)
1633
+ .withAlpha ((slider.getSliderStyle() == Slider::LinearBar || slider.getSliderStyle() == Slider::LinearBarVertical)
1634
+ ? 0.7f : 1.0f));
1635
+ l->setColour (TextEditor::outlineColourId, slider.findColour (Slider::textBoxOutlineColourId));
1636
+ l->setColour (TextEditor::highlightColourId, slider.findColour (Slider::textBoxHighlightColourId));
1637
+
1638
+ return l;
1639
+ }
1640
+
1641
+ ImageEffectFilter* LookAndFeel_V2::getSliderEffect (Slider&)
1642
+ {
1643
+ return nullptr;
1644
+ }
1645
+
1646
+ Font LookAndFeel_V2::getSliderPopupFont (Slider&)
1647
+ {
1648
+ return withDefaultMetrics (FontOptions (15.0f, Font::bold));
1649
+ }
1650
+
1651
+ int LookAndFeel_V2::getSliderPopupPlacement (Slider&)
1652
+ {
1653
+ return BubbleComponent::above
1654
+ | BubbleComponent::below
1655
+ | BubbleComponent::left
1656
+ | BubbleComponent::right;
1657
+ }
1658
+
1659
+ //==============================================================================
1660
+ Slider::SliderLayout LookAndFeel_V2::getSliderLayout (Slider& slider)
1661
+ {
1662
+ // 1. compute the actually visible textBox size from the slider textBox size and some additional constraints
1663
+
1664
+ int minXSpace = 0;
1665
+ int minYSpace = 0;
1666
+
1667
+ auto textBoxPos = slider.getTextBoxPosition();
1668
+
1669
+ if (textBoxPos == Slider::TextBoxLeft || textBoxPos == Slider::TextBoxRight)
1670
+ minXSpace = 30;
1671
+ else
1672
+ minYSpace = 15;
1673
+
1674
+ auto localBounds = slider.getLocalBounds();
1675
+
1676
+ auto textBoxWidth = jmax (0, jmin (slider.getTextBoxWidth(), localBounds.getWidth() - minXSpace));
1677
+ auto textBoxHeight = jmax (0, jmin (slider.getTextBoxHeight(), localBounds.getHeight() - minYSpace));
1678
+
1679
+ Slider::SliderLayout layout;
1680
+
1681
+ // 2. set the textBox bounds
1682
+
1683
+ if (textBoxPos != Slider::NoTextBox)
1684
+ {
1685
+ if (slider.isBar())
1686
+ {
1687
+ layout.textBoxBounds = localBounds;
1688
+ }
1689
+ else
1690
+ {
1691
+ layout.textBoxBounds.setWidth (textBoxWidth);
1692
+ layout.textBoxBounds.setHeight (textBoxHeight);
1693
+
1694
+ if (textBoxPos == Slider::TextBoxLeft) layout.textBoxBounds.setX (0);
1695
+ else if (textBoxPos == Slider::TextBoxRight) layout.textBoxBounds.setX (localBounds.getWidth() - textBoxWidth);
1696
+ else /* above or below -> centre horizontally */ layout.textBoxBounds.setX ((localBounds.getWidth() - textBoxWidth) / 2);
1697
+
1698
+ if (textBoxPos == Slider::TextBoxAbove) layout.textBoxBounds.setY (0);
1699
+ else if (textBoxPos == Slider::TextBoxBelow) layout.textBoxBounds.setY (localBounds.getHeight() - textBoxHeight);
1700
+ else /* left or right -> centre vertically */ layout.textBoxBounds.setY ((localBounds.getHeight() - textBoxHeight) / 2);
1701
+ }
1702
+ }
1703
+
1704
+ // 3. set the slider bounds
1705
+
1706
+ layout.sliderBounds = localBounds;
1707
+
1708
+ if (slider.isBar())
1709
+ {
1710
+ layout.sliderBounds.reduce (1, 1); // bar border
1711
+ }
1712
+ else
1713
+ {
1714
+ if (textBoxPos == Slider::TextBoxLeft) layout.sliderBounds.removeFromLeft (textBoxWidth);
1715
+ else if (textBoxPos == Slider::TextBoxRight) layout.sliderBounds.removeFromRight (textBoxWidth);
1716
+ else if (textBoxPos == Slider::TextBoxAbove) layout.sliderBounds.removeFromTop (textBoxHeight);
1717
+ else if (textBoxPos == Slider::TextBoxBelow) layout.sliderBounds.removeFromBottom (textBoxHeight);
1718
+
1719
+ const int thumbIndent = getSliderThumbRadius (slider);
1720
+
1721
+ if (slider.isHorizontal()) layout.sliderBounds.reduce (thumbIndent, 0);
1722
+ else if (slider.isVertical()) layout.sliderBounds.reduce (0, thumbIndent);
1723
+ }
1724
+
1725
+ return layout;
1726
+ }
1727
+
1728
+ //==============================================================================
1729
+ Rectangle<int> LookAndFeel_V2::getTooltipBounds (const String& tipText, Point<int> screenPos, Rectangle<int> parentArea)
1730
+ {
1731
+ const TextLayout tl (detail::LookAndFeelHelpers::layoutTooltipText (getDefaultMetricsKind(), tipText, Colours::black));
1732
+
1733
+ auto w = (int) (tl.getWidth() + 14.0f);
1734
+ auto h = (int) (tl.getHeight() + 6.0f);
1735
+
1736
+ return Rectangle<int> (screenPos.x > parentArea.getCentreX() ? screenPos.x - (w + 12) : screenPos.x + 24,
1737
+ screenPos.y > parentArea.getCentreY() ? screenPos.y - (h + 6) : screenPos.y + 6,
1738
+ w, h)
1739
+ .constrainedWithin (parentArea);
1740
+ }
1741
+
1742
+ void LookAndFeel_V2::drawTooltip (Graphics& g, const String& text, int width, int height)
1743
+ {
1744
+ g.fillAll (findColour (TooltipWindow::backgroundColourId));
1745
+
1746
+ #if ! JUCE_MAC // The mac windows already have a non-optional 1 pix outline, so don't double it here..
1747
+ g.setColour (findColour (TooltipWindow::outlineColourId));
1748
+ g.drawRect (0, 0, width, height, 1);
1749
+ #endif
1750
+
1751
+ detail::LookAndFeelHelpers::layoutTooltipText (getDefaultMetricsKind(), text, findColour (TooltipWindow::textColourId))
1752
+ .draw (g, Rectangle<float> ((float) width, (float) height));
1753
+ }
1754
+
1755
+ //==============================================================================
1756
+ Button* LookAndFeel_V2::createFilenameComponentBrowseButton (const String& text)
1757
+ {
1758
+ return new TextButton (text, TRANS ("click to browse for a different file"));
1759
+ }
1760
+
1761
+ void LookAndFeel_V2::layoutFilenameComponent (FilenameComponent& filenameComp,
1762
+ ComboBox* filenameBox, Button* browseButton)
1763
+ {
1764
+ if (browseButton == nullptr || filenameBox == nullptr)
1765
+ return;
1766
+
1767
+ browseButton->setSize (80, filenameComp.getHeight());
1768
+
1769
+ if (auto* tb = dynamic_cast<TextButton*> (browseButton))
1770
+ tb->changeWidthToFitText();
1771
+
1772
+ browseButton->setTopRightPosition (filenameComp.getWidth(), 0);
1773
+
1774
+ filenameBox->setBounds (0, 0, browseButton->getX(), filenameComp.getHeight());
1775
+ }
1776
+
1777
+ //==============================================================================
1778
+ void LookAndFeel_V2::drawConcertinaPanelHeader (Graphics& g, const Rectangle<int>& area,
1779
+ bool isMouseOver, bool /*isMouseDown*/,
1780
+ ConcertinaPanel&, Component& panel)
1781
+ {
1782
+ g.fillAll (Colours::grey.withAlpha (isMouseOver ? 0.9f : 0.7f));
1783
+ g.setColour (Colours::black.withAlpha (0.5f));
1784
+ g.drawRect (area);
1785
+
1786
+ g.setColour (Colours::white);
1787
+ g.setFont (Font (withDefaultMetrics (FontOptions { (float) area.getHeight() * 0.7f })).boldened());
1788
+ g.drawFittedText (panel.getName(), 4, 0, area.getWidth() - 6, area.getHeight(), Justification::centredLeft, 1);
1789
+ }
1790
+
1791
+ //==============================================================================
1792
+ void LookAndFeel_V2::drawImageButton (Graphics& g, Image* image,
1793
+ int imageX, int imageY, int imageW, int imageH,
1794
+ const Colour& overlayColour,
1795
+ float imageOpacity,
1796
+ ImageButton& button)
1797
+ {
1798
+ if (! button.isEnabled())
1799
+ imageOpacity *= 0.3f;
1800
+
1801
+ AffineTransform t = RectanglePlacement (RectanglePlacement::stretchToFit)
1802
+ .getTransformToFit (image->getBounds().toFloat(),
1803
+ Rectangle<int> (imageX, imageY, imageW, imageH).toFloat());
1804
+
1805
+ if (! overlayColour.isOpaque())
1806
+ {
1807
+ g.setOpacity (imageOpacity);
1808
+ g.drawImageTransformed (*image, t, false);
1809
+ }
1810
+
1811
+ if (! overlayColour.isTransparent())
1812
+ {
1813
+ g.setColour (overlayColour);
1814
+ g.drawImageTransformed (*image, t, true);
1815
+ }
1816
+ }
1817
+
1818
+ //==============================================================================
1819
+ void LookAndFeel_V2::drawCornerResizer (Graphics& g, int w, int h, bool /*isMouseOver*/, bool /*isMouseDragging*/)
1820
+ {
1821
+ auto lineThickness = jmin ((float) w, (float) h) * 0.075f;
1822
+
1823
+ for (float i = 0.0f; i < 1.0f; i += 0.3f)
1824
+ {
1825
+ g.setColour (Colours::lightgrey);
1826
+
1827
+ g.drawLine ((float) w * i,
1828
+ (float) h + 1.0f,
1829
+ (float) w + 1.0f,
1830
+ (float) h * i,
1831
+ lineThickness);
1832
+
1833
+ g.setColour (Colours::darkgrey);
1834
+
1835
+ g.drawLine ((float) w * i + lineThickness,
1836
+ (float) h + 1.0f,
1837
+ (float) w + 1.0f,
1838
+ (float) h * i + lineThickness,
1839
+ lineThickness);
1840
+ }
1841
+ }
1842
+
1843
+ void LookAndFeel_V2::drawResizableFrame (Graphics& g, int w, int h, const BorderSize<int>& border)
1844
+ {
1845
+ if (! border.isEmpty())
1846
+ {
1847
+ const Rectangle<int> fullSize (0, 0, w, h);
1848
+ auto centreArea = border.subtractedFrom (fullSize);
1849
+
1850
+ Graphics::ScopedSaveState ss (g);
1851
+
1852
+ g.excludeClipRegion (centreArea);
1853
+
1854
+ g.setColour (Colour (0x50000000));
1855
+ g.drawRect (fullSize);
1856
+
1857
+ g.setColour (Colour (0x19000000));
1858
+ g.drawRect (centreArea.expanded (1, 1));
1859
+ }
1860
+ }
1861
+
1862
+ //==============================================================================
1863
+ void LookAndFeel_V2::fillResizableWindowBackground (Graphics& g, int /*w*/, int /*h*/,
1864
+ const BorderSize<int>& /*border*/, ResizableWindow& window)
1865
+ {
1866
+ g.fillAll (window.getBackgroundColour());
1867
+ }
1868
+
1869
+ void LookAndFeel_V2::drawResizableWindowBorder (Graphics&, int /*w*/, int /*h*/,
1870
+ const BorderSize<int>& /*border*/, ResizableWindow&)
1871
+ {
1872
+ }
1873
+
1874
+ void LookAndFeel_V2::drawDocumentWindowTitleBar (DocumentWindow& window, Graphics& g,
1875
+ int w, int h, int titleSpaceX, int titleSpaceW,
1876
+ const Image* icon, bool drawTitleTextOnLeft)
1877
+ {
1878
+ if (w * h == 0)
1879
+ return;
1880
+
1881
+ const bool isActive = window.isActiveWindow();
1882
+
1883
+ g.setGradientFill (ColourGradient::vertical (window.getBackgroundColour(), 0,
1884
+ window.getBackgroundColour().contrasting (isActive ? 0.15f : 0.05f), (float) h));
1885
+ g.fillAll();
1886
+
1887
+ Font font (withDefaultMetrics (FontOptions { (float) h * 0.65f, Font::bold }));
1888
+ g.setFont (font);
1889
+
1890
+ int textW = font.getStringWidth (window.getName());
1891
+ int iconW = 0;
1892
+ int iconH = 0;
1893
+
1894
+ if (icon != nullptr)
1895
+ {
1896
+ iconH = (int) font.getHeight();
1897
+ iconW = icon->getWidth() * iconH / icon->getHeight() + 4;
1898
+ }
1899
+
1900
+ textW = jmin (titleSpaceW, textW + iconW);
1901
+ int textX = drawTitleTextOnLeft ? titleSpaceX
1902
+ : jmax (titleSpaceX, (w - textW) / 2);
1903
+
1904
+ if (textX + textW > titleSpaceX + titleSpaceW)
1905
+ textX = titleSpaceX + titleSpaceW - textW;
1906
+
1907
+ if (icon != nullptr)
1908
+ {
1909
+ g.setOpacity (isActive ? 1.0f : 0.6f);
1910
+ g.drawImageWithin (*icon, textX, (h - iconH) / 2, iconW, iconH,
1911
+ RectanglePlacement::centred, false);
1912
+ textX += iconW;
1913
+ textW -= iconW;
1914
+ }
1915
+
1916
+ if (window.isColourSpecified (DocumentWindow::textColourId) || isColourSpecified (DocumentWindow::textColourId))
1917
+ g.setColour (window.findColour (DocumentWindow::textColourId));
1918
+ else
1919
+ g.setColour (window.getBackgroundColour().contrasting (isActive ? 0.7f : 0.4f));
1920
+
1921
+ g.drawText (window.getName(), textX, 0, textW, h, Justification::centredLeft, true);
1922
+ }
1923
+
1924
+ //==============================================================================
1925
+ class LookAndFeel_V2::GlassWindowButton final : public Button
1926
+ {
1927
+ public:
1928
+ GlassWindowButton (const String& name, Colour col,
1929
+ const Path& normalShape_,
1930
+ const Path& toggledShape_) noexcept
1931
+ : Button (name),
1932
+ colour (col),
1933
+ normalShape (normalShape_),
1934
+ toggledShape (toggledShape_)
1935
+ {
1936
+ }
1937
+
1938
+ //==============================================================================
1939
+ void paintButton (Graphics& g, bool shouldDrawButtonAsHighlighted, bool shouldDrawButtonAsDown) override
1940
+ {
1941
+ float alpha = shouldDrawButtonAsHighlighted ? (shouldDrawButtonAsDown ? 1.0f : 0.8f) : 0.55f;
1942
+
1943
+ if (! isEnabled())
1944
+ alpha *= 0.5f;
1945
+
1946
+ float x = 0, y = 0, diam;
1947
+
1948
+ if (getWidth() < getHeight())
1949
+ {
1950
+ diam = (float) getWidth();
1951
+ y = (float) (getHeight() - getWidth()) * 0.5f;
1952
+ }
1953
+ else
1954
+ {
1955
+ diam = (float) getHeight();
1956
+ y = (float) (getWidth() - getHeight()) * 0.5f;
1957
+ }
1958
+
1959
+ x += diam * 0.05f;
1960
+ y += diam * 0.05f;
1961
+ diam *= 0.9f;
1962
+
1963
+ g.setGradientFill (ColourGradient (Colour::greyLevel (0.9f).withAlpha (alpha), 0, y + diam,
1964
+ Colour::greyLevel (0.6f).withAlpha (alpha), 0, y, false));
1965
+ g.fillEllipse (x, y, diam, diam);
1966
+
1967
+ x += 2.0f;
1968
+ y += 2.0f;
1969
+ diam -= 4.0f;
1970
+
1971
+ LookAndFeel_V2::drawGlassSphere (g, x, y, diam, colour.withAlpha (alpha), 1.0f);
1972
+
1973
+ Path& p = getToggleState() ? toggledShape : normalShape;
1974
+
1975
+ const AffineTransform t (p.getTransformToScaleToFit (x + diam * 0.3f, y + diam * 0.3f,
1976
+ diam * 0.4f, diam * 0.4f, true));
1977
+
1978
+ g.setColour (Colours::black.withAlpha (alpha * 0.6f));
1979
+ g.fillPath (p, t);
1980
+ }
1981
+
1982
+ private:
1983
+ Colour colour;
1984
+ Path normalShape, toggledShape;
1985
+
1986
+ JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (GlassWindowButton)
1987
+ };
1988
+
1989
+ Button* LookAndFeel_V2::createDocumentWindowButton (int buttonType)
1990
+ {
1991
+ Path shape;
1992
+ const float crossThickness = 0.25f;
1993
+
1994
+ if (buttonType == DocumentWindow::closeButton)
1995
+ {
1996
+ shape.addLineSegment (Line<float> (0.0f, 0.0f, 1.0f, 1.0f), crossThickness * 1.4f);
1997
+ shape.addLineSegment (Line<float> (1.0f, 0.0f, 0.0f, 1.0f), crossThickness * 1.4f);
1998
+
1999
+ return new GlassWindowButton ("close", Colour (0xffdd1100), shape, shape);
2000
+ }
2001
+
2002
+ if (buttonType == DocumentWindow::minimiseButton)
2003
+ {
2004
+ shape.addLineSegment (Line<float> (0.0f, 0.5f, 1.0f, 0.5f), crossThickness);
2005
+
2006
+ return new GlassWindowButton ("minimise", Colour (0xffaa8811), shape, shape);
2007
+ }
2008
+
2009
+ if (buttonType == DocumentWindow::maximiseButton)
2010
+ {
2011
+ shape.addLineSegment (Line<float> (0.5f, 0.0f, 0.5f, 1.0f), crossThickness);
2012
+ shape.addLineSegment (Line<float> (0.0f, 0.5f, 1.0f, 0.5f), crossThickness);
2013
+
2014
+ Path fullscreenShape;
2015
+ fullscreenShape.startNewSubPath (45.0f, 100.0f);
2016
+ fullscreenShape.lineTo (0.0f, 100.0f);
2017
+ fullscreenShape.lineTo (0.0f, 0.0f);
2018
+ fullscreenShape.lineTo (100.0f, 0.0f);
2019
+ fullscreenShape.lineTo (100.0f, 45.0f);
2020
+ fullscreenShape.addRectangle (45.0f, 45.0f, 100.0f, 100.0f);
2021
+ PathStrokeType (30.0f).createStrokedPath (fullscreenShape, fullscreenShape);
2022
+
2023
+ return new GlassWindowButton ("maximise", Colour (0xff119911), shape, fullscreenShape);
2024
+ }
2025
+
2026
+ jassertfalse;
2027
+ return nullptr;
2028
+ }
2029
+
2030
+ void LookAndFeel_V2::positionDocumentWindowButtons (DocumentWindow&,
2031
+ int titleBarX, int titleBarY,
2032
+ int titleBarW, int titleBarH,
2033
+ Button* minimiseButton,
2034
+ Button* maximiseButton,
2035
+ Button* closeButton,
2036
+ bool positionTitleBarButtonsOnLeft)
2037
+ {
2038
+ const int buttonW = titleBarH - titleBarH / 8;
2039
+
2040
+ int x = positionTitleBarButtonsOnLeft ? titleBarX + 4
2041
+ : titleBarX + titleBarW - buttonW - buttonW / 4;
2042
+
2043
+ if (closeButton != nullptr)
2044
+ {
2045
+ closeButton->setBounds (x, titleBarY, buttonW, titleBarH);
2046
+ x += positionTitleBarButtonsOnLeft ? buttonW : -(buttonW + buttonW / 4);
2047
+ }
2048
+
2049
+ if (positionTitleBarButtonsOnLeft)
2050
+ std::swap (minimiseButton, maximiseButton);
2051
+
2052
+ if (maximiseButton != nullptr)
2053
+ {
2054
+ maximiseButton->setBounds (x, titleBarY, buttonW, titleBarH);
2055
+ x += positionTitleBarButtonsOnLeft ? buttonW : -buttonW;
2056
+ }
2057
+
2058
+ if (minimiseButton != nullptr)
2059
+ minimiseButton->setBounds (x, titleBarY, buttonW, titleBarH);
2060
+ }
2061
+
2062
+ int LookAndFeel_V2::getDefaultMenuBarHeight()
2063
+ {
2064
+ return 24;
2065
+ }
2066
+
2067
+ //==============================================================================
2068
+ std::unique_ptr<DropShadower> LookAndFeel_V2::createDropShadowerForComponent (Component&)
2069
+ {
2070
+ return std::make_unique<DropShadower> (DropShadow (Colours::black.withAlpha (0.4f), 10, Point<int> (0, 2)));
2071
+ }
2072
+
2073
+ std::unique_ptr<FocusOutline> LookAndFeel_V2::createFocusOutlineForComponent (Component&)
2074
+ {
2075
+ struct WindowProperties final : public FocusOutline::OutlineWindowProperties
2076
+ {
2077
+ Rectangle<int> getOutlineBounds (Component& c) override
2078
+ {
2079
+ return c.getScreenBounds();
2080
+ }
2081
+
2082
+ void drawOutline (Graphics& g, int width, int height) override
2083
+ {
2084
+ g.setColour (Colours::yellow.withAlpha (0.6f));
2085
+ g.drawRoundedRectangle ({ (float) width, (float) height }, 3.0f, 3.0f);
2086
+ }
2087
+ };
2088
+
2089
+ return std::make_unique<FocusOutline> (std::make_unique<WindowProperties>());
2090
+ }
2091
+
2092
+ //==============================================================================
2093
+ void LookAndFeel_V2::drawStretchableLayoutResizerBar (Graphics& g, int w, int h,
2094
+ bool /*isVerticalBar*/,
2095
+ bool isMouseOver,
2096
+ bool isMouseDragging)
2097
+ {
2098
+ auto alpha = 0.5f;
2099
+
2100
+ if (isMouseOver || isMouseDragging)
2101
+ {
2102
+ g.fillAll (Colour (0x190000ff));
2103
+ alpha = 1.0f;
2104
+ }
2105
+
2106
+ auto cx = (float) w * 0.5f;
2107
+ auto cy = (float) h * 0.5f;
2108
+ auto cr = (float) jmin (w, h) * 0.4f;
2109
+
2110
+ g.setGradientFill (ColourGradient (Colours::white.withAlpha (alpha), cx + cr * 0.1f, cy + cr,
2111
+ Colours::black.withAlpha (alpha), cx, cy - cr * 4.0f,
2112
+ true));
2113
+
2114
+ g.fillEllipse (cx - cr, cy - cr, cr * 2.0f, cr * 2.0f);
2115
+ }
2116
+
2117
+ //==============================================================================
2118
+ void LookAndFeel_V2::drawGroupComponentOutline (Graphics& g, int width, int height,
2119
+ const String& text, const Justification& position,
2120
+ GroupComponent& group)
2121
+ {
2122
+ const float textH = 15.0f;
2123
+ const float indent = 3.0f;
2124
+ const float textEdgeGap = 4.0f;
2125
+ auto cs = 5.0f;
2126
+
2127
+ Font f (withDefaultMetrics (FontOptions { textH }));
2128
+
2129
+ Path p;
2130
+ auto x = indent;
2131
+ auto y = f.getAscent() - 3.0f;
2132
+ auto w = jmax (0.0f, (float) width - x * 2.0f);
2133
+ auto h = jmax (0.0f, (float) height - y - indent);
2134
+ cs = jmin (cs, w * 0.5f, h * 0.5f);
2135
+ auto cs2 = 2.0f * cs;
2136
+
2137
+ auto textW = text.isEmpty() ? 0
2138
+ : jlimit (0.0f,
2139
+ jmax (0.0f, w - cs2 - textEdgeGap * 2),
2140
+ (float) f.getStringWidth (text) + textEdgeGap * 2.0f);
2141
+ auto textX = cs + textEdgeGap;
2142
+
2143
+ if (position.testFlags (Justification::horizontallyCentred))
2144
+ textX = cs + (w - cs2 - textW) * 0.5f;
2145
+ else if (position.testFlags (Justification::right))
2146
+ textX = w - cs - textW - textEdgeGap;
2147
+
2148
+ p.startNewSubPath (x + textX + textW, y);
2149
+ p.lineTo (x + w - cs, y);
2150
+
2151
+ p.addArc (x + w - cs2, y, cs2, cs2, 0, MathConstants<float>::halfPi);
2152
+ p.lineTo (x + w, y + h - cs);
2153
+
2154
+ p.addArc (x + w - cs2, y + h - cs2, cs2, cs2, MathConstants<float>::halfPi, MathConstants<float>::pi);
2155
+ p.lineTo (x + cs, y + h);
2156
+
2157
+ p.addArc (x, y + h - cs2, cs2, cs2, MathConstants<float>::pi, MathConstants<float>::pi * 1.5f);
2158
+ p.lineTo (x, y + cs);
2159
+
2160
+ p.addArc (x, y, cs2, cs2, MathConstants<float>::pi * 1.5f, MathConstants<float>::twoPi);
2161
+ p.lineTo (x + textX, y);
2162
+
2163
+ auto alpha = group.isEnabled() ? 1.0f : 0.5f;
2164
+
2165
+ g.setColour (group.findColour (GroupComponent::outlineColourId)
2166
+ .withMultipliedAlpha (alpha));
2167
+
2168
+ g.strokePath (p, PathStrokeType (2.0f));
2169
+
2170
+ g.setColour (group.findColour (GroupComponent::textColourId)
2171
+ .withMultipliedAlpha (alpha));
2172
+ g.setFont (f);
2173
+ g.drawText (text,
2174
+ roundToInt (x + textX), 0,
2175
+ roundToInt (textW),
2176
+ roundToInt (textH),
2177
+ Justification::centred, true);
2178
+ }
2179
+
2180
+ //==============================================================================
2181
+ int LookAndFeel_V2::getTabButtonOverlap (int tabDepth)
2182
+ {
2183
+ return 1 + tabDepth / 3;
2184
+ }
2185
+
2186
+ int LookAndFeel_V2::getTabButtonSpaceAroundImage()
2187
+ {
2188
+ return 4;
2189
+ }
2190
+
2191
+ int LookAndFeel_V2::getTabButtonBestWidth (TabBarButton& button, int tabDepth)
2192
+ {
2193
+ int width = Font (withDefaultMetrics (FontOptions { (float) tabDepth * 0.6f })).getStringWidth (button.getButtonText().trim())
2194
+ + getTabButtonOverlap (tabDepth) * 2;
2195
+
2196
+ if (auto* extraComponent = button.getExtraComponent())
2197
+ width += button.getTabbedButtonBar().isVertical() ? extraComponent->getHeight()
2198
+ : extraComponent->getWidth();
2199
+
2200
+ return jlimit (tabDepth * 2, tabDepth * 8, width);
2201
+ }
2202
+
2203
+ Rectangle<int> LookAndFeel_V2::getTabButtonExtraComponentBounds (const TabBarButton& button, Rectangle<int>& textArea, Component& comp)
2204
+ {
2205
+ Rectangle<int> extraComp;
2206
+
2207
+ auto orientation = button.getTabbedButtonBar().getOrientation();
2208
+
2209
+ if (button.getExtraComponentPlacement() == TabBarButton::beforeText)
2210
+ {
2211
+ switch (orientation)
2212
+ {
2213
+ case TabbedButtonBar::TabsAtBottom:
2214
+ case TabbedButtonBar::TabsAtTop: extraComp = textArea.removeFromLeft (comp.getWidth()); break;
2215
+ case TabbedButtonBar::TabsAtLeft: extraComp = textArea.removeFromBottom (comp.getHeight()); break;
2216
+ case TabbedButtonBar::TabsAtRight: extraComp = textArea.removeFromTop (comp.getHeight()); break;
2217
+ default: jassertfalse; break;
2218
+ }
2219
+ }
2220
+ else
2221
+ {
2222
+ switch (orientation)
2223
+ {
2224
+ case TabbedButtonBar::TabsAtBottom:
2225
+ case TabbedButtonBar::TabsAtTop: extraComp = textArea.removeFromRight (comp.getWidth()); break;
2226
+ case TabbedButtonBar::TabsAtLeft: extraComp = textArea.removeFromTop (comp.getHeight()); break;
2227
+ case TabbedButtonBar::TabsAtRight: extraComp = textArea.removeFromBottom (comp.getHeight()); break;
2228
+ default: jassertfalse; break;
2229
+ }
2230
+ }
2231
+
2232
+ return extraComp;
2233
+ }
2234
+
2235
+ void LookAndFeel_V2::createTabButtonShape (TabBarButton& button, Path& p, bool /*isMouseOver*/, bool /*isMouseDown*/)
2236
+ {
2237
+ auto activeArea = button.getActiveArea();
2238
+ auto w = (float) activeArea.getWidth();
2239
+ auto h = (float) activeArea.getHeight();
2240
+
2241
+ auto length = w;
2242
+ auto depth = h;
2243
+
2244
+ if (button.getTabbedButtonBar().isVertical())
2245
+ std::swap (length, depth);
2246
+
2247
+ const float indent = (float) getTabButtonOverlap ((int) depth);
2248
+ const float overhang = 4.0f;
2249
+
2250
+ switch (button.getTabbedButtonBar().getOrientation())
2251
+ {
2252
+ case TabbedButtonBar::TabsAtLeft:
2253
+ p.startNewSubPath (w, 0.0f);
2254
+ p.lineTo (0.0f, indent);
2255
+ p.lineTo (0.0f, h - indent);
2256
+ p.lineTo (w, h);
2257
+ p.lineTo (w + overhang, h + overhang);
2258
+ p.lineTo (w + overhang, -overhang);
2259
+ break;
2260
+
2261
+ case TabbedButtonBar::TabsAtRight:
2262
+ p.startNewSubPath (0.0f, 0.0f);
2263
+ p.lineTo (w, indent);
2264
+ p.lineTo (w, h - indent);
2265
+ p.lineTo (0.0f, h);
2266
+ p.lineTo (-overhang, h + overhang);
2267
+ p.lineTo (-overhang, -overhang);
2268
+ break;
2269
+
2270
+ case TabbedButtonBar::TabsAtBottom:
2271
+ p.startNewSubPath (0.0f, 0.0f);
2272
+ p.lineTo (indent, h);
2273
+ p.lineTo (w - indent, h);
2274
+ p.lineTo (w, 0.0f);
2275
+ p.lineTo (w + overhang, -overhang);
2276
+ p.lineTo (-overhang, -overhang);
2277
+ break;
2278
+
2279
+ case TabbedButtonBar::TabsAtTop:
2280
+ default:
2281
+ p.startNewSubPath (0.0f, h);
2282
+ p.lineTo (indent, 0.0f);
2283
+ p.lineTo (w - indent, 0.0f);
2284
+ p.lineTo (w, h);
2285
+ p.lineTo (w + overhang, h + overhang);
2286
+ p.lineTo (-overhang, h + overhang);
2287
+ break;
2288
+ }
2289
+
2290
+ p.closeSubPath();
2291
+
2292
+ p = p.createPathWithRoundedCorners (3.0f);
2293
+ }
2294
+
2295
+ void LookAndFeel_V2::fillTabButtonShape (TabBarButton& button, Graphics& g, const Path& path,
2296
+ bool /*isMouseOver*/, bool /*isMouseDown*/)
2297
+ {
2298
+ auto tabBackground = button.getTabBackgroundColour();
2299
+ const bool isFrontTab = button.isFrontTab();
2300
+
2301
+ g.setColour (isFrontTab ? tabBackground
2302
+ : tabBackground.withMultipliedAlpha (0.9f));
2303
+
2304
+ g.fillPath (path);
2305
+
2306
+ g.setColour (button.findColour (isFrontTab ? TabbedButtonBar::frontOutlineColourId
2307
+ : TabbedButtonBar::tabOutlineColourId, false)
2308
+ .withMultipliedAlpha (button.isEnabled() ? 1.0f : 0.5f));
2309
+
2310
+ g.strokePath (path, PathStrokeType (isFrontTab ? 1.0f : 0.5f));
2311
+ }
2312
+
2313
+ Font LookAndFeel_V2::getTabButtonFont (TabBarButton&, float height)
2314
+ {
2315
+ return withDefaultMetrics (FontOptions { height * 0.6f });
2316
+ }
2317
+
2318
+ void LookAndFeel_V2::drawTabButtonText (TabBarButton& button, Graphics& g, bool isMouseOver, bool isMouseDown)
2319
+ {
2320
+ auto area = button.getTextArea().toFloat();
2321
+
2322
+ auto length = area.getWidth();
2323
+ auto depth = area.getHeight();
2324
+
2325
+ if (button.getTabbedButtonBar().isVertical())
2326
+ std::swap (length, depth);
2327
+
2328
+ Font font (getTabButtonFont (button, depth));
2329
+ font.setUnderline (button.hasKeyboardFocus (false));
2330
+
2331
+ AffineTransform t;
2332
+
2333
+ switch (button.getTabbedButtonBar().getOrientation())
2334
+ {
2335
+ case TabbedButtonBar::TabsAtLeft: t = t.rotated (MathConstants<float>::pi * -0.5f).translated (area.getX(), area.getBottom()); break;
2336
+ case TabbedButtonBar::TabsAtRight: t = t.rotated (MathConstants<float>::pi * 0.5f).translated (area.getRight(), area.getY()); break;
2337
+ case TabbedButtonBar::TabsAtTop:
2338
+ case TabbedButtonBar::TabsAtBottom: t = t.translated (area.getX(), area.getY()); break;
2339
+ default: jassertfalse; break;
2340
+ }
2341
+
2342
+ Colour col;
2343
+
2344
+ if (button.isFrontTab() && (button.isColourSpecified (TabbedButtonBar::frontTextColourId)
2345
+ || isColourSpecified (TabbedButtonBar::frontTextColourId)))
2346
+ col = findColour (TabbedButtonBar::frontTextColourId);
2347
+ else if (button.isColourSpecified (TabbedButtonBar::tabTextColourId)
2348
+ || isColourSpecified (TabbedButtonBar::tabTextColourId))
2349
+ col = findColour (TabbedButtonBar::tabTextColourId);
2350
+ else
2351
+ col = button.getTabBackgroundColour().contrasting();
2352
+
2353
+ auto alpha = button.isEnabled() ? ((isMouseOver || isMouseDown) ? 1.0f : 0.8f) : 0.3f;
2354
+
2355
+ g.setColour (col.withMultipliedAlpha (alpha));
2356
+ g.setFont (font);
2357
+ g.addTransform (t);
2358
+
2359
+ g.drawFittedText (button.getButtonText().trim(),
2360
+ 0, 0, (int) length, (int) depth,
2361
+ Justification::centred,
2362
+ jmax (1, ((int) depth) / 12));
2363
+ }
2364
+
2365
+ void LookAndFeel_V2::drawTabButton (TabBarButton& button, Graphics& g, bool isMouseOver, bool isMouseDown)
2366
+ {
2367
+ Path tabShape;
2368
+ createTabButtonShape (button, tabShape, isMouseOver, isMouseDown);
2369
+
2370
+ auto activeArea = button.getActiveArea();
2371
+ tabShape.applyTransform (AffineTransform::translation ((float) activeArea.getX(),
2372
+ (float) activeArea.getY()));
2373
+
2374
+ DropShadow (Colours::black.withAlpha (0.5f), 2, Point<int> (0, 1)).drawForPath (g, tabShape);
2375
+
2376
+ fillTabButtonShape (button, g, tabShape, isMouseOver, isMouseDown);
2377
+ drawTabButtonText (button, g, isMouseOver, isMouseDown);
2378
+ }
2379
+
2380
+ void LookAndFeel_V2::drawTabbedButtonBarBackground (TabbedButtonBar&, Graphics&) {}
2381
+
2382
+ void LookAndFeel_V2::drawTabAreaBehindFrontButton (TabbedButtonBar& bar, Graphics& g, const int w, const int h)
2383
+ {
2384
+ auto shadowSize = 0.2f;
2385
+
2386
+ Rectangle<int> shadowRect, line;
2387
+ ColourGradient gradient (Colours::black.withAlpha (bar.isEnabled() ? 0.25f : 0.15f), 0, 0,
2388
+ Colours::transparentBlack, 0, 0, false);
2389
+
2390
+ switch (bar.getOrientation())
2391
+ {
2392
+ case TabbedButtonBar::TabsAtLeft:
2393
+ gradient.point1.x = (float) w;
2394
+ gradient.point2.x = (float) w * (1.0f - shadowSize);
2395
+ shadowRect.setBounds ((int) gradient.point2.x, 0, w - (int) gradient.point2.x, h);
2396
+ line.setBounds (w - 1, 0, 1, h);
2397
+ break;
2398
+
2399
+ case TabbedButtonBar::TabsAtRight:
2400
+ gradient.point2.x = (float) w * shadowSize;
2401
+ shadowRect.setBounds (0, 0, (int) gradient.point2.x, h);
2402
+ line.setBounds (0, 0, 1, h);
2403
+ break;
2404
+
2405
+ case TabbedButtonBar::TabsAtTop:
2406
+ gradient.point1.y = (float) h;
2407
+ gradient.point2.y = (float) h * (1.0f - shadowSize);
2408
+ shadowRect.setBounds (0, (int) gradient.point2.y, w, h - (int) gradient.point2.y);
2409
+ line.setBounds (0, h - 1, w, 1);
2410
+ break;
2411
+
2412
+ case TabbedButtonBar::TabsAtBottom:
2413
+ gradient.point2.y = (float) h * shadowSize;
2414
+ shadowRect.setBounds (0, 0, w, (int) gradient.point2.y);
2415
+ line.setBounds (0, 0, w, 1);
2416
+ break;
2417
+
2418
+ default: break;
2419
+ }
2420
+
2421
+ g.setGradientFill (gradient);
2422
+ g.fillRect (shadowRect.expanded (2, 2));
2423
+
2424
+ g.setColour (Colour (0x80000000));
2425
+ g.fillRect (line);
2426
+ }
2427
+
2428
+ Button* LookAndFeel_V2::createTabBarExtrasButton()
2429
+ {
2430
+ auto thickness = 7.0f;
2431
+ auto indent = 22.0f;
2432
+
2433
+ Path p;
2434
+ p.addEllipse (-10.0f, -10.0f, 120.0f, 120.0f);
2435
+
2436
+ DrawablePath ellipse;
2437
+ ellipse.setPath (p);
2438
+ ellipse.setFill (Colour (0x99ffffff));
2439
+
2440
+ p.clear();
2441
+ p.addEllipse (0.0f, 0.0f, 100.0f, 100.0f);
2442
+ p.addRectangle (indent, 50.0f - thickness, 100.0f - indent * 2.0f, thickness * 2.0f);
2443
+ p.addRectangle (50.0f - thickness, indent, thickness * 2.0f, 50.0f - indent - thickness);
2444
+ p.addRectangle (50.0f - thickness, 50.0f + thickness, thickness * 2.0f, 50.0f - indent - thickness);
2445
+ p.setUsingNonZeroWinding (false);
2446
+
2447
+ DrawablePath dp;
2448
+ dp.setPath (p);
2449
+ dp.setFill (Colour (0x59000000));
2450
+
2451
+ DrawableComposite normalImage;
2452
+ normalImage.addAndMakeVisible (ellipse.createCopy().release());
2453
+ normalImage.addAndMakeVisible (dp.createCopy().release());
2454
+
2455
+ dp.setFill (Colour (0xcc000000));
2456
+
2457
+ DrawableComposite overImage;
2458
+ overImage.addAndMakeVisible (ellipse.createCopy().release());
2459
+ overImage.addAndMakeVisible (dp.createCopy().release());
2460
+
2461
+ auto db = new DrawableButton (TRANS ("Additional Items"), DrawableButton::ImageFitted);
2462
+ db->setImages (&normalImage, &overImage, nullptr);
2463
+ return db;
2464
+ }
2465
+
2466
+
2467
+ //==============================================================================
2468
+ void LookAndFeel_V2::drawTableHeaderBackground (Graphics& g, TableHeaderComponent& header)
2469
+ {
2470
+ g.fillAll (Colours::white);
2471
+
2472
+ auto area = header.getLocalBounds();
2473
+ area.removeFromTop (area.getHeight() / 2);
2474
+
2475
+ auto backgroundColour = header.findColour (TableHeaderComponent::backgroundColourId);
2476
+
2477
+ g.setGradientFill (ColourGradient (backgroundColour,
2478
+ 0.0f, (float) area.getY(),
2479
+ backgroundColour.withMultipliedSaturation (.5f),
2480
+ 0.0f, (float) area.getBottom(),
2481
+ false));
2482
+ g.fillRect (area);
2483
+
2484
+ g.setColour (header.findColour (TableHeaderComponent::outlineColourId));
2485
+ g.fillRect (area.removeFromBottom (1));
2486
+
2487
+ for (int i = header.getNumColumns (true); --i >= 0;)
2488
+ g.fillRect (header.getColumnPosition (i).removeFromRight (1));
2489
+ }
2490
+
2491
+ void LookAndFeel_V2::drawTableHeaderColumn (Graphics& g, TableHeaderComponent& header,
2492
+ const String& columnName, int /*columnId*/,
2493
+ int width, int height, bool isMouseOver, bool isMouseDown,
2494
+ int columnFlags)
2495
+ {
2496
+ auto highlightColour = header.findColour (TableHeaderComponent::highlightColourId);
2497
+
2498
+ if (isMouseDown)
2499
+ g.fillAll (highlightColour);
2500
+ else if (isMouseOver)
2501
+ g.fillAll (highlightColour.withMultipliedAlpha (0.625f));
2502
+
2503
+ Rectangle<int> area (width, height);
2504
+ area.reduce (4, 0);
2505
+
2506
+ if ((columnFlags & (TableHeaderComponent::sortedForwards | TableHeaderComponent::sortedBackwards)) != 0)
2507
+ {
2508
+ Path sortArrow;
2509
+ sortArrow.addTriangle (0.0f, 0.0f,
2510
+ 0.5f, (columnFlags & TableHeaderComponent::sortedForwards) != 0 ? -0.8f : 0.8f,
2511
+ 1.0f, 0.0f);
2512
+
2513
+ g.setColour (Colour (0x99000000));
2514
+ g.fillPath (sortArrow, sortArrow.getTransformToScaleToFit (area.removeFromRight (height / 2).reduced (2).toFloat(), true));
2515
+ }
2516
+
2517
+ g.setColour (header.findColour (TableHeaderComponent::textColourId));
2518
+ g.setFont (withDefaultMetrics (FontOptions ((float) height * 0.5f, Font::bold)));
2519
+ g.drawFittedText (columnName, area, Justification::centredLeft, 1);
2520
+ }
2521
+
2522
+ //==============================================================================
2523
+ void LookAndFeel_V2::drawLasso (Graphics& g, Component& lassoComp)
2524
+ {
2525
+ const int outlineThickness = 1;
2526
+
2527
+ g.fillAll (lassoComp.findColour (0x1000440 /*lassoFillColourId*/));
2528
+
2529
+ g.setColour (lassoComp.findColour (0x1000441 /*lassoOutlineColourId*/));
2530
+ g.drawRect (lassoComp.getLocalBounds(), outlineThickness);
2531
+ }
2532
+
2533
+ //==============================================================================
2534
+ void LookAndFeel_V2::paintToolbarBackground (Graphics& g, int w, int h, Toolbar& toolbar)
2535
+ {
2536
+ auto background = toolbar.findColour (Toolbar::backgroundColourId);
2537
+
2538
+ g.setGradientFill (ColourGradient (background, 0.0f, 0.0f,
2539
+ background.darker (0.1f),
2540
+ toolbar.isVertical() ? (float) w - 1.0f : 0.0f,
2541
+ toolbar.isVertical() ? 0.0f : (float) h - 1.0f,
2542
+ false));
2543
+ g.fillAll();
2544
+ }
2545
+
2546
+ Button* LookAndFeel_V2::createToolbarMissingItemsButton (Toolbar& /*toolbar*/)
2547
+ {
2548
+ return createTabBarExtrasButton();
2549
+ }
2550
+
2551
+ void LookAndFeel_V2::paintToolbarButtonBackground (Graphics& g, int /*width*/, int /*height*/,
2552
+ bool isMouseOver, bool isMouseDown,
2553
+ ToolbarItemComponent& component)
2554
+ {
2555
+ if (isMouseDown)
2556
+ g.fillAll (component.findColour (Toolbar::buttonMouseDownBackgroundColourId, true));
2557
+ else if (isMouseOver)
2558
+ g.fillAll (component.findColour (Toolbar::buttonMouseOverBackgroundColourId, true));
2559
+ }
2560
+
2561
+ void LookAndFeel_V2::paintToolbarButtonLabel (Graphics& g, int x, int y, int width, int height,
2562
+ const String& text, ToolbarItemComponent& component)
2563
+ {
2564
+ g.setColour (component.findColour (Toolbar::labelTextColourId, true)
2565
+ .withAlpha (component.isEnabled() ? 1.0f : 0.25f));
2566
+
2567
+ auto fontHeight = jmin (14.0f, (float) height * 0.85f);
2568
+ g.setFont (fontHeight);
2569
+
2570
+ g.drawFittedText (text,
2571
+ x, y, width, height,
2572
+ Justification::centred,
2573
+ jmax (1, height / (int) fontHeight));
2574
+ }
2575
+
2576
+ //==============================================================================
2577
+ void LookAndFeel_V2::drawPropertyPanelSectionHeader (Graphics& g, const String& name,
2578
+ bool isOpen, int width, int height)
2579
+ {
2580
+ auto buttonSize = (float) height * 0.75f;
2581
+ auto buttonIndent = ((float) height - buttonSize) * 0.5f;
2582
+
2583
+ drawTreeviewPlusMinusBox (g, Rectangle<float> (buttonIndent, buttonIndent, buttonSize, buttonSize), Colours::white, isOpen, false);
2584
+
2585
+ auto textX = (int) (buttonIndent * 2.0f + buttonSize + 2.0f);
2586
+
2587
+ g.setColour (Colours::black);
2588
+ g.setFont (withDefaultMetrics (FontOptions ((float) height * 0.7f, Font::bold)));
2589
+ g.drawText (name, textX, 0, width - textX - 4, height, Justification::centredLeft, true);
2590
+ }
2591
+
2592
+ void LookAndFeel_V2::drawPropertyComponentBackground (Graphics& g, int width, int height, PropertyComponent& component)
2593
+ {
2594
+ g.setColour (component.findColour (PropertyComponent::backgroundColourId));
2595
+ g.fillRect (0, 0, width, height - 1);
2596
+ }
2597
+
2598
+ void LookAndFeel_V2::drawPropertyComponentLabel (Graphics& g, int, int height, PropertyComponent& component)
2599
+ {
2600
+ g.setColour (component.findColour (PropertyComponent::labelTextColourId)
2601
+ .withMultipliedAlpha (component.isEnabled() ? 1.0f : 0.6f));
2602
+
2603
+ g.setFont ((float) jmin (height, 24) * 0.65f);
2604
+
2605
+ auto r = getPropertyComponentContentPosition (component);
2606
+
2607
+ g.drawFittedText (component.getName(),
2608
+ 3, r.getY(), r.getX() - 5, r.getHeight(),
2609
+ Justification::centredLeft, 2);
2610
+ }
2611
+
2612
+ Rectangle<int> LookAndFeel_V2::getPropertyComponentContentPosition (PropertyComponent& component)
2613
+ {
2614
+ const int textW = jmin (200, component.getWidth() / 3);
2615
+ return Rectangle<int> (textW, 1, component.getWidth() - textW - 1, component.getHeight() - 3);
2616
+ }
2617
+
2618
+ int LookAndFeel_V2::getPropertyPanelSectionHeaderHeight (const String& sectionTitle)
2619
+ {
2620
+ return sectionTitle.isEmpty() ? 0 : 22;
2621
+ }
2622
+
2623
+ //==============================================================================
2624
+ void LookAndFeel_V2::drawCallOutBoxBackground (CallOutBox& box, Graphics& g,
2625
+ const Path& path, Image& cachedImage)
2626
+ {
2627
+ if (cachedImage.isNull())
2628
+ {
2629
+ cachedImage = Image (Image::ARGB, box.getWidth(), box.getHeight(), true);
2630
+ Graphics g2 (cachedImage);
2631
+
2632
+ DropShadow (Colours::black.withAlpha (0.7f), 8, Point<int> (0, 2)).drawForPath (g2, path);
2633
+ }
2634
+
2635
+ g.setColour (Colours::black);
2636
+ g.drawImageAt (cachedImage, 0, 0);
2637
+
2638
+ g.setColour (Colour::greyLevel (0.23f).withAlpha (0.9f));
2639
+ g.fillPath (path);
2640
+
2641
+ g.setColour (Colours::white.withAlpha (0.8f));
2642
+ g.strokePath (path, PathStrokeType (2.0f));
2643
+ }
2644
+
2645
+ int LookAndFeel_V2::getCallOutBoxBorderSize (const CallOutBox&)
2646
+ {
2647
+ return 20;
2648
+ }
2649
+
2650
+ float LookAndFeel_V2::getCallOutBoxCornerSize (const CallOutBox&)
2651
+ {
2652
+ return 9.0f;
2653
+ }
2654
+
2655
+ //==============================================================================
2656
+ AttributedString LookAndFeel_V2::createFileChooserHeaderText (const String& title,
2657
+ const String& instructions)
2658
+ {
2659
+ AttributedString s;
2660
+ s.setJustification (Justification::centred);
2661
+
2662
+ auto colour = findColour (FileChooserDialogBox::titleTextColourId);
2663
+ s.append (title + "\n\n", withDefaultMetrics (FontOptions (17.0f, Font::bold)), colour);
2664
+ s.append (instructions, withDefaultMetrics (FontOptions (14.0f)), colour);
2665
+
2666
+ return s;
2667
+ }
2668
+
2669
+ void LookAndFeel_V2::drawFileBrowserRow (Graphics& g, int width, int height,
2670
+ const File&, const String& filename, Image* icon,
2671
+ const String& fileSizeDescription,
2672
+ const String& fileTimeDescription,
2673
+ bool isDirectory, bool isItemSelected,
2674
+ int /*itemIndex*/, DirectoryContentsDisplayComponent& dcc)
2675
+ {
2676
+ auto fileListComp = dynamic_cast<Component*> (&dcc);
2677
+
2678
+ if (isItemSelected)
2679
+ g.fillAll (fileListComp != nullptr ? fileListComp->findColour (DirectoryContentsDisplayComponent::highlightColourId)
2680
+ : findColour (DirectoryContentsDisplayComponent::highlightColourId));
2681
+
2682
+ const int x = 32;
2683
+ g.setColour (Colours::black);
2684
+
2685
+ if (icon != nullptr && icon->isValid())
2686
+ {
2687
+ g.drawImageWithin (*icon, 2, 2, x - 4, height - 4,
2688
+ RectanglePlacement::centred | RectanglePlacement::onlyReduceInSize,
2689
+ false);
2690
+ }
2691
+ else
2692
+ {
2693
+ if (auto* d = isDirectory ? getDefaultFolderImage()
2694
+ : getDefaultDocumentFileImage())
2695
+ d->drawWithin (g, Rectangle<float> (2.0f, 2.0f, x - 4.0f, (float) height - 4.0f),
2696
+ RectanglePlacement::centred | RectanglePlacement::onlyReduceInSize, 1.0f);
2697
+ }
2698
+
2699
+ if (isItemSelected)
2700
+ g.setColour (fileListComp != nullptr ? fileListComp->findColour (DirectoryContentsDisplayComponent::highlightedTextColourId)
2701
+ : findColour (DirectoryContentsDisplayComponent::highlightedTextColourId));
2702
+ else
2703
+ g.setColour (fileListComp != nullptr ? fileListComp->findColour (DirectoryContentsDisplayComponent::textColourId)
2704
+ : findColour (DirectoryContentsDisplayComponent::textColourId));
2705
+
2706
+ g.setFont ((float) height * 0.7f);
2707
+
2708
+ if (width > 450 && ! isDirectory)
2709
+ {
2710
+ auto sizeX = roundToInt ((float) width * 0.7f);
2711
+ auto dateX = roundToInt ((float) width * 0.8f);
2712
+
2713
+ g.drawFittedText (filename,
2714
+ x, 0, sizeX - x, height,
2715
+ Justification::centredLeft, 1);
2716
+
2717
+ g.setFont ((float) height * 0.5f);
2718
+ g.setColour (Colours::darkgrey);
2719
+
2720
+ if (! isDirectory)
2721
+ {
2722
+ g.drawFittedText (fileSizeDescription,
2723
+ sizeX, 0, dateX - sizeX - 8, height,
2724
+ Justification::centredRight, 1);
2725
+
2726
+ g.drawFittedText (fileTimeDescription,
2727
+ dateX, 0, width - 8 - dateX, height,
2728
+ Justification::centredRight, 1);
2729
+ }
2730
+ }
2731
+ else
2732
+ {
2733
+ g.drawFittedText (filename,
2734
+ x, 0, width - x, height,
2735
+ Justification::centredLeft, 1);
2736
+
2737
+ }
2738
+ }
2739
+
2740
+ Button* LookAndFeel_V2::createFileBrowserGoUpButton()
2741
+ {
2742
+ auto goUpButton = new DrawableButton ("up", DrawableButton::ImageOnButtonBackground);
2743
+
2744
+ Path arrowPath;
2745
+ arrowPath.addArrow ({ 50.0f, 100.0f, 50.0f, 0.0f }, 40.0f, 100.0f, 50.0f);
2746
+
2747
+ DrawablePath arrowImage;
2748
+ arrowImage.setFill (Colours::black.withAlpha (0.4f));
2749
+ arrowImage.setPath (arrowPath);
2750
+
2751
+ goUpButton->setImages (&arrowImage);
2752
+
2753
+ return goUpButton;
2754
+ }
2755
+
2756
+ void LookAndFeel_V2::layoutFileBrowserComponent (FileBrowserComponent& browserComp,
2757
+ DirectoryContentsDisplayComponent* fileListComponent,
2758
+ FilePreviewComponent* previewComp,
2759
+ ComboBox* currentPathBox,
2760
+ TextEditor* filenameBox,
2761
+ Button* goUpButton)
2762
+ {
2763
+ const int x = 8;
2764
+ auto w = browserComp.getWidth() - x - x;
2765
+
2766
+ if (previewComp != nullptr)
2767
+ {
2768
+ auto previewWidth = w / 3;
2769
+ previewComp->setBounds (x + w - previewWidth, 0, previewWidth, browserComp.getHeight());
2770
+
2771
+ w -= previewWidth + 4;
2772
+ }
2773
+
2774
+ int y = 4;
2775
+
2776
+ const int controlsHeight = 22;
2777
+ const int upButtonWidth = 50;
2778
+ auto bottomSectionHeight = controlsHeight + 8;
2779
+
2780
+ currentPathBox->setBounds (x, y, w - upButtonWidth - 6, controlsHeight);
2781
+ goUpButton->setBounds (x + w - upButtonWidth, y, upButtonWidth, controlsHeight);
2782
+
2783
+ y += controlsHeight + 4;
2784
+
2785
+ if (auto listAsComp = dynamic_cast<Component*> (fileListComponent))
2786
+ {
2787
+ listAsComp->setBounds (x, y, w, browserComp.getHeight() - y - bottomSectionHeight);
2788
+ y = listAsComp->getBottom() + 4;
2789
+ }
2790
+
2791
+ filenameBox->setBounds (x + 50, y, w - 50, controlsHeight);
2792
+ }
2793
+
2794
+ //==============================================================================
2795
+ static std::unique_ptr<Drawable> createDrawableFromSVG (const char* data)
2796
+ {
2797
+ auto xml = parseXML (data);
2798
+ jassert (xml != nullptr);
2799
+ return Drawable::createFromSVG (*xml);
2800
+ }
2801
+
2802
+ const Drawable* LookAndFeel_V2::getDefaultFolderImage()
2803
+ {
2804
+ if (folderImage == nullptr)
2805
+ folderImage = createDrawableFromSVG (R"svgdata(
2806
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="706" height="532">
2807
+ <defs>
2808
+ <linearGradient id="a">
2809
+ <stop stop-color="#adf" offset="0"/>
2810
+ <stop stop-color="#ecfaff" offset="1"/>
2811
+ </linearGradient>
2812
+ <linearGradient id="b" x1=".6" x2="0" y1=".9" xlink:href="#a"/>
2813
+ <linearGradient id="c" x1=".6" x2=".1" y1=".9" y2=".3" xlink:href="#a"/>
2814
+ </defs>
2815
+ <g class="currentLayer">
2816
+ <path d="M112.1 104c-8.2 2.2-13.2 11.6-11.3 21l68.3 342.7c1.9 9.4 10.1 15.2 18.4 13l384.3-104.1c8.2-2.2 13.2-11.6 11.3-21l-48-266a15.8 15.8 0 0 0-18.4-12.8l-224.2 38s-20.3-41.3-28.3-39.3z" display="block" fill="url(#b)" stroke="#446c98" stroke-width="7"/>
2817
+ <path d="M608.6 136.8L235.2 208a22.7 22.7 0 0 0-16 19l-40.8 241c1.7 8.4 9.6 14.5 17.8 12.3l380-104c8-2.2 10.7-10.2 12.3-18.4l38-210.1c.4-15.4-10.4-11.8-18-11.1z" display="block" fill="url(#c)" opacity=".8" stroke="#446c98" stroke-width="7"/>
2818
+ </g>
2819
+ </svg>
2820
+ )svgdata");
2821
+
2822
+ return folderImage.get();
2823
+ }
2824
+
2825
+ const Drawable* LookAndFeel_V2::getDefaultDocumentFileImage()
2826
+ {
2827
+ if (documentImage == nullptr)
2828
+ documentImage = createDrawableFromSVG (R"svgdata(
2829
+ <svg version="1" viewBox="-10 -10 450 600" xmlns="http://www.w3.org/2000/svg">
2830
+ <path d="M17 0h290l120 132v426c0 10-8 19-17 19H17c-9 0-17-9-17-19V19C0 8 8 0 17 0z" fill="#e5e5e5" stroke="#888888" stroke-width="7"/>
2831
+ <path d="M427 132H324c-9 0-17-9-17-19V0l120 132z" fill="#ccc"/>
2832
+ </svg>
2833
+ )svgdata");
2834
+
2835
+ return documentImage.get();
2836
+ }
2837
+
2838
+ //==============================================================================
2839
+ static Path createPathFromData (float height, const unsigned char* data, size_t size)
2840
+ {
2841
+ Path p;
2842
+ p.loadPathFromData (data, size);
2843
+ p.scaleToFit (0, 0, height * 2.0f, height, true);
2844
+ return p;
2845
+ }
2846
+
2847
+ Path LookAndFeel_V2::getTickShape (float height)
2848
+ {
2849
+ static const unsigned char data[] =
2850
+ {
2851
+ 109,0,224,168,68,0,0,119,67,108,0,224,172,68,0,128,146,67,113,0,192,148,68,0,0,219,67,0,96,110,68,0,224,56,68,113,0,64,51,68,0,32,130,68,0,64,20,68,0,224,
2852
+ 162,68,108,0,128,3,68,0,128,168,68,113,0,128,221,67,0,192,175,68,0,0,207,67,0,32,179,68,113,0,0,201,67,0,224,173,68,0,0,181,67,0,224,161,68,108,0,128,168,67,
2853
+ 0,128,154,68,113,0,128,141,67,0,192,138,68,0,128,108,67,0,64,131,68,113,0,0,62,67,0,128,119,68,0,0,5,67,0,128,114,68,113,0,0,102,67,0,192,88,68,0,128,155,
2854
+ 67,0,192,88,68,113,0,0,190,67,0,192,88,68,0,128,232,67,0,224,131,68,108,0,128,246,67,0,192,139,68,113,0,64,33,68,0,128,87,68,0,0,93,68,0,224,26,68,113,0,
2855
+ 96,140,68,0,128,188,67,0,224,168,68,0,0,119,67,99,101
2856
+ };
2857
+
2858
+ return createPathFromData (height, data, sizeof (data));
2859
+ }
2860
+
2861
+ Path LookAndFeel_V2::getCrossShape (float height)
2862
+ {
2863
+ static const unsigned char data[] =
2864
+ {
2865
+ 109,0,0,17,68,0,96,145,68,108,0,192,13,68,0,192,147,68,113,0,0,213,67,0,64,174,68,0,0,168,67,0,64,174,68,113,0,0,104,67,0,64,174,68,0,0,5,67,0,64,
2866
+ 153,68,113,0,0,18,67,0,64,153,68,0,0,24,67,0,64,153,68,113,0,0,135,67,0,64,153,68,0,128,207,67,0,224,130,68,108,0,0,220,67,0,0,126,68,108,0,0,204,67,
2867
+ 0,128,117,68,113,0,0,138,67,0,64,82,68,0,0,138,67,0,192,57,68,113,0,0,138,67,0,192,37,68,0,128,210,67,0,64,10,68,113,0,128,220,67,0,64,45,68,0,0,8,
2868
+ 68,0,128,78,68,108,0,192,14,68,0,0,87,68,108,0,64,20,68,0,0,80,68,113,0,192,57,68,0,0,32,68,0,128,88,68,0,0,32,68,113,0,64,112,68,0,0,32,68,0,
2869
+ 128,124,68,0,64,68,68,113,0,0,121,68,0,192,67,68,0,128,119,68,0,192,67,68,113,0,192,108,68,0,192,67,68,0,32,89,68,0,96,82,68,113,0,128,69,68,0,0,97,68,
2870
+ 0,0,56,68,0,64,115,68,108,0,64,49,68,0,128,124,68,108,0,192,55,68,0,96,129,68,113,0,0,92,68,0,224,146,68,0,192,129,68,0,224,146,68,113,0,64,110,68,0,64,
2871
+ 168,68,0,64,87,68,0,64,168,68,113,0,128,66,68,0,64,168,68,0,64,27,68,0,32,150,68,99,101
2872
+ };
2873
+
2874
+ return createPathFromData (height, data, sizeof (data));
2875
+ }
2876
+
2877
+ //==============================================================================
2878
+ void LookAndFeel_V2::drawLevelMeter (Graphics& g, int width, int height, float level)
2879
+ {
2880
+ g.setColour (Colours::white.withAlpha (0.7f));
2881
+ g.fillRoundedRectangle (0.0f, 0.0f, (float) width, (float) height, 3.0f);
2882
+ g.setColour (Colours::black.withAlpha (0.2f));
2883
+ g.drawRoundedRectangle (1.0f, 1.0f, (float) width - 2.0f, (float) height - 2.0f, 3.0f, 1.0f);
2884
+
2885
+ const int totalBlocks = 7;
2886
+ const int numBlocks = roundToInt (totalBlocks * level);
2887
+ auto w = ((float) width - 6.0f) / (float) totalBlocks;
2888
+
2889
+ for (int i = 0; i < totalBlocks; ++i)
2890
+ {
2891
+ if (i >= numBlocks)
2892
+ g.setColour (Colours::lightblue.withAlpha (0.6f));
2893
+ else
2894
+ g.setColour (i < totalBlocks - 1 ? Colours::blue.withAlpha (0.5f)
2895
+ : Colours::red);
2896
+
2897
+ g.fillRoundedRectangle (3.0f + (float) i * w + w * 0.1f,
2898
+ 3.0f,
2899
+ (float) w * 0.8f,
2900
+ (float) height - 6.0f,
2901
+ (float) w * 0.4f);
2902
+ }
2903
+ }
2904
+
2905
+ //==============================================================================
2906
+ void LookAndFeel_V2::drawKeymapChangeButton (Graphics& g, int width, int height, Button& button, const String& keyDescription)
2907
+ {
2908
+ auto textColour = button.findColour (0x100ad01 /*KeyMappingEditorComponent::textColourId*/, true);
2909
+
2910
+ if (keyDescription.isNotEmpty())
2911
+ {
2912
+ if (button.isEnabled())
2913
+ {
2914
+ auto alpha = button.isDown() ? 0.3f : (button.isOver() ? 0.15f : 0.08f);
2915
+ g.fillAll (textColour.withAlpha (alpha));
2916
+
2917
+ g.setOpacity (0.3f);
2918
+ drawBevel (g, 0, 0, width, height, 2);
2919
+ }
2920
+
2921
+ g.setColour (textColour);
2922
+ g.setFont ((float) height * 0.6f);
2923
+ g.drawFittedText (keyDescription,
2924
+ 3, 0, width - 6, height,
2925
+ Justification::centred, 1);
2926
+ }
2927
+ else
2928
+ {
2929
+ const float thickness = 7.0f;
2930
+ const float indent = 22.0f;
2931
+
2932
+ Path p;
2933
+ p.addEllipse (0.0f, 0.0f, 100.0f, 100.0f);
2934
+ p.addRectangle (indent, 50.0f - thickness, 100.0f - indent * 2.0f, thickness * 2.0f);
2935
+ p.addRectangle (50.0f - thickness, indent, thickness * 2.0f, 50.0f - indent - thickness);
2936
+ p.addRectangle (50.0f - thickness, 50.0f + thickness, thickness * 2.0f, 50.0f - indent - thickness);
2937
+ p.setUsingNonZeroWinding (false);
2938
+
2939
+ g.setColour (textColour.withAlpha (button.isDown() ? 0.7f : (button.isOver() ? 0.5f : 0.3f)));
2940
+ g.fillPath (p, p.getTransformToScaleToFit (2.0f, 2.0f, (float) width - 4.0f, (float) height - 4.0f, true));
2941
+ }
2942
+
2943
+ if (button.hasKeyboardFocus (false))
2944
+ {
2945
+ g.setColour (textColour.withAlpha (0.4f));
2946
+ g.drawRect (0, 0, width, height);
2947
+ }
2948
+ }
2949
+
2950
+ //==============================================================================
2951
+ Font LookAndFeel_V2::getSidePanelTitleFont (SidePanel&)
2952
+ {
2953
+ return withDefaultMetrics (FontOptions (18.0f));
2954
+ }
2955
+
2956
+ Justification LookAndFeel_V2::getSidePanelTitleJustification (SidePanel& panel)
2957
+ {
2958
+ return panel.isPanelOnLeft() ? Justification::centredRight
2959
+ : Justification::centredLeft;
2960
+ }
2961
+
2962
+ Path LookAndFeel_V2::getSidePanelDismissButtonShape (SidePanel& panel)
2963
+ {
2964
+ return getCrossShape ((float) panel.getTitleBarHeight());
2965
+ }
2966
+
2967
+ //==============================================================================
2968
+ void LookAndFeel_V2::drawBevel (Graphics& g, const int x, const int y, const int width, const int height,
2969
+ const int bevelThickness, const Colour& topLeftColour, const Colour& bottomRightColour,
2970
+ const bool useGradient, const bool sharpEdgeOnOutside)
2971
+ {
2972
+ if (g.clipRegionIntersects (Rectangle<int> (x, y, width, height)))
2973
+ {
2974
+ auto& context = g.getInternalContext();
2975
+ Graphics::ScopedSaveState ss (g);
2976
+
2977
+ for (int i = bevelThickness; --i >= 0;)
2978
+ {
2979
+ const float op = useGradient ? (float) (sharpEdgeOnOutside ? bevelThickness - i : i) / (float) bevelThickness
2980
+ : 1.0f;
2981
+
2982
+ context.setFill (topLeftColour.withMultipliedAlpha (op));
2983
+ context.fillRect (Rectangle<int> (x + i, y + i, width - i * 2, 1), false);
2984
+ context.setFill (topLeftColour.withMultipliedAlpha (op * 0.75f));
2985
+ context.fillRect (Rectangle<int> (x + i, y + i + 1, 1, height - i * 2 - 2), false);
2986
+ context.setFill (bottomRightColour.withMultipliedAlpha (op));
2987
+ context.fillRect (Rectangle<int> (x + i, y + height - i - 1, width - i * 2, 1), false);
2988
+ context.setFill (bottomRightColour.withMultipliedAlpha (op * 0.75f));
2989
+ context.fillRect (Rectangle<int> (x + width - i - 1, y + i + 1, 1, height - i * 2 - 2), false);
2990
+ }
2991
+ }
2992
+ }
2993
+
2994
+ //==============================================================================
2995
+ void LookAndFeel_V2::drawShinyButtonShape (Graphics& g, float x, float y, float w, float h,
2996
+ float maxCornerSize, const Colour& baseColour, float strokeWidth,
2997
+ bool flatOnLeft, bool flatOnRight, bool flatOnTop, bool flatOnBottom) noexcept
2998
+ {
2999
+ if (w <= strokeWidth * 1.1f || h <= strokeWidth * 1.1f)
3000
+ return;
3001
+
3002
+ auto cs = jmin (maxCornerSize, w * 0.5f, h * 0.5f);
3003
+
3004
+ Path outline;
3005
+ outline.addRoundedRectangle (x, y, w, h, cs, cs,
3006
+ ! (flatOnLeft || flatOnTop),
3007
+ ! (flatOnRight || flatOnTop),
3008
+ ! (flatOnLeft || flatOnBottom),
3009
+ ! (flatOnRight || flatOnBottom));
3010
+
3011
+ ColourGradient cg (baseColour, 0.0f, y,
3012
+ baseColour.overlaidWith (Colour (0x070000ff)), 0.0f, y + h,
3013
+ false);
3014
+
3015
+ cg.addColour (0.5, baseColour.overlaidWith (Colour (0x33ffffff)));
3016
+ cg.addColour (0.51, baseColour.overlaidWith (Colour (0x110000ff)));
3017
+
3018
+ g.setGradientFill (cg);
3019
+ g.fillPath (outline);
3020
+
3021
+ g.setColour (Colour (0x80000000));
3022
+ g.strokePath (outline, PathStrokeType (strokeWidth));
3023
+ }
3024
+
3025
+ //==============================================================================
3026
+ void LookAndFeel_V2::drawGlassSphere (Graphics& g, const float x, const float y,
3027
+ const float diameter, const Colour& colour,
3028
+ const float outlineThickness) noexcept
3029
+ {
3030
+ if (diameter <= outlineThickness)
3031
+ return;
3032
+
3033
+ Path p;
3034
+ p.addEllipse (x, y, diameter, diameter);
3035
+
3036
+ {
3037
+ ColourGradient cg (Colours::white.overlaidWith (colour.withMultipliedAlpha (0.3f)), 0, y,
3038
+ Colours::white.overlaidWith (colour.withMultipliedAlpha (0.3f)), 0, y + diameter, false);
3039
+
3040
+ cg.addColour (0.4, Colours::white.overlaidWith (colour));
3041
+
3042
+ g.setGradientFill (cg);
3043
+ g.fillPath (p);
3044
+ }
3045
+
3046
+ g.setGradientFill (ColourGradient (Colours::white, 0, y + diameter * 0.06f,
3047
+ Colours::transparentWhite, 0, y + diameter * 0.3f, false));
3048
+ g.fillEllipse (x + diameter * 0.2f, y + diameter * 0.05f, diameter * 0.6f, diameter * 0.4f);
3049
+
3050
+ ColourGradient cg (Colours::transparentBlack,
3051
+ x + diameter * 0.5f, y + diameter * 0.5f,
3052
+ Colours::black.withAlpha (0.5f * outlineThickness * colour.getFloatAlpha()),
3053
+ x, y + diameter * 0.5f, true);
3054
+
3055
+ cg.addColour (0.7, Colours::transparentBlack);
3056
+ cg.addColour (0.8, Colours::black.withAlpha (0.1f * outlineThickness));
3057
+
3058
+ g.setGradientFill (cg);
3059
+ g.fillPath (p);
3060
+
3061
+ g.setColour (Colours::black.withAlpha (0.5f * colour.getFloatAlpha()));
3062
+ g.drawEllipse (x, y, diameter, diameter, outlineThickness);
3063
+ }
3064
+
3065
+ //==============================================================================
3066
+ void LookAndFeel_V2::drawGlassPointer (Graphics& g,
3067
+ const float x, const float y, const float diameter,
3068
+ const Colour& colour, const float outlineThickness,
3069
+ const int direction) noexcept
3070
+ {
3071
+ if (diameter <= outlineThickness)
3072
+ return;
3073
+
3074
+ Path p;
3075
+ p.startNewSubPath (x + diameter * 0.5f, y);
3076
+ p.lineTo (x + diameter, y + diameter * 0.6f);
3077
+ p.lineTo (x + diameter, y + diameter);
3078
+ p.lineTo (x, y + diameter);
3079
+ p.lineTo (x, y + diameter * 0.6f);
3080
+ p.closeSubPath();
3081
+
3082
+ p.applyTransform (AffineTransform::rotation ((float) direction * MathConstants<float>::halfPi,
3083
+ x + diameter * 0.5f,
3084
+ y + diameter * 0.5f));
3085
+
3086
+ {
3087
+ ColourGradient cg (Colours::white.overlaidWith (colour.withMultipliedAlpha (0.3f)), 0, y,
3088
+ Colours::white.overlaidWith (colour.withMultipliedAlpha (0.3f)), 0, y + diameter, false);
3089
+
3090
+ cg.addColour (0.4, Colours::white.overlaidWith (colour));
3091
+
3092
+ g.setGradientFill (cg);
3093
+ g.fillPath (p);
3094
+ }
3095
+
3096
+ ColourGradient cg (Colours::transparentBlack,
3097
+ x + diameter * 0.5f, y + diameter * 0.5f,
3098
+ Colours::black.withAlpha (0.5f * outlineThickness * colour.getFloatAlpha()),
3099
+ x - diameter * 0.2f, y + diameter * 0.5f, true);
3100
+
3101
+ cg.addColour (0.5, Colours::transparentBlack);
3102
+ cg.addColour (0.7, Colours::black.withAlpha (0.07f * outlineThickness));
3103
+
3104
+ g.setGradientFill (cg);
3105
+ g.fillPath (p);
3106
+
3107
+ g.setColour (Colours::black.withAlpha (0.5f * colour.getFloatAlpha()));
3108
+ g.strokePath (p, PathStrokeType (outlineThickness));
3109
+ }
3110
+
3111
+ //==============================================================================
3112
+ void LookAndFeel_V2::drawGlassLozenge (Graphics& g,
3113
+ float x, float y, float width, float height,
3114
+ const Colour& colour, float outlineThickness, float cornerSize,
3115
+ bool flatOnLeft, bool flatOnRight, bool flatOnTop, bool flatOnBottom) noexcept
3116
+ {
3117
+ if (width <= outlineThickness || height <= outlineThickness)
3118
+ return;
3119
+
3120
+ auto intX = (int) x;
3121
+ auto intY = (int) y;
3122
+ auto intW = (int) width;
3123
+ auto intH = (int) height;
3124
+
3125
+ auto cs = cornerSize < 0 ? jmin (width * 0.5f, height * 0.5f) : cornerSize;
3126
+ auto edgeBlurRadius = height * 0.75f + (height - cs * 2.0f);
3127
+ auto intEdge = (int) edgeBlurRadius;
3128
+
3129
+ Path outline;
3130
+ outline.addRoundedRectangle (x, y, width, height, cs, cs,
3131
+ ! (flatOnLeft || flatOnTop),
3132
+ ! (flatOnRight || flatOnTop),
3133
+ ! (flatOnLeft || flatOnBottom),
3134
+ ! (flatOnRight || flatOnBottom));
3135
+
3136
+ {
3137
+ ColourGradient cg (colour.darker (0.2f), 0, y,
3138
+ colour.darker (0.2f), 0, y + height, false);
3139
+
3140
+ cg.addColour (0.03, colour.withMultipliedAlpha (0.3f));
3141
+ cg.addColour (0.4, colour);
3142
+ cg.addColour (0.97, colour.withMultipliedAlpha (0.3f));
3143
+
3144
+ g.setGradientFill (cg);
3145
+ g.fillPath (outline);
3146
+ }
3147
+
3148
+ ColourGradient cg (Colours::transparentBlack, x + edgeBlurRadius, y + height * 0.5f,
3149
+ colour.darker (0.2f), x, y + height * 0.5f, true);
3150
+
3151
+ cg.addColour (jlimit (0.0, 1.0, 1.0 - (cs * 0.5f) / edgeBlurRadius), Colours::transparentBlack);
3152
+ cg.addColour (jlimit (0.0, 1.0, 1.0 - (cs * 0.25f) / edgeBlurRadius), colour.darker (0.2f).withMultipliedAlpha (0.3f));
3153
+
3154
+ if (! (flatOnLeft || flatOnTop || flatOnBottom))
3155
+ {
3156
+ Graphics::ScopedSaveState ss (g);
3157
+
3158
+ g.setGradientFill (cg);
3159
+ g.reduceClipRegion (intX, intY, intEdge, intH);
3160
+ g.fillPath (outline);
3161
+ }
3162
+
3163
+ if (! (flatOnRight || flatOnTop || flatOnBottom))
3164
+ {
3165
+ cg.point1.setX (x + width - edgeBlurRadius);
3166
+ cg.point2.setX (x + width);
3167
+
3168
+ Graphics::ScopedSaveState ss (g);
3169
+
3170
+ g.setGradientFill (cg);
3171
+ g.reduceClipRegion (intX + intW - intEdge, intY, 2 + intEdge, intH);
3172
+ g.fillPath (outline);
3173
+ }
3174
+
3175
+ {
3176
+ auto leftIndent = (flatOnTop || flatOnLeft) ? 0.0f : cs * 0.4f;
3177
+ auto rightIndent = (flatOnTop || flatOnRight) ? 0.0f : cs * 0.4f;
3178
+
3179
+ Path highlight;
3180
+ highlight.addRoundedRectangle (x + leftIndent,
3181
+ y + cs * 0.1f,
3182
+ width - (leftIndent + rightIndent),
3183
+ height * 0.4f,
3184
+ cs * 0.4f,
3185
+ cs * 0.4f,
3186
+ ! (flatOnLeft || flatOnTop),
3187
+ ! (flatOnRight || flatOnTop),
3188
+ ! (flatOnLeft || flatOnBottom),
3189
+ ! (flatOnRight || flatOnBottom));
3190
+
3191
+ g.setGradientFill (ColourGradient (colour.brighter (10.0f), 0, y + height * 0.06f,
3192
+ Colours::transparentWhite, 0, y + height * 0.4f, false));
3193
+ g.fillPath (highlight);
3194
+ }
3195
+
3196
+ g.setColour (colour.darker().withMultipliedAlpha (1.5f));
3197
+ g.strokePath (outline, PathStrokeType (outlineThickness));
3198
+ }
3199
+
3200
+ } // namespace juce