|
- /* =========================================================================================
-
- This is an auto-generated file, created by The Introjucer 3.0.0
- Do not edit anything in this file!
-
- */
-
- namespace BinaryData
- {
- extern const char* cello_wav;
- const int cello_wavSize = 46348;
-
- extern const char* demo_table_data_xml;
- const int demo_table_data_xmlSize = 5239;
-
- extern const char* icons_zip;
- const int icons_zipSize = 83876;
-
- extern const char* juce_png;
- const int juce_pngSize = 15290;
-
- extern const char* treedemo_xml;
- const int treedemo_xmlSize = 1126;
-
- // If you provide the name of one of the binary resource variables above, this function will
- // return the corresponding data and its size (or a null pointer if the name isn't found).
- const char* getNamedResource (const char* resourceNameUTF8, int& dataSizeInBytes) throw();
-
- //==============================================================================
- // This class acts as an ImageProvider that will access the BinaryData images
- class ImageProvider : public juce::ComponentBuilder::ImageProvider
- {
- public:
- ImageProvider() noexcept {}
-
- juce::Image getImageForIdentifier (const juce::var& imageIdentifier)
- {
- int dataSize = 0;
- const char* const data = getNamedResource (imageIdentifier.toString().toUTF8(), dataSize);
-
- if (data != nullptr)
- return juce::ImageCache::getFromMemory (data, dataSize);
-
- return juce::Image();
- }
-
- juce::var getIdentifierForImage (const juce::Image&) { return juce::var(); }
- };
- }
|