Files
MapLibreParticleLab/platform/macos/src/MLNAttributionButton.h
mwilsnd 20d9e1028c Platform flattening overhaul (#1393)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Bart Louwers <bart@emeel.net>
2023-07-26 17:50:34 +02:00

26 lines
564 B
Objective-C

#import <Cocoa/Cocoa.h>
#import "MLNFoundation.h"
#import "MLNTypes.h"
NS_ASSUME_NONNULL_BEGIN
@class MLNAttributionInfo;
/// Button that looks like a hyperlink and opens a URL.
MLN_EXPORT
@interface MLNAttributionButton : NSButton
/// Returns an `MLNAttributionButton` instance with the given info.
- (instancetype)initWithAttributionInfo:(MLNAttributionInfo *)info;
/// The URL to open and display as a tooltip.
@property (nonatomic, readonly, nullable) NSURL *URL;
/// Opens the URL.
- (IBAction)openURL:(nullable id)sender;
@end
NS_ASSUME_NONNULL_END