Size Class Reference

#include <size.hpp>

List of all members.

Public Member Functions

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

Public Attributes

int width
int height


Detailed Description

Definition at line 24 of file size.hpp.


Constructor & Destructor Documentation

Size::Size (  )  [inline]

Definition at line 27 of file size.hpp.

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

Size::Size ( int  width_,
int  height_ 
) [inline]

Definition at line 32 of file size.hpp.

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

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

Definition at line 37 of file size.hpp.

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

Size::Size ( const Sizef rhs  )  [explicit]

Definition at line 23 of file size.cpp.

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


Member Function Documentation

Size& Size::operator *= ( int  factor  )  [inline]

Definition at line 44 of file size.hpp.

References height, and width.

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

Size& Size::operator/= ( int  divisor  )  [inline]

Definition at line 51 of file size.hpp.

References height, and width.

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

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

Definition at line 58 of file size.hpp.

References height, and width.

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

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

Definition at line 65 of file size.hpp.

References height, and width.

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


Member Data Documentation

int Size::width

Definition at line 73 of file size.hpp.

Referenced by GLRenderer::apply_config(), GLRenderer::apply_video_mode(), Config::load(), OptionsMenu::menu_action(), operator *(), operator *=(), operator!=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator<<(), operator==(), OptionsMenu::OptionsMenu(), and Config::save().

int Size::height

Definition at line 74 of file size.hpp.

Referenced by GLRenderer::apply_config(), GLRenderer::apply_video_mode(), Config::load(), OptionsMenu::menu_action(), operator *(), operator *=(), operator!=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator<<(), operator==(), OptionsMenu::OptionsMenu(), and Config::save().


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