CopperSpice API
1.9.2
|
The QMargins class defines the four margins of a rectangle. More...
Public Methods | |
QMargins () | |
QMargins (int left, int top, int right, int bottom) | |
int | bottom () const |
bool | isNull () const |
int | left () const |
QMargins & | operator*= (int factor) |
QMargins & | operator*= (qreal factor) |
QMargins & | operator+= (const QMargins &other) |
QMargins & | operator+= (int delta) |
QMargins & | operator-= (const QMargins &other) |
QMargins & | operator-= (int delta) |
QMargins & | operator/= (int factor) |
QMargins & | operator/= (qreal factor) |
int | right () const |
void | setBottom (int bottom) |
void | setLeft (int left) |
void | setRight (int right) |
void | setTop (int top) |
int | top () const |
Friends | |
bool | operator!= (const QMargins &m1, const QMargins &m2) |
bool | operator== (const QMargins &m1, const QMargins &m2) |
Related Functions | |
These are not member functions | |
QMargins | operator* (const QMargins &margins, int factor) |
QMargins | operator* (const QMargins &margins, qreal factor) |
QMargins | operator* (int factor, const QMargins &margins) |
QMargins | operator* (qreal factor, const QMargins &margins) |
QMargins | operator+ (const QMargins &m1, const QMargins &m2) |
QMargins | operator+ (const QMargins &margins) |
QMargins | operator+ (const QMargins &margins, int delta) |
QMargins | operator+ (int delta, const QMargins &margins) |
QMargins | operator- (const QMargins &m1, const QMargins &m2) |
QMargins | operator- (const QMargins &margins) |
QMargins | operator- (const QMargins &margins, int delta) |
QMargins | operator/ (const QMargins &margins, int factor) |
QMargins | operator/ (const QMargins &margins, qreal factor) |
QDataStream & | operator<< (QDataStream &stream, const QMargins &margins) |
QDataStream & | operator>> (QDataStream &stream, QMargins &margins) |
The QMargins class defines the four margins of a rectangle. This class defines a set of four margins; left, top, right and bottom, that describe the size of the borders surrounding a rectangle. The isNull() method returns true only if all margins are set to zero.
|
inline |
Constructs a margins object with all margins set to 0.
|
inline |
Constructs margins with the given left, top, right, and bottom.
|
inline |
Returns the bottom margin.
|
inline |
Returns true if all margins are 0, otherwise returns false.
|
inline |
Returns the left margin.
|
inline |
Multiplies each component of this object by factor and returns a reference to it.
|
inline |
Multiplies each component of this object by factor and returns a reference to it.
|
inline |
Add each component of other to the respective component of this object and returns a reference to it.
|
inline |
Adds the delta component to each component of this object and returns a reference to it.
|
inline |
Subtract each component of other from the respective component of this object and returns a reference to it.
|
inline |
Subtracts the delta from each component of this object and returns a reference to it.
|
inline |
Divides each component of this object by factor and returns a reference to it.
|
inline |
Divides each component of this object by factor and returns a reference to it.
|
inline |
Returns the right margin.
|
inline |
Sets the bottom margin to bottom.
|
inline |
Sets the left margin to left.
|
inline |
Sets the right margin to right.
|
inline |
Sets the Top margin to top.
|
inline |
Returns the top margin.
|
friend |
Returns true if m1 and m2 are different, otherwise returns false.
|
related |
Returns a QMargins object created by multiplying each component of margins by the given factor.
|
related |
Returns a QMargins object created by multiplying each component of margins by the given factor.
|
related |
Returns a QMargins object created by multiplying each component of margins by the given factor.
|
related |
Returns a QMargins object created by multiplying each component of margins by the given factor.
|
related |
Returns a QMargins object which is the sum of the given margins, m1 and m2. Each component is added separately.
|
related |
Returns a copy of margins.
|
related |
Returns a QMargins object created by adding margins to delta.
|
related |
Returns a QMargins object created by adding delta to margins.
|
related |
Returns a QMargins object created by subtracting m2 from m1. Each component is subtracted separately.
|
related |
Returns a QMargins object created by negating all components of margins.
|
related |
Returns a QMargins object created by subtracting delta from margins.
|
related |
Returns a QMargins object created by dividing the components of the margins by the given factor.
|
related |
Returns a QMargins object created by dividing the components of the margins by the given factor.
|
related |
Writes the given margins to the stream. Returns a reference to the stream.
Refer to Serializing Data Types for additional information.
|
friend |
Returns true if m1 and m2 are equal, otherwise returns false.
|
related |
Reads from the stream into the given margins. Returns a reference to the stream.
Refer to Serializing Data Types for additional information.