65 void set(
const SDL_Surface * surface) {
mWidth = surface->w;
mHeight = surface->h;}
75 #endif // SDLTK_SIZE_H bool operator==(const Size &s) const
overloaded operator == true, if width and height are the same
Definition: size.h:47
Size & operator=(const Size &s)
overloaded operator = A deep copy will done, so it's save to assign Size to itself.
Definition: size.h:44
Size(const Size &s)
Copyconstructor. A deep copy will done, so it's save to init Size with itself.
Definition: size.h:38
void setWidth(Uint16 w)
Definition: size.h:61
Size(Uint16 w, Uint16 h)
Constructor. Initializes everything to 0.
Definition: size.h:36
Uint16 mHeight
Definition: size.h:69
Size()
Standard Constructor. Initializes everything to 0.
Definition: size.h:34
Uint16 mWidth
Definition: size.h:68
void clear()
initializes everything to 0.
Definition: size.h:54
~Size()
Standard Destructor. Does nothing.
Definition: size.h:41
defines a planar size (width, height)
Definition: size.h:30
Uint16 height() const
Definition: size.h:59
Uint16 width() const
Definition: size.h:57
void setHeight(Uint16 h)
Definition: size.h:62
bool operator!=(const Size &s) const
overloaded operator != true, if width and height are different
Definition: size.h:50
the SDL based Stuff
Definition: audio.cpp:22