Added defaultForegroundColor
[MacVim/jjgod.git] / MMTextStorage.h
blob49fb97eba8a15042ad15b47283cb03f56a94458f
1 /* vi:set ts=8 sts=4 sw=4 ft=objc:
3 * VIM - Vi IMproved by Bram Moolenaar
4 * MacVim GUI port by Bjorn Winckler
6 * Do ":help uganda" in Vim to read copying and usage conditions.
7 * Do ":help credits" in Vim to see a list of people who contributed.
8 * See README.txt for an overview of the Vim source code.
9 */
11 #import <Cocoa/Cocoa.h>
16 @interface MMTextStorage : NSTextStorage {
17 NSMutableAttributedString *attribString;
18 int maxRows, maxColumns;
19 int actualRows, actualColumns;
20 NSAttributedString *emptyRowString;
21 NSFont *font;
22 NSColor *defaultBackgroundColor;
23 NSColor *defaultForegroundColor;
24 NSSize cellSize;
27 - (NSString *)string;
28 - (NSDictionary *)attributesAtIndex:(unsigned)index
29 effectiveRange:(NSRangePointer)aRange;
30 - (void)replaceCharactersInRange:(NSRange)aRange
31 withString:(NSString *)aString;
32 - (void)setAttributes:(NSDictionary *)attributes range:(NSRange)aRange;
34 - (int)maxRows;
35 - (int)maxColumns;
36 - (void)getMaxRows:(int*)rows columns:(int*)cols;
37 - (void)setMaxRows:(int)rows columns:(int)cols;
38 - (void)replaceString:(NSString *)string atRow:(int)row column:(int)col
39 withFlags:(int)flags foregroundColor:(NSColor *)fg
40 backgroundColor:(NSColor *)bg specialColor:(NSColor *)sp;
41 - (void)deleteLinesFromRow:(int)row lineCount:(int)count
42 scrollBottom:(int)bottom left:(int)left right:(int)right
43 color:(NSColor *)color;
44 - (void)insertLinesAtRow:(int)row lineCount:(int)count
45 scrollBottom:(int)bottom left:(int)left right:(int)right
46 color:(NSColor *)color;
47 - (void)clearBlockFromRow:(int)row1 column:(int)col1 toRow:(int)row2
48 column:(int)col2 color:(NSColor *)color;
49 - (void)clearAllWithColor:(NSColor *)color;
50 - (void)setDefaultColorsBackground:(NSColor *)bgColor
51 foreground:(NSColor *)fgColor;
52 - (void)setFont:(NSFont *)newFont;
53 - (NSFont *)font;
54 - (NSColor *)defaultBackgroundColor;
55 - (NSColor *)defaultForegroundColor;
56 - (NSSize)size;
57 - (NSSize)cellSize;
58 - (NSRect)rectForRowsInRange:(NSRange)range;
59 - (NSRect)rectForColumnsInRange:(NSRange)range;
60 - (unsigned)characterIndexForRow:(int)row column:(int)col;
61 - (BOOL)resizeToFitSize:(NSSize)size;
62 - (NSSize)fitToSize:(NSSize)size;
63 - (NSSize)fitToSize:(NSSize)size rows:(int *)rows columns:(int *)columns;
65 @end