Simplification of Window::getAbsolutePosition(), etc
Posted: Fri Jun 25, 2004 22:19
It seems rather redundent to implement getPosition, getAbsolutePosition, and getRelativePosition...
Couldn't a version of getPosition() and getSize() be built to accept an optional MetricsMode parameter?
(This would simplify a bit of code I wrote which currently has to set the metrics mode to match it's parent's mode and then set it back when done... as it is actually cleaner to code it that way than to use if's and the named functions.)
Couldn't a version of getPosition() and getSize() be built to accept an optional MetricsMode parameter?
(This would simplify a bit of code I wrote which currently has to set the metrics mode to match it's parent's mode and then set it back when done... as it is actually cleaner to code it that way than to use if's and the named functions.)