This commit is contained in:
2025-06-02 08:46:42 +03:30
parent b660b12322
commit d01e1036ce
5 changed files with 854 additions and 121 deletions
@@ -1624,6 +1624,49 @@ bool HasInsideBox(
return result;
}
/**
* Remove Specified Box from Collection ...
*/
bool RemoveBox(
XBoxZone &box,
XBoxZone &boxes[] //
)
{
//
bool result = false;
//
result =
box.IsValid() &&
HasChild(boxes);
if (!result)
{
return result;
}
//
int idx = -1;
result = FindBoxIndex(
idx,
box,
boxes //
);
if (!result)
{
return result;
}
//
result = ArrayRemove(
boxes,
idx,
1 //
);
//
return result;
}
/**
* Converts to XBoxZone ...
*