Add wxGraphicsRenderer::CreateContextFromUnknownDC()

It seems wrong to have this function in wxGraphicsContext only and not
in wxGraphicsRenderer, as this makes it impossible to create a context
associated with a non-default renderer while it doesn't cost us anything
to allow doing this.
This commit is contained in:
Vadim Zeitlin
2019-02-02 21:22:19 +01:00
parent 46188ff56f
commit 8bbac921f3
3 changed files with 31 additions and 4 deletions

View File

@@ -876,6 +876,8 @@ public:
#endif
#endif
wxGraphicsContext* CreateContextFromUnknownDC(const wxDC& dc);
virtual wxGraphicsContext * CreateContextFromNativeContext( void * context ) = 0;
virtual wxGraphicsContext * CreateContextFromNativeWindow( void * window ) = 0;