BoxFitter instance contains an array of
Frame objects and allows placing boxes one after the other in them. Such functionality is useful, for example, for boxes that provide multiple frames for content.
First one needs to add the frame objects via
<<or provide them on initialization.
Then use the
fitmethod to fit boxes one after the other. No drawing is done.
If there are no remaining boxes, all boxes were successfully fitted into the frames.
If there are remaining boxes but no fit results, the first box could not be fitted.
If there are remaining boxes and fit results, some boxes were able to fit.
Frame::FitResult objects for the successfully fitted objects in the order the boxes were fitted.
The array of frames inside of which the boxes should be laid out.
<< to add additional frames.
The boxes that could not be fitted into the frames.
Public Class Methods
Public Instance Methods
Add the given frame to the list of frames.
Returns an array with the heights of the content of each frame.
Fits the given box at the current location.
true if all boxes were successfully fitted.