GetMatrixData()->Set(a,b,c,d,tx,ty);
}
+// gets the component valuess of the matrix
+void wxGraphicsMatrix::Get(wxDouble* a, wxDouble* b, wxDouble* c,
+ wxDouble* d, wxDouble* tx, wxDouble* ty) const
+{
+ GetMatrixData()->Get(a, b, c, d, tx, ty);
+}
+
// makes this the inverse matrix
void wxGraphicsMatrix::Invert()
{
wxGraphicsContext::wxGraphicsContext(wxGraphicsRenderer* renderer) : wxGraphicsObject(renderer)
{
+ m_logicalFunction = wxCOPY;
}
wxGraphicsContext::~wxGraphicsContext()
m_font = font;
}
+bool wxGraphicsContext::SetLogicalFunction( int function )
+{
+ if ( function == wxCOPY )
+ {
+ m_logicalFunction = function;
+ return true;
+ }
+ return false;
+}
+
void wxGraphicsContext::SetFont( const wxFont& font, const wxColour& colour )
{
if ( font.Ok() )
{
return wxGraphicsRenderer::GetDefaultRenderer()->CreateContext(dc);
}
+#ifdef __WXMSW__
+wxGraphicsContext* wxGraphicsContext::Create( const wxMemoryDC& dc)
+{
+ return wxGraphicsRenderer::GetDefaultRenderer()->CreateContext(dc);
+}
+#endif
wxGraphicsContext* wxGraphicsContext::CreateFromNative( void * context )
{