Margin(int x, int y)
Construct a margin with the left = right and top = bottom.
Definition: margin.h:53
int top
Top margin.
Definition: margin.h:79
Margin(int l, int t, int r, int b)
Construct a margin with all measurements specified.
Definition: margin.h:62
Margin(int all)
Construct a margin with all measurements equal.
Definition: margin.h:46
Class to represent a margin around an area.
Definition: margin.h:34
bool operator!=(const Margin &other) const
Check if this margin contains differing values from another margin.
Definition: margin.h:108
int right
Right margin.
Definition: margin.h:83
int bottom
Bottom margin.
Definition: margin.h:87
Margin()
Construct a margin with 0 for all measurements.
Definition: margin.h:40
Margin(const Margin &other)
Copy constructor.
Definition: margin.h:69
Margin & operator=(const Margin &other)
Assign this margin with the values of another.
Definition: margin.h:94
int left
Left margin.
Definition: margin.h:75
bool operator==(const Margin &other) const
Check if this margin contains the same values as another margin.
Definition: margin.h:101