Don't coalesce scroll wheel events
[MacVim.git] / src / MacVim / MMTextViewHelper.h
blobef7e1798a48eb086f46ccce7f2d659ed33064600
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 enum {
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).
18 MMMinRows = 4,
19 MMMinColumns = 30
23 @interface MMTextViewHelper : NSObject {
24 id textView;
25 BOOL isDragging;
26 int dragRow;
27 int dragColumn;
28 int dragFlags;
29 NSPoint dragPoint;
30 BOOL isAutoscrolling;
31 int mouseShape;
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;
56 @end