Add IM control support
[MacVim/jjgod.git] / src / MacVim / MMTextView.h
blob528d4f0b57caf3fabff2dcffd6c63ac43628313b
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 NSEvent *lastMouseDownEvent;
17 NSTrackingRectTag trackingRectTag;
18 BOOL isDragging;
19 BOOL isAutoscrolling;
20 int dragRow;
21 int dragColumn;
22 int dragFlags;
23 NSPoint dragPoint;
24 int insertionPointRow;
25 int insertionPointColumn;
26 int insertionPointShape;
27 int insertionPointFraction;
28 NSTextField *markedTextField;
29 int preEditRow;
30 int preEditColumn;
33 - (NSEvent *)lastMouseDownEvent;
34 - (void)setShouldDrawInsertionPoint:(BOOL)on;
35 - (void)setPreEditRow:(int)row column:(int)col;
36 - (void)drawInsertionPointAtRow:(int)row column:(int)col shape:(int)shape
37 fraction:(int)percent color:(NSColor *)color;
38 - (void)hideMarkedTextField;
40 @end