ArrayList that can hold a point

ArrayList that can hold a point

BY 18 Sep 2013 Native Application Development

I want to use an arraylist to store points so that I can use the points to draw a Line. I have defined the arraylist as

Tizen::Base::Collection::ArrayListT<Point>* list_points = new Tizen::Base::Collection::ArrayListT<Point>();

I am able to add a point to the points arraylist using the Add method as : list_points->Add(  Point( 20 , 30 ) );

Now suppose say I want to access 10 points in the list_points. How can I do that? I can across a function know as GetAt but basically it returns an Object.

I want the output to be of type Point only so I can do something like Point p = ( get the first Point from list_points ). As I want to draw a line and DrawLine function takes two Points as an argument I want to pass say the first two points from the list_points DrawLine( p1 , p2 ). How can I achieve this?

Thanks!

Written by