Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ea168feced
Fetching contributors…

Cannot retrieve contributors at this time

file 43 lines (32 sloc) 1.535 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
/* =========================================================================================

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* locked_png;
    const int locked_pngSize = 1232;

    extern const char* silkfont;
    const int silkfontSize = 1649;

    extern const char* unlocked_png;
    const int unlocked_pngSize = 1242;

    // 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(); }
    };
}
Something went wrong with that request. Please try again.