merge total remake

This commit is contained in:
Eduardo Bart
2011-08-13 23:09:11 -03:00
parent 0af7856475
commit 55862b07ad
253 changed files with 6777 additions and 8463 deletions

View File

@@ -0,0 +1,27 @@
#ifndef UIANCHOR_H
#define UIANCHOR_H
#include "uideclarations.h"
struct AnchorLine {
AnchorLine(std::string widgetId, AnchorPoint edge) : widgetId(widgetId), edge(edge) { }
std::string widgetId;
AnchorPoint edge;
};
class UIAnchor
{
public:
UIAnchor(const UIWidgetPtr& anchoredWidget, AnchorPoint anchoredEdge, const AnchorLine& anchorLine);
UIWidgetPtr getAnchorLineWidget() const;
UIWidgetPtr getAnchoredWidget() const;
AnchorPoint getAnchoredEdge() const;
int getAnchorLinePoint() const;
private:
UIWidgetWeakPtr m_anchoredWidget;
AnchorPoint m_anchoredEdge;
AnchorLine m_anchorLine;
};
#endif