Rectangles list is STL now.

This commit is contained in:
2025-08-07 23:54:51 -04:00
parent eaee41750d
commit 905fdbf0dd
3 changed files with 23 additions and 29 deletions

View File

@ -5,6 +5,9 @@
# error Do not include this file directly, use "core.hh" instead.
#endif
#include <memory>
#include <list>
namespace dw {
namespace core {
@ -140,20 +143,22 @@ public:
class Region
{
private:
lout::container::typed::List <Rectangle> *rectangleList;
std::list< std::unique_ptr< Rectangle > > rectangleList;
public:
Region ();
~Region ();
void clear () { rectangleList->clear (); };
void clear () { rectangleList.clear(); }
void addRectangle (Rectangle *r);
lout::container::typed::Iterator <Rectangle> rectangles ()
auto begin()
{
return rectangleList->iterator ();
};
return rectangleList.begin();
}
auto end()
{
return rectangleList.end();
}
};
/**