This repository has been archived by the owner on Jan 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add UXImageView, UXSourceController, NSIndexPath categories
- Loading branch information
Showing
6 changed files
with
86 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** | ||
* UXKit headers, derived from reverse engineering | ||
* Reversed by Adam D (kirb), licensed under WTFPL v2 | ||
*/ | ||
|
||
@interface NSIndexPath (UXCollectionViewAdditions) | ||
|
||
+ (instancetype)indexPathForItem:(NSUInteger)item inSection:(NSUInteger)section; | ||
|
||
@property (readonly, nonatomic) NSUInteger section; | ||
@property (readonly, nonatomic) NSUInteger item; | ||
|
||
@end |
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,13 @@ | ||
/** | ||
* UXKit headers, derived from reverse engineering | ||
* Reversed by Adam D (kirb), licensed under WTFPL v2 | ||
*/ | ||
|
||
@interface NSIndexPath (UXTableView) | ||
|
||
+ (instancetype)indexPathForRow:(NSUInteger)row inSection:(NSUInteger)section; | ||
|
||
@property (readonly, nonatomic) NSUInteger section; | ||
@property (readonly, nonatomic) NSUInteger row; | ||
|
||
@end |
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,21 @@ | ||
/** | ||
* UXKit headers, derived from reverse engineering | ||
* Reversed by Adam D (kirb), licensed under WTFPL v2 | ||
*/ | ||
|
||
@interface UXImageView : UXView | ||
|
||
@property (retain, nonatomic) NSImage *image; | ||
|
||
- (instancetype)initWithImage:(NSImage *)image; | ||
|
||
- (void)sizeToFit; | ||
- (void)setFrameSize:(CGSize)frameSize; | ||
|
||
@property (readonly) CGSize intrinsicContentSize; | ||
@property (retain, nonatomic) NSString *accessibilityLabel; | ||
|
||
- (void)viewWillMoveToWindow:(NSWindow *)window; | ||
- (void)viewDidChangeBackingProperties; | ||
|
||
@end |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/** | ||
* UXKit headers, derived from reverse engineering | ||
* Reversed by Adam D (kirb), licensed under WTFPL v2 | ||
*/ | ||
|
||
#import "UXViewController.h" | ||
|
||
typedef NS_ENUM(NSUInteger, UXSourceControllerStyle) { | ||
UXSourceControllerStyleTabBar, | ||
UXSourceControllerStyleSplitView | ||
}; | ||
|
||
@class _UXSourceSplitView; | ||
|
||
@protocol UXSourceList; | ||
|
||
@interface UXSourceController : UXViewController | ||
|
||
@property (retain, nonatomic) NSArray *rootViewControllers; | ||
@property (retain, nonatomic) UXViewController *selectedViewController; | ||
|
||
@property (readonly, nonatomic) NSSegmentedControl *segmentedControl; | ||
@property (readonly, nonatomic) _UXSourceSplitView *splitView; | ||
|
||
@property (retain, nonatomic) UXViewController<UXSourceList> *sourceListViewController; | ||
@property (copy, nonatomic) NSString *sourceListAutosaveName; | ||
|
||
@property (nonatomic) UXSourceControllerStyle style; | ||
@property (nonatomic) UXSourceControllerStyle preferredStyle; | ||
|
||
@property (readonly, nonatomic) NSMapTable *transitionControllerClassByToViewControllerClass; | ||
@property (readonly, nonatomic) NSMapTable *navigationControllerByRootViewController; | ||
@property (readonly) NSOperationQueue *viewControllerOperations; | ||
|
||
@end |
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