Hi Guys,
I'm creating a little GUI for touch screens and so I'm using a lot of rectangles as "touchzones" (using the rectangle.contains(e.location) in mouse click events) but there are some things I'd like to do on lots of rectangles at the same time. I'd like to copy the rectangles into an array BY REFERENCE so that I can carry out operations on lots of rectangles at a time but the changes will flow back to the original instances of each rectangle.
Is it possible to create an array of rectangles and copy them in by reference rather than by value which seems to be the default?
Thanks in advanced.
I'm creating a little GUI for touch screens and so I'm using a lot of rectangles as "touchzones" (using the rectangle.contains(e.location) in mouse click events) but there are some things I'd like to do on lots of rectangles at the same time. I'd like to copy the rectangles into an array BY REFERENCE so that I can carry out operations on lots of rectangles at a time but the changes will flow back to the original instances of each rectangle.
Is it possible to create an array of rectangles and copy them in by reference rather than by value which seems to be the default?
Thanks in advanced.