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
/
Copy pathUXBarButtonItem.h
51 lines (34 loc) · 1.67 KB
/
UXBarButtonItem.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// UXKit headers, derived from reverse engineering by Adam Demasi (@kirb)
// This is free and unencumbered software released into the public domain. Refer to LICENSE.md.
#import "UXBarItem.h"
#import "UXKitAppearance.h"
#import <Cocoa/Cocoa.h>
typedef NS_ENUM(NSUInteger, UXBarButtonItemStyle) {
UXBarButtonItemStylePlain,
UXBarButtonItemStyleBordered,
UXBarButtonItemStyleDone, // seemingly unused, but kept for compatibility
};
/*
no system items seem to be implemented
typedef NS_ENUM(NSUInteger, UXBarButtonSystemItem) {
};
*/
@class UXViewController;
@interface UXBarButtonItem : UXBarItem <UXKitAppearance>
@property (retain, nonatomic) NSView *customView;
@property (readonly, nonatomic) UXViewController *contentViewController;
@property (nonatomic) __weak id target;
@property (nonatomic) SEL action;
@property (nonatomic) double width;
@property (nonatomic) long long style;
@property (retain, nonatomic) NSString *toolTip;
@property (nonatomic) BOOL ignoresMultiClick;
@property (retain, nonatomic) NSString *keyEquivalent;
@property (nonatomic) NSUInteger keyEquivalentModifierMask;
- (instancetype)initWithStyle:(UXBarButtonItemStyle)style target:(id)target action:(SEL)action;
- (instancetype)initWithTitle:(NSString *)title style:(UXBarButtonItemStyle)style target:(id)target action:(SEL)action;
- (instancetype)initWithImage:(NSImage *)image style:(UXBarButtonItemStyle)style target:(id)target action:(SEL)action;
// - (instancetype)initWithBarButtonSystemItem:(UXBarButtonSystemItem)systemItem target:(id)target action:(SEL)action;
- (instancetype)initWithContentViewController:(UXViewController *)viewController;
- (instancetype)initWithCustomView:(NSView *)customView;
@end