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.
11 #import <Cocoa/Cocoa.h>
14 @interface MMTextView
: NSTextView
{
15 BOOL shouldDrawInsertionPoint
;
16 NSTrackingRectTag trackingRectTag
;
23 int insertionPointRow
;
24 int insertionPointColumn
;
25 int insertionPointShape
;
26 int insertionPointFraction
;
29 NSDictionary
*markedTextAttributes
;
30 NSMutableAttributedString
*markedText
;
39 - (id
)initWithFrame
:(NSRect
)frame
;
41 - (void)setShouldDrawInsertionPoint
:(BOOL
)on
;
42 - (void)setPreEditRow
:(int)row column
:(int)col
;
43 - (void)performBatchDrawWithData
:(NSData
*)data
;
44 - (void)setMouseShape
:(int)shape
;
45 - (void)setAntialias
:(BOOL
)antialias
;
48 // MMTextStorage methods
51 - (void)setFont
:(NSFont
*)newFont
;
52 - (void)setWideFont
:(NSFont
*)newFont
;
54 - (void)setLinespace
:(float)newLinespace
;
55 - (void)getMaxRows
:(int*)rows columns
:(int*)cols
;
56 - (void)setMaxRows
:(int)rows columns
:(int)cols
;
57 - (NSRect
)rectForRowsInRange
:(NSRange
)range
;
58 - (NSRect
)rectForColumnsInRange
:(NSRange
)range
;
59 - (void)setDefaultColorsBackground
:(NSColor
*)bgColor
60 foreground
:(NSColor
*)fgColor
;
62 - (NSSize
)constrainRows
:(int *)rows columns
:(int *)cols toSize
:(NSSize
)size
;
63 - (NSSize
)desiredSize
;