CocoaImplementation.h
Go to the documentation of this file.
00001 // ****************************************************************************
00002 // Filename:  CocoaImplementation.h
00003 // Author:    Florian Hecht
00004 // Date:      2008
00005 // ****************************************************************************
00006 
00007 
00008 #ifndef _COCOA_IMPLEMENTATION_H_
00009 #define _COCOA_IMPLEMENTATION_H_
00010 
00011 #import <Cocoa/Cocoa.h>
00012 
00013 
00014 @interface MyDelegate : NSObject {
00015         BOOL bExit;
00016         BOOL bLaunched;
00017         int nOpenWindows;
00018 }
00019 
00020 -(BOOL) shouldExit;
00021 -(void) setShouldExit:(BOOL) exit;
00022 -(BOOL) launched;
00023 -(void) setLaunched:(BOOL) launched;
00024 -(int) numberOfOpenWindows;
00025 -(void) setNumberOfOpenWindows:(int) num;
00026 @end
00027 
00028 
00029 
00030 @interface MyWindow : NSObject {
00031         NSWindow* _window;
00032         void* _main_window_ptr;
00033 }
00034 
00035 -(NSWindow*) window;
00036 -(void) setWindow:(NSWindow*) win;
00037 -(void*) mainWindowPtr;
00038 -(void) setMainWindowPtr:(void*) mainWindowPtr;
00039 
00040 -(void) windowWillClose:(id) sender;
00041 @end
00042 
00043 
00044 
00045 @interface MyImageView : NSImageView {
00046     NSPoint dragStartLocation;
00047         NSPoint lastDragLocation;
00048     BOOL dragging;
00049 }
00050 -(id) initWithFrame:(NSRect) frame;
00051 -(void) drawRect:(NSRect) rect;
00052 -(void) mouseDown:(NSEvent*) event;
00053 -(void) mouseDragged:(NSEvent*) event;
00054 -(void) mouseMoved:(NSEvent*) event;
00055 -(void) mouseUp:(NSEvent*) event;
00056 -(void) keyDown:(NSEvent *) event;
00057 -(void) keyUp:(NSEvent *) event;
00058 @end
00059 
00060 
00061 @interface MySlider : NSSlider {
00062         BOOL _dragging;
00063         NSPoint lastPos;
00064 }
00065 -(BOOL) dragging;
00066 -(void) setDragging:(BOOL) flag;
00067 -(void) mouseDown:(NSEvent*) theEvent;
00068 @end
00069 
00070 
00071 @interface MyOpenGLView : NSOpenGLView {
00072   
00073 }
00074 -(void) mouseDown:(NSEvent*) event;
00075 -(void) rightMouseDown:(NSEvent*) event;
00076 -(void) otherMouseDown:(NSEvent*) event;
00077 -(void) mouseDragged:(NSEvent*) event;
00078 -(void) mouseMoved:(NSEvent*) event;
00079 -(void) mouseUp:(NSEvent*) event;
00080 -(void) rightMouseUp:(NSEvent*) event;
00081 -(void) otherMouseUp:(NSEvent*) event;
00082 -(void) keyDown:(NSEvent *) event;
00083 -(void) keyUp:(NSEvent *) event;
00084 @end
00085 
00086 #endif /* _COCOA_IMPLEMENTATION_H_ */


asr_ivt
Author(s): Allgeyer Tobias, Hutmacher Robin, Kleinert Daniel, Meißner Pascal, Scholz Jonas, Stöckle Patrick
autogenerated on Thu Jun 6 2019 21:46:57