1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-31 03:00:05 +00:00

Cleaned out some defunct ComponentBuilder code.

This commit is contained in:
jules 2012-07-26 15:32:34 +01:00
parent 00ff36f0e6
commit e3537ba57a
37 changed files with 34 additions and 608 deletions

View file

@ -49,25 +49,4 @@ namespace BinaryData
// 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(); }
};
}