Files
MapLibreParticleLab/include/mbgl/osx/MGLAnnotationImage.h
Minh Nguyễn 004d04075a [osx] Annotation cursors
Also added an option to osxapp for assigning a random cursor to all the annotations each time an annotation is added or removed.
2015-12-13 17:26:53 -08:00

21 lines
623 B
Objective-C

#import <AppKit/AppKit.h>
#import "MGLTypes.h"
NS_ASSUME_NONNULL_BEGIN
@interface MGLAnnotationImage : NSObject
+ (instancetype)annotationImageWithImage:(NSImage *)image reuseIdentifier:(NSString *)reuseIdentifier;
@property (nonatomic, readonly) NSImage *image;
@property (nonatomic, readonly) NSString *reuseIdentifier;
@property (nonatomic, getter=isSelectable) BOOL selectable;
/** The cursor that appears above any annotation using this annotation image. By default this property is set to `nil`, representing the current cursor. */
@property (nonatomic, nullable) NSCursor *cursor;
@end
NS_ASSUME_NONNULL_END