mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-11 15:37:29 +02:00
5db52978b5
git-svn-id: http://macvim.googlecode.com/svn/trunk@224 96c4425d-ca35-0410-94e5-3396d5c13a8f
74 lines
2.7 KiB
Objective-C
74 lines
2.7 KiB
Objective-C
/* vi:set ts=8 sts=4 sw=4 ft=objc:
|
|
*
|
|
* VIM - Vi IMproved by Bram Moolenaar
|
|
* MacVim GUI port by Bjorn Winckler
|
|
*
|
|
* Do ":help uganda" in Vim to read copying and usage conditions.
|
|
* Do ":help credits" in Vim to see a list of people who contributed.
|
|
* See README.txt for an overview of the Vim source code.
|
|
*/
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
|
|
|
|
|
@interface MMTextStorage : NSTextStorage {
|
|
NSMutableAttributedString *attribString;
|
|
int maxRows, maxColumns;
|
|
int actualRows, actualColumns;
|
|
NSAttributedString *emptyRowString;
|
|
NSFont *font;
|
|
NSFont *boldFont;
|
|
NSFont *italicFont;
|
|
NSFont *boldItalicFont;
|
|
NSColor *defaultBackgroundColor;
|
|
NSColor *defaultForegroundColor;
|
|
NSSize cellSize;
|
|
float linespace;
|
|
}
|
|
|
|
- (NSString *)string;
|
|
- (NSDictionary *)attributesAtIndex:(unsigned)index
|
|
effectiveRange:(NSRangePointer)aRange;
|
|
- (void)replaceCharactersInRange:(NSRange)aRange
|
|
withString:(NSString *)aString;
|
|
- (void)setAttributes:(NSDictionary *)attributes range:(NSRange)aRange;
|
|
|
|
- (int)maxRows;
|
|
- (int)maxColumns;
|
|
- (int)actualRows;
|
|
- (int)actualColumns;
|
|
- (float)linespace;
|
|
- (void)setLinespace:(float)newLinespace;
|
|
- (void)getMaxRows:(int*)rows columns:(int*)cols;
|
|
- (void)setMaxRows:(int)rows columns:(int)cols;
|
|
- (void)replaceString:(NSString *)string atRow:(int)row column:(int)col
|
|
withFlags:(int)flags foregroundColor:(NSColor *)fg
|
|
backgroundColor:(NSColor *)bg specialColor:(NSColor *)sp;
|
|
- (void)deleteLinesFromRow:(int)row lineCount:(int)count
|
|
scrollBottom:(int)bottom left:(int)left right:(int)right
|
|
color:(NSColor *)color;
|
|
- (void)insertLinesAtRow:(int)row lineCount:(int)count
|
|
scrollBottom:(int)bottom left:(int)left right:(int)right
|
|
color:(NSColor *)color;
|
|
- (void)clearBlockFromRow:(int)row1 column:(int)col1 toRow:(int)row2
|
|
column:(int)col2 color:(NSColor *)color;
|
|
- (void)clearAllWithColor:(NSColor *)color;
|
|
- (void)setDefaultColorsBackground:(NSColor *)bgColor
|
|
foreground:(NSColor *)fgColor;
|
|
- (void)setFont:(NSFont *)newFont;
|
|
- (NSFont *)font;
|
|
- (NSColor *)defaultBackgroundColor;
|
|
- (NSColor *)defaultForegroundColor;
|
|
- (NSSize)size;
|
|
- (NSSize)cellSize;
|
|
- (NSRect)rectForRowsInRange:(NSRange)range;
|
|
- (NSRect)rectForColumnsInRange:(NSRange)range;
|
|
- (unsigned)characterIndexForRow:(int)row column:(int)col;
|
|
- (BOOL)resizeToFitSize:(NSSize)size;
|
|
- (NSSize)fitToSize:(NSSize)size;
|
|
- (NSSize)fitToSize:(NSSize)size rows:(int *)rows columns:(int *)columns;
|
|
|
|
@end
|