]> git.saurik.com Git - wxWidgets.git/commitdiff
Added default implementation for drawRect and mouse events that returns
authorDavid Elliott <dfe@tgwbd.org>
Mon, 11 Aug 2003 13:47:50 +0000 (13:47 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Mon, 11 Aug 2003 13:47:50 +0000 (13:47 +0000)
false so normal processing will take place.  Some users of wxCocoaNSView
may not wish to implement every event.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22770 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/cocoa/NSView.h

index c6e04939161cd17d77310ec7eacc9ee2f43e8e73..f9c023dbb8fc474c15ea7460b78f57c046ac8749 100644 (file)
@@ -29,19 +29,32 @@ protected:
     static void *sm_cocoaObserver;
 public:
     virtual void Cocoa_FrameChanged(void) = 0;
-    virtual bool Cocoa_drawRect(const NSRect &rect) = 0;
-    virtual bool Cocoa_mouseDown(WX_NSEvent theEvent) = 0;
-    virtual bool Cocoa_mouseDragged(WX_NSEvent theEvent) = 0;
-    virtual bool Cocoa_mouseUp(WX_NSEvent theEvent) = 0;
-    virtual bool Cocoa_mouseMoved(WX_NSEvent theEvent) = 0;
-    virtual bool Cocoa_mouseEntered(WX_NSEvent theEvent) = 0;
-    virtual bool Cocoa_mouseExited(WX_NSEvent theEvent) = 0;
-    virtual bool Cocoa_rightMouseDown(WX_NSEvent theEvent) = 0;
-    virtual bool Cocoa_rightMouseDragged(WX_NSEvent theEvent) = 0;
-    virtual bool Cocoa_rightMouseUp(WX_NSEvent theEvent) = 0;
-    virtual bool Cocoa_otherMouseDown(WX_NSEvent theEvent) = 0;
-    virtual bool Cocoa_otherMouseDragged(WX_NSEvent theEvent) = 0;
-    virtual bool Cocoa_otherMouseUp(WX_NSEvent theEvent) = 0;
+    virtual bool Cocoa_drawRect(const NSRect &rect)
+    {   return false; }
+    virtual bool Cocoa_mouseDown(WX_NSEvent theEvent)
+    {   return false; }
+    virtual bool Cocoa_mouseDragged(WX_NSEvent theEvent)
+    {   return false; }
+    virtual bool Cocoa_mouseUp(WX_NSEvent theEvent)
+    {   return false; }
+    virtual bool Cocoa_mouseMoved(WX_NSEvent theEvent)
+    {   return false; }
+    virtual bool Cocoa_mouseEntered(WX_NSEvent theEvent)
+    {   return false; }
+    virtual bool Cocoa_mouseExited(WX_NSEvent theEvent)
+    {   return false; }
+    virtual bool Cocoa_rightMouseDown(WX_NSEvent theEvent)
+    {   return false; }
+    virtual bool Cocoa_rightMouseDragged(WX_NSEvent theEvent)
+    {   return false; }
+    virtual bool Cocoa_rightMouseUp(WX_NSEvent theEvent)
+    {   return false; }
+    virtual bool Cocoa_otherMouseDown(WX_NSEvent theEvent)
+    {   return false; }
+    virtual bool Cocoa_otherMouseDragged(WX_NSEvent theEvent)
+    {   return false; }
+    virtual bool Cocoa_otherMouseUp(WX_NSEvent theEvent)
+    {   return false; }
 };
 
 #endif // _WX_COCOA_NSVIEW_H_