Adaptagrams
Public Member Functions | List of all members
cola::Box Class Reference

A box consisting of four edge values for representing padding or margins for rectangles. More...

#include <box.h>

Collaboration diagram for cola::Box:
Collaboration graph

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.
 

Detailed Description

A box consisting of four edge values for representing padding or margins for rectangles.

Constructor & Destructor Documentation

◆ Box() [1/2]

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.

Parameters
[in]xMinMinimum horizontal value.
[in]xMaxMaximum horizontal value.
[in]yMinMinimum vertical value.
[in]yMaxMaximum vertical value.

References vpsc::XDIM, and vpsc::YDIM.

◆ Box() [2/2]

cola::Box::Box ( double  all)

Constructs a padding or margin box consisting of a value for each edge.

Values should be nonnegative.

Parameters
[in]allThe value to be used for all four edges.

References vpsc::XDIM, and vpsc::YDIM.


The documentation for this class was generated from the following files: