dummy implementations for new methods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42163 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
1056ddcf24
commit
539e27950f
@ -238,6 +238,15 @@ public:
|
||||
virtual ~wxCairoContext();
|
||||
|
||||
virtual void Clip( const wxRegion ®ion );
|
||||
|
||||
// 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 ®ion )
|
||||
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
|
||||
|
@ -197,6 +197,14 @@ public:
|
||||
virtual ~wxGDIPlusContext();
|
||||
|
||||
virtual void Clip( const wxRegion ®ion );
|
||||
// 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 );
|
||||
|
||||
@ -388,7 +396,17 @@ wxGDIPlusContext::~wxGDIPlusContext()
|
||||
|
||||
void wxGDIPlusContext::Clip( const wxRegion & WXUNUSED(region) )
|
||||
{
|
||||
// ClipCGContextToRegion ( m_context, &bounds , (RgnHandle) dc->m_macCurrentClipRgn );
|
||||
// TODO
|
||||
}
|
||||
|
||||
void wxGDIPlusContext::Clip( wxDouble x, wxDouble y, wxDouble w, wxDouble h )
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
void wxGDIPlusContext::ResetClip()
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
void wxGDIPlusContext::StrokePath( const wxGraphicsPath *p )
|
||||
@ -927,10 +945,26 @@ void wxGDIPlusContext::SetFont( const wxFont &font )
|
||||
m_font = new Font( s , size , style );
|
||||
}
|
||||
|
||||
void * wxCairoContext::GetNativeContext()
|
||||
{
|
||||
return m_context;
|
||||
}
|
||||
|
||||
wxGraphicsContext* wxGraphicsContext::Create( const wxWindowDC& dc)
|
||||
{
|
||||
return new wxGDIPlusContext( (HDC) dc.GetHDC() );
|
||||
}
|
||||
|
||||
wxGraphicsContext* wxGraphicsContext::Create( wxWindow * window )
|
||||
{
|
||||
return NULL; // TODO
|
||||
}
|
||||
|
||||
wxGraphicsContext* wxGraphicsContext::CreateFromNative( void * context )
|
||||
{
|
||||
return NULL; // TODO
|
||||
}
|
||||
|
||||
|
||||
|
||||
#endif // wxUSE_GRAPHICS_CONTEXT
|
||||
|
Loading…
Reference in New Issue
Block a user