libAlgAudio  v1.99-440-g08538e5-dirty
The development library for AlgAudio framework.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AlgAudio::Size2D Struct Reference

#include <Utilities.hpp>

Public Member Functions

bool Fits (const Size2D &other) const
 
bool IsEmpty () const
 
bool operator!= (const Size2D &other) const
 
Size2D operator+ (const Size2D &other) const
 
Size2D operator- (const Size2D &other) const
 
Size2D operator/ (const int &i) const
 
bool operator== (const Size2D &other) const
 
 Size2D (int w=0, int h=0)
 
Point2D ToPoint () const
 
std::string ToString () const
 

Public Attributes

int height
 
int width
 

Detailed Description

A structure representing object dimentions.

Constructor & Destructor Documentation

AlgAudio::Size2D::Size2D ( int  w = 0,
int  h = 0 
)
inline

Member Function Documentation

bool AlgAudio::Size2D::Fits ( const Size2D other) const
inline

Returns true iff this size has both dimentions smaller than the other one.

bool AlgAudio::Size2D::IsEmpty ( ) const
inline

Returns true iff this size has at least one dimention equal to zero.

bool AlgAudio::Size2D::operator!= ( const Size2D other) const
inline
Size2D AlgAudio::Size2D::operator+ ( const Size2D other) const
inline
Size2D AlgAudio::Size2D::operator- ( const Size2D other) const
inline
Size2D AlgAudio::Size2D::operator/ ( const int &  i) const
inline
bool AlgAudio::Size2D::operator== ( const Size2D other) const
inline
Point2D AlgAudio::Size2D::ToPoint ( ) const
inline
std::string AlgAudio::Size2D::ToString ( ) const
inline

Member Data Documentation

int AlgAudio::Size2D::height
int AlgAudio::Size2D::width

The documentation for this struct was generated from the following file: