Sizef Class Reference

#include <sizef.hpp>

List of all members.

Public Member Functions

 Sizef ()
 Sizef (float width_, float height_)
 Sizef (const Sizef &rhs)
 Sizef (const Size &rhs)
Sizefoperator *= (float factor)
Sizefoperator/= (float divisor)
Sizefoperator+= (const Sizef &rhs)
Sizefoperator-= (const Sizef &rhs)

Public Attributes

float width
float height


Detailed Description

Definition at line 24 of file sizef.hpp.


Constructor & Destructor Documentation

Sizef::Sizef (  )  [inline]

Definition at line 27 of file sizef.hpp.

00027           :
00028     width(0.0f),
00029     height(0.0f)
00030   {}

Sizef::Sizef ( float  width_,
float  height_ 
) [inline]

Definition at line 32 of file sizef.hpp.

00032                                      :
00033     width(width_), 
00034     height(height_) 
00035   {}

Sizef::Sizef ( const Sizef rhs  )  [inline]

Definition at line 37 of file sizef.hpp.

00037                           :
00038     width(rhs.width),
00039     height(rhs.height)
00040   {}

Sizef::Sizef ( const Size rhs  ) 

Definition at line 23 of file sizef.cpp.

00023                             :
00024   width(static_cast<float>(rhs.width)),
00025   height(static_cast<float>(rhs.height))
00026 {
00027 }


Member Function Documentation

Sizef& Sizef::operator *= ( float  factor  )  [inline]

Definition at line 44 of file sizef.hpp.

References height, and width.

00045   {
00046     width  *= factor;
00047     height *= factor;
00048     return *this;
00049   }

Sizef& Sizef::operator/= ( float  divisor  )  [inline]

Definition at line 51 of file sizef.hpp.

References height, and width.

00052   {
00053     width  /= divisor;
00054     height /= divisor;
00055     return *this;
00056   }

Sizef& Sizef::operator+= ( const Sizef rhs  )  [inline]

Definition at line 58 of file sizef.hpp.

References height, and width.

00059   { 
00060     width  += rhs.width; 
00061     height += rhs.height; 
00062     return *this; 
00063   }

Sizef& Sizef::operator-= ( const Sizef rhs  )  [inline]

Definition at line 65 of file sizef.hpp.

References height, and width.

00066   { 
00067     width  -= rhs.width; 
00068     height -= rhs.height; 
00069     return *this; 
00070   }


Member Data Documentation

float Sizef::width

Definition at line 73 of file sizef.hpp.

Referenced by Background::draw(), Background::draw_image(), operator *(), operator *=(), operator!=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator<<(), and operator==().

float Sizef::height

Definition at line 74 of file sizef.hpp.

Referenced by Background::draw(), Background::draw_image(), operator *(), operator *=(), operator!=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator<<(), and operator==().


The documentation for this class was generated from the following files:
Generated on Mon Jun 9 03:38:36 2014 for SuperTux by  doxygen 1.5.1