So, I have been developing a UI toolkit over the past year, and my Window class has come to the point where the class size (via sizeof) is 540 bytes).
I thought that since not all windows have children, I can separate the parts of the code that processes the children (its alignment, etc.) into a separate class and have a pointer to it. The same goes for texts, icons and scrolling, etc.
Is this a recommended practice or is there something that I am clearly hiding?
source
share