Added initial implementation of Template.

This commit is contained in:
Jim Evins
2013-11-02 17:10:49 -04:00
parent be55bebc50
commit 262932a4c7
16 changed files with 416 additions and 60 deletions
+5 -4
View File
@@ -53,12 +53,12 @@ namespace libglabels
}
bool FrameRect::isSimilar( Frame *b ) const
bool FrameRect::isSimilarTo( Frame *other ) const
{
if ( FrameRect *bRect = dynamic_cast<FrameRect*>(b) )
if ( FrameRect *otherRect = dynamic_cast<FrameRect*>(other) )
{
if ( (fabs( mW - bRect->mW ) <= Constants::EPSILON) &&
(fabs( mH - bRect->mH ) <= Constants::EPSILON) )
if ( (fabs( mW - otherRect->mW ) <= Constants::EPSILON) &&
(fabs( mH - otherRect->mH ) <= Constants::EPSILON) )
{
return true;
}
@@ -66,5 +66,6 @@ namespace libglabels
return false;
}
}