Dialogs are always displayed in the default run loop mode
[MacVim.git] / src / MacVim / MMTextView.h
blob264f6207b04ffef5c23fb52c11c38258c24d6161
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 @interface MMTextView : NSTextView {
15 BOOL shouldDrawInsertionPoint;
16 NSTrackingRectTag trackingRectTag;
17 BOOL isDragging;
18 BOOL isAutoscrolling;
19 int dragRow;
20 int dragColumn;
21 int dragFlags;
22 NSPoint dragPoint;
23 int insertionPointRow;
24 int insertionPointColumn;
25 int insertionPointShape;
26 int insertionPointFraction;
27 NSTextField *markedTextField;
28 int preEditRow;
29 int preEditColumn;
30 int mouseShape;
31 BOOL antialias;
32 NSRect *invertRects;
33 int numInvertRects;
36 - (id)initWithFrame:(NSRect)frame;
38 - (void)setShouldDrawInsertionPoint:(BOOL)on;
39 - (void)setPreEditRow:(int)row column:(int)col;
40 - (void)hideMarkedTextField;
41 - (void)performBatchDrawWithData:(NSData *)data;
42 - (void)setMouseShape:(int)shape;
43 - (void)setAntialias:(BOOL)antialias;
46 // MMTextStorage methods
48 - (NSFont *)font;
49 - (void)setFont:(NSFont *)newFont;
50 - (void)setWideFont:(NSFont *)newFont;
51 - (NSSize)cellSize;
52 - (void)setLinespace:(float)newLinespace;
53 - (void)getMaxRows:(int*)rows columns:(int*)cols;
54 - (void)setMaxRows:(int)rows columns:(int)cols;
55 - (NSRect)rectForRowsInRange:(NSRange)range;
56 - (NSRect)rectForColumnsInRange:(NSRange)range;
57 - (void)setDefaultColorsBackground:(NSColor *)bgColor
58 foreground:(NSColor *)fgColor;
60 - (NSSize)constrainRows:(int *)rows columns:(int *)cols toSize:(NSSize)size;
61 - (NSSize)desiredSize;
62 - (NSSize)minSize;
64 @end