ランタイム
Mix::Rectangle Class Reference

矩形クラス 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::Rectangleoperator= (const Mix::Rectangle &rect)
 代入( = ) More...
 
Mix::Rectangleoperator= (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::RectangleZero (void)
 初期値( 0, 0, 0, 0 )を取得します More...
 

Public Attributes

Int32 x
 X軸上の位置 More...
 
Int32 y
 Y軸上の位置 More...
 
Int32 width
 More...
 
Int32 height
 高さ More...
 

Detailed Description

矩形クラス

Constructor & Destructor Documentation

Mix::Rectangle::Rectangle ( void  )

コンストラクタ

Mix::Rectangle::Rectangle ( Int32  rx,
Int32  ry,
Int32  rw,
Int32  rh 
)

コンストラクタ

Parameters
[in]rxX軸上の位置
[in]ryY軸上の位置
[in]rw
[in]rh高さ
Mix::Rectangle::Rectangle ( const Mix::Rectangle rect)

コピーコンストラクタ

Parameters
[in]rect矩形
Mix::Rectangle::Rectangle ( const Mix::RectangleF rect)

コピーコンストラクタ

Parameters
[in]rect矩形

Member Function Documentation

Boolean Mix::Rectangle::operator== ( const Rectangle rect) const

等価比較

Parameters
[in]rect比較する矩形
Returns
値が等しい場合は True を返します
Boolean Mix::Rectangle::operator!= ( const Rectangle rect) const

等価比較

Parameters
[in]rect比較する矩形
Returns
値が等しくない場合は True を返します
Mix::Rectangle& Mix::Rectangle::operator= ( const Mix::Rectangle rect)

代入( = )

Parameters
[in]rect代入元
Returns
結果
Mix::Rectangle& Mix::Rectangle::operator= ( const Mix::RectangleF rect)

代入( = )

Parameters
[in]rect代入元
Returns
結果
void Mix::Rectangle::Set ( Int32  rx,
Int32  ry,
Int32  rw,
Int32  rh 
)

矩形を設定します

Parameters
[in]rx矩形の左上の X 座標
[in]ry矩形の左上の Y 座標
[in]rw矩形の幅
[in]rh矩形の高さ
Boolean Mix::Rectangle::Contains ( const Mix::Point p) const

指定した点が含まれているかチェックします

Parameters
[in]p点を表す Mix::Point クラス
Returns
点が含まれている場合は True を返します
Boolean Mix::Rectangle::Contains ( const Mix::Rectangle rect,
Mix::Rectangle pOverlapRect = NULL 
) const

指定した矩形が含まれているかチェックします

Parameters
[in]rect矩形を表す Mix::Rectangle クラス
[out]pOverlapRect重なっている矩形を表す Mix::Rectangle クラスのポインタ
Returns
矩形が含まれている場合は True を返します
Int32 Mix::Rectangle::GetRight ( void  ) const

矩形の右端のX座標を取得します

Returns
右端のX座標
void Mix::Rectangle::SetRight ( Int32  right)

矩形の右端のX座標を設定します

Parameters
[in]right右端のX座標
Int32 Mix::Rectangle::GetBottom ( void  ) const

矩形の下端のY座標を取得します

Returns
下端のY座標
void Mix::Rectangle::SetBottom ( Int32  bottom)

矩形の下端のY座標を設定します

Parameters
[in]bottom下端のY座標
static const Mix::Rectangle& Mix::Rectangle::Zero ( void  )
inlinestatic

初期値( 0, 0, 0, 0 )を取得します

Returns
初期値を表す Mix::Rectangle クラスを返します

Member Data Documentation

Int32 Mix::Rectangle::x

X軸上の位置

Int32 Mix::Rectangle::y

Y軸上の位置

Int32 Mix::Rectangle::width

Int32 Mix::Rectangle::height

高さ


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