Adaptagrams
|
A box consisting of four edge values for representing padding or margins for rectangles. More...
#include <box.h>
Public Member Functions | |
Box (double xMin, double xMax, double yMin, double yMax) | |
Constructs a padding or margin box consisting of a value for each edge. More... | |
Box (double all) | |
Constructs a padding or margin box consisting of a value for each edge. More... | |
Box () | |
Constructs an empty padding or margin box. | |
A box consisting of four edge values for representing padding or margins for rectangles.
cola::Box::Box | ( | double | xMin, |
double | xMax, | ||
double | yMin, | ||
double | yMax | ||
) |
Constructs a padding or margin box consisting of a value for each edge.
Values should be nonnegative.
[in] | xMin | Minimum horizontal value. |
[in] | xMax | Maximum horizontal value. |
[in] | yMin | Minimum vertical value. |
[in] | yMax | Maximum vertical value. |
References vpsc::XDIM, and vpsc::YDIM.
cola::Box::Box | ( | double | all | ) |
Constructs a padding or margin box consisting of a value for each edge.
Values should be nonnegative.
[in] | all | The value to be used for all four edges. |
References vpsc::XDIM, and vpsc::YDIM.