There's a lot of "<blah>.width () + <blah>.border () * 2" and "<blah>.height () + <blah>.border () * 2" around. Surely CompWindow::Geometry could have a "widthWithBorders" method - or maybe a free function?
I'm tempted by
template<Typename T> inline int heightWithBorders(T const& blah) { return blah.height () + blah.border () * 2; }
« Back to merge proposal
There's a lot of "<blah>.width () + <blah>.border () * 2" and "<blah>.height () + <blah>.border () * 2" around. Surely CompWindow: :Geometry could have a "widthWithBorders" method - or maybe a free function?
I'm tempted by
template<Typename T>
inline int heightWithBorders(T const& blah) { return blah.height () + blah.border () * 2; }