ROLAND
0.70
Amstrad Emulator based on Caprice Source rewritten in C++.
|
defines a planar size (width, height) More...
#include <size.h>
Public Member Functions | |
Size () | |
Standard Constructor. Initializes everything to 0. More... | |
Size (Uint16 w, Uint16 h) | |
Constructor. Initializes everything to 0. More... | |
Size (const Size &s) | |
Copyconstructor. A deep copy will done, so it's save to init Size with itself. More... | |
~Size () | |
Standard Destructor. Does nothing. More... | |
Size & | operator= (const Size &s) |
overloaded operator = A deep copy will done, so it's save to assign Size to itself. More... | |
bool | operator== (const Size &s) const |
overloaded operator == true, if width and height are the same More... | |
bool | operator!= (const Size &s) const |
overloaded operator != true, if width and height are different More... | |
void | clear () |
initializes everything to 0. More... | |
Uint16 | width () const |
Uint16 | height () const |
void | setWidth (Uint16 w) |
void | setHeight (Uint16 h) |
void | set (const Size &s) |
void | set (Uint16 w, Uint16 h) |
void | set (const SDL_Surface *surface) |
Private Attributes | |
Uint16 | mWidth |
Uint16 | mHeight |
defines a planar size (width, height)
|
inline |
Standard Constructor. Initializes everything to 0.
|
inline |
Constructor. Initializes everything to 0.
w | = width |
h | = height |
References Size::mHeight, and Size::mWidth.
Copyconstructor. A deep copy will done, so it's save to init Size with itself.
References Size::height(), Size::mHeight, Size::mWidth, and Size::width().
|
inline |
Standard Destructor. Does nothing.
|
inline |
initializes everything to 0.
References Size::mHeight, and Size::mWidth.
Referenced by Canvas::textSize().
|
inline |
References Size::mHeight.
Referenced by Image::calcTexSize(), Image::checkAlpha(), Image::checkColorKey(), FileList::FileList(), Image::genTexture(), Image::height(), initGui(), Size::operator!=(), Size::operator=(), Size::operator==(), Rect::Rect(), Rect::set(), Rect::setSize(), and Size::Size().
|
inline |
overloaded operator != true, if width and height are different
References Size::height(), Size::mHeight, Size::mWidth, and Size::width().
overloaded operator = A deep copy will done, so it's save to assign Size to itself.
References Size::height(), Size::mHeight, Size::mWidth, and Size::width().
|
inline |
overloaded operator == true, if width and height are the same
References Size::height(), Size::mHeight, Size::mWidth, and Size::width().
|
inline |
References Size::mHeight, and Size::mWidth.
Referenced by Image::clearTexture(), Image::convert(), and Image::load().
|
inline |
References Size::mHeight, and Size::mWidth.
|
inline |
References Size::mHeight, and Size::mWidth.
|
inline |
References Size::mHeight.
Referenced by Canvas::textSize().
|
inline |
References Size::mWidth.
Referenced by Canvas::textSize().
|
inline |
References Size::mWidth.
Referenced by Image::calcTexSize(), Image::checkAlpha(), Image::checkColorKey(), Label::drawText(), FileList::FileList(), Image::genTexture(), initGui(), Size::operator!=(), Size::operator=(), Size::operator==(), Rect::Rect(), Rect::set(), Rect::setSize(), Size::Size(), Canvas::textSize(), and Image::width().
|
private |
Referenced by Size::clear(), Size::height(), Size::operator!=(), Size::operator=(), Size::operator==(), Size::set(), Size::setHeight(), and Size::Size().
|
private |
Referenced by Size::clear(), Size::operator!=(), Size::operator=(), Size::operator==(), Size::set(), Size::setWidth(), Size::Size(), and Size::width().