CopperSpice API
1.9.2
|
The QMarginsF class defines the four margins of a rectangle. More...
Public Methods | |
QMarginsF () | |
QMarginsF (const QMargins &margins) | |
QMarginsF (qreal left, qreal top, qreal right, qreal bottom) | |
qreal | bottom () const |
bool | isNull () const |
qreal | left () const |
QMarginsF & | operator*= (qreal factor) |
QMarginsF & | operator+= (const QMarginsF &other) |
QMarginsF & | operator+= (qreal delta) |
QMarginsF & | operator-= (const QMarginsF &other) |
QMarginsF & | operator-= (qreal delta) |
QMarginsF & | operator/= (qreal factor) |
qreal | right () const |
void | setBottom (qreal bottom) |
void | setLeft (qreal left) |
void | setRight (qreal right) |
void | setTop (qreal top) |
QMargins | toMargins () const |
qreal | top () const |
Related Functions | |
These are not member functions | |
bool | operator!= (const QMarginsF &m1, const QMarginsF &m2) |
QMarginsF | operator* (const QMarginsF &margins, int factor) |
QMarginsF | operator* (const QMarginsF &margins, qreal factor) |
QMarginsF | operator* (int factor, const QMarginsF &margins) |
QMarginsF | operator* (qreal factor, const QMarginsF &margins) |
QMarginsF | operator+ (const QMarginsF &m1, const QMarginsF &m2) |
QMarginsF | operator+ (const QMarginsF &margins) |
QMarginsF | operator+ (const QMarginsF &margins, int delta) |
QMarginsF | operator+ (int delta, const QMarginsF &margins) |
QMarginsF | operator- (const QMarginsF &m1, const QMarginsF &m2) |
QMarginsF | operator- (const QMarginsF &margins) |
QMarginsF | operator- (const QMarginsF &margins, int delta) |
QMarginsF | operator/ (const QMarginsF &margins, int factor) |
QMarginsF | operator/ (const QMarginsF &margins, qreal factor) |
QDataStream & | operator<< (QDataStream &stream, const QMarginsF &margins) |
bool | operator== (const QMarginsF &m1, const QMarginsF &m2) |
QDataStream & | operator>> (QDataStream &stream, QMarginsF &margins) |
The QMarginsF class defines the four margins of a rectangle. QMarginsF defines a set of four margins: left, top, right and bottom which describes 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.
Constructs margins with the given left, top, right, and bottom.
|
inline |
Copy constructs a new QMarginsF from margins.
|
inline |
Returns the bottom margin.
|
inline |
Returns true if all margins are 0, otherwise returns false.
|
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 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 |
Returns the right margin.
|
related |
Returns true if m1 and m2 are different, otherwise returns false.
|
related |
Returns a QMarginsF object created by multiplying each component of margins by the given factor.
|
related |
Returns a QMarginsF object created by multiplying each component of margins by the given factor.
|
related |
Returns a QMarginsF object created by multiplying each component of margins by the given factor.
|
related |
Returns a QMarginsF object created by multiplying each component of margins by the given factor.
|
related |
Returns a QMarginsF object created by adding the given margins, m1 and m2. Each component is added separately.
|
related |
Returns a copy of the given margins.
|
related |
Returns a QMarginsF object created by adding margins to the given delta.
|
related |
Returns a QMarginsF object created by adding the given delta to margins.
|
related |
Returns a QMarginsF object created by subtracting m2 from m1. Each component is subtracted separately.
|
related |
Returns a QMarginsF object created by negating all components of margins.
|
related |
Returns a QMarginsF object created by subtracting the given delta from margins.
|
related |
Returns a QMarginsF object created by dividing the components of margins by the given factor.
|
related |
Returns a QMarginsF object created by dividing the components of 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.
|
related |
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.