Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef XAP_COCOAFRAME_H
00023 #define XAP_COCOAFRAME_H
00024
00025 #import <Cocoa/Cocoa.h>
00026
00027 #include "xap_Frame.h"
00028
00029 class XAP_CocoaApp;
00030 class EV_CocoaKeyboard;
00031 class EV_CocoaMouse;
00032 class EV_CocoaMenuBar;
00033 class EV_CocoaMenuPopup;
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044 class GR_CocoaCairoGraphics;
00045 class FV_View;
00046
00047 @protocol XAP_MouseEventDelegate
00048 - (void)mouseDown:(NSEvent *)theEvent from:(id)sender;
00049 - (void)mouseDragged:(NSEvent *)theEvent from:(id)sender;
00050 - (void)mouseUp:(NSEvent *)theEvent from:(id)sender;
00051 @end
00052
00053
00054
00055 @interface XAP_CocoaNSView : NSView
00056 {
00057 NSCursor *_cursor;
00058 XAP_Frame *m_pFrame;
00059 GR_CocoaCairoGraphics *m_pGR;
00060 NSObject<XAP_MouseEventDelegate> *_eventDelegate;
00061 }
00062 - (id)initWith:(XAP_Frame *)frame andFrame:(NSRect)windowFrame;
00063 - (BOOL)acceptsFirstResponder;
00064 - (BOOL)becomeFirstResponder;
00065 - (XAP_Frame *)xapFrame;
00066 - (void)setGraphics:(GR_CocoaCairoGraphics *)gr;
00067 - (void)setEventDelegate:(NSObject<XAP_MouseEventDelegate>*)delegate;
00068 - (NSObject<XAP_MouseEventDelegate>*)eventDelegate;
00069 - (void)drawRect:(NSRect)aRect;
00070 - (BOOL)isFlipped;
00071 - (BOOL)isOpaque;
00072 - (void)hasBeenResized:(NSNotification*)notif;
00073 - (void)setCursor:(NSCursor*)cursor;
00074 @end
00075
00076
00077 #endif