summaryrefslogtreecommitdiff
path: root/platform/macos/src/MGLAttributionButton.h
blob: 9ff31378492522e76c47cd747dfe557a6dbf8321 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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