RectangleList with Components

Hi again,

I want add some objects in a windows but I don’t want that they overlap. I see that RectangleList can work very smooth with rectangles, but I’d like to use objects instead simple rectangles.

I think that I cannot inherit RectangleList with a Component. How could I do it? any clue?


Sorry, I can’t understand what you’re trying to do…

I’m trying to avoid the overlap of two Component objects… i don’t know what classes or methods should i use.

Well Rectangle::intersects() will tell you whether two rectangles overlap…(?)

that was useful, thanks jules!! :smiley: