HexFiend
HFLineCountingView.h
Go to the documentation of this file.
1 //
2 // HFLineCountingView.h
3 // HexFiend_2
4 //
5 // Copyright 2007 ridiculous_fish. All rights reserved.
6 //
7 
8 #import <Cocoa/Cocoa.h>
9 #import <HexFiend/HFLineCountingRepresenter.h>
10 
11 @interface HFLineCountingView : NSView {
12  NSLayoutManager *layoutManager;
13  NSTextStorage *textStorage;
14  NSTextContainer *textContainer;
15  NSDictionary *textAttributes;
16 
17  unsigned long long storedLineIndex;
18  NSUInteger storedLineCount;
19  BOOL useStringDrawingPath;
20  BOOL registeredForAppNotifications;
21 }
22 
23 @property (nonatomic, copy) NSFont *font;
24 @property (nonatomic) CGFloat lineHeight;
25 @property (nonatomic) HFFPRange lineRangeToDraw;
26 @property (nonatomic) NSUInteger bytesPerLine;
27 @property (nonatomic) HFLineNumberFormat lineNumberFormat;
28 @property (nonatomic, assign) HFLineCountingRepresenter *representer;
29 
30 + (NSUInteger)digitsRequiredToDisplayLineNumber:(unsigned long long)lineNumber inFormat:(HFLineNumberFormat)format;
31 
32 @end
The HFRepresenter used to show the "line number gutter.".
Definition: HFLineCountingRepresenter.h:24
NSFont * font
Definition: HFLineCountingView.h:13
HFFPRange lineRangeToDraw
Definition: HFLineCountingView.h:15
NSUInteger bytesPerLine
Definition: HFLineCountingView.h:16
Definition: HFLineCountingView.h:11
HFLineNumberFormat lineNumberFormat
Definition: HFLineCountingView.h:17
CGFloat lineHeight
Definition: HFLineCountingView.h:14
HFLineNumberFormat
Definition: HFLineCountingRepresenter.h:13
HFFPRange is a struct used for representing floating point ranges, similar to NSRange. It contains two long doubles.
Definition: HFTypes.h:10
HFLineCountingRepresenter * representer
Definition: HFLineCountingView.h:18