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>
15 // These values are chosen so that the min text view size is not too small
16 // with the default font (they only affect resizing with the mouse, you can
17 // still use e.g. ":set lines=2" to go below these values).
23 @interface MMTextViewHelper
: NSObject
{
32 NSTrackingRectTag trackingRectTag
;
35 - (void)setTextView
:(id
)view
;
37 - (void)keyDown
:(NSEvent
*)event
;
38 - (void)insertText
:(id
)string
;
39 - (void)doCommandBySelector
:(SEL
)selector
;
40 - (BOOL
)performKeyEquivalent
:(NSEvent
*)event
;
41 - (void)scrollWheel
:(NSEvent
*)event
;
42 - (void)mouseDown
:(NSEvent
*)event
;
43 - (void)mouseUp
:(NSEvent
*)event
;
44 - (void)mouseDragged
:(NSEvent
*)event
;
45 - (void)mouseMoved
:(NSEvent
*)event
;
46 - (void)mouseEntered
:(NSEvent
*)event
;
47 - (void)mouseExited
:(NSEvent
*)event
;
48 - (void)setFrame
:(NSRect
)frame
;
49 - (void)viewDidMoveToWindow
;
50 - (void)viewWillMoveToWindow
:(NSWindow
*)newWindow
;
51 - (BOOL
)performDragOperation
:(id
<NSDraggingInfo
>)sender
;
52 - (NSDragOperation
)draggingEntered
:(id
<NSDraggingInfo
>)sender
;
53 - (NSDragOperation
)draggingUpdated
:(id
<NSDraggingInfo
>)sender
;
54 - (void)setMouseShape
:(int)shape
;