wxDC::GetHandle support for wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72226 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -136,7 +136,8 @@ public:
|
|||||||
virtual void EndPage() { }
|
virtual void EndPage() { }
|
||||||
|
|
||||||
virtual GdkWindow* GetGDKWindow() const { return NULL; }
|
virtual GdkWindow* GetGDKWindow() const { return NULL; }
|
||||||
|
virtual void* GetHandle() const { return GetGDKWindow(); }
|
||||||
|
|
||||||
// base class pure virtuals implemented here
|
// base class pure virtuals implemented here
|
||||||
virtual void DoSetClippingRegion(wxCoord x, wxCoord y, wxCoord width, wxCoord height);
|
virtual void DoSetClippingRegion(wxCoord x, wxCoord y, wxCoord width, wxCoord height);
|
||||||
virtual void DoGetSizeMM(int* width, int* height) const;
|
virtual void DoGetSizeMM(int* width, int* height) const;
|
||||||
|
@@ -39,7 +39,8 @@ public:
|
|||||||
// overridden from wxDCImpl
|
// overridden from wxDCImpl
|
||||||
virtual void DoGetSize( int *width, int *height ) const;
|
virtual void DoGetSize( int *width, int *height ) const;
|
||||||
virtual wxBitmap DoGetAsBitmap(const wxRect *subrect) const;
|
virtual wxBitmap DoGetAsBitmap(const wxRect *subrect) const;
|
||||||
|
virtual void* GetHandle() const;
|
||||||
|
|
||||||
// overridden for wxMemoryDC Impl
|
// overridden for wxMemoryDC Impl
|
||||||
virtual void DoSelect(const wxBitmap& bitmap);
|
virtual void DoSelect(const wxBitmap& bitmap);
|
||||||
|
|
||||||
|
@@ -227,7 +227,8 @@ public:
|
|||||||
bool IsOk() const;
|
bool IsOk() const;
|
||||||
|
|
||||||
virtual void* GetCairoContext() const;
|
virtual void* GetCairoContext() const;
|
||||||
|
virtual void* GetHandle() const;
|
||||||
|
|
||||||
bool CanDrawBitmap() const { return true; }
|
bool CanDrawBitmap() const { return true; }
|
||||||
void Clear();
|
void Clear();
|
||||||
void SetFont( const wxFont& font );
|
void SetFont( const wxFont& font );
|
||||||
|
@@ -164,3 +164,8 @@ wxBitmap& wxMemoryDCImpl::GetSelectedBitmap()
|
|||||||
return m_selected;
|
return m_selected;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void* wxMemoryDCImpl::GetHandle() const
|
||||||
|
{
|
||||||
|
const wxBitmap& bmp = GetSelectedBitmap();
|
||||||
|
return bmp.GetPixmap();
|
||||||
|
}
|
||||||
|
@@ -1216,6 +1216,11 @@ void* wxGtkPrinterDCImpl::GetCairoContext() const
|
|||||||
return (void*) cairo_reference( m_cairo );
|
return (void*) cairo_reference( m_cairo );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void* wxGtkPrinterDCImpl::GetHandle() const
|
||||||
|
{
|
||||||
|
return GetCairoContext();
|
||||||
|
}
|
||||||
|
|
||||||
bool wxGtkPrinterDCImpl::DoFloodFill(wxCoord WXUNUSED(x1),
|
bool wxGtkPrinterDCImpl::DoFloodFill(wxCoord WXUNUSED(x1),
|
||||||
wxCoord WXUNUSED(y1),
|
wxCoord WXUNUSED(y1),
|
||||||
const wxColour& WXUNUSED(col),
|
const wxColour& WXUNUSED(col),
|
||||||
|
Reference in New Issue
Block a user