Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

QwtDoubleSize Class Reference

List of all members.

Detailed Description

The QwtDoubleSize class defines a size in double coordinates


Public Member Functions

 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
QwtDoubleSizeoperator+= (const QwtDoubleSize &)
QwtDoubleSizeoperator-= (const QwtDoubleSize &)
QwtDoubleSizeoperator *= (double c)
QwtDoubleSizeoperator/= (double c)


Constructor & Destructor Documentation

QwtDoubleSize::QwtDoubleSize  ) 
 

Constructs a size with a width and height of 0.0.

QwtDoubleSize::QwtDoubleSize double  width,
double  height
 

Constructs a size with a width w and height h.

QwtDoubleSize::QwtDoubleSize const QSize &   ) 
 

Copy constructor.


Member Function Documentation

QwtDoubleSize QwtDoubleSize::boundedTo const QwtDoubleSize other  )  const
 

Returns a size with the minimum width and height of this size and other.

QwtDoubleSize QwtDoubleSize::expandedTo const QwtDoubleSize other  )  const
 

Returns a size with the maximum width and height of this size and other.

double QwtDoubleSize::height  )  const
 

Returns the height.

bool QwtDoubleSize::isEmpty  )  const
 

Returns TRUE if the width is <= 0 or the height is <= 0, otherwise FALSE.

bool QwtDoubleSize::isNull  )  const
 

Returns TRUE if the width is 0 and the height is 0; otherwise returns FALSE.

const QwtDoubleSize QwtDoubleSize::operator * double   )  const
 

Returns the size formed by multiplying both components by c.

bool QwtDoubleSize::operator!= const QwtDoubleSize  )  const
 

Returns TRUE if the size is not equal to other; otherwise returns FALSE.

const QwtDoubleSize QwtDoubleSize::operator+ const QwtDoubleSize other  )  const
 

Returns the size formed by adding both components by the components of other. Each component is added separately.

QwtDoubleSize & QwtDoubleSize::operator+= const QwtDoubleSize  ) 
 

Adds size other to this size and returns a reference to this size.

const QwtDoubleSize QwtDoubleSize::operator- const QwtDoubleSize other  )  const
 

Returns the size formed by subtracting both components by the components of other. Each component is subtracted separately.

const QwtDoubleSize QwtDoubleSize::operator-  )  const
 

Returns the size formed by changing the sign of both components, equivalent to QwtDoubleSize(-width(), -height());

QwtDoubleSize & QwtDoubleSize::operator-= const QwtDoubleSize  ) 
 

Subtracts size other from this size and returns a reference to this size.

const QwtDoubleSize QwtDoubleSize::operator/ double   )  const
 

Returns the size formed by dividing both components by c.

bool QwtDoubleSize::operator== const QwtDoubleSize  )  const
 

Returns TRUE if the size is equal to other; otherwise returns FALSE.

double & QwtDoubleSize::rheight  ) 
 

Returns a reference to the height.

double & QwtDoubleSize::rwidth  ) 
 

Returns a reference to the width.

void QwtDoubleSize::setHeight double  h  ) 
 

Sets the height to height.

void QwtDoubleSize::setWidth double  w  ) 
 

Sets the width to width.

void QwtDoubleSize::transpose  ) 
 

Swaps the values of width and height.

double QwtDoubleSize::width  )  const
 

Returns the width.


Generated on Tue Nov 25 21:15:07 2003 for Qwt User's Guide by doxygen 1.3.4