I'm making a flow layout conainer with a flowLayout class. The flowLayout class will recognize the Spacer and VLine class as separators and only break the rows based on those children, similar to have windows toolbars work. That part is working ok. Now I want an option to have the flowLayout to draw horizontal lines inbetween each row. My question is, what is the best practice for having a layout class draw stuff on a target container. I didn't want to put the drawing code inside the container itself because the container has no knowledge of the actual rows.
Right now I'm storing a pointer to a Sprite in the flowLayout class and I'm creating it if it's null and adding it to the target's rawChildren. I'm then having the flowLayout class draw to the sprite's graphics object. I already noticed that I have to add some mask since it let's me draw outside the boundaries of the target. If anyone has some ideas on how I should set this up, I'd be happy to hear what you have to say. Thanks.
