1 #ifndef __blip_Size_hpp 2 #define __blip_Size_hpp 21 Size(uint_t width, uint_t height)
throw();
43 void setSize(uint_t width, uint_t height)
throw();
53 {
return(!
operator==(other)); }
56 inline operator const void*()
const throw()
57 {
return(
isEmpty() ? NULL :
this); }
80 #endif // __blip_Size_hpp uint_t getHeight() const
Get the height.
Definition: Size.hpp:35
Size()
Construct a new Size with 0 width and height.
Definition: Size.cpp:8
void setSize(uint_t width, uint_t height)
Set the width and height.
Definition: Size.cpp:33
A rectangular size that has a width and a height.
Definition: Size.hpp:13
void setWidth(uint_t width)
Set the width.
Definition: Size.hpp:31
bool operator!=(const Size &other) const
Inequality operator.
Definition: Size.hpp:52
uint_t getWidth() const
Get the width.
Definition: Size.hpp:27
WAV file format details at: https://ccrma.stanford.edu/courses/422/projects/WaveFormat/.
Definition: AccelerometerSensorEvent.cpp:3
void setHeight(uint_t height)
Set the height.
Definition: Size.hpp:39
bool operator==(const Size &other) const
Equality operator.
Definition: Size.cpp:50
bool fitsInside(const Size &other) const
Test if this Size "fits inside" another one, e.g., whether the other Size's width and height are both...
Definition: Size.cpp:58
bool operator!() const
Not operator.
Definition: Size.hpp:60
~Size()
Destructor.
Definition: Size.cpp:26
bool isEmpty() const
Test if this dimension is empty, i.e., has 0 width and/or height.
Definition: Size.cpp:42