Files
MapLibreParticleLab/platform/macos/src/MGLAttributionButton.h
Minh Nguyễn b9702ef41a [macos] Renamed OS X SDK to macOS SDK
Also renamed as many references to OS X as possible to macOS in documentation.
2016-06-14 10:02:06 +02:00

16 lines
407 B
Objective-C

#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