No CF calls between fork() and exec()
[MacVim.git] / src / MacVim / MMAtsuiTextView.h
blob320308abe485c9bf1fe238e2db573be648448d94
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>
14 enum { MMMaxCellsPerChar = 2 };
17 @interface MMAtsuiTextView : NSView {
18 // From MMTextStorage
19 int maxRows, maxColumns;
20 NSColor *defaultBackgroundColor;
21 NSColor *defaultForegroundColor;
22 NSSize cellSize;
23 NSFont *font;
24 float linespace;
26 // From NSTextView
27 NSSize insetSize;
29 // From vim-cocoa
30 NSImage *contentImage;
31 NSSize imageSize;
32 ATSUStyle atsuStyles[MMMaxCellsPerChar];
35 - (id)initWithFrame:(NSRect)frame;
38 // MMTextStorage methods
40 - (void)getMaxRows:(int*)rows columns:(int*)cols;
41 - (void)setMaxRows:(int)rows columns:(int)cols;
42 - (void)setDefaultColorsBackground:(NSColor *)bgColor
43 foreground:(NSColor *)fgColor;
44 - (NSRect)rectForRowsInRange:(NSRange)range;
45 - (NSRect)rectForColumnsInRange:(NSRange)range;
47 - (void)setFont:(NSFont *)newFont;
48 - (void)setWideFont:(NSFont *)newFont;
49 - (NSFont *)font;
50 - (NSSize)cellSize;
51 - (void)setLinespace:(float)newLinespace;
54 // MMTextView methods
56 - (NSEvent *)lastMouseDownEvent;
57 - (void)setShouldDrawInsertionPoint:(BOOL)on;
58 - (void)setPreEditRow:(int)row column:(int)col;
59 - (void)hideMarkedTextField;
62 // NSTextView methods
64 - (void)keyDown:(NSEvent *)event;
65 - (void)insertText:(id)string;
66 - (void)doCommandBySelector:(SEL)selector;
67 - (BOOL)performKeyEquivalent:(NSEvent *)event;
70 // NSTextContainer methods
72 - (void)setTextContainerInset:(NSSize)inset;
75 // MMAtsuiTextView methods
77 - (void)performBatchDrawWithData:(NSData *)data;
78 - (NSSize)desiredSize;
79 - (NSSize)minSize;
80 - (NSSize)constrainRows:(int *)rows columns:(int *)cols toSize:(NSSize)size;
82 @end