RectangleList with Components


#1

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?

Thanks!!


#2

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


#3

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


#4

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


#5

that was useful, thanks jules!! :smiley: