1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
//
// HFRepresenterTextViewCallout.h
// HexFiend_2
//
// Copyright 2011 ridiculous_fish. All rights reserved.
//
#import <Foundation/Foundation.h>
@class HFRepresenterTextView;
#define kHFRepresenterTextViewCalloutMaxGlyphCount 2u
@interface HFRepresenterTextViewCallout : NSObject {
CGFloat rotation;
NSPoint tipOrigin;
NSPoint pinStart, pinEnd;
}
@property(nonatomic) NSInteger byteOffset;
@property(nonatomic, copy) NSColor *color;
@property(nonatomic, copy) NSString *label;
@property(nonatomic, retain) id representedObject;
@property(readonly) NSRect rect;
+ (void)layoutCallouts:(NSArray *)callouts inView:(HFRepresenterTextView *)textView;
- (void)drawShadowWithClip:(NSRect)clip;
- (void)drawWithClip:(NSRect)clip;
@end
|