ランタイム
|
矩形クラス More...
#include <Rectangle.h>
Public Member Functions | |
Rectangle (void) | |
コンストラクタ More... | |
Rectangle (Int32 rx, Int32 ry, Int32 rw, Int32 rh) | |
コンストラクタ More... | |
Rectangle (const Mix::Rectangle &rect) | |
コピーコンストラクタ More... | |
Rectangle (const Mix::RectangleF &rect) | |
コピーコンストラクタ More... | |
Boolean | operator== (const Rectangle &rect) const |
等価比較 More... | |
Boolean | operator!= (const Rectangle &rect) const |
等価比較 More... | |
Mix::Rectangle & | operator= (const Mix::Rectangle &rect) |
代入( = ) More... | |
Mix::Rectangle & | operator= (const Mix::RectangleF &rect) |
代入( = ) More... | |
void | Set (Int32 rx, Int32 ry, Int32 rw, Int32 rh) |
矩形を設定します More... | |
Boolean | Contains (const Mix::Point &p) const |
指定した点が含まれているかチェックします More... | |
Boolean | Contains (const Mix::Rectangle &rect, Mix::Rectangle *pOverlapRect=NULL) const |
指定した矩形が含まれているかチェックします More... | |
Int32 | GetRight (void) const |
矩形の右端のX座標を取得します More... | |
void | SetRight (Int32 right) |
矩形の右端のX座標を設定します More... | |
Int32 | GetBottom (void) const |
矩形の下端のY座標を取得します More... | |
void | SetBottom (Int32 bottom) |
矩形の下端のY座標を設定します More... | |
Static Public Member Functions | |
static const Mix::Rectangle & | Zero (void) |
初期値( 0, 0, 0, 0 )を取得します More... | |
Public Attributes | |
Int32 | x |
X軸上の位置 More... | |
Int32 | y |
Y軸上の位置 More... | |
Int32 | width |
幅 More... | |
Int32 | height |
高さ More... | |
矩形クラス
Mix::Rectangle::Rectangle | ( | void | ) |
コンストラクタ
コンストラクタ
[in] | rx | X軸上の位置 |
[in] | ry | Y軸上の位置 |
[in] | rw | 幅 |
[in] | rh | 高さ |
Mix::Rectangle::Rectangle | ( | const Mix::Rectangle & | rect | ) |
コピーコンストラクタ
[in] | rect | 矩形 |
Mix::Rectangle::Rectangle | ( | const Mix::RectangleF & | rect | ) |
コピーコンストラクタ
[in] | rect | 矩形 |
等価比較
[in] | rect | 比較する矩形 |
等価比較
[in] | rect | 比較する矩形 |
Mix::Rectangle& Mix::Rectangle::operator= | ( | const Mix::Rectangle & | rect | ) |
代入( = )
[in] | rect | 代入元 |
Mix::Rectangle& Mix::Rectangle::operator= | ( | const Mix::RectangleF & | rect | ) |
代入( = )
[in] | rect | 代入元 |
矩形を設定します
[in] | rx | 矩形の左上の X 座標 |
[in] | ry | 矩形の左上の Y 座標 |
[in] | rw | 矩形の幅 |
[in] | rh | 矩形の高さ |
Boolean Mix::Rectangle::Contains | ( | const Mix::Point & | p | ) | const |
Boolean Mix::Rectangle::Contains | ( | const Mix::Rectangle & | rect, |
Mix::Rectangle * | pOverlapRect = NULL |
||
) | const |
指定した矩形が含まれているかチェックします
[in] | rect | 矩形を表す Mix::Rectangle クラス |
[out] | pOverlapRect | 重なっている矩形を表す Mix::Rectangle クラスのポインタ |
Int32 Mix::Rectangle::GetRight | ( | void | ) | const |
矩形の右端のX座標を取得します
void Mix::Rectangle::SetRight | ( | Int32 | right | ) |
矩形の右端のX座標を設定します
[in] | right | 右端のX座標 |
Int32 Mix::Rectangle::GetBottom | ( | void | ) | const |
矩形の下端のY座標を取得します
void Mix::Rectangle::SetBottom | ( | Int32 | bottom | ) |
矩形の下端のY座標を設定します
[in] | bottom | 下端のY座標 |
|
inlinestatic |
初期値( 0, 0, 0, 0 )を取得します
Int32 Mix::Rectangle::x |
X軸上の位置
Int32 Mix::Rectangle::y |
Y軸上の位置
Int32 Mix::Rectangle::width |
幅
Int32 Mix::Rectangle::height |
高さ