The JUCE cross-platform C++ framework, with DISTRHO/KXStudio specific changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.7KB

  1. /* =========================================================================================
  2. This is an auto-generated file, created by The Introjucer 3.0.0
  3. Do not edit anything in this file!
  4. */
  5. namespace BinaryData
  6. {
  7. extern const char* jules_jpg;
  8. const int jules_jpgSize = 24218;
  9. extern const char* prefs_about_png;
  10. const int prefs_about_pngSize = 1819;
  11. extern const char* prefs_keys_png;
  12. const int prefs_keys_pngSize = 3794;
  13. extern const char* prefs_misc_png;
  14. const int prefs_misc_pngSize = 6162;
  15. // If you provide the name of one of the binary resource variables above, this function will
  16. // return the corresponding data and its size (or a null pointer if the name isn't found).
  17. const char* getNamedResource (const char* resourceNameUTF8, int& dataSizeInBytes) throw();
  18. //==============================================================================
  19. // This class acts as an ImageProvider that will access the BinaryData images
  20. class ImageProvider : public juce::ComponentBuilder::ImageProvider
  21. {
  22. public:
  23. ImageProvider() noexcept {}
  24. juce::Image getImageForIdentifier (const juce::var& imageIdentifier)
  25. {
  26. int dataSize = 0;
  27. const char* const data = getNamedResource (imageIdentifier.toString().toUTF8(), dataSize);
  28. if (data != nullptr)
  29. return juce::ImageCache::getFromMemory (data, dataSize);
  30. return juce::Image();
  31. }
  32. juce::var getIdentifierForImage (const juce::Image&) { return juce::var(); }
  33. };
  34. }