add API to remove widget anchors

This commit is contained in:
Eduardo Bart
2012-04-05 19:46:53 -03:00
parent 248ea9e8bc
commit 218f2e4994
4 changed files with 21 additions and 10 deletions

View File

@@ -489,6 +489,11 @@ void UIWidget::addAnchor(Fw::AnchorEdge anchoredEdge, const std::string& hookedW
logError("cannot add anchors to widget ", m_id, ": the parent doesn't use anchors layout");
}
void UIWidget::removeAnchor(Fw::AnchorEdge anchoredEdge)
{
addAnchor(anchoredEdge, "none", Fw::AnchorNone);
}
void UIWidget::centerIn(const std::string& hookedWidgetId)
{
if(m_destroyed)