CocoaImplementation.h
Go to the documentation of this file.
1 // ****************************************************************************
2 // Filename: CocoaImplementation.h
3 // Author: Florian Hecht
4 // Date: 2008
5 // ****************************************************************************
6 
7 
8 #ifndef _COCOA_IMPLEMENTATION_H_
9 #define _COCOA_IMPLEMENTATION_H_
10 
11 #import <Cocoa/Cocoa.h>
12 
13 
14 @interface MyDelegate : NSObject {
15  BOOL bExit;
16  BOOL bLaunched;
18 }
19 
20 -(BOOL) shouldExit;
21 -(void) setShouldExit:(BOOL) exit;
22 -(BOOL) launched;
23 -(void) setLaunched:(BOOL) launched;
24 -(int) numberOfOpenWindows;
25 -(void) setNumberOfOpenWindows:(int) num;
26 @end
27 
28 
29 
30 @interface MyWindow : NSObject {
31  NSWindow* _window;
33 }
34 
35 -(NSWindow*) window;
36 -(void) setWindow:(NSWindow*) win;
37 -(void*) mainWindowPtr;
38 -(void) setMainWindowPtr:(void*) mainWindowPtr;
39 
40 -(void) windowWillClose:(id) sender;
41 @end
42 
43 
44 
45 @interface MyImageView : NSImageView {
48  BOOL dragging;
49 }
50 -(id) initWithFrame:(NSRect) frame;
51 -(void) drawRect:(NSRect) rect;
52 -(void) mouseDown:(NSEvent*) event;
53 -(void) mouseDragged:(NSEvent*) event;
54 -(void) mouseMoved:(NSEvent*) event;
55 -(void) mouseUp:(NSEvent*) event;
56 -(void) keyDown:(NSEvent *) event;
57 -(void) keyUp:(NSEvent *) event;
58 @end
59 
60 
61 @interface MySlider : NSSlider {
62  BOOL _dragging;
63  NSPoint lastPos;
64 }
65 -(BOOL) dragging;
66 -(void) setDragging:(BOOL) flag;
67 -(void) mouseDown:(NSEvent*) theEvent;
68 @end
69 
70 
71 @interface MyOpenGLView : NSOpenGLView {
72 
73 }
74 -(void) mouseDown:(NSEvent*) event;
75 -(void) rightMouseDown:(NSEvent*) event;
76 -(void) otherMouseDown:(NSEvent*) event;
77 -(void) mouseDragged:(NSEvent*) event;
78 -(void) mouseMoved:(NSEvent*) event;
79 -(void) mouseUp:(NSEvent*) event;
80 -(void) rightMouseUp:(NSEvent*) event;
81 -(void) otherMouseUp:(NSEvent*) event;
82 -(void) keyDown:(NSEvent *) event;
83 -(void) keyUp:(NSEvent *) event;
84 @end
85 
86 #endif /* _COCOA_IMPLEMENTATION_H_ */
NSPoint lastDragLocation
BOOL shouldExit()
int numberOfOpenWindows()
NSWindow * _window
NSPoint dragStartLocation
BOOL launched()
GLuint id
Definition: glext.h:3379
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
void * _main_window_ptr


asr_ivt
Author(s): Allgeyer Tobias, Hutmacher Robin, Kleinert Daniel, Meißner Pascal, Scholz Jonas, Stöckle Patrick
autogenerated on Mon Dec 2 2019 03:47:27