-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fa85ff8
commit e126fd0
Showing
13 changed files
with
1,055 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
TrollTools/Private APIs/AssetCatalogWrapper/CoreUI/CSIBitmapWrapper.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 */ |
35 changes: 35 additions & 0 deletions
35
TrollTools/Private APIs/AssetCatalogWrapper/CoreUI/CSIGenerator.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 */ |
27 changes: 27 additions & 0 deletions
27
TrollTools/Private APIs/AssetCatalogWrapper/CoreUI/CUICatalog.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 */ |
48 changes: 48 additions & 0 deletions
48
TrollTools/Private APIs/AssetCatalogWrapper/CoreUI/CUICommonAssetStorage.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 */ |
24 changes: 24 additions & 0 deletions
24
TrollTools/Private APIs/AssetCatalogWrapper/CoreUI/CUINamedLookup.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 */ |
Oops, something went wrong.