diff options
Diffstat (limited to 'platform/macos/src/MGLAttributionButton.h')
-rw-r--r-- | platform/macos/src/MGLAttributionButton.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/platform/macos/src/MGLAttributionButton.h b/platform/macos/src/MGLAttributionButton.h new file mode 100644 index 0000000000..9ff3137849 --- /dev/null +++ b/platform/macos/src/MGLAttributionButton.h @@ -0,0 +1,15 @@ +#import <Cocoa/Cocoa.h> + +/// Button that looks like a hyperlink and opens a URL. +@interface MGLAttributionButton : NSButton + +/// Returns an `MGLAttributionButton` instance with the given title and URL. +- (instancetype)initWithTitle:(NSString *)title URL:(NSURL *)url; + +/// The URL to open and display as a tooltip. +@property (nonatomic) NSURL *URL; + +/// Opens the URL. +- (IBAction)openURL:(id)sender; + +@end |