Update GraphcsContext/Path dummy classes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42286 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -80,11 +80,22 @@ public:
|
|||||||
wxPyEndBlockThreads(blocked);
|
wxPyEndBlockThreads(blocked);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static wxGraphicsContext* CreateFromNative( void * ) {
|
||||||
|
wxPyBlock_t blocked = wxPyBeginBlockThreads();
|
||||||
|
PyErr_SetString(PyExc_NotImplementedError,
|
||||||
|
"wxGraphicsContext is not available on this platform.");
|
||||||
|
wxPyEndBlockThreads(blocked);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
wxGraphicsPath * CreatePath() { return NULL; }
|
wxGraphicsPath * CreatePath() { return NULL; }
|
||||||
void PushState() {}
|
void PushState() {}
|
||||||
void PopState() {}
|
void PopState() {}
|
||||||
void Clip( const wxRegion & ) {}
|
void Clip( const wxRegion & ) {}
|
||||||
|
void Clip( wxDouble, wxDouble, wxDouble, wxDouble ) {}
|
||||||
|
void ResetClip() {}
|
||||||
|
void * GetNativeContext() { return NULL; }
|
||||||
void Translate( wxDouble , wxDouble ) {}
|
void Translate( wxDouble , wxDouble ) {}
|
||||||
void Scale( wxDouble , wxDouble ) {}
|
void Scale( wxDouble , wxDouble ) {}
|
||||||
void Rotate( wxDouble ) {}
|
void Rotate( wxDouble ) {}
|
||||||
@@ -135,7 +146,8 @@ public:
|
|||||||
|
|
||||||
virtual ~wxGCDC() {}
|
virtual ~wxGCDC() {}
|
||||||
|
|
||||||
wxGraphicsContext* GetGraphicContext() { return NULL; }
|
wxGraphicsContext* GetGraphicsContext() { return NULL; }
|
||||||
|
void SetGraphicsContext( wxGraphicsContext* ) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -3610,11 +3610,22 @@ public:
|
|||||||
wxPyEndBlockThreads(blocked);
|
wxPyEndBlockThreads(blocked);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static wxGraphicsContext* CreateFromNative( void * ) {
|
||||||
|
wxPyBlock_t blocked = wxPyBeginBlockThreads();
|
||||||
|
PyErr_SetString(PyExc_NotImplementedError,
|
||||||
|
"wxGraphicsContext is not available on this platform.");
|
||||||
|
wxPyEndBlockThreads(blocked);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
wxGraphicsPath * CreatePath() { return NULL; }
|
wxGraphicsPath * CreatePath() { return NULL; }
|
||||||
void PushState() {}
|
void PushState() {}
|
||||||
void PopState() {}
|
void PopState() {}
|
||||||
void Clip( const wxRegion & ) {}
|
void Clip( const wxRegion & ) {}
|
||||||
|
void Clip( wxDouble, wxDouble, wxDouble, wxDouble ) {}
|
||||||
|
void ResetClip() {}
|
||||||
|
void * GetNativeContext() { return NULL; }
|
||||||
void Translate( wxDouble , wxDouble ) {}
|
void Translate( wxDouble , wxDouble ) {}
|
||||||
void Scale( wxDouble , wxDouble ) {}
|
void Scale( wxDouble , wxDouble ) {}
|
||||||
void Rotate( wxDouble ) {}
|
void Rotate( wxDouble ) {}
|
||||||
@@ -3665,7 +3676,8 @@ public:
|
|||||||
|
|
||||||
virtual ~wxGCDC() {}
|
virtual ~wxGCDC() {}
|
||||||
|
|
||||||
wxGraphicsContext* GetGraphicContext() { return NULL; }
|
wxGraphicsContext* GetGraphicsContext() { return NULL; }
|
||||||
|
void SetGraphicsContext( wxGraphicsContext* ) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -3614,11 +3614,22 @@ public:
|
|||||||
wxPyEndBlockThreads(blocked);
|
wxPyEndBlockThreads(blocked);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static wxGraphicsContext* CreateFromNative( void * ) {
|
||||||
|
wxPyBlock_t blocked = wxPyBeginBlockThreads();
|
||||||
|
PyErr_SetString(PyExc_NotImplementedError,
|
||||||
|
"wxGraphicsContext is not available on this platform.");
|
||||||
|
wxPyEndBlockThreads(blocked);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
wxGraphicsPath * CreatePath() { return NULL; }
|
wxGraphicsPath * CreatePath() { return NULL; }
|
||||||
void PushState() {}
|
void PushState() {}
|
||||||
void PopState() {}
|
void PopState() {}
|
||||||
void Clip( const wxRegion & ) {}
|
void Clip( const wxRegion & ) {}
|
||||||
|
void Clip( wxDouble, wxDouble, wxDouble, wxDouble ) {}
|
||||||
|
void ResetClip() {}
|
||||||
|
void * GetNativeContext() { return NULL; }
|
||||||
void Translate( wxDouble , wxDouble ) {}
|
void Translate( wxDouble , wxDouble ) {}
|
||||||
void Scale( wxDouble , wxDouble ) {}
|
void Scale( wxDouble , wxDouble ) {}
|
||||||
void Rotate( wxDouble ) {}
|
void Rotate( wxDouble ) {}
|
||||||
@@ -3669,7 +3680,8 @@ public:
|
|||||||
|
|
||||||
virtual ~wxGCDC() {}
|
virtual ~wxGCDC() {}
|
||||||
|
|
||||||
wxGraphicsContext* GetGraphicContext() { return NULL; }
|
wxGraphicsContext* GetGraphicsContext() { return NULL; }
|
||||||
|
void SetGraphicsContext( wxGraphicsContext* ) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -3592,11 +3592,22 @@ public:
|
|||||||
wxPyEndBlockThreads(blocked);
|
wxPyEndBlockThreads(blocked);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static wxGraphicsContext* CreateFromNative( void * ) {
|
||||||
|
wxPyBlock_t blocked = wxPyBeginBlockThreads();
|
||||||
|
PyErr_SetString(PyExc_NotImplementedError,
|
||||||
|
"wxGraphicsContext is not available on this platform.");
|
||||||
|
wxPyEndBlockThreads(blocked);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
wxGraphicsPath * CreatePath() { return NULL; }
|
wxGraphicsPath * CreatePath() { return NULL; }
|
||||||
void PushState() {}
|
void PushState() {}
|
||||||
void PopState() {}
|
void PopState() {}
|
||||||
void Clip( const wxRegion & ) {}
|
void Clip( const wxRegion & ) {}
|
||||||
|
void Clip( wxDouble, wxDouble, wxDouble, wxDouble ) {}
|
||||||
|
void ResetClip() {}
|
||||||
|
void * GetNativeContext() { return NULL; }
|
||||||
void Translate( wxDouble , wxDouble ) {}
|
void Translate( wxDouble , wxDouble ) {}
|
||||||
void Scale( wxDouble , wxDouble ) {}
|
void Scale( wxDouble , wxDouble ) {}
|
||||||
void Rotate( wxDouble ) {}
|
void Rotate( wxDouble ) {}
|
||||||
@@ -3647,7 +3658,8 @@ public:
|
|||||||
|
|
||||||
virtual ~wxGCDC() {}
|
virtual ~wxGCDC() {}
|
||||||
|
|
||||||
wxGraphicsContext* GetGraphicContext() { return NULL; }
|
wxGraphicsContext* GetGraphicsContext() { return NULL; }
|
||||||
|
void SetGraphicsContext( wxGraphicsContext* ) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user