64 void addItem (
double currentSize,
int size() const noexcept
Returns the current number of elements in the array.
A utility class for fitting a set of objects whose sizes can vary between a minimum and maximum size,...
void addItem(double currentSize, double minSize, double maxSize, int order=0)
Adds an item to the list.
double getItemSize(int index) const noexcept
Returns the size of one of the items.
int getNumItems() const noexcept
Returns the number of items that have been added.
~StretchableObjectResizer()
Destructor.
void resizeToFit(double targetSize)
Resizes all the items to fit this amount of space.
StretchableObjectResizer()
Creates an empty object resizer.
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...