//
//  GSNullPen.h
//  GlyphsCore
//
//  Created by Florian Pircher on 2024-09-10.
//  Copyright © 2024 schriftgestaltung.de. All rights reserved.
//

#import <GlyphsCore/GSPenProtocol.h>

NS_ASSUME_NONNULL_BEGIN

/// A pen that does nothing except fulfill the pen protocol.
///
/// Useful as the required first argument in `-drawInPen:…` methods when only the other parameters are of interest.
@interface GSNullPen : NSObject <GSPenProtocol>

/// The last point to which the pen was drawn.
///
/// Updating this value is the only operation that the pen performs.
@property (readonly, nonatomic) NSPoint lastPoint;

@end

NS_ASSUME_NONNULL_END
