]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/graphicc.cpp
more informative FAIL message
[wxWidgets.git] / src / generic / graphicc.cpp
index 96e77321fa45ca7582863647dd12330997c7cab6..bd612032c88669359880e783b1f7ab4ed937ef60 100755 (executable)
@@ -238,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 );
 
@@ -305,11 +314,22 @@ wxCairoContext::~wxCairoContext()
 }
 
 
-void wxCairoContext::Clip( const wxRegion &region )
+void wxCairoContext::Clip( const wxRegion & WXUNUSED(region) )
 {
-    //    ClipCGContextToRegion ( m_context, &bounds , (RgnHandle) dc->m_macCurrentClipRgn );
+// TODO
 }
 
+void wxCairoContext::Clip( wxDouble x, wxDouble y, wxDouble w, wxDouble h )
+{
+// TODO
+}
+       
+void wxCairoContext::ResetClip()
+{
+// TODO
+}
+
+
 void wxCairoContext::StrokePath( const wxGraphicsPath *p )
 {
     if ( m_penTransparent )
@@ -861,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