2 SuperCollider real time audio synthesis system
3 Copyright (c) 2002 James McCartney. All rights reserved.
4 http://www.audiosynth.com
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #import <UIKit/UIKit.h>
22 #import "iPhoneSCView.h"
24 @interface SCGraphView
: UIView
26 struct PyrObject
*mWindowObj
;
30 bool windowShouldClose
;
31 bool acceptsClickThrough
;
35 - (void)drawRect
: (CGRect
)bounds
;
37 - (void) keyDown: (NSEvent*) event;
38 - (void) keyUp: (NSEvent*) event;
39 - (void) mouseDown: (NSEvent*) event;
40 - (void) mouseMoved:(NSEvent*) theEvent; //jan t
42 - (void)setSCObject
: (struct PyrObject
*)inObject
;
43 - (struct PyrObject
*)getSCObject
;
45 - (BOOL
)mouseDownCanMoveWindow
;
47 - (void) touchesBegan
:(NSSet
*)touches withEvent
:(UIEvent
*)event
;
48 - (void) touchesMoved
:(NSSet
*)touches withEvent
:(UIEvent
*)event
;
49 - (void) touchesEnded
:(NSSet
*)touches withEvent
:(UIEvent
*)event
;
50 - (void) touchesCancelled
:(NSSet
*)touches withEvent
:(UIEvent
*)event
;
52 - (void)setSCTopView
: (SCTopView
*)inView
;
56 - (void)setWindowShouldClose
:(BOOL
)boo
;
57 - (BOOL
)windowShouldClose
;
58 - (void)setAcceptsClickThrough
:(BOOL
)boo
;
59 - (void)setAutoScrolls
:(BOOL
)boo
;
60 - (void) beginDragFrom
: (CGPoint
)where of
: (PyrSlot
*)slot string
:(NSString
*) string
;
62 //- (NSMenu*) menuForEvent:(NSEvent*)event;
63 - (void)startMenuTracking
: (SCView
*) inView
;
65 - (IBAction
) toggleUIEditMode
: (id
) sender
;
66 - (void)scrollViewResized
:(NSNotification
*)notification
;
67 - (void)userScrolled
:(NSNotification
*)notification
;
68 - (void)setFrameSizeToMinimum
;