#ifndef MSP_GLTK_ARRANGEMENT_H_
#define MSP_GLTK_ARRANGEMENT_H_
-#include <list>
#include <stdexcept>
+#include <vector>
+#include <msp/core/noncopyable.h>
#include "layout.h"
#include "mspgltk_api.h"
{
public:
arrangement_error(const std::string &w): std::logic_error(w) { }
- virtual ~arrangement_error() throw() { }
};
-class MSPGLTK_API Arrangement
+class MSPGLTK_API Arrangement: public NonCopyable
{
protected:
enum Side
struct Edge
{
- std::list<Widget *> widgets;
+ std::vector<Widget *> widgets;
bool aligned = false;
bool empty() { return widgets.empty(); }
};
Layout &layout;
- Arrangement *parent = 0;
+ Arrangement *parent = nullptr;
Edge edges[4];
Arrangement(Layout &);