title: Is it worth cutting down a 540 byte class into smaller chunks? (C++)
body: <p>So I've been developing a UI toolkit for the past year, and my Window class has gotten to a point where the size of the class (through sizeof) is 540 bytes).</p>
  
  <p>I was thinking, that since not all windows have children, I might split parts of the code that handles having children (its alignment etc) into a separate class and have a pointer to it. Same goes with texts, icons, and scrolling etc.</p>
  
  <p>Is this recommended practice or is there anything I'm blatantly missing?</p>