The QwtDoubleSize class defines a size in double coordinates
Definition at line 62 of file qwt_double_rect.h.
QwtDoubleSize ()
QwtDoubleSize (double width, double height)
QwtDoubleSize (const QSize &)
bool isNull () const
bool isEmpty () const
bool isValid () const
double width () const
double height () const
void setWidth (double w)
void setHeight (double h)
void transpose ()
QwtDoubleSize expandedTo (const QwtDoubleSize &) const
QwtDoubleSize boundedTo (const QwtDoubleSize &) const
double & rwidth ()
double & rheight ()
bool operator== (const QwtDoubleSize &) const
bool operator!= (const QwtDoubleSize &) const
const QwtDoubleSize operator- () const
const QwtDoubleSize operator+ (const QwtDoubleSize &) const
const QwtDoubleSize operator- (const QwtDoubleSize &) const
const QwtDoubleSize operator * (double) const
const QwtDoubleSize operator/ (double) const
QwtDoubleSize & operator+= (const QwtDoubleSize &)
QwtDoubleSize & operator-= (const QwtDoubleSize &)
QwtDoubleSize & operator *= (double c)
QwtDoubleSize & operator/= (double c)
Constructs a size with a width and height of 0.0.
Definition at line 131 of file qwt_double_rect.cpp.
Referenced by boundedTo(), expandedTo(), operator *(), operator+(), operator-(), and operator/().
Constructs a size with a width w and height h.
Definition at line 139 of file qwt_double_rect.cpp.
Copy constructor.
Definition at line 147 of file qwt_double_rect.cpp.
Returns a size with the minimum width and height of this size and other. Definition at line 181 of file qwt_double_rect.cpp.
References d_height, d_width, and QwtDoubleSize().
Returns a size with the maximum width and height of this size and other. Definition at line 167 of file qwt_double_rect.cpp.
References d_height, d_width, and QwtDoubleSize().
Referenced by QwtPlotZoomer::end().
Returns the height.
Definition at line 256 of file qwt_double_rect.h.
Referenced by QwtPlotZoomer::begin(), and QwtDoubleRect::setSize().
Returns TRUE if the width is <= 0 or the height is <= 0, otherwise FALSE. Definition at line 235 of file qwt_double_rect.h.
Returns TRUE if the width is 0 and the height is 0; otherwise returns FALSE. Definition at line 226 of file qwt_double_rect.h.
Returns TRUE if the width is equal to or greater than 0 and the height is equal to or greater than 0; otherwise returns FALSE. Definition at line 244 of file qwt_double_rect.h.
Referenced by QwtPlotZoomer::begin().
Returns the size formed by multiplying both components by c.
Definition at line 240 of file qwt_double_rect.cpp.
Returns TRUE if the size is not equal to other; otherwise returns FALSE.
Definition at line 199 of file qwt_double_rect.cpp.
Returns the size formed by adding both components by the components of other. Each component is added separately. Definition at line 219 of file qwt_double_rect.cpp.
References d_height, d_width, and QwtDoubleSize().
Adds size other to this size and returns a reference to this size.
Definition at line 254 of file qwt_double_rect.cpp.
References d_height, and d_width.
Returns the size formed by subtracting both components by the components of other. Each component is subtracted separately. Definition at line 231 of file qwt_double_rect.cpp.
References d_height, d_width, and QwtDoubleSize().
Returns the size formed by changing the sign of both components, equivalent to QwtDoubleSize(-width(), -height()); Definition at line 209 of file qwt_double_rect.cpp.
Subtracts size other from this size and returns a reference to this size.
Definition at line 263 of file qwt_double_rect.cpp.
References d_height, and d_width.
Returns the size formed by dividing both components by c.
Definition at line 247 of file qwt_double_rect.cpp.
Returns TRUE if the size is equal to other; otherwise returns FALSE.
Definition at line 192 of file qwt_double_rect.cpp.
References d_height, and d_width.
Returns a reference to the height.
Definition at line 280 of file qwt_double_rect.h.
Returns a reference to the width.
Definition at line 274 of file qwt_double_rect.h.
Sets the height to height.
Definition at line 268 of file qwt_double_rect.h.
Sets the width to width.
Definition at line 262 of file qwt_double_rect.h.
Swaps the values of width and height.
Definition at line 155 of file qwt_double_rect.cpp.
Returns the width.
Definition at line 250 of file qwt_double_rect.h.
Referenced by QwtPlotZoomer::begin(), and QwtDoubleRect::setSize().
Generated automatically by Doxygen for Qwt User's Guide from the source code.