Permalink
Browse files

Code Sketchen'

  • Loading branch information...
1 parent 8fa83b0 commit 511ca82a05aef1ef908c26e2109450db8bc9fd8d @ccgus committed Nov 13, 2011
@@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
- objectVersion = 45;
+ objectVersion = 46;
objects = {
/* Begin PBXBuildFile section */
@@ -207,8 +207,11 @@
/* Begin PBXProject section */
089C1669FE841209C02AAC07 /* Project object */ = {
isa = PBXProject;
+ attributes = {
+ LastUpgradeCheck = 0420;
+ };
buildConfigurationList = 1DEB913E08733D840010E9CD /* Build configuration list for PBXProject "ImageTools" */;
- compatibilityVersion = "Xcode 3.1";
+ compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 1;
knownRegions = (
@@ -287,14 +290,14 @@
"\"$(SRCROOT)\"",
);
GCC_DYNAMIC_NO_PIC = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = JSTOpenCL_Prefix.pch;
INFOPLIST_FILE = Info.plist;
INSTALL_PATH = "$(HOME)/Library/Bundles";
OTHER_CFLAGS = "-DDEBUG";
PRODUCT_NAME = ImageTools;
+ SDKROOT = macosx;
WRAPPER_EXTENSION = jstplugin;
};
name = Debug;
@@ -319,6 +322,7 @@
INSTALL_PATH = "$(HOME)/Library/Bundles";
OTHER_CFLAGS = "-DDEBUG";
PRODUCT_NAME = ImageTools;
+ SDKROOT = macosx;
WRAPPER_EXTENSION = jstplugin;
};
name = Release;
@@ -328,24 +332,20 @@
buildSettings = {
GCC_C_LANGUAGE_STANDARD = c99;
GCC_OPTIMIZATION_LEVEL = 0;
- GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
ONLY_ACTIVE_ARCH = YES;
- PREBINDING = NO;
- SDKROOT = macosx10.6;
+ SDKROOT = macosx10.7;
};
name = Debug;
};
1DEB914008733D840010E9CD /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
GCC_C_LANGUAGE_STANDARD = c99;
- GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
- PREBINDING = NO;
- SDKROOT = macosx10.6;
+ SDKROOT = macosx10.7;
};
name = Release;
};
@@ -9,57 +9,60 @@
#import <Foundation/Foundation.h>
#import <JSTalk/JSTalk.h>
-@class JSTCodeSketcherView;
-
-@interface JSTCodeSketcher : NSObject {
+@interface JSTCodeSketcher : NSView {
JSTalk *_jstalk;
JSValueRef _drawFunction;
JSValueRef _setupFunction;
- JSValueRef _mouseMovedFunction;
-
- CGFloat _fps;
-
- NSWindow *_window;
+ JSValueRef _mouseMoveFunction;
+ JSValueRef _mouseUpFunction;
+ JSValueRef _mouseDownFunction;
+ JSValueRef _mouseDragFunction;
+ CGFloat _frameRate;
- JSTCodeSketcherView *_unretainedSketcherView;
+ NSWindow *_mwindow;
BOOL _flipped;
+ NSString *_lookupName;
+
NSTimer *_redrawTimer;
CGContextRef _context;
+ NSGraphicsContext *_nsContext;
+
+ // Processing type stuff.
+ NSPoint _mouseLocation;
+ NSPoint _pmouseLocation;
+ BOOL _mousePressed;
+ NSSize _size;
+
+
}
+@property (assign) CGFloat frameRate;
@property (retain) JSTalk *jstalk;
-@property (assign, getter=isFlipped) BOOL flipped;
-
+@property (assign) NSPoint mouseLocation;
+@property (assign) NSPoint pmouseLocation;
+@property (assign, getter=isMousePressed) BOOL mousePressed;
+@property (retain) NSString *lookupName;
+@property (retain) NSGraphicsContext *nsContext;
+@property (assign) NSSize size;
- (void)stop;
- (void)start;
-- (void)setFramesPerSecond:(CGFloat)f;
-
- (void)setDraw:(JSValueRefAndContextRef)ref;
- (void)setMouseMove:(JSValueRefAndContextRef)ref;
-- (void)callDrawWithRect:(NSRect)r;
+- (void)setMouseUp:(JSValueRefAndContextRef)ref;
+- (void)setMouseDown:(JSValueRefAndContextRef)ref;
+- (void)mouseDrag:(JSValueRefAndContextRef)ref;
-@end
-
-
-
-@interface JSTCodeSketcherView : NSView {
- JSTCodeSketcher *_sketcher;
-}
-
-@property (retain) JSTCodeSketcher *sketcher;
@end
-
-
@interface JSTFakePoint : NSObject {
CGFloat _x;
CGFloat _y;
@@ -85,3 +88,5 @@
@property (retain) JSTFakeSize *size;
+ (id)rectWithRect:(NSRect)rect;
@end
+
+CGColorRef JSTCGColorCreateFromNSColor(NSColor *c);
Oops, something went wrong.

0 comments on commit 511ca82

Please sign in to comment.