Added wxDC::CreateGraphicsContext and implemented it for a few DCs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -39,6 +39,10 @@
|
||||
#include <gtk/gtk.h>
|
||||
#include <gtk/gtkpagesetupunixdialog.h>
|
||||
|
||||
#if wxUSE_GRAPHICS_CONTEXT
|
||||
#include "wx/graphics.h"
|
||||
#endif
|
||||
|
||||
#include "wx/link.h"
|
||||
wxFORCE_LINK_THIS_MODULE(gtk_print)
|
||||
|
||||
@@ -1155,6 +1159,13 @@ bool wxGtkPrinterDCImpl::IsOk() const
|
||||
return m_gpc != NULL;
|
||||
}
|
||||
|
||||
#if wxUSE_GRAPHICS_CONTEXT
|
||||
wxGraphicsContext* wxGtkPrinterDCImpl::CreateGraphicsContext()
|
||||
{
|
||||
return wxGraphicsRenderer::GetDefaultRenderer()->CreateContextFromNativeContext( (void*) m_cairo );
|
||||
}
|
||||
#endif
|
||||
|
||||
bool wxGtkPrinterDCImpl::DoFloodFill(wxCoord WXUNUSED(x1),
|
||||
wxCoord WXUNUSED(y1),
|
||||
const wxColour& WXUNUSED(col),
|
||||
|
Reference in New Issue
Block a user