virtual void SetFont( const wxFont &font ) = 0;
// sets the text color
- virtual void SetTextColor( const wxColour &col ) = 0;
+ virtual void SetTextColour( const wxColour &col ) = 0;
// strokes along a path with the current pen
virtual void StrokePath( const wxGraphicsPath *path ) = 0;
m_graphicContext->SetPen(dc.GetPen());
if ( dc.GetBrush().Ok())
m_graphicContext->SetBrush(dc.GetBrush());
- m_graphicContext->SetTextColor(dc.GetTextForeground());
+ m_graphicContext->SetTextColour(dc.GetTextForeground());
}
void wxGCDC::Init()
if ( col != m_textForegroundColour )
{
m_textForegroundColour = col;
- m_graphicContext->SetTextColor( col );
+ m_graphicContext->SetTextColour( col );
}
}
virtual void PopState();
virtual void SetFont( const wxFont &font );
- virtual void SetTextColor( const wxColour &col );
+ virtual void SetTextColour( const wxColour &col );
virtual void DrawText( const wxString &str, wxDouble x, wxDouble y);
virtual void GetTextExtent( const wxString &str, wxDouble *width, wxDouble *height,
wxDouble *descent, wxDouble *externalLeading ) const;
cairo_restore(m_context);
}
-void wxCairoContext::SetTextColor( const wxColour &col )
+void wxCairoContext::SetTextColour( const wxColour &col )
{
m_textColour = col;
}
virtual void SetFont( const wxFont &font );
// sets the text color
- virtual void SetTextColor( const wxColour &col );
+ virtual void SetTextColour( const wxColour &col );
// strokes along a path with the current pen
virtual void StrokePath( const wxGraphicsPath *path );
CGContextRestoreGState( m_cgContext );
}
-void wxMacCoreGraphicsContext::SetTextColor( const wxColour &col )
+void wxMacCoreGraphicsContext::SetTextColour( const wxColour &col )
{
m_textForegroundColor = col;
// to recreate the native font after color change
virtual void PopState();
virtual void SetFont( const wxFont &font );
- virtual void SetTextColor( const wxColour &col );
+ virtual void SetTextColour( const wxColour &col );
virtual void DrawText( const wxString &str, wxDouble x, wxDouble y);
virtual void GetTextExtent( const wxString &str, wxDouble *width, wxDouble *height,
wxDouble *descent, wxDouble *externalLeading ) const;
m_context->Restore(state);
}
-void wxGDIPlusContext::SetTextColor( const wxColour &col )
+void wxGDIPlusContext::SetTextColour( const wxColour &col )
{
delete m_textBrush;
m_textBrush = new SolidBrush( Color( col.Alpha() , col.Red() ,