Don't pass 'long' vars over process boundary
[MacVim.git] / src / MacVim / MMVimView.h
blob5a8335ed1e52d57529575061cdcf137d1844648e
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>
15 @class PSMTabBarControl;
16 @class MMTextView;
17 @class MMScroller;
18 @class MMVimController;
21 @interface MMVimView : NSView {
22 PSMTabBarControl *tabBarControl;
23 NSTabView *tabView;
24 MMVimController *vimController;
25 BOOL vimTaskSelectedTab;
26 MMTextView *textView;
27 NSMutableArray *scrollbars;
30 - (MMVimView *)initWithFrame:(NSRect)frame vimController:(MMVimController *)c;
32 - (MMTextView *)textView;
33 - (void)cleanup;
35 - (NSSize)desiredSize;
36 - (NSSize)minSize;
37 - (NSSize)constrainRows:(int *)r columns:(int *)c toSize:(NSSize)size;
38 - (void)setDesiredRows:(int)r columns:(int)c;
40 - (PSMTabBarControl *)tabBarControl;
41 - (IBAction)addNewTab:(id)sender;
42 - (void)updateTabsWithData:(NSData *)data;
43 - (void)selectTabWithIndex:(int)idx;
44 - (NSTabViewItem *)addNewTabViewItem;
46 - (void)createScrollbarWithIdentifier:(int32_t)ident type:(int)type;
47 - (BOOL)destroyScrollbarWithIdentifier:(int32_t)ident;
48 - (BOOL)showScrollbarWithIdentifier:(int32_t)ident state:(BOOL)visible;
49 - (void)setScrollbarThumbValue:(float)val proportion:(float)prop
50 identifier:(int32_t)ident;
51 - (void)setScrollbarPosition:(int)pos length:(int)len identifier:(int32_t)ident;
53 - (void)setDefaultColorsBackground:(NSColor *)back foreground:(NSColor *)fore;
55 - (void)viewWillStartLiveResize;
56 - (void)viewDidEndLiveResize;
57 - (void)setFrameSize:(NSSize)size;
58 - (void)setFrame:(NSRect)frame;
60 @end