Just wondering what's the best advice on how to do this...any tips very appreciated!
I'm coding a piano roll.
Have got the background sorted out, and now looking at adding note components.
The note components are their own component class, and will be dynamically created when needed. These components need to know quite a lot about the size and state of various parts of the parent background class.
I'm quite a C++ noob, so not too clear about this, but i'm thinking the best option might be to make the note components a friend class of the background parent. Does that sound ok?
If that's the way to go, can someone give me a quick tip on the syntax on how to dynamically create these note components and declare them friends of the parent?