X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/773ccc318e21e2ce170789aaaaaa18b8b0f1878e..78cd9c69eb3f4c158fe10ce49325d57ec05d1306:/src/common/graphcmn.cpp?ds=sidebyside diff --git a/src/common/graphcmn.cpp b/src/common/graphcmn.cpp index fe68a237c5..4095bb95a9 100644 --- a/src/common/graphcmn.cpp +++ b/src/common/graphcmn.cpp @@ -147,6 +147,13 @@ void wxGraphicsMatrix::Set(wxDouble a, wxDouble b, wxDouble c, wxDouble d, 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() { @@ -495,6 +502,7 @@ IMPLEMENT_ABSTRACT_CLASS(wxGraphicsContext, wxObject) wxGraphicsContext::wxGraphicsContext(wxGraphicsRenderer* renderer) : wxGraphicsObject(renderer) { + m_logicalFunction = wxCOPY; } wxGraphicsContext::~wxGraphicsContext() @@ -535,6 +543,16 @@ void wxGraphicsContext::SetFont( const wxGraphicsFont& font ) 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() )