#include <cassert>
-#include "rowitem.h"
-#include "rowitemowner.h"
+#include "rowitem.hpp"
+#include "rowitemowner.hpp"
using std::max;
using std::make_pair;
using std::min;
using std::pair;
+using std::set;
using std::shared_ptr;
using std::vector;
return const_iterator(this);
}
+set< RowItemOwner* > RowItemOwner::list_row_item_owners()
+{
+ set< RowItemOwner* > owners;
+ for (const auto &r : *this)
+ owners.insert(r->owner());
+ return owners;
+}
+
pair<int, int> RowItemOwner::v_extents() const
{
- pair<int, int> extents(0, 0);
+ pair<int, int> extents(INT_MAX, INT_MIN);
+
for (const shared_ptr<RowItem> r : child_items()) {
assert(r);
if (!r->enabled())