mirror of
https://github.com/edubart/otclient.git
synced 2025-12-15 05:09:46 +01:00
add API to remove widget anchors
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user