diff --git a/TrollTools.xcodeproj/project.pbxproj b/TrollTools.xcodeproj/project.pbxproj index 021c454..d9d4e69 100644 --- a/TrollTools.xcodeproj/project.pbxproj +++ b/TrollTools.xcodeproj/project.pbxproj @@ -10,6 +10,9 @@ 2120EBE6298453060030285A /* grant_full_disk_access.m in Sources */ = {isa = PBXBuildFile; fileRef = 2120EBE5298453050030285A /* grant_full_disk_access.m */; }; 2120EBE9298453380030285A /* vm_unaligned_copy_switch_race.c in Sources */ = {isa = PBXBuildFile; fileRef = 2120EBE7298453380030285A /* vm_unaligned_copy_switch_race.c */; }; 2120EBEC2984534A0030285A /* helpers.m in Sources */ = {isa = PBXBuildFile; fileRef = 2120EBEA2984534A0030285A /* helpers.m */; }; + 217DFA862B139D530058B146 /* ApplicationsWrapper in Frameworks */ = {isa = PBXBuildFile; productRef = 217DFA852B139D530058B146 /* ApplicationsWrapper */; }; + 217DFA882B139D530058B146 /* AssetCatalogWrapper in Frameworks */ = {isa = PBXBuildFile; productRef = 217DFA872B139D530058B146 /* AssetCatalogWrapper */; }; + 21DC9D2C2B139C050028ED6E /* CoreUI in Resources */ = {isa = PBXBuildFile; fileRef = 21DC9D2B2B139C050028ED6E /* CoreUI */; }; 21EC7AF8298532C400B537AF /* Respring.swift in Sources */ = {isa = PBXBuildFile; fileRef = 21EC7AF7298532C400B537AF /* Respring.swift */; }; 6F63906B294B957900BA22D4 /* LSFootnoteChangerView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6F63906A294B957900BA22D4 /* LSFootnoteChangerView.swift */; }; 6FDA067D2935AA52003CE14A /* ZIPFoundation in Frameworks */ = {isa = PBXBuildFile; productRef = 6FDA067C2935AA52003CE14A /* ZIPFoundation */; }; @@ -39,9 +42,6 @@ CE7975AC291C3494007A38E7 /* SwiftyXMLParser in Frameworks */ = {isa = PBXBuildFile; productRef = CE7975AB291C3494007A38E7 /* SwiftyXMLParser */; }; CE7975AF291C4270007A38E7 /* com.apple.springboard.plist in Resources */ = {isa = PBXBuildFile; fileRef = CE7975AE291C4270007A38E7 /* com.apple.springboard.plist */; }; CE7975B1291C4533007A38E7 /* LockscreenRespringView.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE7975B0291C4533007A38E7 /* LockscreenRespringView.swift */; }; - CE7D5CCA2905E10400EA26D2 /* AssetCatalogWrapper in Frameworks */ = {isa = PBXBuildFile; productRef = CE7D5CC92905E10400EA26D2 /* AssetCatalogWrapper */; }; - CE7D5CFD2906C2BD00EA26D2 /* FSOperations in Frameworks */ = {isa = PBXBuildFile; productRef = CE7D5CFC2906C2BD00EA26D2 /* FSOperations */; }; - CE7D5D1D290706C600EA26D2 /* NSTask in Frameworks */ = {isa = PBXBuildFile; productRef = CE7D5D1C290706C600EA26D2 /* NSTask */; }; CE8DC8D52904C22500A1CBB0 /* RootHelper.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE8DC8D42904C22500A1CBB0 /* RootHelper.swift */; }; CEECE830290C496D007E9496 /* IconOverridesView.swift in Sources */ = {isa = PBXBuildFile; fileRef = CEECE82F290C496D007E9496 /* IconOverridesView.swift */; }; CEECE832290C5405007E9496 /* AltIconSelectionView.swift in Sources */ = {isa = PBXBuildFile; fileRef = CEECE831290C5405007E9496 /* AltIconSelectionView.swift */; }; @@ -64,6 +64,8 @@ 2120EBEA2984534A0030285A /* helpers.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = helpers.m; sourceTree = ""; }; 2120EBEB2984534A0030285A /* helpers.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = helpers.h; sourceTree = ""; }; 2120EBED298454EB0030285A /* grant_full_disk_access.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = grant_full_disk_access.h; sourceTree = ""; }; + 21DC9D2B2B139C050028ED6E /* CoreUI */ = {isa = PBXFileReference; lastKnownFileType = folder; path = CoreUI; sourceTree = ""; }; + 21DC9D2E2B139CFC0028ED6E /* PrivateKits */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = PrivateKits; path = ../developer/tweaks/PrivateKits; sourceTree = ""; }; 21EC7AF7298532C400B537AF /* Respring.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Respring.swift; sourceTree = ""; }; 6F63906A294B957900BA22D4 /* LSFootnoteChangerView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LSFootnoteChangerView.swift; sourceTree = ""; }; CE141B362903E73F00AB48A7 /* CardChangerView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CardChangerView.swift; sourceTree = ""; }; @@ -120,12 +122,11 @@ CEFE36642904B27B00938D98 /* CoreServices.framework in Frameworks */, CEF56C502921305300DDEBFD /* Map in Frameworks */, CEFE36632904AF8C00938D98 /* Dynamic in Frameworks */, - CE7D5D1D290706C600EA26D2 /* NSTask in Frameworks */, CE7975AC291C3494007A38E7 /* SwiftyXMLParser in Frameworks */, - CE7D5CFD2906C2BD00EA26D2 /* FSOperations in Frameworks */, CE141B4829045D5F00AB48A7 /* MobileCoreServices.framework in Frameworks */, - CE7D5CCA2905E10400EA26D2 /* AssetCatalogWrapper in Frameworks */, + 217DFA862B139D530058B146 /* ApplicationsWrapper in Frameworks */, 6FDA067D2935AA52003CE14A /* ZIPFoundation in Frameworks */, + 217DFA882B139D530058B146 /* AssetCatalogWrapper in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -145,6 +146,14 @@ path = Exploit; sourceTree = ""; }; + 21DC9D2D2B139C070028ED6E /* AssetCatalogWrapper */ = { + isa = PBXGroup; + children = ( + 21DC9D2B2B139C050028ED6E /* CoreUI */, + ); + path = AssetCatalogWrapper; + sourceTree = ""; + }; CE141B382903F1F500AB48A7 /* Themes */ = { isa = PBXGroup; children = ( @@ -184,6 +193,7 @@ CE2BF7AE2902DFF300AD10BE = { isa = PBXGroup; children = ( + 21DC9D2E2B139CFC0028ED6E /* PrivateKits */, CE7D5D2229070FA600EA26D2 /* entitlements.plist */, CE2BF7B92902DFF300AD10BE /* TrollTools */, CE2BF7B82902DFF300AD10BE /* Products */, @@ -239,6 +249,7 @@ CE2BF81F2902E07F00AD10BE /* Private APIs */ = { isa = PBXGroup; children = ( + 21DC9D2D2B139C070028ED6E /* AssetCatalogWrapper */, CE141B562904607C00AB48A7 /* Themes */, CE2BF8202902E07F00AD10BE /* WallpaperGetter.swift */, CE2BF8222902E07F00AD10BE /* PasscodeKeyFaceManager.swift */, @@ -328,12 +339,11 @@ name = TrollTools; packageProductDependencies = ( CEFE36622904AF8C00938D98 /* Dynamic */, - CE7D5CC92905E10400EA26D2 /* AssetCatalogWrapper */, - CE7D5CFC2906C2BD00EA26D2 /* FSOperations */, - CE7D5D1C290706C600EA26D2 /* NSTask */, CE7975AB291C3494007A38E7 /* SwiftyXMLParser */, CEF56C4F2921305300DDEBFD /* Map */, 6FDA067C2935AA52003CE14A /* ZIPFoundation */, + 217DFA852B139D530058B146 /* ApplicationsWrapper */, + 217DFA872B139D530058B146 /* AssetCatalogWrapper */, ); productName = TrollTools; productReference = CE2BF7B72902DFF300AD10BE /* TrollTools.app */; @@ -366,11 +376,11 @@ mainGroup = CE2BF7AE2902DFF300AD10BE; packageReferences = ( CEFE36612904AF8C00938D98 /* XCRemoteSwiftPackageReference "Dynamic" */, - CE7D5CC82905E10400EA26D2 /* XCRemoteSwiftPackageReference "SantanderWrappers" */, CE7975AA291C3494007A38E7 /* XCRemoteSwiftPackageReference "SwiftyXMLParser" */, CEF56C4E2921305300DDEBFD /* XCRemoteSwiftPackageReference "Map" */, CE7D695629410A2A0048DF6D /* XCRemoteSwiftPackageReference "swift-argument-parser" */, 6FDA067B2935AA52003CE14A /* XCRemoteSwiftPackageReference "ZIPFoundation" */, + 217DFA842B139D530058B146 /* XCRemoteSwiftPackageReference "PrivateKits" */, ); productRefGroup = CE2BF7B82902DFF300AD10BE /* Products */; projectDirPath = ""; @@ -387,6 +397,7 @@ buildActionMask = 2147483647; files = ( CE2BF8452902E21D00AD10BE /* Assets.xcassets in Resources */, + 21DC9D2C2B139C050028ED6E /* CoreUI in Resources */, CE2BF82A2902E07F00AD10BE /* WebClipTemplate.plist in Resources */, CE7975AF291C4270007A38E7 /* com.apple.springboard.plist in Resources */, ); @@ -684,6 +695,14 @@ /* End XCConfigurationList section */ /* Begin XCRemoteSwiftPackageReference section */ + 217DFA842B139D530058B146 /* XCRemoteSwiftPackageReference "PrivateKits" */ = { + isa = XCRemoteSwiftPackageReference; + repositoryURL = "https://github.com/NSAntoine/PrivateKits"; + requirement = { + branch = main; + kind = branch; + }; + }; 6FDA067B2935AA52003CE14A /* XCRemoteSwiftPackageReference "ZIPFoundation" */ = { isa = XCRemoteSwiftPackageReference; repositoryURL = "https://github.com/weichsel/ZIPFoundation"; @@ -700,14 +719,6 @@ minimumVersion = 5.0.0; }; }; - CE7D5CC82905E10400EA26D2 /* XCRemoteSwiftPackageReference "SantanderWrappers" */ = { - isa = XCRemoteSwiftPackageReference; - repositoryURL = "https://github.com/SerenaKit/SantanderWrappers"; - requirement = { - branch = main; - kind = branch; - }; - }; CE7D695629410A2A0048DF6D /* XCRemoteSwiftPackageReference "swift-argument-parser" */ = { isa = XCRemoteSwiftPackageReference; repositoryURL = "https://github.com/apple/swift-argument-parser.git"; @@ -735,6 +746,16 @@ /* End XCRemoteSwiftPackageReference section */ /* Begin XCSwiftPackageProductDependency section */ + 217DFA852B139D530058B146 /* ApplicationsWrapper */ = { + isa = XCSwiftPackageProductDependency; + package = 217DFA842B139D530058B146 /* XCRemoteSwiftPackageReference "PrivateKits" */; + productName = ApplicationsWrapper; + }; + 217DFA872B139D530058B146 /* AssetCatalogWrapper */ = { + isa = XCSwiftPackageProductDependency; + package = 217DFA842B139D530058B146 /* XCRemoteSwiftPackageReference "PrivateKits" */; + productName = AssetCatalogWrapper; + }; 6FDA067C2935AA52003CE14A /* ZIPFoundation */ = { isa = XCSwiftPackageProductDependency; package = 6FDA067B2935AA52003CE14A /* XCRemoteSwiftPackageReference "ZIPFoundation" */; @@ -745,21 +766,6 @@ package = CE7975AA291C3494007A38E7 /* XCRemoteSwiftPackageReference "SwiftyXMLParser" */; productName = SwiftyXMLParser; }; - CE7D5CC92905E10400EA26D2 /* AssetCatalogWrapper */ = { - isa = XCSwiftPackageProductDependency; - package = CE7D5CC82905E10400EA26D2 /* XCRemoteSwiftPackageReference "SantanderWrappers" */; - productName = AssetCatalogWrapper; - }; - CE7D5CFC2906C2BD00EA26D2 /* FSOperations */ = { - isa = XCSwiftPackageProductDependency; - package = CE7D5CC82905E10400EA26D2 /* XCRemoteSwiftPackageReference "SantanderWrappers" */; - productName = FSOperations; - }; - CE7D5D1C290706C600EA26D2 /* NSTask */ = { - isa = XCSwiftPackageProductDependency; - package = CE7D5CC82905E10400EA26D2 /* XCRemoteSwiftPackageReference "SantanderWrappers" */; - productName = NSTask; - }; CEF56C4F2921305300DDEBFD /* Map */ = { isa = XCSwiftPackageProductDependency; package = CEF56C4E2921305300DDEBFD /* XCRemoteSwiftPackageReference "Map" */; diff --git a/TrollTools.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/TrollTools.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index 7110d5f..82e7aee 100644 --- a/TrollTools.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/TrollTools.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -14,17 +14,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/pauljohanneskraft/Map", "state" : { - "revision" : "a99a9083aac4c5eba1cd83291eb2e222df287f31", - "version" : "0.1.0" - } - }, - { - "identity" : "santanderwrappers", - "kind" : "remoteSourceControl", - "location" : "https://github.com/SerenaKit/SantanderWrappers", - "state" : { - "branch" : "main", - "revision" : "78c19b2eeba612b0fb7b13df7ab304062ee22622" + "revision" : "3eed43ceaf7892a4021a34f87da2e6561e50318c", + "version" : "0.2.0" } }, { @@ -32,8 +23,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-argument-parser.git", "state" : { - "revision" : "fddd1c00396eed152c45a46bea9f47b98e59301d", - "version" : "1.2.0" + "revision" : "8f4d2753f0e4778c76d5f05ad16c74f707390531", + "version" : "1.2.3" } }, { @@ -51,7 +42,7 @@ "location" : "https://github.com/weichsel/ZIPFoundation", "state" : { "branch" : "development", - "revision" : "43ec568034b3731101dbf7670765d671c30f54f3" + "revision" : "e6464a023ffa9d9aaaad80be2159d2755107b651" } } ], diff --git a/TrollTools/Private APIs/AssetCatalogWrapper/CoreUI/CSIBitmapWrapper.h b/TrollTools/Private APIs/AssetCatalogWrapper/CoreUI/CSIBitmapWrapper.h new file mode 100644 index 0000000..487b565 --- /dev/null +++ b/TrollTools/Private APIs/AssetCatalogWrapper/CoreUI/CSIBitmapWrapper.h @@ -0,0 +1,18 @@ +// +// CSIBitmapWrapper.h +// Santander +// +// Created by Serena on 28/09/2022 +// + + +#ifndef CSIBitmapWrapper_h +#define CSIBitmapWrapper_h +@import CoreGraphics.CGContext; + +@interface CSIBitmapWrapper : NSObject +- (CGContextRef *)bitmapContext; +- (id)initWithPixelWidth:(unsigned int)arg1 pixelHeight:(unsigned int)arg2; +@end + +#endif /* CSIBitmapWrapper_h */ diff --git a/TrollTools/Private APIs/AssetCatalogWrapper/CoreUI/CSIGenerator.h b/TrollTools/Private APIs/AssetCatalogWrapper/CoreUI/CSIGenerator.h new file mode 100644 index 0000000..1b71e46 --- /dev/null +++ b/TrollTools/Private APIs/AssetCatalogWrapper/CoreUI/CSIGenerator.h @@ -0,0 +1,35 @@ +// +// CSIGenerator.h +// Santander +// +// Created by Serena on 28/09/2022 +// + + +#ifndef CSIGenerator_h +#define CSIGenerator_h +@import Foundation; +#include "CSIBitmapWrapper.h" + +@interface CSIGenerator : NSObject +@property (nonnull, copy, nonatomic) NSString *name; +@property (nonatomic) int blendMode; +@property (nonatomic) short colorSpaceID; +@property (nonatomic) int exifOrientation; +@property (nonatomic) double opacity; +@property (nonatomic) unsigned int scaleFactor; +@property (nonatomic) long long templateRenderingMode; +@property (nullable, copy, nonatomic) NSString *utiType; +@property (nullable, copy, nonatomic) NSArray *colorComponents; +@property (nonatomic) bool isRenditionFPO; +@property (nonatomic, getter=isExcludedFromContrastFilter) bool excludedFromContrastFilter; +@property (nonatomic) bool isVectorBased; +- (void)addBitmap:(CSIBitmapWrapper * _Nonnull)arg1; +- (void)addSliceRect:(struct CGRect)arg1; +- (NSData * _Null_unspecified)CSIRepresentationWithCompression:(bool)arg1; +- (id _Nullable)initWithCanvasSize:(struct CGSize)arg1 sliceCount:(unsigned int)arg2 layout:(short)arg3; +- (id)initWithColorNamed:(id)arg0 colorSpaceID:(NSUInteger)arg1 components:(id)arg2 ; +@end + + +#endif /* CSIGenerator_h */ diff --git a/TrollTools/Private APIs/AssetCatalogWrapper/CoreUI/CUICatalog.h b/TrollTools/Private APIs/AssetCatalogWrapper/CoreUI/CUICatalog.h new file mode 100644 index 0000000..dd2ac85 --- /dev/null +++ b/TrollTools/Private APIs/AssetCatalogWrapper/CoreUI/CUICatalog.h @@ -0,0 +1,27 @@ +// +// CUICatalog.h +// Santander +// +// Created by Serena on 16/09/2022 +// + + +#ifndef CUICatalog_h +#define CUICatalog_h +@import Foundation; + +#include "CUINamedLookup.h" +#include "CUIStructuredThemeStore.h" + +#define SWIFT_THROWING __attribute__((__swift_error__(nonnull_error))) + +NS_ASSUME_NONNULL_BEGIN +@interface CUICatalog : NSObject ++ (CUICatalog *)defaultUICatalogForBundle:(NSBundle *)bundle; +- (id)initWithURL:(NSURL *)url error:(NSError **)error SWIFT_THROWING; +- (void)enumerateNamedLookupsUsingBlock:(void (^)(CUINamedLookup *namedAsset))block; +- (CUIStructuredThemeStore *)_themeStore; +@end + +NS_ASSUME_NONNULL_END +#endif /* CUICatalog_h */ diff --git a/TrollTools/Private APIs/AssetCatalogWrapper/CoreUI/CUICommonAssetStorage.h b/TrollTools/Private APIs/AssetCatalogWrapper/CoreUI/CUICommonAssetStorage.h new file mode 100644 index 0000000..af1ad2b --- /dev/null +++ b/TrollTools/Private APIs/AssetCatalogWrapper/CoreUI/CUICommonAssetStorage.h @@ -0,0 +1,48 @@ +// +// CUICommonAssetStorage.h +// Santander +// +// Created by Serena on 25/09/2022 +// + + +#ifndef CUICommonAssetStorage_h +#define CUICommonAssetStorage_h +@import Foundation; +#include "structs.h" + +NS_ASSUME_NONNULL_BEGIN +@interface CUICommonAssetStorage : NSObject +- (NSArray *)allAssetKeys; +- (NSArray *)allRenditionNames; +- (NSData *)assetForKey:(NSData *)arg1; +- (void)enumerateKeysAndObjectsUsingBlock:(void (^)(struct renditionkeytoken *keyList, NSData *csiData))block; +- (long long)maximumRenditionKeyTokenCount; +- (instancetype _Nullable)initWithPath:(NSString *)arg1 forWriting:(bool)arg2; + +- (const char *)mainVersionString; +- (const char *)versionString; + +- (long long)storageTimestamp; +- (long long)_storagefileTimestamp; +- (unsigned int)schemaVersion; +- (unsigned int)coreuiVersion; +- (unsigned int)storageVersion; +- (NSUUID *)uuid; + +- (NSString *)thinningArguments; +- (NSString *)deploymentPlatform; +- (NSString *)deploymentPlatformVersion; +- (NSString *)authoringTool; +@end + +@interface CUIMutableCommonAssetStorage : CUICommonAssetStorage +- (void)setColor:(struct rgbquad)arg1 forName:(char *)arg2 excludeFromFilter:(bool)arg3; +- (bool)setAsset:(NSData *)arg1 forKey:(NSData *)arg2; +- (void)removeAssetForKey:(id)arg0; +- (bool)writeToDiskAndCompact:(bool)arg1 NS_SWIFT_NAME(writeToDisk(compact:)); +@end + +NS_ASSUME_NONNULL_END + +#endif /* CUICommonAssetStorage_h */ diff --git a/TrollTools/Private APIs/AssetCatalogWrapper/CoreUI/CUINamedLookup.h b/TrollTools/Private APIs/AssetCatalogWrapper/CoreUI/CUINamedLookup.h new file mode 100644 index 0000000..2216c6b --- /dev/null +++ b/TrollTools/Private APIs/AssetCatalogWrapper/CoreUI/CUINamedLookup.h @@ -0,0 +1,24 @@ +// +// CUINamedLookup.h +// Santander +// +// Created by Serena on 16/09/2022 +// + + +#ifndef CUINamedLookup_h +#define CUINamedLookup_h +#include "CUIThemeRendition.h" + +NS_ASSUME_NONNULL_BEGIN +@interface CUINamedLookup : NSObject +@property (copy, nonatomic) NSString *name; +@property (readonly, nonatomic) NSString *renditionName; +@property (readonly, nonatomic) NSString *appearance; +@property (readonly, nonatomic, getter=_rendition) CUIThemeRendition *rendition; +@property (copy, nonatomic) CUIRenditionKey *key; +@property (nonatomic) NSUInteger storageRef; +@end + +NS_ASSUME_NONNULL_END +#endif /* CUINamedLookup_h */ diff --git a/TrollTools/Private APIs/AssetCatalogWrapper/CoreUI/CUIRenditionKey.h b/TrollTools/Private APIs/AssetCatalogWrapper/CoreUI/CUIRenditionKey.h new file mode 100644 index 0000000..3f020f0 --- /dev/null +++ b/TrollTools/Private APIs/AssetCatalogWrapper/CoreUI/CUIRenditionKey.h @@ -0,0 +1,46 @@ +// +// CUIRenditionKey.h +// Santander +// +// Created by Serena on 29/09/2022 +// + + +#ifndef CUIRenditionKey_h +#define CUIRenditionKey_h +@import Foundation; + +@interface CUIRenditionKey : NSObject +- (const struct renditionkeytoken *)keyList; +- (id)initWithKeyList:(const struct renditionkeytoken *)keyList; + +@property(nonatomic) long long themeElement; +@property(nonatomic) long long themePart; +@property(nonatomic) long long themeSize; +@property(nonatomic) long long themeDirection; +@property(nonatomic) long long themeValue; +@property(nonatomic) long long themeAppearance; +@property(nonatomic) long long themeDimension1; +@property(nonatomic) long long themeDimension2; +@property(nonatomic) long long themeState; +@property(nonatomic) long long themeLayer; +@property(nonatomic) long long themeScale; +@property(nonatomic) long long themeLocalization; +@property(nonatomic) long long themePresentationState; +@property(nonatomic) long long themeIdiom; +@property(nonatomic) long long themeSubtype; +@property(nonatomic) long long themeIdentifier; +@property(nonatomic) long long themePreviousState; +@property(nonatomic) long long themePreviousValue; +@property(nonatomic) long long themeSizeClassHorizontal; +@property(nonatomic) long long themeSizeClassVertical; +@property(nonatomic) long long themeMemoryClass; +@property(nonatomic) long long themeGraphicsClass; +@property(nonatomic) long long themeDisplayGamut; +@property(nonatomic) long long themeDeploymentTarget; +@property(nonatomic) long long themeGlyphWeight; +@property(nonatomic) long long themeGlyphSize; + +@end + +#endif /* CUIRenditionKey_h */ diff --git a/TrollTools/Private APIs/AssetCatalogWrapper/CoreUI/CUIStructuredThemeStore.h b/TrollTools/Private APIs/AssetCatalogWrapper/CoreUI/CUIStructuredThemeStore.h new file mode 100644 index 0000000..31ade08 --- /dev/null +++ b/TrollTools/Private APIs/AssetCatalogWrapper/CoreUI/CUIStructuredThemeStore.h @@ -0,0 +1,17 @@ +// +// CUIStructuredThemeStore.h +// Santander +// +// Created by Serena on 26/09/2022 +// + + +#ifndef CUIStructuredThemeStore_h +#define CUIStructuredThemeStore_h +#include "CUIThemeRendition.h" + +@interface CUIStructuredThemeStore : NSObject +- (NSData *)convertRenditionKeyToKeyData:(const struct renditionkeytoken *)arg1; +@end + +#endif /* CUIStructuredThemeStore_h */ diff --git a/TrollTools/Private APIs/AssetCatalogWrapper/CoreUI/CUIThemeRendition.h b/TrollTools/Private APIs/AssetCatalogWrapper/CoreUI/CUIThemeRendition.h new file mode 100644 index 0000000..29a5831 --- /dev/null +++ b/TrollTools/Private APIs/AssetCatalogWrapper/CoreUI/CUIThemeRendition.h @@ -0,0 +1,75 @@ +// +// CUIThemeRendition.h +// Santander +// +// Created by Serena on 16/09/2022 +// + + +#ifndef CUIThemeRendition_h +#define CUIThemeRendition_h + +#define HAS_CORE_SVG __has_include("../CoreSVG/CoreSVG.h") + +@import CoreGraphics; + +#include "structs.h" +#include "CUIRenditionKey.h" + +#if HAS_CORE_SVG +# include "../CoreSVG/CoreSVG.h" +#endif + +#pragma clang diagnostic push +// for the `Pointer is missing a nullability type specifier` warnings: +#pragma clang diagnostic ignored "-Wnullability-completeness" +@interface CUIThemeRendition : NSObject +@property(nonatomic) long long type; +@property(nonatomic) unsigned int subtype; +@property(nonatomic) int blendMode; +@property(nonatomic) int exifOrientation; +@property(nonatomic) double opacity; +@property(readonly, nonatomic) NSData *srcData; +//@property (nonatomic) NSInteger type; + +- (struct renditionkeytoken *)key; +- (NSString * _Nonnull)name; +- (unsigned long long)colorSpaceID; +- (double)scale; +- (long long)templateRenderingMode; +- (NSString * _Nullable)utiType; +- (bool)isHeaderFlaggedFPO; +- (struct cuithemerenditionrenditionflags *)renditionFlags; +- (bool)isVectorBased; +- (int)pixelFormat; +- (bool)isInternalLink; +- (CUIRenditionKey *)linkingToRendition; +#if HAS_CORE_SVG +- (CGSVGDocumentRef)svgDocument; +#endif +- (struct CGRect)_destinationFrame; +- (CGImageRef _Nullable)uncroppedImage; +- (CGImageRef _Nullable)unslicedImage; +- (CGColorRef)cgColor; +- (bool)substituteWithSystemColor; +- (NSString *)systemColorName; +- (CGImageRef)createImageFromPDFRenditionWithScale:(double)arg1; +- (CGPDFDocumentRef)pdfDocument; +- (struct CGRect)_destinationFrame; +- (struct CGSize)unslicedSize; +- (_Nonnull id)initWithCSIData:(NSData *)arg1 forKey:(const struct renditionkeytoken *)arg2; +@end + + +@interface _CUIThemeSVGRendition : CUIThemeRendition +- (NSData *)rawData; +@end + + +@interface _CUIRawDataRendition : CUIThemeRendition +- (id)data; +@end + +#pragma clang diagnostic pop + +#endif /* CUIThemeRendition_h */ diff --git a/TrollTools/Private APIs/AssetCatalogWrapper/CoreUI/CoreUI.h b/TrollTools/Private APIs/AssetCatalogWrapper/CoreUI/CoreUI.h new file mode 100644 index 0000000..4a96db7 --- /dev/null +++ b/TrollTools/Private APIs/AssetCatalogWrapper/CoreUI/CoreUI.h @@ -0,0 +1,20 @@ +// +// CoreUI.h +// Santander +// +// Created by Serena on 16/09/2022 +// + + +#ifndef CoreUI_h +#define CoreUI_h + +#include "CUIThemeRendition.h" +#include "CUICatalog.h" +#include "CUICommonAssetStorage.h" +#include "CUINamedLookup.h" +#include "CUIStructuredThemeStore.h" +#include "CSIGenerator.h" +#include "CSIBitmapWrapper.h" + +#endif /* CoreUI_h */ diff --git a/TrollTools/Private APIs/AssetCatalogWrapper/CoreUI/CoreUI.tbd b/TrollTools/Private APIs/AssetCatalogWrapper/CoreUI/CoreUI.tbd new file mode 100644 index 0000000..024aaa9 --- /dev/null +++ b/TrollTools/Private APIs/AssetCatalogWrapper/CoreUI/CoreUI.tbd @@ -0,0 +1,664 @@ +--- !tapi-tbd-v3 +archs: [ arm64, arm64e ] +platform: ios +flags: [ flat_namespace ] +install-name: /System/Library/PrivateFrameworks/CoreUI.framework/CoreUI +current-version: 691.2 +compatibility-version: 1 +objc-constraint: retain_release +exports: + - archs: [ arm64, arm64e, x86_64 ] + symbols: [ _CSIEqualMetrics, _CSIIllegalMetrics, + _CUIBlendModeDescriptionFromCGBlendMode, + _CUIBlendModeLSRDescriptionFromCGBlendMode, + _CUICGBitmapContextCreate, + _CUICGBlendModeFromLSRDescription, + _CUICGImageGetAlphaInfo, _CUICalcNonAlphaAreaOfImage, + _CUICalculateExtrusionMaskOfImage, + _CUIColorHistogramARGBIntersection, + _CUIColorHistogramARGBIsMonochrome, + _CUICompareRenditionKey, + _CUIComputeImageColorHistogramARGB, + _CUIConvertCGImageFormat, + _CUIConvertCompressionTypeToString, + _CUIConvertDeepImageTo8, + _CUIConvertImageToPixelFormat, + _CUIConvertPixelFormatToString, _CUICurrentPlatform, + _CUIDeallocateRGBAImageBuffer, + _CUIDefaultThemeRenditionKeyFormat, + _CUIDrawExtrudedImageInContext, + _CUIEdgeInsetsEqualToEdgeInsets, + _CUIEdgeInsetsFromCGRect, _CUIEdgeInsetsInsetRect, + _CUIEdgeInsetsInvalid, _CUIEdgeInsetsMake, + _CUIEdgeInsetsOutsetRect, _CUIEdgeInsetsToCGRect, + _CUIEdgeInsetsValid, _CUIEdgeInsetsZero, + _CUIEffectBevelStyleDescription, + _CUIEffectBlendModeDescription, + _CUIEqualRenditionKeys, + _CUIFillCARKeyArrayForRenditionKey, + _CUIFillCARKeyArrayForRenditionKey2, + _CUIGetDeviceArtworkDisplayGamut, + _CUIGetFormatForFeatureSetAndPixelFormat, + _CUIGetRGBAImageBuffer, + _CUIImageCompressedWithColorQuantization, + _CUIImageIsMonochrome, _CUIImageIsWideGamut, + _CUIKeyFormatToArrayString, _CUILogLogToStderr, + _CUIMaxDimensionForVectorGlyph, + _CUIMaxScaleForTargetPlatform, + _CUIMinDimensionForVectorGlyph, + _CUIMinScaleForTargetPlatform, + _CUIParseDeploymentTarget, + _CUIPlatformNameForPlatform, + _CUIPointSizeForDimensionForVectorGlyph, + _CUIRenditionKeyCopy, + _CUIRenditionKeyFormatRemoveAttribute, + _CUIRenditionKeyHasIdentifier, + _CUIRenditionKeySetValueForAttribute, + _CUIRenditionKeyStandardize, + _CUIRenditionKeyTokenCount, + _CUIRenditionKeyValueForAttribute, + _CUISystemThemeRenditionKeyFormat, + _CUIThemeInfoVersion, + _CUIUncompressQuantizedImageData, + _CoreUIVersionNumber, __CUILog, _gColorStatuses, + _gColors, _gEffectBevelStyles, _gEffectBlendModes, + _gEffectParameterTypes, _gEffectTypes, + _gMetafontSelectors, _gMetafontSizes, + _gRenditionSubtypes, _gRenditionTypes, + _gThemeCompressionTypes, _gThemeDeploymentTargets, + _gThemeDirections, _gThemeDisplayGamuts, + _gThemeDrawingLayers, _gThemeDynamicDisplayModes, + _gThemeElements, _gThemeGraphicsFeatureSetClasses, + _gThemeGraphicsFeatureSetClasses_Legacy, + _gThemeIdioms, _gThemeMemoryPerformanceClasses, + _gThemeParts, _gThemePresentationStates, _gThemeSizes, + _gThemeStates, _gThemeTemplateRenderingModes, + _gThemeTextureFaces, _gThemeTextureInterpretations, + _gThemeTexturePixelFormats, _gThemeUISizeClasses, + _gThemeValues, _gThemeVectorSizes, + _gThemeVectorWeights ] + objc-classes: [ CSIATECHelper, CSIBitmapWrapper, CSIGenerator, CSIHelper, + CSITextureHelper, + CUIBackgroundStyleEffectConfiguration, CUICatalog, + CUIColor, CUICommonAssetStorage, CUIImage, CUIMeshBuffer, + CUIMutableCatalog, CUIMutableCommonAssetStorage, + CUIMutablePSDImageRef, + CUIMutableStructuredThemeStore, + CUIMutableThemeRendition, CUINamedColor, CUINamedData, + CUINamedExternalLink, CUINamedImage, + CUINamedImageAtlas, CUINamedImageDescription, + CUINamedLayerImage, CUINamedLayerStack, CUINamedLookup, + CUINamedModel, CUINamedMultisizeImage, + CUINamedMultisizeImageSet, CUINamedRecognitionGroup, + CUINamedRecognitionImage, CUINamedRecognitionObject, + CUINamedRenditionInfo, CUINamedTexture, + CUINamedVectorGlyph, CUINamedVectorImage, + CUINamedVectorPDFImage, CUINamedVectorSVGImage, + CUIPSDGradient, CUIPSDGradientColorStop, + CUIPSDGradientDoubleColorStop, + CUIPSDGradientDoubleOpacityStop, + CUIPSDGradientEvaluator, CUIPSDGradientLayer, + CUIPSDGradientOpacityStop, CUIPSDGradientStop, + CUIPSDImageLayer, CUIPSDImageRef, CUIPSDLayer, + CUIPSDLayerBaseRef, CUIPSDLayerEffectBevelEmboss, + CUIPSDLayerEffectColorOverlay, + CUIPSDLayerEffectComponent, + CUIPSDLayerEffectDropShadow, + CUIPSDLayerEffectGradientOverlay, + CUIPSDLayerEffectInnerGlow, + CUIPSDLayerEffectInnerShadow, + CUIPSDLayerEffectOuterGlow, CUIPSDLayerEffects, + CUIPSDLayerEnumerator, CUIPSDLayerGroupEnd, + CUIPSDLayerGroupRef, CUIPSDLayerGroupStart, + CUIPSDLayerMaskRef, CUIPSDLayerRef, + CUIPSDLayoutMetricsChannel, CUIPSLayerEffectsPreset, + CUIPattern, CUIRenditionKey, + CUIRenditionLayerReference, CUIRenditionMetrics, + CUIRenditionSliceInformation, CUIRuntimeStatistics, + CUIShapeEffectPreset, CUIShapeEffectStack, + CUIStructuredThemeStore, CUIStyleEffectConfiguration, + CUISystemCatalog, CUITextEffectStack, CUITextStyle, + CUIThemeDataEffectPreset, CUIThemeFacet, + CUIThemeGradient, CUIThemeRendition, CUIThemeSchema, + CUIThemeSchemaEffectRendition, CUIThemeSchemaLayer, + CUIThemeSchemaPSDLayer, CUIThemeSchemaPSDLayerGroup, + CUIThemeSchemaPSDRenditionLayer, + CUIThemeSchemaRendition, + CUIThemeSchemaRenditionGroup, CoreUI, + _CSIRenditionBlockData, _CUIExternalLinkRendition, + _CUIInternalLinkRendition, _CUILayerStackRendition, + _CUIMacOSThemeSchema, + _CUIMultisizeImageSetSizeAndIndex, + _CUINameContentRendition, _CUINineImagePieces, + _CUIPSDStopAndMidpointPair, _CUIPSDSublayerInfo, + _CUIRawDataRendition, _CUIRawPixelRendition, + _CUIRecognitionObjectRendition, _CUISubrangeData, + _CUIThemeColorRendition, _CUIThemeEffectRendition, + _CUIThemeFacetCacheKey, _CUIThemeGradientRendition, + _CUIThemeModelAssetRendition, + _CUIThemeModelMeshRendition, + _CUIThemeModelSubmeshRendition, + _CUIThemeMultisizeImageSetRendition, + _CUIThemePDFRendition, _CUIThemePixelRendition, + _CUIThemeSVGRendition, _CUIThemeTextStyleRendition, + _CUIThemeTextureImageRendition, + _CUIThemeTextureRendition, + _CUIThinningPlaceholderRendition, + _CUIiPhoneOSThemeSchema, _CUTextureLink, + _SchemaRenditionTuple ] + objc-ivars: [ CSIATECHelper.data, CSIATECHelper.glInternalFormat, + CSIATECHelper.height, CSIATECHelper.metalPixelFormat, + CSIATECHelper.rowbytes, CSIATECHelper.twiddled, + CSIATECHelper.width, + CSIBitmapWrapper._allowsCompactCompression, + CSIBitmapWrapper._allowsDeepmap2ImageCompression, + CSIBitmapWrapper._allowsDeepmapImageCompression, + CSIBitmapWrapper._allowsHevcCompression, + CSIBitmapWrapper._allowsMultiPassEncoding, + CSIBitmapWrapper._allowsOptimalRowbytesPacking, + CSIBitmapWrapper._allowsPaletteImageCompression, + CSIBitmapWrapper._bitmapContext, + CSIBitmapWrapper._colorSpaceID, + CSIBitmapWrapper._compressionQuality, + CSIBitmapWrapper._compressionType, + CSIBitmapWrapper._destImage, + CSIBitmapWrapper._exifOrientation, + CSIBitmapWrapper._flipped, CSIBitmapWrapper._height, + CSIBitmapWrapper._imageAlpha, CSIBitmapWrapper._name, + CSIBitmapWrapper._pixelData, + CSIBitmapWrapper._pixelFormat, + CSIBitmapWrapper._rowbytes, + CSIBitmapWrapper._sourceImage, + CSIBitmapWrapper._targetPlatform, + CSIBitmapWrapper._textureInterpretation, + CSIBitmapWrapper._texturePixelFormat, + CSIBitmapWrapper._width, CSIGenerator._alignment, + CSIGenerator._alignmentRectInsets, + CSIGenerator._allowsDeepmap2ImageCompression, + CSIGenerator._allowsDeepmapImageCompression, + CSIGenerator._allowsHevcCompression, + CSIGenerator._allowsMultiPassEncoding, + CSIGenerator._allowsOptimalRowbytesPacking, + CSIGenerator._allowsPaletteImageCompression, + CSIGenerator._alphaCroppedFrame, + CSIGenerator._assetPackIdentifier, + CSIGenerator._baseline, CSIGenerator._bitmaps, + CSIGenerator._blendMode, CSIGenerator._capHeight, + CSIGenerator._clampMetrics, + CSIGenerator._colorComponents, + CSIGenerator._colorSpaceID, + CSIGenerator._compressionQuality, + CSIGenerator._compressionType, + CSIGenerator._containedNamedElements, + CSIGenerator._effectPreset, + CSIGenerator._exifOrientation, + CSIGenerator._externalReferenceFrame, + CSIGenerator._externalTags, CSIGenerator._fontName, + CSIGenerator._fontSize, CSIGenerator._gradient, + CSIGenerator._isCubeMap, + CSIGenerator._isExcludedFromFilter, + CSIGenerator._isFlippable, CSIGenerator._isTintable, + CSIGenerator._isVectorBased, + CSIGenerator._layerReferences, CSIGenerator._layout, + CSIGenerator._linkLayout, CSIGenerator._maxPointSize, + CSIGenerator._meshReferences, CSIGenerator._metrics, + CSIGenerator._minPointSize, + CSIGenerator._mipReferences, + CSIGenerator._modelAsset, CSIGenerator._modelMesh, + CSIGenerator._modelSubmesh, CSIGenerator._modtime, + CSIGenerator._name, CSIGenerator._objectVersion, + CSIGenerator._opacity, + CSIGenerator._optOutOfThinning, + CSIGenerator._originalUncroppedSize, + CSIGenerator._physicalSizeInMeters, + CSIGenerator._pixelFormat, + CSIGenerator._preservedVectorRepresentation, + CSIGenerator._rawData, + CSIGenerator._renditionProperties, + CSIGenerator._rowbytes, CSIGenerator._scaleFactor, + CSIGenerator._scalingStyle, CSIGenerator._size, + CSIGenerator._sizesByIndex, CSIGenerator._slices, + CSIGenerator._standardVectorSize, + CSIGenerator._submeshReferences, + CSIGenerator._systemColorName, + CSIGenerator._targetPlatform, + CSIGenerator._templateRenderingMode, + CSIGenerator._templateVersion, + CSIGenerator._textureFormat, + CSIGenerator._textureInterpretation, + CSIGenerator._textureOpaque, + CSIGenerator._transformation, CSIGenerator._utiType, + CSIGenerator._vectorSizes, CSIHelper._reserved, + CSIHelper.blockDataCacheKeyBGRX, + CSIHelper.blockDataCacheKeyGray, + CSIHelper.blockDataCacheKeyRGBX, CSIHelper.bmp, + CSIHelper.csiData, CSIHelper.rendition, + CSIHelper.renditionLock, CSIHelper.retainedBlockData, + CSIHelper.sharedBlockDataBGRX, + CSIHelper.sharedBlockDataGray, + CSIHelper.sharedBlockDataRGBX, CSIHelper.shouldCache, + CSIHelper.slice, CSIHelper.sourceRowbytes, + CSIHelper.usedForDataProvider, CSITextureHelper.bmp, + CSITextureHelper.colorspaceHint, + CSITextureHelper.height, CSITextureHelper.imageBytes, + CSITextureHelper.pixelFormat, + CSITextureHelper.sourceRowbytes, + CSITextureHelper.width, + CUIBackgroundStyleEffectConfiguration._backgroundType, + CUIBackgroundStyleEffectConfiguration._effectShowsValue, + CUIBackgroundStyleEffectConfiguration._shouldRespectOutputBlending, + CUICatalog._assetStoreName, CUICatalog._bundle, + CUICatalog._fileHasDisplayGamutInKeySpace, + CUICatalog._localObjectCache, + CUICatalog._lookupCache, CUICatalog._negativeCache, + CUICatalog._preferredLocalization, + CUICatalog._purgeWhenFinished, CUICatalog._reserved, + CUICatalog._storageMapTable, CUICatalog._storageRef, + CUICatalog._vibrantColorMatrixTints, + CUIColor._cgColor, + CUICommonAssetStorage._appearancedb, + CUICommonAssetStorage._appearances, + CUICommonAssetStorage._bitmapKeydb, + CUICommonAssetStorage._colordb, + CUICommonAssetStorage._extendedMetadata, + CUICommonAssetStorage._externalTags, + CUICommonAssetStorage._facetKeysdb, + CUICommonAssetStorage._fontdb, + CUICommonAssetStorage._fontsizedb, + CUICommonAssetStorage._globals, + CUICommonAssetStorage._hasAppearanceKey, + CUICommonAssetStorage._hasLocalizationKey, + CUICommonAssetStorage._header, + CUICommonAssetStorage._imagedb, + CUICommonAssetStorage._isMemoryMapped, + CUICommonAssetStorage._keyfmt, + CUICommonAssetStorage._keyfmtindex, + CUICommonAssetStorage._localizationdb, + CUICommonAssetStorage._lock, + CUICommonAssetStorage._renditionInfoCache, + CUICommonAssetStorage._renditionInfoCacheLock, + CUICommonAssetStorage._renditionInfoCacheLookup, + CUICommonAssetStorage._reserved, + CUICommonAssetStorage._swap, CUIImage._cgImage, + CUIMeshBuffer._allocator, CUIMeshBuffer._data, + CUIMeshBuffer._type, CUIMeshBuffer._zone, + CUIMutableCatalog._checkRespondsTo, + CUIMutableCatalog._respondsToCheck, + CUIMutableCommonAssetStorage._bitmapInfo, + CUIMutableCommonAssetStorage._enableLargeCarKeyWorkaround, + CUIMutableCommonAssetStorage._useBitmapIndex, + CUIMutableStructuredThemeStore._apperanceNameIdentifierStore, + CUIMutableStructuredThemeStore._identifier, + CUIMutableStructuredThemeStore._maxApperanceNameIdentifier, + CUIMutableStructuredThemeStore._maxNameIdentifier, + CUIMutableStructuredThemeStore._memoryStore, + CUIMutableStructuredThemeStore._nameIdentifierStore, + CUIMutableStructuredThemeStore._renditionInfoStore, + CUIMutableThemeRendition._image, + CUIMutableThemeRendition._renditionKey, + CUIMutableThemeRendition._renditionMetrics, + CUIMutableThemeRendition._sliceInformation, + CUINamedColor._cgColor, CUINamedColor._colorName, + CUINamedColor._substituteWithSystemColor, + CUINamedImage._imageProperties, CUINamedImage._scale, + CUINamedImageAtlas._atlasImages, + CUINamedImageAtlas._images, + CUINamedImageAtlas._renditions, + CUINamedImageDescription._alignmentEdgeInsets, + CUINamedImageDescription._appearanceName, + CUINamedImageDescription._blendMode, + CUINamedImageDescription._displayGamut, + CUINamedImageDescription._edgeInsets, + CUINamedImageDescription._exifOrientation, + CUINamedImageDescription._idiom, + CUINamedImageDescription._imageType, + CUINamedImageDescription._layoutDirection, + CUINamedImageDescription._resizingMode, + CUINamedImageDescription._scale, + CUINamedImageDescription._sizeClassHorizontal, + CUINamedImageDescription._sizeClassVertical, + CUINamedImageDescription._subtype, + CUINamedImageDescription._templateRenderingMode, + CUINamedLayerImage._blendMode, + CUINamedLayerImage._fixedFrame, + CUINamedLayerImage._frame, + CUINamedLayerImage._opacity, + CUINamedLayerStack._flattenedImageRendition, + CUINamedLayerStack._layers, + CUINamedLayerStack._radiosityImageRendition, + CUINamedLookup._distilledInVersion, + CUINamedLookup._key, CUINamedLookup._lock, + CUINamedLookup._name, CUINamedLookup._odContent, + CUINamedLookup._signature, + CUINamedLookup._storageRef, + CUINamedMultisizeImage._nextSizeSmaller, + CUINamedRecognitionGroup._imageContents, + CUINamedRecognitionGroup._objectContents, + CUINamedRenditionInfo._bitmap, + CUINamedRenditionInfo._keyFormat, + CUINamedTexture._scale, + CUINamedTexture._textureProperties, + CUINamedVectorGlyph._catalog, + CUINamedVectorGlyph._cgImageRef, + CUINamedVectorGlyph._flippable, + CUINamedVectorGlyph._fontMatchingScaleFactor, + CUINamedVectorGlyph._generatedImage, + CUINamedVectorGlyph._layoutDirection, + CUINamedVectorGlyph._lookedupScaleFactor, + CUINamedVectorGlyph._pointSize, + CUIPSDGradient.drawingAngle, + CUIPSDGradient.evaluator, + CUIPSDGradient.gradientStyle, + CUIPSDGradientColorStop.gradientColor, + CUIPSDGradientDoubleColorStop.leadOutColor, + CUIPSDGradientDoubleOpacityStop.leadOutOpacity, + CUIPSDGradientEvaluator.blendMode, + CUIPSDGradientEvaluator.colorMidpointLocations, + CUIPSDGradientEvaluator.colorStops, + CUIPSDGradientEvaluator.fillColor, + CUIPSDGradientEvaluator.opacityMidpointLocations, + CUIPSDGradientEvaluator.opacityStops, + CUIPSDGradientEvaluator.pgeFlags, + CUIPSDGradientEvaluator.smoothingCoefficient, + CUIPSDGradientLayer._gradient, + CUIPSDGradientOpacityStop.opacity, + CUIPSDGradientStop.location, CUIPSDImageLayer._image, + CUIPSDImageRef._file, + CUIPSDImageRef._parsedForLayers, + CUIPSDImageRef._path, CUIPSDImageRef._psd, + CUIPSDImageRef._rootLayers, CUIPSDLayer._blendMode, + CUIPSDLayer._name, CUIPSDLayer._opacity, + CUIPSDLayerBaseRef._imageRef, + CUIPSDLayerBaseRef._layerIndex, + CUIPSDLayerEffectBevelEmboss._altitude, + CUIPSDLayerEffectBevelEmboss._angle, + CUIPSDLayerEffectBevelEmboss._blurSize, + CUIPSDLayerEffectBevelEmboss._direction, + CUIPSDLayerEffectBevelEmboss._highlightBlendMode, + CUIPSDLayerEffectBevelEmboss._highlightColor, + CUIPSDLayerEffectBevelEmboss._highlightOpacity, + CUIPSDLayerEffectBevelEmboss._shadowBlendMode, + CUIPSDLayerEffectBevelEmboss._shadowColor, + CUIPSDLayerEffectBevelEmboss._shadowOpacity, + CUIPSDLayerEffectBevelEmboss._softenSize, + CUIPSDLayerEffectColorOverlay._blendMode, + CUIPSDLayerEffectColorOverlay._color, + CUIPSDLayerEffectColorOverlay._opacity, + CUIPSDLayerEffectComponent._name, + CUIPSDLayerEffectComponent._visible, + CUIPSDLayerEffectDropShadow._angle, + CUIPSDLayerEffectDropShadow._blendMode, + CUIPSDLayerEffectDropShadow._blurSize, + CUIPSDLayerEffectDropShadow._color, + CUIPSDLayerEffectDropShadow._distance, + CUIPSDLayerEffectDropShadow._opacity, + CUIPSDLayerEffectDropShadow._spread, + CUIPSDLayerEffectGradientOverlay._gradient, + CUIPSDLayerEffectInnerGlow._blendMode, + CUIPSDLayerEffectInnerGlow._blurSize, + CUIPSDLayerEffectInnerGlow._color, + CUIPSDLayerEffectInnerGlow._opacity, + CUIPSDLayerEffectInnerShadow._angle, + CUIPSDLayerEffectInnerShadow._blendMode, + CUIPSDLayerEffectInnerShadow._blurSize, + CUIPSDLayerEffectInnerShadow._color, + CUIPSDLayerEffectInnerShadow._distance, + CUIPSDLayerEffectInnerShadow._opacity, + CUIPSDLayerEffectOuterGlow._blendMode, + CUIPSDLayerEffectOuterGlow._blurSize, + CUIPSDLayerEffectOuterGlow._color, + CUIPSDLayerEffectOuterGlow._opacity, + CUIPSDLayerEffectOuterGlow._spread, + CUIPSDLayerEffects._effectList, + CUIPSDLayerEffects._effectScale, + CUIPSDLayerEffects._visible, + CUIPSDLayerEnumerator._currentIndex, + CUIPSDLayerEnumerator._isImageFile, + CUIPSDLayerEnumerator._layerGroup, + CUIPSDLayerGroupRef._sublayerInfo, + CUIPSDLayerMaskRef._isVectorMask, + CUIPSDLayerMaskRef._layerRef, + CUIPSDLayoutMetricsChannel._edgeInsets, + CUIPSDLayoutMetricsChannel._name, CUIPattern._alpha, + CUIPattern._pattern, CUIPattern._patternImage, + CUIRenditionKey._highwaterKeyCount, + CUIRenditionKey._key, CUIRenditionKey._stackKey, + CUIRenditionLayerReference._blendMode, + CUIRenditionLayerReference._fixedFrame, + CUIRenditionLayerReference._frame, + CUIRenditionLayerReference._layerName, + CUIRenditionLayerReference._makeOpaqueIfPossible, + CUIRenditionLayerReference._opacity, + CUIRenditionLayerReference._referenceKey, + CUIRenditionMetrics._auxiliary1BottomLeftMargin, + CUIRenditionMetrics._auxiliary1TopRightMargin, + CUIRenditionMetrics._auxiliary2BottomLeftMargin, + CUIRenditionMetrics._auxiliary2TopRightMargin, + CUIRenditionMetrics._baseline, + CUIRenditionMetrics._contentBottomLeftMargin, + CUIRenditionMetrics._contentTopRightMargin, + CUIRenditionMetrics._crmFlags, + CUIRenditionMetrics._edgeBottomLeftMargin, + CUIRenditionMetrics._edgeTopRightMargin, + CUIRenditionMetrics._imageSize, + CUIRenditionMetrics._scale, + CUIRenditionSliceInformation._boundaries, + CUIRenditionSliceInformation._destinationRect, + CUIRenditionSliceInformation._edgeInsets, + CUIRenditionSliceInformation._renditionType, + CUIRuntimeStatistics._missed_lookup, + CUIRuntimeStatistics._notify_token, + CUIRuntimeStatistics._queue, + CUIRuntimeStatistics._shortCircuitImageLookup, + CUIRuntimeStatistics._total_initial_lookups, + CUIRuntimeStatistics._total_lookup, + CUIRuntimeStatistics._total_probes, + CUIRuntimeStatistics._total_size, + CUIRuntimeStatistics._wasted_size, + CUIShapeEffectPreset._effectIndex, + CUIShapeEffectPreset._minimumShadowSpread, + CUIShapeEffectPreset._parameterList, + CUIShapeEffectPreset._scaleFactor, + CUIShapeEffectStack._bevelEmbossCount, + CUIShapeEffectStack._colorOverlay, + CUIShapeEffectStack._colorOverlayCount, + CUIShapeEffectStack._emboss, + CUIShapeEffectStack._engraveShadow, + CUIShapeEffectStack._engraveShadowCount, + CUIShapeEffectStack._extraShadow, + CUIShapeEffectStack._extraShadowCount, + CUIShapeEffectStack._hueSaturation, + CUIShapeEffectStack._hueSaturationCount, + CUIShapeEffectStack._innerGlow, + CUIShapeEffectStack._innerGlowCount, + CUIShapeEffectStack._innerGradient, + CUIShapeEffectStack._innerGradientCount, + CUIShapeEffectStack._innerShadow, + CUIShapeEffectStack._innerShadowCount, + CUIShapeEffectStack._outerGlow, + CUIShapeEffectStack._outerGlowCount, + CUIShapeEffectStack._outputBlendMode, + CUIShapeEffectStack._outputOpacity, + CUIShapeEffectStack._renderStrategy, + CUIShapeEffectStack._scalefactor, + CUIShapeEffectStack._shapeOpacity, + CUIStructuredThemeStore._aliasDictionary, + CUIStructuredThemeStore._attributePresent, + CUIStructuredThemeStore._bundleID, + CUIStructuredThemeStore._cache, + CUIStructuredThemeStore._cacheLock, + CUIStructuredThemeStore._legacyFlippableSet, + CUIStructuredThemeStore._mainBundle, + CUIStructuredThemeStore._namedRenditionKeyCache, + CUIStructuredThemeStore._store, + CUIStructuredThemeStore._storeLock, + CUIStructuredThemeStore._themeIndex, + CUIStyleEffectConfiguration._appearanceName, + CUIStyleEffectConfiguration._brightnessMultiplier, + CUIStyleEffectConfiguration._colorTemperature, + CUIStyleEffectConfiguration._dimension1, + CUIStyleEffectConfiguration._effectScale, + CUIStyleEffectConfiguration._foregroundColorShouldTintEffects, + CUIStyleEffectConfiguration._presentationState, + CUIStyleEffectConfiguration._state, + CUIStyleEffectConfiguration._useSimplifiedEffect, + CUIStyleEffectConfiguration._value, + CUITextEffectStack._renderHighQuality, + CUITextStyle._alignment, CUITextStyle._fontName, + CUITextStyle._fontSize, CUITextStyle._maxPointSize, + CUITextStyle._minPointSize, + CUITextStyle._scalingStyle, CUIThemeFacet._fFlags, + CUIThemeFacet._hotSpot, CUIThemeFacet._isTintable, + CUIThemeFacet._renditionKeyList, + CUIThemeFacet._renditionType, + CUIThemeFacet._themeIndex, + CUIThemeFacet._thumbnailSize, + CUIThemeGradient._gradientImage, + CUIThemeGradient.colorShader, + CUIThemeGradient.colorSpace, + CUIThemeGradient.gradientEvaluator, + CUIThemeRendition._blendMode, + CUIThemeRendition._colorSpaceID, + CUIThemeRendition._exifOrientation, + CUIThemeRendition._key, CUIThemeRendition._name, + CUIThemeRendition._opacity, + CUIThemeRendition._physicalSizeInMeters, + CUIThemeRendition._properties, + CUIThemeRendition._renditionFlags, + CUIThemeRendition._scale, CUIThemeRendition._srcData, + CUIThemeRendition._stackKey, + CUIThemeRendition._subtype, + CUIThemeRendition._templateRenderingMode, + CUIThemeRendition._type, + CUIThemeRendition._uncroppedImage, + CUIThemeRendition._utiType, + CUIThemeSchemaEffectRendition._cuiInfo, + CUIThemeSchemaEffectRendition._effectPreset, + CUIThemeSchemaEffectRendition._referenceImage, + CUIThemeSchemaLayer._index, + CUIThemeSchemaLayer._name, + CUIThemeSchemaLayer._renditions, + CUIThemeSchemaPSDLayer.name, + CUIThemeSchemaPSDLayerGroup.isStart, + CUIThemeSchemaPSDRenditionLayer.rendition, + CUIThemeSchemaRendition._columnSlices, + CUIThemeSchemaRendition._contentInsets, + CUIThemeSchemaRendition._elementRect, + CUIThemeSchemaRendition._gradient, + CUIThemeSchemaRendition._image, + CUIThemeSchemaRendition._intrinsicSize, + CUIThemeSchemaRendition._layoutRects, + CUIThemeSchemaRendition._nimages, + CUIThemeSchemaRendition._rowSlices, + CUIThemeSchemaRendition.cuiInfo, + CUIThemeSchemaRenditionGroup._baseKey, + CUIThemeSchemaRenditionGroup._part, + CUIThemeSchemaRenditionGroup._renditions, + _CSIRenditionBlockData._allocateMemory, + _CSIRenditionBlockData._allocationSize, + _CSIRenditionBlockData._data, + _CSIRenditionBlockData._dataPixelFormat, + _CSIRenditionBlockData._imageBlockReleaseCount, + _CSIRenditionBlockData._imageBytes, + _CSIRenditionBlockData._mmappedData, + _CSIRenditionBlockData._name, + _CSIRenditionBlockData._nrows, + _CSIRenditionBlockData._pixelFormat, + _CSIRenditionBlockData._rowbytes, + _CSIRenditionBlockData._sourceRowbytes, + _CUIExternalLinkRendition._assetPackIdentifier, + _CUIExternalLinkRendition._externalTags, + _CUIInternalLinkRendition._alphaCroppedFrame, + _CUIInternalLinkRendition._frame, + _CUIInternalLinkRendition._image, + _CUIInternalLinkRendition._imageRect, + _CUIInternalLinkRendition._nimages, + _CUIInternalLinkRendition._originalUncroppedSize, + _CUIInternalLinkRendition._referenceKey, + _CUIInternalLinkRendition._renditionMetrics, + _CUIInternalLinkRendition._sliceInformation, + _CUIInternalLinkRendition._sourceProvider, + _CUIInternalLinkRendition._unslicedImage, + _CUILayerStackRendition._layers, + _CUILayerStackRendition._renditionMetrics, + _CUIMultisizeImageSetSizeAndIndex._idiom, + _CUIMultisizeImageSetSizeAndIndex._index, + _CUIMultisizeImageSetSizeAndIndex._size, + _CUIMultisizeImageSetSizeAndIndex._subtype, + _CUINameContentRendition._contentNames, + _CUINineImagePieces._bottom, + _CUINineImagePieces._bottomLeft, + _CUINineImagePieces._bottomRight, + _CUINineImagePieces._center, + _CUINineImagePieces._left, + _CUINineImagePieces._right, + _CUINineImagePieces._tileCenterAndEdges, + _CUINineImagePieces._top, + _CUINineImagePieces._topLeft, + _CUINineImagePieces._topRight, + _CUIPSDStopAndMidpointPair.midpoint, + _CUIPSDStopAndMidpointPair.stop, + _CUIPSDSublayerInfo._numOfSublayers, + _CUIRawDataRendition._dataBytes, + _CUIRawPixelRendition._image, + _CUIRawPixelRendition._nimages, + _CUIRawPixelRendition._pixelFormat, + _CUIRawPixelRendition._rawData, + _CUIRawPixelRendition._renditionMetrics, + _CUIRawPixelRendition._sliceInformation, + _CUIRawPixelRendition._unslicedImage, + _CUIRecognitionObjectRendition._objectVersion, + _CUIRecognitionObjectRendition._transformation, + _CUISubrangeData._data, _CUISubrangeData._range, + _CUIThemeColorRendition._cgColor, + _CUIThemeColorRendition._colorName, + _CUIThemeColorRendition._csiColor, + _CUIThemeEffectRendition._effectPreset, + _CUIThemeEffectRendition._minimumShadowSpread, + _CUIThemeEffectRendition.effectData, + _CUIThemeFacetCacheKey.hashPrecalc, + _CUIThemeFacetCacheKey.keyList, + _CUIThemeFacetCacheKey.themeIndex, + _CUIThemeGradientRendition.gradient, + _CUIThemeGradientRendition.gradientAngle, + _CUIThemeModelAssetRendition._asset, + _CUIThemeModelAssetRendition._meshKeys, + _CUIThemeModelMeshRendition._mesh, + _CUIThemeModelMeshRendition._submeshKeys, + _CUIThemeModelSubmeshRendition._submesh, + _CUIThemeMultisizeImageSetRendition._sizeIndexes, + _CUIThemePDFRendition._pdfDocument, + _CUIThemePixelRendition._cachedBlockDataBGRX, + _CUIThemePixelRendition._cachedBlockDataGray, + _CUIThemePixelRendition._cachedBlockDataRGBX, + _CUIThemePixelRendition._image, + _CUIThemePixelRendition._layers, + _CUIThemePixelRendition._nimages, + _CUIThemePixelRendition._renditionMetrics, + _CUIThemePixelRendition._sliceInformation, + _CUIThemePixelRendition._sourceRowbytes, + _CUIThemePixelRendition._unslicedImage, + _CUIThemePixelRendition._unslicedSize, + _CUIThemeSVGRendition._alignmentRectInsets, + _CUIThemeSVGRendition._baseline, + _CUIThemeSVGRendition._canvasSize, + _CUIThemeSVGRendition._capline, + _CUIThemeSVGRendition._fileData, + _CUIThemeSVGRendition._isAlignmentRect, + _CUIThemeSVGRendition._lock, + _CUIThemeSVGRendition._standardPointSize, + _CUIThemeSVGRendition._svgDocument, + _CUIThemeSVGRendition._templateVersion, + _CUIThemeSVGRendition._vectorSizes, + _CUIThemeTextStyleRendition._csiTextStyle, + _CUIThemeTextureImageRendition._textureImages, + _CUIThemeTextureRendition._sourceProvider, + _CUIThemeTextureRendition._textureInfo, + _CUIThemeTextureRendition._textureInterpretation, + _CUIThemeTextureRendition._textureMipLevels, + _CUIThemeTextureRendition._textureSourceImageOpaque, + _CUTextureLink._bufferAllocator, + _CUTextureLink._namedTexture, + _SchemaRenditionTuple.info, + _SchemaRenditionTuple.key ] +... diff --git a/TrollTools/Private APIs/AssetCatalogWrapper/CoreUI/structs.h b/TrollTools/Private APIs/AssetCatalogWrapper/CoreUI/structs.h new file mode 100644 index 0000000..1ebadac --- /dev/null +++ b/TrollTools/Private APIs/AssetCatalogWrapper/CoreUI/structs.h @@ -0,0 +1,37 @@ +// +// structs.h +// Santander +// +// Created by Serena on 27/09/2022 +// + + +#ifndef structs_h +#define structs_h + +struct renditionkeytoken { + unsigned short identifier; + unsigned short value; +}; + +struct rgbquad { + unsigned int b:8; + unsigned int g:8; + unsigned int r:8; + unsigned int a:8; +}; + +struct cuithemerenditionrenditionflags { + unsigned int isHeaderFlaggedFPO:1; + unsigned int isExcludedFromContrastFilter:1; + unsigned int isVectorBased:1; + unsigned int isOpaque:1; + unsigned int bitmapEncoding:4; + unsigned int optOutOfThinning:1; + unsigned int isFlippable:1; + unsigned int isTintable:1; + unsigned int preservedVectorRepresentation:1; + unsigned int reserved:20; +}; + +#endif /* structs_h */