skin.h (492B)
1 #pragma once 2 3 #include <string> 4 5 namespace jucePluginEditorLib 6 { 7 struct Skin 8 { 9 std::string displayName; // == folder name on disk if not embedded into binary 10 std::string jsonFilename; 11 std::string folder; // empty if skin is embedded into binary 12 13 bool operator == (const Skin& _other) const 14 { 15 return displayName == _other.displayName && jsonFilename == _other.jsonFilename && folder == _other.folder; 16 } 17 18 bool isValid() const 19 { 20 return !jsonFilename.empty(); 21 } 22 }; 23 }