#include "element.hxx"
#include <boost/shared_ptr.hpp>
+#include <list>
#include <map>
namespace canvas
public Element
{
public:
- Group(SGPropertyNode_ptr node);
+ typedef std::list< std::pair< const SGPropertyNode*,
+ ElementPtr
+ >
+ > ChildList;
+
+ Group(SGPropertyNode_ptr node, const Style& parent_style = Style());
virtual ~Group();
virtual void update(double dt);
protected:
- typedef std::map<const SGPropertyNode*, ElementPtr> ChildMap;
- ChildMap _children;
+
+ ChildList _children;
+
+ virtual bool handleLocalMouseEvent(const canvas::MouseEvent& event);
virtual void childAdded(SGPropertyNode * child);
virtual void childRemoved(SGPropertyNode * child);