Margin(int x, int y)
Construct a margin with the left = right and top = bottom.
Definition: margin.h:53
A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:34
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
int right
Right margin.
Definition: margin.h:83
bool operator==(const Margin &other) const
Check if this margin contains the same values as another margin.
Definition: margin.h:101
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
bool operator!=(const Margin &other) const
Check if this margin contains differing values from another margin.
Definition: margin.h:108
int left
Left margin.
Definition: margin.h:75