merge changes from upstream
[MacVim/jjgod.git] / src / MacVim / MMTextView.h
blob167b830890a5e0e68ad66779dd9aef6439bc46e2
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>
12 #import "MMTextStorage.h"
15 @interface MMTextView : NSView {
16 BOOL shouldDrawInsertionPoint;
17 NSEvent *lastMouseDownEvent;
18 NSTrackingRectTag trackingRectTag;
19 BOOL isDragging;
20 BOOL isAutoscrolling;
21 int dragRow;
22 int dragColumn;
23 int dragFlags;
24 NSPoint dragPoint;
25 int insertionPointRow;
26 int insertionPointColumn;
27 int insertionPointShape;
28 int insertionPointFraction;
29 NSTextField *markedTextField;
30 NSColor *insertionPointColor;
31 NSColor *backgroundColor;
32 MMTextStorage *textStorage;
33 NSSize textContainerInset;
34 int preEditRow;
35 int preEditColumn;
38 - (NSEvent *)lastMouseDownEvent;
39 - (void)setShouldDrawInsertionPoint:(BOOL)on;
40 - (void)setPreEditRow:(int)row column:(int)col;
41 - (void)drawInsertionPointAtRow:(int)row column:(int)col shape:(int)shape
42 fraction:(int)percent color:(NSColor *)color;
43 - (void)hideMarkedTextField;
45 - (NSPoint)textContainerOrigin;
47 - (NSColor *)insertionPointColor;
48 - (void)setInsertionPointColor:(NSColor *)color;
50 - (MMTextStorage *)textStorage;
51 - (void)setTextStorage:(MMTextStorage *)aTextStorage;
53 - (void)setBackgroundColor:(NSColor *)color;
55 - (void)setTextContainerInset:(NSSize)inset;
56 - (NSSize)textContainerInset;
58 @end