Initial release

This commit is contained in:
civ
2026-08-16 18:24:52 +07:00
commit 876886a39a
13244 changed files with 2353959 additions and 0 deletions
@@ -0,0 +1,48 @@
// This file is part of VSTGUI. It is subject to the license terms
// in the LICENSE file found in the top-level directory of this
// distribution and at http://github.com/steinbergmedia/vstgui/LICENSE
#pragma once
#include "uidescription.h"
//------------------------------------------------------------------------
namespace VSTGUI {
//------------------------------------------------------------------------
class CompressedUIDescription : public UIDescription
{
protected:
enum CompressedSaveFlagBits
{
NoPlainUIDescFileBackupBit = UIDescription::LastSaveFlagBit,
ForceWriteCompressedDesc,
LastCompressedSaveFlagBit,
};
public:
CompressedUIDescription (const CResourceDescription& compressedUIDescFile);
enum SaveFlags
{
kNoPlainUIDescFileBackup = 1 << NoPlainUIDescFileBackupBit,
kForceWriteCompressedDesc = 1 << ForceWriteCompressedDesc,
kNoPlainXmlFileBackup [[deprecated("use kNoPlainUIDescFileBackup")]] = kNoPlainUIDescFileBackup,
};
bool parse () override;
bool save (UTF8StringPtr filename, int32_t flags = kWriteWindowsResourceFile,
AttributeSaveFilterFunc func = nullptr) override;
bool getOriginalIsCompressed () const { return originalIsCompressed; }
void setCompressionLevel (uint32_t level) { compressionLevel = level; }
private:
bool parseWithStream (InputStream& stream);
bool originalIsCompressed {false};
uint32_t compressionLevel {1};
};
//------------------------------------------------------------------------
} // VSTGUI