add some typedefs

This commit is contained in:
Eduardo Bart
2011-08-28 13:31:01 -03:00
parent e87297c1b5
commit 05edcc218d
8 changed files with 20 additions and 14 deletions

View File

@@ -41,18 +41,20 @@ private:
std::string m_hookedWidgetId;
};
typedef std::vector<UIAnchor> UIAnchorList;
class UIAnchorGroup
{
public:
UIAnchorGroup() : m_updated(true) { }
void addAnchor(const UIAnchor& anchor);
const std::vector<UIAnchor>& getAnchors() const { return m_anchors; }
const UIAnchorList& getAnchors() const { return m_anchors; }
bool isUpdated() const { return m_updated; }
void setUpdated(bool updated) { m_updated = updated; }
private:
std::vector<UIAnchor> m_anchors;
UIAnchorList m_anchors;
bool m_updated;
};