]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/graphicc.cpp
more informative FAIL message
[wxWidgets.git] / src / generic / graphicc.cpp
index d5da4a5a7b4dd132efcb45caaeb7eaaa33ae86ef..bd612032c88669359880e783b1f7ab4ed937ef60 100755 (executable)
@@ -3,9 +3,9 @@
 // Purpose:     cairo device context class
 // Author:      Stefan Csomor
 // Modified by:
-// Created:     01/02/97
+// Created:     2006-10-03
 // RCS-ID:      $Id$
-// Copyright:   (c) Stefan Csomor
+// Copyright:   (c) 2006 Stefan Csomor
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
@@ -13,9 +13,6 @@
 
 #include "wx/dc.h"
 
-// For compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
-
 #ifdef __BORLANDC__
 #pragma hdrstop
 #endif
@@ -241,6 +238,15 @@ public:
     virtual ~wxCairoContext();
 
     virtual void Clip( const wxRegion &region );
+
+    // clips drawings to the rect
+    virtual void Clip( wxDouble x, wxDouble y, wxDouble w, wxDouble h );
+       
+       // resets the clipping to original extent
+       virtual void ResetClip();
+
+       virtual void * GetNativeContext();
+       
     virtual void StrokePath( const wxGraphicsPath *p );
     virtual void FillPath( const wxGraphicsPath *p , int fillStyle = wxWINDING_RULE );
 
@@ -308,10 +314,21 @@ wxCairoContext::~wxCairoContext()
 }
 
 
-void wxCairoContext::Clip( const wxRegion &region )
+void wxCairoContext::Clip( const wxRegion & WXUNUSED(region) )
+{
+// TODO
+}
+
+void wxCairoContext::Clip( wxDouble x, wxDouble y, wxDouble w, wxDouble h )
 {
-    //    ClipCGContextToRegion ( m_context, &bounds , (RgnHandle) dc->m_macCurrentClipRgn );
+// TODO
 }
+       
+void wxCairoContext::ResetClip()
+{
+// TODO
+}
+
 
 void wxCairoContext::StrokePath( const wxGraphicsPath *p )
 {
@@ -864,9 +881,24 @@ void wxCairoContext::SetFont( const wxFont &font )
     // TODO FIX SIZE
 }
 
+void * wxCairoContext::GetNativeContext() 
+{
+       return m_context;
+}
+
 wxGraphicsContext* wxGraphicsContext::Create( const wxWindowDC& dc )
 {
     return new wxCairoContext(dc);
 }
 
+wxGraphicsContext* wxGraphicsContext::Create( wxWindow * window )
+{
+       return NULL; // TODO
+}
+
+wxGraphicsContext* wxGraphicsContext::CreateFromNative( void * context )
+{
+       return NULL; // TODO
+}
+
 #endif  // wxUSE_GRAPHICS_CONTEXT